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