Back to Home / #openttd / 2012 / 05 / Prev Day | Next Day
#openttd IRC Logs for 2012-05-20

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