Log for #openttd on 20th May 2012:
Times are UTC Toggle Colours
00:12:11  *** Chris_Booth [] has quit [Quit: ChatZilla [Firefox 13.0/20120516113045]]
00:21:06  *** KritiK [] has quit [Quit: Leaving]
00:26:28  *** Firartix [] has quit [Ping timeout: 480 seconds]
00:51:19  *** Progman [] has quit [Remote host closed the connection]
00:59:21  *** snorre [] has joined #openttd
01:01:06  *** snorre_ [] has quit [Ping timeout: 480 seconds]
01:09:01  *** NataS is now known as Nat_AFK
01:18:33  *** roadt [~roadt@] has joined #openttd
01:21:27  *** Chruker [] has quit []
01:27:31  *** mal2 [] has quit [Ping timeout: 480 seconds]
01:35:34  *** Rhamphoryncus [] has joined #openttd
01:40:26  *** Jonnty [] has quit [Ping timeout: 480 seconds]
02:03:27  *** Hazzard_ [] has joined #openttd
02:09:11  *** Hazzard [] has quit [Ping timeout: 480 seconds]
02:09:28  *** Hazzard_ is now known as Hazzard
02:11:29  *** pugi [] has quit []
03:17:58  *** kais58_ [] has quit [Ping timeout: 480 seconds]
03:21:52  *** kais58 [] has joined #openttd
03:27:36  *** kkb110 [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has quit [Ping timeout: 480 seconds]
03:38:03  *** Djohaal [] has quit [Quit: Leaving]
04:01:09  *** glx [glx@2a01:e35:2f59:c7c0:ec8a:66eb:da65:54fd] has quit [Quit: bye]
04:01:31  *** Nat_AFK is now known as NataS
04:15:51  *** andythenorth [] has joined #openttd
04:29:25  *** kkb110 [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has joined #openttd
04:31:21  *** kkb110 [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has quit [Remote host closed the connection]
04:48:45  *** Eddi|zuHause [] has quit []
04:49:00  *** Eddi|zuHause [] has joined #openttd
04:57:19  *** telanus [~Barney_Er@] has joined #openttd
05:00:47  *** andythenorth [] has quit [Quit: andythenorth]
05:06:50  *** andythenorth [] has joined #openttd
05:36:54  *** NataS [] has quit [Remote host closed the connection]
05:43:19  *** Nat_aS [] has joined #openttd
06:00:49  *** kkb110 [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has joined #openttd
06:12:02  *** kkb110 [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has quit [Ping timeout: 480 seconds]
06:16:06  *** telanus1 [~Barney_Er@] has joined #openttd
06:16:32  *** andythenorth [] has quit [Quit: andythenorth]
06:17:42  *** DabuYu [~jkuckartz@] has quit [Ping timeout: 480 seconds]
06:20:07  *** kkb110 [] has joined #openttd
06:21:17  *** TWerkhoven [] has joined #openttd
06:23:22  *** telanus [~Barney_Er@] has quit [Ping timeout: 480 seconds]
06:32:44  *** Nat_aS is now known as Nat_AFK
06:45:28  *** Alberth [] has joined #openttd
06:45:31  *** mode/#openttd [+o Alberth] by ChanServ
06:58:27  *** kkb110__ [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has joined #openttd
07:00:31  *** andythenorth [] has joined #openttd
07:03:02  *** kkb110 [] has quit [Ping timeout: 480 seconds]
07:09:45  <Alberth> moin andy
07:12:15  *** |Jeroen| [] has joined #openttd
07:20:58  *** Devroush [] has joined #openttd
07:21:46  *** Elukka [] has joined #openttd
07:24:01  <andythenorth> bork bork
07:27:08  *** pugi [] has joined #openttd
07:30:55  *** Progman [] has joined #openttd
07:49:05  *** sla_ro|master [slaco@] has joined #openttd
07:56:14  *** Firartix [] has joined #openttd
08:08:35  *** TGYoshi [~TGYoshi@] has joined #openttd
08:51:18  *** flaa [~flaa@] has joined #openttd
08:53:32  <Alberth> sooo quiet :p
08:55:57  *** mal2 [] has joined #openttd
08:59:23  <planetmaker> boo! And moin
09:00:28  <planetmaker> Alberth: does for your new langcheck script exist something newer than version 2?
09:01:03  <planetmaker>
09:02:24  <Alberth> yes
09:02:52  <Alberth>
09:03:07  <Alberth> moore options :p
09:03:31  <Alberth> fazzter processing of several languages
09:03:45  <planetmaker> :-) Nice, ty. Then I'll update the repo version
09:05:16  *** andythenorth [] has quit [Quit: andythenorth]
09:05:29  <Alberth> nooo, don't leave!
09:05:55  * Alberth had a little something to show to andy :(
09:06:07  <planetmaker> he... what is it?
09:06:46  <Alberth>    some translation service experiments (mostly just empty class definitions)
09:07:26  <planetmaker> what kind of translation service?
09:07:31  <Alberth> trying to understand what the engine should do
09:07:50  <planetmaker> WT4?
09:08:01  <Alberth> yep
09:08:05  <planetmaker> :-O
09:09:13  <Alberth> I am still puzzling what to do and how to organize though
09:13:53  <planetmaker> hm... It needs most or all of what it can do now:
09:14:13  <planetmaker> - show all / review needed / untranslated / recently changed
09:14:51  *** FLHerne [] has joined #openttd
09:14:51  <planetmaker> - validate strings, like no double space in them
09:15:16  <planetmaker> - check for consistency of plural, gender, case of strings, if applicable to that string and language
09:15:49  <Alberth> validation is in  "the language system", a separate class of the trs
09:15:49  <planetmaker> I don't assume you have a GUI component yet, do you?
09:16:11  <Alberth> ie different projects may have different ideas of what to express in strings
09:16:39  <Alberth> this is a real back-end that you talk to with eg xml (XMPP) or so
09:16:48  <planetmaker> aye
09:17:30  <Alberth> except it does not talk to the outside world yet :p
09:17:39  <planetmaker> details!
09:18:07  <Alberth> indeed :)
09:18:59  <Alberth> one of the problems is that the proper Python engine for this is Twisted, and I HATE Twisted :)
09:19:48  <Alberth> but there is nothing that comes even close to it
09:20:16  <planetmaker> hm...
09:20:51  <planetmaker> what does WT3 use?
09:21:00  <Alberth> but for now I just see it as a library of functions you can call, and worry about the front later
09:21:05  <Alberth> Django, I think
09:21:29  <Alberth> but that's application and UI integrated into one
09:21:38  <Alberth> not sure that's a good idea
09:22:39  <planetmaker> ok
09:22:59  <Alberth> I'll figure it out :)
09:23:43  *** |Jeroen| [] has quit [Quit: oO]
09:26:34  <planetmaker> :-)
09:37:07  *** Chruker [] has joined #openttd
09:39:30  *** valhallasw [] has joined #openttd
10:00:55  *** Biolunar [] has joined #openttd
10:22:50  *** Chris_Booth [] has joined #openttd
10:39:34  *** mahmoud [] has joined #openttd
10:43:51  *** DOUK [] has quit [Ping timeout: 480 seconds]
10:51:02  *** Jonnty [] has joined #openttd
10:51:10  *** guru3_ [] has quit [Read error: Connection reset by peer]
10:53:44  *** FLHerne [] has quit [Remote host closed the connection]
10:58:16  *** Hazzard [] has quit [Ping timeout: 480 seconds]
10:59:34  *** roadt [~roadt@] has quit [Ping timeout: 480 seconds]
11:17:23  *** Hazzard [] has joined #openttd
11:17:29  *** kkb110__ [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has quit [Ping timeout: 480 seconds]
11:22:34  *** telanus1 [~Barney_Er@] has left #openttd [PING 1337513392]
11:26:20  *** guru3 [] has joined #openttd
11:37:30  *** guru3 [] has quit [Ping timeout: 480 seconds]
11:45:12  *** tokai|mdlx [] has joined #openttd
11:49:35  *** glx [glx@2a01:e35:2f59:c7c0:78ae:6a29:5b0c:6fe3] has joined #openttd
11:49:39  *** mode/#openttd [+v glx] by ChanServ
11:49:51  *** FLHerne [] has joined #openttd
11:50:59  *** tokai|noir [] has quit [Ping timeout: 480 seconds]
11:52:36  *** Hazzard [] has quit [Ping timeout: 480 seconds]
11:57:17  *** andythenorth [] has joined #openttd
11:59:59  <Alberth> andythenorth:
12:00:52  <andythenorth> Alberth: you need GUI?
12:01:14  <Alberth> It's too early for that, I think
12:02:07  <Alberth> just showing you what I am doing, and if possible getting an opinion about it.
12:02:27  <Alberth> is it a useful direction at all?
12:04:29  <andythenorth> I'd need to look a bit more :)
12:04:40  <andythenorth> my head is not in ttd-land much right now ;)
12:06:52  <Alberth> ok, np, I am not in any hurry
12:16:36  *** Firartix [] has quit [Ping timeout: 480 seconds]
12:21:36  *** KritiK [~Maxim@] has joined #openttd
12:23:40  <NGC3982> i fail to see what im doing wrong here, but when i autoreplace the brake wagons (from a small 10T to a big 20T) in the UKRS2+, i get "Autorenew failed on train x, this train requires a brake van".
12:25:52  <NGC3982> and second, does the refit stick while autoreplacing wagons?
12:25:53  <NGC3982> :)
12:27:41  <FLHerne> I believe the refit sticks. Perhaps the replace mechanism tries to remove the 10T van before adding the 20T one?
12:33:05  <NGC3982> hm, i guess
12:33:31  *** Chris_Booth [] has quit [Ping timeout: 480 seconds]
12:52:51  <Rhamphoryncus> I thought I'd done that successfully
13:00:01  *** andythenorth [] has quit [Quit: andythenorth]
13:00:14  <Eddi|zuHause> i think there's a correlation between forum activity and temperature outside...
13:11:17  *** andythenorth [] has joined #openttd
13:31:57  *** Progman [] has quit [Remote host closed the connection]
13:38:01  *** Wolf01 [~wolf01@] has joined #openttd
13:38:09  <Wolf01> hello
13:38:24  *** Progman [] has joined #openttd
13:46:09  <TrueBrain> Eddi|zuHause: the hotter, the more?
13:46:29  *** andythenorth [] has left #openttd []
13:46:42  <Eddi|zuHause> i don't think that's the one :p
13:46:47  <TrueBrain> Eddi|zuHause: dammit
13:46:49  <TrueBrain> I suck at this game
13:51:42  *** FLHerne [] has quit [Remote host closed the connection]
13:52:29  *** FLHerne [] has joined #openttd
14:05:52  *** roadt [~roadt@] has joined #openttd
14:10:08  *** HerzogDeXtEr [] has joined #openttd
14:10:21  *** Chris_Booth [] has joined #openttd
14:16:25  *** HerzogDeXtEr1 [~Flex@] has quit [Ping timeout: 480 seconds]
14:36:40  <Rhamphoryncus> TrueBrain: you're thinking of the correlation with taking off all your clothes
14:37:25  *** Nat_AFK is now known as Nat_aS
14:43:47  *** telanus [~Barney_Er@] has joined #openttd
14:47:43  <Terkhen> hello
14:51:39  <Alberth> hi
14:52:09  *** roadt [~roadt@] has quit [Remote host closed the connection]
14:53:11  *** roadt [~roadt@] has joined #openttd
15:20:34  *** andythenorth [] has joined #openttd
16:01:48  *** Nat_aS is now known as Nat_AFK
16:10:25  *** roadt [~roadt@] has quit [Ping timeout: 480 seconds]
16:26:15  *** andythenorth [] has quit [Quit: andythenorth]
16:29:32  *** AD [] has quit [Read error: Connection reset by peer]
16:32:35  *** mal2_ [] has joined #openttd
16:35:00  *** AD [] has joined #openttd
16:35:38  *** AD is now known as Guest766
16:39:23  *** mal2 [] has quit [Ping timeout: 480 seconds]
16:41:41  *** andythenorth [] has joined #openttd
16:46:41  *** krinn [] has joined #openttd
16:46:47  <krinn> hi all
16:46:48  *** HerzogDeXtEr [] has quit [Read error: Connection reset by peer]
16:49:26  *** HerzogDeXtEr [] has joined #openttd
16:49:41  <krinn> i have a strange, effect exiting a switch/case my vars get transform to true and false, and 3rd one remain as it should. i'm lost there.
16:50:53  <andythenorth> = instead of == ?
16:51:08  <andythenorth> or some other form of assignment instead of evaluation?
16:51:50  <krinn>
16:52:13  <krinn> a switch/case, dunno, maybe i cannot use char vars in switch/case or something?
16:53:47  <krinn> on exit string_delimiter is set to true, number_delimiter is set to false, datatype is set to 1 (well, this is expect) and negative_delimiter remain to a char as it should, but string_delimiter and number_delimiter were char too before the switch/case
16:53:49  <Alberth> should the 'default' get used?
16:54:02  <krinn> no default is a do nothing
16:54:11  <Alberth> if not, add an assert to check it is really not used
16:54:28  *** theholyduck [] has quit [Read error: Connection reset by peer]
16:54:46  <krinn> on exit datatype is set to 1 (proof buff == number_delimiter on the iter)
16:55:23  *** mal2 [] has joined #openttd
16:55:34  <Alberth> weird indeed
16:55:55  <krinn> yes, there shouldn't be a problem using switch/case for var that are char no ?
16:56:09  <Alberth> can you print the type and value of all variables before and after?
16:56:22  <krinn> yes, that's what i have done to see the bug
16:56:35  <Alberth> I don't know what the squirrel manual says about that case
16:57:08  <krinn> dbg: [script] [18] [P] s=# n=$ -=%
16:57:08  <krinn> dbg: [script] [18] [P] buff=$ datatype=1
16:57:08  <krinn> dbg: [script] [18] [P] s=false n=true -=%
16:57:12  <krinn> my console output this
16:57:24  <krinn> s = string delimiter (so set as "#")
16:57:28  <krinn> n number_delimiter
16:57:35  <krinn> and - = negative_delimiter
16:58:18  <Alberth> first check the language manual. It should say whether what you do is allowed
16:59:00  <krinn> they assume "any number" while i'm working with char
16:59:06  <krinn> but i would suppose it was legit
16:59:23  *** mal2_ [] has quit [Ping timeout: 480 seconds]
16:59:33  <krinn> else i will beforce to add plenty if (buff == string_delimiter) ...
17:00:07  <Alberth> that should be the safe way out
17:00:46  <krinn> it will work i suppose, just for code readibility, it will get dirty
17:00:49  *** mal2_ [] has joined #openttd
17:01:23  <krinn> and it should throw an error instead of altering variable and keep working, strange language that squirrel thing :)
17:01:46  <Alberth> hmm, can you convert a char to an integer?
17:01:52  <krinn> on next iter buff (load with char) is then compare to variables that are now set as boolean, and of course fail
17:01:54  <Alberth> typically 'ord' or so
17:02:23  <krinn> ah yes, found it, [0] should gave it
17:02:33  <krinn> rewriting it ot handle integer than
17:02:34  <krinn> wait
17:02:38  <Alberth> many languages do not allow strings to be used in switches
17:03:10  <Alberth> as it does not get better than writing lots of 'if' statements in that case
17:03:41  <Alberth> but I agree it should fail with an error, or hit the 'default' case
17:03:43  <krinn> yep, switch/case does the same job, except code is less a pain to read
17:03:55  *** mal2 [] has quit [Ping timeout: 480 seconds]
17:04:19  <krinn> yep i was expect an error, invalid type or something, but no, it goes to a weird true/false for 2 first var, and 3rd remain unchange
17:04:31  <Alberth> the typical place to report this in with the squirrel devs
17:04:38  <Alberth> *is
17:04:52  <krinn> yep, except this should goes into squierrel 3.x or 4
17:04:56  <krinn> and this won't help then :)
17:05:21  <krinn> specially i prefer openttd to keep squierrel 2, far more stable than what i saw with 3
17:05:46  <Alberth> you're the expert here :)
17:06:05  <krinn> :P (expert failing with a sample switch/case)
17:06:19  <krinn>  /ssample /simple
17:06:22  <Alberth> it happens to all of us.
17:06:45  <Alberth> I once looked 45 minutes for an hidden = that should have been a == :)
17:07:31  <Alberth> it learns you not to trust computers too much :p
17:08:52  <krinn> eheh, i think i broke your 45 minutes, that damn first iter was working as expect
17:09:29  <Alberth> :)
17:11:13  <andythenorth> hmm
17:11:16  <andythenorth> bad may be happening
17:12:20  <andythenorth> Alberth: I might have just removed your recent FIRS dutch changes
17:12:28  <andythenorth> actually not
17:12:31  <andythenorth> I can't push :P
17:12:46  <andythenorth> fixed
17:13:15  <Alberth> messing in the dutch language file? :)
17:13:21  <andythenorth> no
17:13:26  <andythenorth> committed without pulling
17:13:41  <andythenorth> which left me with a modified dutch lang file
17:14:11  <andythenorth> I used 'up' with '--clean' because I couldn't see any other choice
17:14:38  <Alberth> revert, or rollback the commit?
17:14:43  <andythenorth> couldn't rollback
17:14:48  *** Devedse [] has joined #openttd
17:14:53  <andythenorth> the stupid thing with hg is that once you've pulled, you can't rollback
17:15:06  <andythenorth> and that's the most common case for wanting to rollback :P
17:15:16  <andythenorth> hg is very fragile
17:15:34  <Alberth> yeah, committing is always a problem
17:15:39  <Alberth> also with svn btw
17:16:01  <andythenorth> svn is no better :P
17:16:22  <Alberth> the commit fails rather than the push, which is a plus
17:16:23  <andythenorth> I should diff dutch lang tip against your last commit :P
17:18:21  <andythenorth> based on last modification, I think it's ok
17:18:25  <Alberth> but svn fails to ensure you make a new entry with a cp, so if you do  "svn cp A B" with B a new directory twice you will have A as B, and as B/B
17:18:48  <Alberth> ok, will keep it in mind for the next time
17:22:08  <krinn> hu? can't you just hg log then hg update #(commit-1)
17:22:10  *** kkb110 [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has joined #openttd
17:22:50  * NGC3982 wants to write nml but doesnt have the strenght for it
17:27:40  <andythenorth> you're sick?
17:27:45  <andythenorth> worked too hard?
17:27:47  <andythenorth> hungover?
17:30:49  <NGC3982> not really in the mood, for some reason.
17:31:26  <NGC3982> im still thinking about writing a industry modification to enable passengers as production stimula
17:31:40  <NGC3982> but as soon as i start, i get bored and stop
17:31:50  <NGC3982> as i do with most things..
17:32:26  <NGC3982> the thing is, im having a hard time finding nml+lang files for the standard industry set for openttd
17:32:34  <NGC3982> making a complete new one is way to advanced for me
17:33:37  *** Absolutis [] has joined #openttd
17:33:41  <Absolutis> Hey
17:33:46  <Absolutis> anyone play XCom?
17:33:51  <krinn> isn't opengfx industry nml and public ?
17:35:20  <NGC3982> krinn: i have no idea, i didnt find it..
17:35:24  *** Absolutis [] has quit []
17:36:08  <krinn> google -> opengfx industry openttdcoop
17:36:46  <krinn>
17:36:52  <krinn> those pnml are nml files no ?
17:37:17  <NGC3982> they are?
17:37:43  <krinn> no idea, but i suppose they aren't name like that for nothing
17:38:11  <NGC3982> let's find out.
17:38:24  <CIA-1> OpenTTD: translators * r24264 /trunk/src/lang/ (5 files): (log message trimmed)
17:38:24  <CIA-1> OpenTTD: -Update from WebTranslator v3.0:
17:38:24  <CIA-1> OpenTTD: hungarian - 27 changes by IPG
17:38:24  <CIA-1> OpenTTD: portuguese - 1 changes by JayCity
17:38:24  <CIA-1> OpenTTD: russian - 3 changes by Lone_Wolf
17:38:25  <CIA-1> OpenTTD: slovenian - 2 changes by
17:38:25  <CIA-1> OpenTTD: swedish - 36 changes by Joel_A
17:38:33  <NGC3982> that sure looks like nml code
17:38:36  <andythenorth> it's nml, but including macros + defines for the c pre-processor
17:38:44  <NGC3982> oh, ok?
17:38:51  <andythenorth> it has to be parsed by cpp at compile time
17:38:58  <NGC3982> :E
17:39:16  <krinn> looks like you find a solve NGC3982 :)
17:39:38  <NGC3982> i did? i have no idea what cpp and compilation of nml code works.
17:39:42  <NGC3982> but yes, ill try
17:39:58  <andythenorth> you need gcc or such
17:40:05  <andythenorth> and nmlc
17:40:08  <NGC3982> what's that.
17:40:11  <krinn> cpp, common name for c++ compiler
17:40:24  * NGC3982 thinks he already has nmlc
17:40:55  <andythenorth>
17:41:02  *** frosch123 [] has joined #openttd
17:41:18  <NGC3982> i havent made more then the trial-truck yet, so this is a bit intriguing.
17:41:33  *** kkb110 [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has quit [Ping timeout: 480 seconds]
17:41:40  <andythenorth> hmm
17:41:51  * andythenorth recently had to make python 2.4 system default python
17:41:57  <andythenorth> that means no more newgrf dev from me
17:42:22  <telanus> :(
17:42:27  <NGC3982> the thing is, when i started this i was also new to linux
17:42:42  <NGC3982> and that did not make things go well.
17:42:53  <glx> <krinn> cpp, common name for c++ compiler <-- preprocessor, not compiler
17:44:06  <andythenorth> wonder why my hg isn't broken too :0
17:44:40  <krinn> andythenorth, how can switching python broke your system ?
17:44:53  <NGC3982> any other tip i can use before i start readin' up on this b*tch?
17:44:55  <NGC3982> ;)
17:45:17  <krinn> NGC3982, yep, do some coffee
17:45:53  <NGC3982> thing is, im on windows right now.
17:46:17  <NGC3982> and i need to dual boot ubuntu before i continue
17:46:24  <krinn> you can't make a coffee running windows ?
17:46:31  <NGC3982> feels a bit dumb learning this on two systems at once
17:46:37  <NGC3982> krinn: ;)
17:46:49  <andythenorth> krinn: nmlc requires python >= 2.6
17:47:23  <krinn> andythenorth, and you can't have the two install ?
17:47:33  <andythenorth> I can have n installed
17:47:44  <andythenorth> but only one can be aliased to 'python' in the system path :P
17:48:17  <krinn> alias it to python2
17:48:24  <NGC3982> all this code is getting on my neck
17:49:29  <andythenorth> krinn: then I have to go change the shebang in every piece of python code that needs 2.6 :P
17:49:31  <andythenorth> umm
17:49:41  <andythenorth> not likely to happen :)
17:50:04  <NGC3982> at work, im trying to build some statistics modules for our sales division, and ive just started writing C# in aspx, and in the same documents, css, java and html for the design, mysql for the database querys, and visual basic for the sales systems.
17:50:30  <krinn>     --python2                 Set active Python 2 interpreter without setting
17:50:31  <NGC3982> and i barely know what a compiler is.
17:50:31  <krinn>                               of main active Python interpreter if it is not
17:50:31  <krinn>                               set to Python 2
17:50:47  <krinn> hihi try gentoo andythenorth, easy swithing
17:51:28  *** kkb110 [] has joined #openttd
17:53:12  <andythenorth> virtualenv might solve it
17:53:55  <krinn> look for your python version, should have a link to it as /usr/bin/python but also /usr/bin/python2-4 /usr/bin/python2-6
17:54:13  <krinn> just symlink then /usr/bin/python with python2-4 or python2-6 as you wsih
17:54:14  *** Devedse [] has quit [Read error: Connection reset by peer]
17:55:03  <andythenorth> krinn: I'd still need to change a lot shebangs
17:55:25  <krinn> no 0, as they use python and not python2-6 or python2-4
17:55:52  <krinn> but you will have to relink python each time you wish switch version
17:55:56  <andythenorth> yes
17:56:23  <krinn> gentoo does this, except they provide an easy wrapper
17:56:40  <krinn> lrwxrwxrwx 1 root root 14  5 déc.  10:57 /usr/bin/python -> python-wrapper
17:56:46  <andythenorth> I need to be able to run multiple python scripts at once
17:56:51  <andythenorth> that require different python versions
17:56:57  <andythenorth> the solution is virtualenv
17:57:13  <krinn> as you wish, but python script should be store in python-version
17:57:33  <krinn> that generally means, only swithing python version and rebuild the script so it install in both python-version path
17:57:54  <andythenorth> these are apps that comprise thousands of python modules
17:58:11  <andythenorth> ;)
17:58:11  <krinn> hence the wrapper to ease things :)
17:58:19  <andythenorth> I don't see how it could possibly work :)
17:59:01  <krinn> /usr/sbin/python-updater <- find script in a python version not in another version and force it to reinstall
17:59:36  <andythenorth> reinstall where? :o
17:59:37  <andythenorth> how?
17:59:45  <krinn> to python-version path
18:00:02  <andythenorth> so it walks the filesystem setting shebang strings?
18:01:11  <krinn> no it find what current python version you have, look into python repo directory for script, then look what python update you wish, and look into its repo to see they are there, if not, swithing to that new python version and reinstall the script add them
18:01:24  <krinn> theory is easy, but by hands it should be a pain :)
18:01:39  <andythenorth> hmm
18:01:47  <andythenorth> I think we're probably talking at cross purposes :)
18:02:16  <andythenorth> I have a web app comprised of ~5,000 .py files
18:02:23  <andythenorth> which expect to run under python 2.4
18:02:31  <krinn> look in /usr/lib/python* you'll get repo for python version (if install in /usr/lib)
18:03:04  <andythenorth> I have multiple pythons installed
18:03:24  <andythenorth> the issue is which one to use when executing a script
18:03:43  <krinn> the one in /usr/bin/python define the python version
18:04:00  <krinn> then the script version in use will be /usr/lib/pythonversion/script-file
18:04:09  <andythenorth> ?
18:04:35  <andythenorth> ah, that sounds like you describe packages that are installed system wide
18:04:49  <krinn> look same file, both python version
18:04:54  <krinn> /usr/lib/python2.7/
18:05:00  <krinn> /usr/lib/python3.2/
18:05:15  <krinn> if you use python2.7 first will get use, on 3.2 the second one
18:05:49  <andythenorth> that's fine
18:05:57  <andythenorth> but only for system-wide packages
18:06:23  <andythenorth> e.g. I have PIL installed as system-wide package for both 2.4 and 2.6
18:06:46  <andythenorth> but it fails for apps that are not installed as system-wide packages ;)
18:07:01  <andythenorth> virtualenv is the correct way to solve this, I just need to learn how it works
18:07:29  <krinn> i suppose it's kinda the same as we use
18:07:30  *** theholyduck [] has joined #openttd
18:09:44  <Alberth> only change the scripts that you start from the cmd line
18:09:57  <Alberth> imports just use whatever python it imports
18:10:29  <andythenorth> hmm
18:10:33  <andythenorth> python_select is broken for me
18:10:39  <krinn> i even support just using full python version should be enough, /usr/bin/python2-7 instead of /usr/bin/python
18:11:10  <andythenorth> that would still require patching all the buildouts, paster files, etc
18:13:44  <valhallasw> andythenorth: consider using a virtualenv?
18:14:15  <andythenorth> that's my next step
18:19:56  *** Rhamphoryncus [] has quit [Read error: No route to host]
18:20:59  *** Rhamphoryncus [] has joined #openttd
18:33:23  *** Zuu [] has joined #openttd
18:33:30  <Zuu> Hello krinn, did your switch problem get solved?
18:33:37  <Zuu> got*
18:33:40  <krinn> yep
18:33:46  <Zuu> great
18:33:52  <krinn> i have use the decimal value of each char
18:34:25  <krinn> it was really that, cannot use char with switch/case, and squirrel doesn't throw an error with some invalid type but was doing weird
18:34:46  <krinn> so instead of a painful if "" then... i do as Alberth suggest
18:34:50  <Zuu> The ord() trick I use often with Enum variables.
18:35:18  <Zuu> Not in Squirrel, but other languages that actually got stronger typing.
18:36:02  <krinn> well, the error handling bug me more than the language limit, i'm not expecting the squirrel interpreter to be as strong as a c parser
18:36:14  <Zuu> Sometimes strong typed laguages don't allow you to compute the difference between two enums for example. Then you can use ord(enumX) - ord(enumY)
18:36:34  <Alberth> weird languages :p
18:36:40  <krinn> :)
18:36:40  <Zuu> Yea, its wierd that it changed the type of the variable as I understood
18:36:53  <Zuu> But its not the first wierd thing about Squirrel. :-)
18:36:55  <krinn> yep, it change the two first var to true and false
18:37:25  <Alberth> it sounds like a bug to me
18:37:30  <krinn> not trowing error, so error appears at 2nd iter (of course then comparing a char vs a boolean was trigger the default part of the switch)
18:38:05  <krinn> Alberth, but i could live with the bug if it mean keeping squirrel v2 :)
18:38:22  <Zuu> char vs boolean depend if it try to convert the char to a boolean and what char values that match boolean true/false.
18:38:58  <Alberth> iieks
18:39:06  <krinn> well, i was comparing a char in a var vs a var holding a char, and squirrel first iter was working, except if change the compared char to a boolean!
18:39:15  <andythenorth> hmm
18:39:20  <Alberth> scary squirrel ;)
18:39:21  <andythenorth> macports seems to be installing bloody everything :P
18:39:28  <andythenorth> every port it knows about :P
18:39:29  <andythenorth> afaict
18:39:38  <Zuu> krinn: There is a wiki article to document wierd squirrel behaviour and common mistakes:
18:39:39  <andythenorth> this has killed my battery :P
18:39:41  *** andythenorth [] has quit [Quit: andythenorth]
18:39:45  <krinn> Zuu:
18:40:06  <krinn> look at the switch, squirrel change string_delimiter to true and change number_delimiter to false
18:40:07  <Zuu> Yep, the same as you posted earlier?
18:40:11  <krinn> yes
18:40:48  <Zuu> indeed wierd
18:41:21  <krinn> it might be because only integer are support by squirrel, but i was at least expecting it to kick my ass with an error instead of that weird change
18:43:06  <krinn> and it was nasty as datatype was set to 2, in fact i have found it a crash() to see string_delimiter and number_delimiter were change to true and false while openttd error was showing latest used var value
18:43:15  <krinn> openttd error message is a good debugger :)
18:44:34  <krinn> Zuu: support for sign integer is add, fix the too big sign bug too
18:44:37  <Zuu> if you stick to your idea to at the lower level use different symbols to separate data depending on type instead of using a char for type-information, perhaps add a symbol for null? Or do you plan to respersent null by an empty integer?
18:44:59  <Zuu> eg an 'x' with no data after it.
18:45:11  <krinn> Zuu, that's the idea
18:45:40  <krinn> just like boolean are change to 0 and 1 (because squirrel don't see the difference with an integer and a boolean)
18:46:05  <Alberth> lol, firs 0.3 needed  :D
18:47:53  <krinn> firs ?
18:48:10  *** kkb110 [] has quit [Ping timeout: 480 seconds]
18:49:51  <Alberth> an industry newgrf
18:50:33  <Alberth> amazing what files you find when you reverse sort your games on date :)
18:51:19  <krinn> it mean you play too much that game for too long time :)
18:57:59  <Alberth> noy too much, just too long :)
19:05:13  *** andythenorth [] has joined #openttd
19:08:40  *** Nat_AFK is now known as Nat_aS
19:10:11  *** anythingffs [] has joined #openttd
19:11:48  <anythingffs> hey all, I have a map of Scotland working on a 1.2 server but the map is in the year 2400 so everything is more expensive, are there any server commands that can reset the map back to 2000 where every town will just be starting out?
19:12:20  *** anythingffs is now known as andy1314
19:13:03  <andy1314> i struggled with version problems and was lucky to get this map running
19:15:44  <Eddi|zuHause> andy1314: only by loading an older savegame
19:18:22  <TinoDidriksen> Would be "easy" to make a load option that would strip the world of any company construction and scale cities.
19:18:43  <Terkhen> not really easy
19:19:00  <Terkhen> thins get complicated quickly when you throw NewGRFs into the mix :)
19:19:04  <Terkhen> things*
19:19:20  <Eddi|zuHause> the scenario editor has a command to remove all player property
19:19:36  <TinoDidriksen> NewGRFs would indeed complicate matters...
19:20:56  <frosch123> the problem with shrinking towns is the deicision which roads to remove
19:21:04  *** andy1314 [] has quit [Ping timeout: 480 seconds]
19:21:15  <frosch123> removing houses is easy
19:23:18  <TinoDidriksen> I would go the other way...remove all houses and roads, reset to year 1950, then scale them up again to the chosen year.
19:25:23  <frosch123> so you also remove all inter-town connection which scenario creators might have build
19:25:41  <Terkhen> TinoDidriksen: I wrote something like that once
19:25:45  <Wolf01> 'night all
19:25:50  *** Wolf01 [~wolf01@] has quit [Quit: Once again the world is quick to bury me.]
19:25:53  <Terkhen> it was easy to make it crash :P
19:30:51  *** flaa [~flaa@] has quit [Quit: leaving]
19:45:40  <krinn> Zuu, add support for sign number, null, fix the bug with too short string and fix bug with mixed code/uncode char in string
19:45:49  <krinn> Zuu, still the capture event bug to fix
19:46:52  <Zuu> Ok, on that one I think that SCPLib should not pop events from the event stack as that affect AIs/GSs in a way that is undesired.
19:47:05  <krinn> and there's a bug in the transport goal test if i enable all tests case, transportgoal received back number 15 as a getconfig and try to read the GS configuration thinking it's a string
19:47:39  <krinn> not something really bad, just that enabling the getconfig with number test fail
19:47:59  <Zuu> SCPLib will probably have to resort to loop over 14 companys and see if they are new or not each time. Though, there is of course the issue if one company closes and a new one is opened at the same slot between two Check() calls.
19:48:14  *** kkb110_ [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has joined #openttd
19:48:30  <krinn> yep
19:48:54  <krinn> i will try to enable looping over the company and see if we could add a setting for GS/AI that don't handle the 2 events
19:49:44  <Zuu> Its actually 3 events that should be of interest: New, merge and close.
19:49:57  <krinn> i forget the merging
19:50:10  <krinn> anyway, we must drop the 2 previous event
19:50:32  <krinn> as an AI might just discard them instead of displaying a "new company that"
19:50:45  <krinn> but for a GS things are different, and nearly all GS will need to handle them
19:51:08  <krinn> no choice then dropping event base, and going for the loop then
19:51:30  <Zuu> as for too quick close + open, perhaps accept a new hand-shake from a company that we think is old?
19:51:44  *** Djohaal [] has joined #openttd
19:52:20  <krinn> handshake is always bypass and accept, shouldn't be a problem right now
19:52:31  <krinn> command0 is always accept, no mater the status of the company
19:53:06  <Zuu> ok
19:53:11  <krinn> i did this because we must accept any command0 to reject others, and we cannot reject this one so :)
19:54:19  <krinn> if one reload a company with handshake in process, previous tile becomes "no owner" and ai restart handshake one: the script don't read the no owner, but see the new one and continue handshake
19:55:36  *** kkb110_ [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has quit [Remote host closed the connection]
19:56:19  *** kkb110_ [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has joined #openttd
20:01:15  *** anythingffs [] has joined #openttd
20:01:45  <anythingffs> sorry, did anyone answer that question? about reset a server map to a specific year via server rcon commands?
20:01:54  <anythingffs> or reset town back to defaults
20:02:12  *** anythingffs is now known as andy1314
20:02:21  <krinn> it was a "can't do", reload previous game
20:02:31  <Terkhen> andy1314: not possible
20:02:49  <Terkhen> if you can live with only the terrain, you can export the savegame as a heightmap and then create a new game with it
20:03:01  <Terkhen> if you want towns, industries and so on, you need to load a previous savegame
20:03:56  <andy1314> that was the earliest save game that worked unfortunately, missing grfs in the rest but not this one
20:04:15  <krinn> Zuu, lol fix the company loop as it was just trigger by the event, so now it's always trigger without event
20:04:23  <krinn> Zuu, what an easy update :)
20:04:41  <andy1314> on a side issue, how do I connect to the server 'admin interface'?
20:04:55  <andy1314> I've setup the password and port in the config but how do I access it?
20:04:56  <Nat_aS> why are there no helicopters good for short trips from an airport to a heliport in the middle of the same city
20:05:01  <Nat_aS> in AV8
20:05:13  <Zuu> krinn: Great
20:05:39  <Nat_aS> I like the idea of a helicopter going from your HQ to the airport, as a vanity thing, but I can never make short range helicopter trips to be profitable
20:06:38  <Zuu> TransportGoal have both a loop and events, as events get lost if there is a save/load. Yes, could be fixed by the GS poping all events and save them in the save game and then process when the game is loaded, but I then think it is better to use a loop which is more robust.
20:07:01  <andy1314> ?
20:07:20  <andy1314> noone knows about the supposed admin interface for server?
20:07:46  <Zuu> I've seen some talks about libraries for it.
20:08:38  <Zuu> <-- here is one
20:08:39  <andy1314> New admin-interface which allows server control over another network port 1.1.0
20:09:03  <Zuu> <--- here is a client using joan
20:10:08  <krinn> Zuu, we should add a subversion no? that main version only is limiting (the version 1 lib)
20:10:16  <andy1314> theres no built in interface?
20:10:27  <krinn> keeping the format lib.1 as lib standard but adding a subversion within the lib ?
20:11:07  <andy1314> wheres the download for those projects? the grapes repository has a src folder with one of the files called porn.xml
20:11:08  <Zuu> oh, I though you were talking about Subversion as opposed to Mercurial, but I see that is not the 'subversion' you are talking about. :-)
20:11:17  <krinn> :)
20:11:41  <krinn> we may update version 1 -> 2 while releasing the lib, but keeping an internal subversion to see we are using 1.1 or 1.2...
20:11:43  <Zuu> I tend to just use integer versions
20:11:44  <KenjiE20> that's pom
20:11:48  <KenjiE20> not porn
20:11:53  <andy1314> lol
20:12:04  <andy1314>
20:12:11  <andy1314> aye sorry, bad vision
20:12:28  <KenjiE20> the only things that exist for the admin interface are proof of concepts atm
20:13:07  <Zuu> For internal use, it might be useful though to update the version, or we could decide to do 1->2 just at the commit when we mark version 2.
20:13:34  <andy1314> don't mind testing a few, what do i do with the grapes src files?
20:13:56  <Zuu> But I'm not sure it is worth the hassle to have an internal .1 .2 .3 version etc.
20:13:58  <krinn> Zuu, the 1 -> 2 on commit is clear and a must do to update, but as we use many different versions for testing the internal could be good for us
20:14:47  <krinn> i could change the ./ to increment a subversion on each commit
20:15:00  <Zuu> Perhaps use<last version>.<hg revision> ?
20:15:29  <Zuu> That will yield eg. 1.1, 1.2, 2.3, 2.4, 2.5, 3.6 ..
20:15:47  <krinn> yep something just so we knows what package version we run
20:15:51  <Zuu> eg, it will not restart on 1 at each release but will have correct ordering of the version numbers.
20:16:46  <Zuu> could issue some hg command to get the current revision.
20:18:18  <krinn> yes
20:18:33  <krinn> we need awk got it too?
20:19:30  <Zuu> grep -o could do it as well
20:19:47  <Zuu> "grep -o"  means it will only output the string that matches the pattern
20:20:06  <krinn> except patern cannot be predict without cut
20:20:11  <Zuu> I sometimes find myself doing grep --help | grep "something" :-)
20:21:38  *** andy1314 [] has quit [Ping timeout: 480 seconds]
20:23:28  <Zuu> One solution without awk/sed: hg tip | head -n 1 | grep -o -r "\s\+[0-9]\+" | grep -o -r "[0-9]\+"
20:24:49  <Zuu> This seem to work too:  hg tip | head -n 1 | grep -o -r "\b[0-9]\+"
20:27:35  <Zuu> And even shorter: hg id -n | grep -o "[0-9]\+"
20:31:44  <krinn> hg id -n | grep -o "[0-9]\+" gave good result
20:32:09  <krinn> i'll add that
20:32:27  <Alberth> is the \ needed?
20:32:44  <krinn> 2
20:32:45  <krinn> 3
20:32:51  <krinn> better to get 23 :)
20:33:07  <Zuu> Alberth: Yes, otherwise my grep matches a '+' sign
20:33:15  <Alberth> looks much better indeed
20:33:16  <Zuu> which actually exist in the string
20:33:26  <Zuu> the string sent to grep is "23+"
20:33:57  <Zuu> Without the \, I get "3+" instead of "23"
20:34:11  <Alberth> makes sense, thanks :)
20:34:33  <Zuu> the grep in question is GNU grep 2.6.3
20:35:52  * Zuu is always irritated when some program decide to put some custom grep command at the front of the PATH in windows.
20:36:10  <Zuu> Eg. before my C:\cygwin\bin thingy :-)
20:38:42  <krinn> you have gnu grep ?
20:38:49  <Zuu> yep
20:39:07  <krinn> ok good, it will be easier with same tools
20:40:54  *** frosch123 [] has quit [Remote host closed the connection]
20:41:08  <Zuu> Currently I do my SCP edditing on a remote linux box, but I might move it to gnu/windows as I can't have a script on the remote machine to push the packages into OpenTTD folders. Also, my CLI clipboard integration doesn't work then.
20:41:44  <krinn> add windows ssh
20:41:54  <krinn> and use scp (lol not the lib) to push your files
20:42:25  <krinn> there's openssh for windows too
20:43:28  <Zuu> Yes, I know although I never got it to work fully. Too long time since I looked into it to remember if I was put off by something before trying it or if it was an actual problem to use it.
20:43:32  *** drac_boy [] has joined #openttd
20:43:35  <drac_boy> hi
20:43:59  <krinn> hi
20:44:18  <drac_boy> how're you krinn?
20:44:20  <krinn> Zuu, using passwordless keyfile you lower the pain and ease the thing
20:44:35  <krinn> drac_boy, fine thank you, you ?
20:45:03  <drac_boy> doing ok, just been too many things going on to ever bother trying get a chrill game going tho -_-
20:45:20  <drac_boy> did manage to work on my ongoing grf set a little bit there and there tho
20:46:52  <krinn> game are for users :)
20:49:21  <Zuu> krinn: Did you remove events.nut? It is still in in the last version that you did commit.
20:49:28  *** JDP [] has joined #openttd
20:49:39  <krinn> :) just remove it from the last update recheck
20:49:39  <Zuu> Or did you forget to hg add it?
20:49:57  <krinn> i have just remove reference to the file as no more use
20:50:24  <krinn> rev 24
20:50:39  <krinn> package is so 1.23 version
20:51:46  *** Progman [] has quit [Remote host closed the connection]
20:52:38  <Nat_aS> Oh wow
20:52:51  *** fah_pc [~fah_pc@] has joined #openttd
20:52:54  <Nat_aS> removing the heliport replacing it with a helistation, and moving it ONE tile away
20:53:01  <Nat_aS> and suddenly the choper can draw a profit
20:53:02  <Nat_aS> lol
20:53:50  *** Alberth [] has left #openttd []
20:54:14  *** kkb110_ [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has quit [Ping timeout: 480 seconds]
20:54:26  <fah_pc> hi everyone!!!!!
20:54:35  <krinn> hi
20:55:21  <fah_pc> hi krin
20:55:31  <fah_pc> where are you from?
20:55:41  * andythenorth -> bed
20:55:42  *** andythenorth [] has left #openttd []
20:55:53  <krinn> i'm just a tiny girl from korea why?
20:56:27  <Eddi|zuHause> ... i'm not commenting that :p
20:56:36  <krinn> :)
20:56:45  <fah_pc> i am a boy from Brazil
20:56:48  <fah_pc> lol
20:57:08  <krinn> i was expecting something like that from such a question
20:58:29  <Terkhen> good night
20:58:34  <krinn> night Terkhen
21:01:46  *** kkb110_ [~kkb110@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has joined #openttd
21:06:26  <krinn> Zuu going bed, as i'm sure you're torturing the lib and as tomorrow i'm off work, i could fix it tomorrow, drop me a message if your evil mind find something wrong :)
21:06:42  <krinn> night alll
21:06:55  *** krinn [] has quit [Quit: Quitte]
21:09:37  *** JDP [] has quit [Quit: ajax IRC Client]
21:11:05  *** Rhamphoryncus [] has quit [Quit: Rhamphoryncus]
21:13:36  *** drac_boy [] has left #openttd [I'm done being in this room!]
21:14:09  *** Biolunar [] has quit [Quit: All your IRC are belong to us]
21:18:17  <Rienzilla> Mmmh
21:18:23  *** telanus [~Barney_Er@] has quit [Read error: Connection reset by peer]
21:19:21  <Rienzilla> suppose youÅ're unable to build an airport in the middle of a city. Is it possible to sa, build two airports in the middle of nowhere (at least in a place where they don't accept anything) and then haul the cargo or passengers from and to the airport by train?
21:20:08  <Rienzilla> I can bring passengers to the airport with a train, but as soon as I instruct the train to also pick up cargo at the airport it will pick up the very passengers it delivered itself, and then bring them back :)
21:22:11  <FLHerne> Wiki:
21:22:53  <FLHerne> Basically, you have one station for planes -> trains and another for trains -> planes
21:23:06  *** Elukka [] has quit []
21:27:34  <FLHerne> night
21:27:41  *** FLHerne [] has left #openttd []
21:34:05  *** Firartix [] has joined #openttd
21:41:37  *** TGYoshi [~TGYoshi@] has quit [Quit: Popidopidopido]
21:41:56  *** sla_ro|master [slaco@] has quit [Quit: DANGER is OFFLINE DANGER]
21:44:52  *** Nat_aS is now known as Nat_AFK
21:46:05  *** fah_pc [~fah_pc@] has quit [Quit: Saindo]
21:48:49  <Zuu> hmm another interesting feature of Squirrel. typeof('a') => integer
21:59:46  *** Chris_Booth [] has quit [Remote host closed the connection]
22:03:44  *** valhallasw [] has quit [Quit: leaving]
22:40:01  *** Prof_Frink [] has joined #openttd
22:52:29  *** TWerkhoven [] has quit [Quit: He who can look into the future, has a brighter future to look into]
22:55:09  *** Zuu [] has quit [Ping timeout: 480 seconds]
23:05:51  *** Chruker [] has quit []
23:06:04  *** DabuYu [~jkuckartz@] has joined #openttd
23:09:23  *** mal2_ [] has quit [Ping timeout: 480 seconds]
23:13:16  *** Devroush [] has quit []
23:38:16  *** KritiK [~Maxim@] has quit [Quit: Leaving]
23:48:13  *** guru3 [] has joined #openttd
23:49:43  *** Firartix [] has quit [Ping timeout: 480 seconds]
23:51:48  *** Kylie [] has quit [Quit: Leaving]
23:52:10  *** Kylie [] has joined #openttd
23:52:14  *** guru3 [] has quit [Read error: Connection reset by peer]

Powered by YARRSTE version: svn-trunk