Back to Home / #openttd / 2013 / 05 / Prev Day | Next Day
#openttd IRC Logs for 2013-05-26

---Logopened Sun May 26 00:00:29 2013
00:29-!-user54367644 [~user@1.244.108.19] has joined #openttd
00:49-!-user54367644 [~user@1.244.108.19] has quit [Quit: user54367644]
00:56-!-Eddi|zuHause [~johekr@p57BD581E.dip0.t-ipconnect.de] has quit []
01:46-!-JdGordon| [~jonno@CPE-124-179-27-16.lns6.ken.bigpond.net.au] has quit [Ping timeout: 480 seconds]
02:07-!-KouDy [~KouDy@188.75.190.58] has joined #openttd
02:09-!-KouDy [~KouDy@188.75.190.58] has quit []
02:10-!-KouDy [~KouDy@188.75.190.58] has joined #openttd
02:18-!-KouDy [~KouDy@188.75.190.58] has quit [Quit: Leaving.]
02:20-!-KouDy [~KouDy@188.75.190.58] has joined #openttd
02:38-!-valhallasw [~valhallas@ip4daa59e3.direct-adsl.nl] has joined #openttd
03:00-!-_aD [quadra@81.2.77.131] has joined #openttd
03:01-!-_aD is now known as Guest6658
03:06-!-Eddi|zuHause [~johekr@p57BD5B43.dip0.t-ipconnect.de] has joined #openttd
03:08-!-Devroush [~dennis@dD5765BAC.access.telenet.be] has joined #openttd
03:16-!-Pensacola [~quassel@h220216.upc-h.chello.nl] has joined #openttd
03:23-!-Alberth [~hat3@a82-95-164-127.adsl.xs4all.nl] has joined #openttd
03:23-!-mode/#openttd [+o Alberth] by ChanServ
03:28<@Terkhen>good morning
03:35<@Alberth>morning Terkhen
03:37-!-KouDy [~KouDy@188.75.190.58] has quit [Remote host closed the connection]
03:39<@Rubidium>moin
03:39-!-KouDy [~KouDy@188.75.190.58] has joined #openttd
03:44-!-DDR [~chatzilla@d108-180-70-43.bchsia.telus.net] has quit [Quit: DDR is not Dance Dance Revolution.]
03:52-!-chester_ [~chester@128-68-180-36.broadband.corbina.ru] has joined #openttd
04:01-!-Pensacola [~quassel@h220216.upc-h.chello.nl] has quit [Remote host closed the connection]
04:18-!-sla_ro|master [~sla.ro@89.137.75.224] has joined #openttd
04:31-!-pugi [~pugi@host-091-097-184-013.ewe-ip-backbone.de] has joined #openttd
04:35-!-Elukka [~Elukka@a91-152-213-89.elisa-laajakaista.fi] has joined #openttd
04:35-!-Wolf01 [~wolf01@95.233.3.31] has joined #openttd
04:35<Wolf01>moin
04:46<@Alberth>moin
04:46-!-KouDy [~KouDy@188.75.190.58] has quit [Remote host closed the connection]
04:57-!-Progman [~progman@p57A1B494.dip0.t-ipconnect.de] has joined #openttd
04:58-!-oskari89 [oskari89@62-241-226-106.bb.dnainternet.fi] has joined #openttd
04:59-!-KouDy [~KouDy@188.75.190.58] has joined #openttd
04:59-!-JVassie [JVassie@2.27.99.135] has joined #openttd
04:59<JVassie>aloha
04:59<JVassie>apparently OFTC has banned mibbit
05:02<JVassie>anyone around to answer a (hopefully) simple question about minGW setup on win 7 pls?
05:02<JVassie>my windows user name originally had no spaces in it
05:03<JVassie>however upon getting a new pc, i forgot all about mingw and created the user accoutn with a space
05:03<JVassie>this seems to cause some issues with installing libraries etc for mingw
05:04<JVassie>i have tried renaming my windows account and restarting, however reinstalling mingw still creates a home directory with a space in it
05:06<@Rubidium>JVassie: is that home directory in your "my documents"? Then changing "my documents"' path might work
05:06<@Alberth>do you have a link to some oftc message about it?
05:06<JVassie>C:/MinGW/msys/1.0/home
05:06<JVassie>is where the home directory is created
05:07<JVassie>Alberth, i tried twice to connect to oftc using chat applet on forums, and then twice again from mibbits website, both gave a message about being banned, 1 sec ill grab it
05:07<JVassie>irc.oftc.net: Closing Link: ircip2.mibbit.com (Banned)
05:07<JVassie>for example
05:08<JVassie>irc.oftc.net: Closing Link: ircip3.mibbit.com (Banned)
05:08<JVassie>etc
05:10<JVassie>I would have thought changing username and restarting would fix it
05:10<JVassie>but apprently not :(
05:11<@Alberth>my guess is that you have a username configured in mingw at install time
05:12<@Alberth>can you add another user?
05:12<@Alberth>(in mingw)
05:12<JVassie>err, not sure how, can try to i guess
05:12<@Alberth>usually with an 'adduser' command
05:12<JVassie>http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-20120426/
05:12<@Alberth>or 'useradd' :)
05:12<JVassie>ive been starting from that 'each' time
05:13<@Alberth>I don't know much about mingw; I run Linux natively
05:14<JVassie>hmm
05:15<JVassie>think it best to create a new windows account
05:15<JVassie>i notice it hasnt renamed my 'users' folder for example
05:15<@Alberth>given that oftc has no official news item about it, my guess is that they are fighting a spam attack
05:16<JVassie>will brb
05:16<@Alberth>:)
05:16-!-JVassie [JVassie@2.27.99.135] has quit []
05:18-!-roadt [~roadt@60.168.90.245] has joined #openttd
05:23-!-JVassie [JVassie@2.27.99.135] has joined #openttd
05:23-!-valhallasw [~valhallas@ip4daa59e3.direct-adsl.nl] has quit [Read error: Connection reset by peer]
05:23<JVassie>new windows user account
05:24<JVassie>lets hope that solves it :)
05:25<@Alberth>just install Linux ;p
05:25<JVassie>a trial for another day i think
05:25<JVassie>having linux on a seperate partition would be nice i guess
05:27<JVassie>woo
05:28<JVassie>i have a home directory with no spaces!
05:29-!-valhallasw [~valhallas@ip4daa59e3.direct-adsl.nl] has joined #openttd
05:37-!-Guest6658 is now known as _aD
05:37<TinoDidriksen>No need for separate partitions; just use VirtualBox.
05:38<_aD>that's a nasty bug in mingw
05:38<JVassie>i shall investigate
05:39<TinoDidriksen>_aD, not just MinGW. Very few build systems handle paths with spaces in them.
05:39-!-frosch123 [~frosch@frnk-590ffca7.pool.mediaWays.net] has joined #openttd
05:40<_aD>Sounds like that part of computing is stuck in 1985
05:40<_aD>much like my attempts to play OpenTTD
05:40<TinoDidriksen>It's not trivial to handle spaces everywhere. Correct escaping and quoting can get really messy.
05:41<_aD>I learn something or improve a method and start again...
06:03-!-JVassie [JVassie@2.27.99.135] has quit []
06:13<@Alberth>_aD: the most important point is to have fun playing the game
06:20<_aD>and I'm certainly doing that
06:26-!-FLHerne [~quassel@dsl-217-155-24-22.zen.co.uk] has joined #openttd
06:46-!-KritiK [~Maxim@0001264a.user.oftc.net] has joined #openttd
07:13-!-roadt [~roadt@60.168.90.245] has quit [Ping timeout: 480 seconds]
07:23-!-roadt [~roadt@114.96.142.39] has joined #openttd
07:32-!-gelignite [~gelignite@i528C31A0.versanet.de] has joined #openttd
07:33-!-Supercheese [~Password4@76.178.163.204] has quit [Read error: Connection reset by peer]
07:34-!-Supercheese [~Password4@76.178.163.204] has joined #openttd
07:41-!-ntoskrnl [~not@a91-153-231-146.elisa-laajakaista.fi] has joined #openttd
07:41-!-LunaVorax [~LunaVorax@ABordeaux-651-1-226-186.w83-193.abo.wanadoo.fr] has quit [Read error: Connection reset by peer]
08:04-!-Ristovski [~rafael@78.157.7.34] has joined #openttd
08:16-!-glx [glx@000128ec.user.oftc.net] has joined #openttd
08:16-!-mode/#openttd [+v glx] by ChanServ
08:36-!-HellTiger [~HellTiger@43-54.61-188.cust.bluewin.ch] has joined #openttd
09:12-!-Chrill [~chrischri@c83-253-84-230.bredband.comhem.se] has joined #openttd
09:25-!-FLHerne [~quassel@dsl-217-155-24-22.zen.co.uk] has quit [Ping timeout: 480 seconds]
09:32-!-FLHerne [~quassel@dsl-217-155-24-22.zen.co.uk] has joined #openttd
09:38-!-valhallasw [~valhallas@ip4daa59e3.direct-adsl.nl] has quit [Read error: Operation timed out]
09:39-!-valhallasw [~valhallas@ip4daa59e3.direct-adsl.nl] has joined #openttd
10:03-!-HerzogDeXtEr [~Flex@i59F6BDC7.versanet.de] has joined #openttd
10:13-!-Chrill [~chrischri@c83-253-84-230.bredband.comhem.se] has quit [Ping timeout: 480 seconds]
10:13-!-lugo [lugo@000189e6.user.oftc.net] has quit [Remote host closed the connection]
10:26-!-Eddi|zuHause [~johekr@p57BD5B43.dip0.t-ipconnect.de] has quit []
10:27-!-valhallasw [~valhallas@ip4daa59e3.direct-adsl.nl] has quit [Ping timeout: 480 seconds]
10:29-!-lugo [lugo@apple.bnc4free.com] has joined #openttd
11:19-!-Alice3 [~Alice@cpc18-grim14-2-0-cust478.12-3.cable.virginmedia.com] has joined #openttd
11:24-!-TrueBrain [~truebrain@ip82-139-82-247.lijbrandt.net] has quit [Quit: reboot]
11:33-!-valhallasw [~valhallas@88.128.80.6] has joined #openttd
11:33-!-TrueBrain [~truebrain@ip82-139-82-247.lijbrandt.net] has joined #openttd
11:50-!-Zuu [~Zuu@h-114-141.a98.priv.bahnhof.se] has joined #openttd
12:07-!-valhallasw [~valhallas@88.128.80.6] has quit [Ping timeout: 480 seconds]
12:16-!-valhallasw [~valhallas@5070A0D5.static.ziggozakelijk.nl] has joined #openttd
12:26-!-mode/#openttd [-b *!~oftc-webi@242.59.37.188.rev.vodafone.pt] by DorpsGek
12:28-!-ntoskrnl [~not@a91-153-231-146.elisa-laajakaista.fi] has quit [Ping timeout: 480 seconds]
12:36-!-scshunt [~scshunt@00017de0.user.oftc.net] has joined #openttd
12:43-!-FLHerne [~quassel@dsl-217-155-24-22.zen.co.uk] has quit [Ping timeout: 480 seconds]
12:43-!-Xaroth [~Xaroth@00017153.user.oftc.net] has joined #openttd
12:45-!-Xaroth_ [~Xaroth@254-058-128-083.dynamic.caiway.nl] has quit [Ping timeout: 480 seconds]
13:19-!-valhallasw [~valhallas@5070A0D5.static.ziggozakelijk.nl] has quit [Remote host closed the connection]
13:26-!-FLHerne [~quassel@dsl-217-155-24-22.zen.co.uk] has joined #openttd
13:44-!-valhallasw [~valhallas@5070A0D5.static.ziggozakelijk.nl] has joined #openttd
13:45<@DorpsGek>Commit by translators :: r25286 trunk/src/lang/gaelic.txt (2013-05-26 17:45:10 UTC)
13:45<@DorpsGek>-Update from WebTranslator v3.0:
13:45<@DorpsGek>gaelic - 46 changes by GunChleoc
13:46<Zuu>As it is quiet here, to replace my system SSD disk with a larger one, is using dd from a Linux live CD enough, or is there a reson to go with something else? (the system SSD is used by Windows which IIRC just uses one big partion that spanns the whole disk)
13:50<@Alberth>dd would also set partition sizes, and/or disk sizes, wouldn't it?
13:51<@Alberth>in particular, to the old values
13:51<Zuu>Hmm, yes, so I would need to extend the partion afterwards using GParted, so as it seems to be able to copy partions, I should maybe try with that first. And of course think twice before wiping my system disk. :-)
13:52<@Alberth>I do that every 6 months while switching to the next Fedora Release :)
13:53<Zuu>Well, with Linux it is easy as there is no mechanism trying to stop you from copy it. With windows some DRM may try to kick you for upgrading your PC.
13:53<@Alberth>yes, commercial software is soooo nice to use ;p
13:56<Zuu>I could of course mount eg C:\Users on the new disk or so, but its easiest to have the largest one for generic stuff and have as few specialized partions as possible.
13:57<@Alberth>I do have a /home partition so I don't need to copy my user data each time
14:01<Mazur>SAme with /usr/local
14:03<@Alberth>Good point, although in my case, I have no custom system-wide installed software
14:09<Mazur>I put all the stuff I use frmo outside the depositories there.
14:09<Mazur>Like openttd.
14:09<@Alberth>:)
14:09<Mazur>Several versions, in fact.
14:09<Mazur>nightly and testing.
14:09<@Alberth>I only have stuff in repositories :)
14:10<Mazur>Most of the stuff I used to have to put there, like xv, elm, and other thingies, have by now been included, to hte need is lesser.
14:11<@Alberth>yeah, standard package managers are very complete nowadays
14:11<Mazur>There's no subsitute for elm in working on a sequential mail file.
14:12<@Alberth>that is a text-oriented client, isn't it?
14:12<@Alberth>I have been using pine for a long time, which is also text-based and simple and fast
14:13<@Alberth>but it failed at some point, and I use thunderbird since then
14:14<Zuu>Possible at HTML based emails? :-)
14:14<@Alberth>html based emails are broken by concept :p
14:15<@Alberth>in particular when the software creating them does not follow the RFC for it, and only generate the html version, instead of both html and a text version
14:15<Zuu>Well, it is half broken as most things don't work in Outlook as in web browsers. However, it is quite useful to highlight parts of your email with a colour etc.
14:17<Zuu>Eg, if you ever tried to craft a HTML email by hand to be received by Outlook receivers, you'll feel some pain. :-)
14:18<@Alberth>I only write plain text stuff, eg .rst files
14:20<Mazur>Alberth, I used to use elm to find and fix broken headers in plain mail files.
14:35-!-Chrill [~chrischri@c83-253-84-230.bredband.comhem.se] has joined #openttd
14:45-!-DarkAce-Z [~BillyMays@50.107.54.92] has joined #openttd
14:46-!-DarkAceZ [~BillyMays@50.107.54.92] has quit [Read error: Operation timed out]
15:10<_aD>I've had plenty of multi-part emails with a text/plain part and nothing in it
15:10<_aD>the heretics!
15:23<@DorpsGek>Commit by frosch :: r25287 /trunk/src (61 files in 5 dirs) (2013-05-26 19:23:42 UTC)
15:23<@DorpsGek>-Codechange: Keep a reference to the WindowDesc in the Window after construction.
15:24<@DorpsGek>Commit by frosch :: r25288 /trunk/src (window.cpp window_gui.h) (2013-05-26 19:24:11 UTC)
15:24<@DorpsGek>-Codechange: No need to copy the WindowDesc flags if the WindowDesc is directly accessible.
15:24<@DorpsGek>Commit by frosch :: r25289 /trunk/src (5 files) (2013-05-26 19:24:37 UTC)
15:24<@DorpsGek>-Codechange: Store width of statusbar and main toolbar directly in the WindowDesc.
15:25<@DorpsGek>Commit by frosch :: r25290 /trunk/src (56 files in 5 dirs) (2013-05-26 19:25:01 UTC)
15:25<@DorpsGek>-Add: Assign string names to notable windows.
15:27<@DorpsGek>Commit by frosch :: r25291 /trunk (11 files in 3 dirs) (2013-05-26 19:27:22 UTC)
15:27<@DorpsGek>-Add: WindowDesc ability to load and store information in a config file.
15:27<@DorpsGek>Commit by frosch :: r25292 /trunk/src (3 files in 2 dirs) (2013-05-26 19:27:44 UTC)
15:27<@DorpsGek>-Feature: Save stickyness of windows when Ctrl+Clicking the sticky button.
15:29<@DorpsGek>Commit by frosch :: r25293 /trunk (7 files in 3 dirs) (2013-05-26 19:29:43 UTC)
15:29<@DorpsGek>-Add: GUI sprite for default window size button.
15:30<@DorpsGek>Commit by frosch :: r25294 /trunk/src (34 files in 4 dirs) (2013-05-26 19:30:07 UTC)
15:30<@DorpsGek>-Feature: Add another button to window title bars to resize the window to its default size.
15:30<@DorpsGek>Commit by frosch :: r25295 /trunk/src (3 files in 2 dirs) (2013-05-26 19:30:31 UTC)
15:30<@DorpsGek>-Feature: Allow saving window sizes as default sizes.
15:32<Supercheese>Ooooh, I hope that feature is what I think it is
15:34<@Rubidium>available in your stable openttd in like a year ;)
15:34<Supercheese>Haha, stable
15:34<Supercheese>I haven't run stables in years
15:34<Supercheese>But anyway, \o/
15:34<frosch123>well, not sure whether it will ever hit chillpp
15:36-!-Chrill [~chrischri@c83-253-84-230.bredband.comhem.se] has quit [Ping timeout: 480 seconds]
15:37<Supercheese>I also haven't used that in years :P
15:37<V453000>which thing? :)
15:39<Supercheese>I just received a request; I'm wondering if I should just do as requested or if there would be a better solution: http://www.tt-forums.net/viewtopic.php?f=26&t=56780&p=1079027#p1079027
15:41<@Alberth>how would setting the price solve that?
15:41<Supercheese>It seems to be related to TownCars AI parameters: http://www.tt-forums.net/viewtopic.php?f=65&t=42393#p773540
15:41<Supercheese>"Only build zero price RVs" and such
15:42<Supercheese>It might be better to instead set zero capacity, or something
15:42<V453000>randomize cargo capacity?
15:42<V453000>:>
15:43<Supercheese>-_-
15:43<@Alberth>still, if you change the newgrf property, it changes for all players, wouldn't it?
15:43<V453000> /nutjobs are silent
15:43<@Alberth>V453000: thanks for the merger link
15:43<Supercheese>The AI parameters are set on a per-AI basis, no?
15:43<V453000>you are welcome :P writing that page took a while so might as well use it :)
15:44<Supercheese>I think he wants one AI to have different parameters such that it builds emergency vehicles, whereas others don't
15:44<@Alberth>that would seem to be his intention, I agree :)
15:45<@Alberth>wouldn't it be easier to change the AI itself?
15:45<Supercheese>Not for me, as I am not the AI author :P
15:45<@Alberth>no idea what you can query about a vehicle though :(
15:45<Supercheese>But yeah, that would allow for more elegant solutions
15:46<@Alberth>V453000: I bookmarked it, so when I have a tricky merge thingie, I'll have a closer look :)
15:47<V453000>obviously it does include the complicated ones, but it explains the very most basic logic too
15:47<Supercheese>Oh $%&#, I readied an update to Eyecandy RVs a while ago and forgot to post it
15:47<Supercheese>whoops
15:48<@Alberth>my concept of 'complicated' is not very related to your concept of 'complicated' :p
15:48<Supercheese>Well at least now I can try to fill that request
15:48<@Alberth>Supercheese: :)
15:49<Zuu>Supercheese: If you want to change something about TownCars AI, you can ask me. If you want to change StreetTraffic, you need to find the author af that fork.
15:49<Supercheese>I'm still not sure what the best solution path is
15:50<V453000>of course Alberth, that is why I mention the basic logic :) because that is what helps
15:50<@Alberth>at least it helps to understand the remainder of the page :p
15:51<V453000>well that too :)
15:51<Supercheese>The suggestion of increasing purchase cost to $1 would allow parameters to select AIs to: build Cars only, build Cars+EVs, but there'd be no way to specify building EVs only
15:51-!-flaa [~flaa@89.100.79.103] has joined #openttd
15:51<@Alberth>Supercheese: imho, changing the AI would be the clean solution, but I don't know whether you can express in the AI code what you want
15:52<Supercheese>A paramter to reduce capacities to zero has similar problems
15:52<Supercheese>parameter*
15:53<@Alberth>yeah, solving it in newgrf is the wrong solution
15:53-!-cyph3r [~Miranda@ip-213-220-193-253.net.upcbroadband.cz] has joined #openttd
15:54<Supercheese>Hmmm :S
15:54<@DorpsGek>Commit by zuu :: r25296 /trunk/src (15 files in 6 dirs) (2013-05-26 19:54:43 UTC)
15:54<@DorpsGek>-Feature: Goals can now have a progress text and/or be marked as completed.
15:57<@Alberth>Supercheese: if you want to stick with costs to select cars, I would think an AI can query the price, and compare with any value
15:58<@Alberth>so give each group a unique price, and let the AI author handle the selection?
15:59<Supercheese>That seems so... hard-coded and non-generic :S
15:59<Supercheese>unflexible
16:00<@Alberth>it's not less flexible than currently :p but yeah, there is ample room for further improvement :p
16:01<frosch123>feature day :)
16:04<@Alberth>:)
16:07<@Alberth>Supercheese: then perhaps feed the AI with a list of vehicle names? http://noai.openttd.org/api/trunk/classAIEngine.html suggests you can query it
16:10<@Alberth>good night
16:10<Supercheese>'night
16:11-!-Alberth [~hat3@a82-95-164-127.adsl.xs4all.nl] has left #openttd []
16:17<@DorpsGek>Commit by frosch :: r25297 trunk/src/window.cpp (2013-05-26 20:17:07 UTC)
16:17<@DorpsGek>-Fix (r25291): 32bit compilation.
16:18-!-KouDy [~KouDy@188.75.190.58] has quit [Remote host closed the connection]
16:23<__ln__>i really liked all the references to the past in the new star trek.
16:24<frosch123>yeah, proper version control
16:32-!-Chrill [~chrischri@c83-253-84-230.bredband.comhem.se] has joined #openttd
16:32-!-Chrill` [~chrischri@c83-253-84-230.bredband.comhem.se] has joined #openttd
16:32-!-Chrill` [~chrischri@c83-253-84-230.bredband.comhem.se] has quit []
16:36-!-HerzogDeXtEr [~Flex@i59F6BDC7.versanet.de] has quit [Read error: Connection reset by peer]
16:41<__ln__>also the less obvious ones, like the blonde girl
16:46-!-Chrill [~chrischri@c83-253-84-230.bredband.comhem.se] has quit []
16:56<Zuu>Hmm, if a script calls a DoCommand in world gen (in exec mode), it will return the same value as calling the method in TestMode,
16:58-!-Ristovski [~rafael@78.157.7.34] has quit [Quit: Leaving]
17:00<Zuu>The issue is that the way return values are returned from C++ functions back to Squirrel is based upon that the script get suspended by throwing a specific class. If said class is not throw, test mode behaviour is implied.
17:05-!-SpComb^_ [terom@zapotek.paivola.fi] has joined #openttd
17:06<Zuu>hmm, solving this is quite complicated so I make a ticket of it.
17:06-!-SpComb [terom@zapotek.paivola.fi] has quit [Read error: Connection reset by peer]
17:07-!-valhallasw [~valhallas@5070A0D5.static.ziggozakelijk.nl] has quit [Ping timeout: 480 seconds]
17:10<Wolf01>'night
17:10-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has quit [Quit: Once again the world is quick to bury me.]
17:15-!-DarkAce-Z is now known as DarkAceZ
17:16<__ln__>well spotted
17:24<Zuu>I noticed it when trying to speed up my script that creates 5000 goals.
17:24<frosch123>wasn't the command execution on game start broken anyway?
17:25<Zuu>That script also set the progress status which for some strange reason only worked for the first goal. (later I now know, that is because GSGoal::New always returns 0 in world gen.
17:25<frosch123>i.e. the first sleep resp. command execution would start the game
17:25<Zuu>First sleep starts the game. That is by design.
17:25<frosch123>yeah, but first command also does
17:25<Zuu>First do command do not start the game.
17:25<frosch123>afaik
17:26<frosch123>don't commands imply a sleep?
17:26<Zuu>At least the world gen dialog is still showing and progressing (quite slowly as I use a debug build)
17:26<frosch123>ok, maybe it was fixed :)
17:27<Zuu>One easy way to fix the above bug is to re-introduce the bug that the game starts when you issue a DoCommand. :-)
17:28<frosch123>:p
17:28<Zuu>That is probably just a one-liner.
17:28<Zuu>Fixing it without doing that is quite a bit harder as it introduce a third return path from the method.
17:30<Zuu>Eg. override the return value by the API method (and use the value pushed to the stack using the callback), but don't suspend the script. I could possible hack something togeather by introducing a new class that is thrown in world gen and catch it at some apporite place without throwing it up further.
17:31<Zuu>However, it is also nice if that catch location is not an internal part of Squirrel.
17:31<frosch123>well, maybe the command could be issued differently
17:31-!-Eddi|zuHause [~johekr@p57BD5B43.dip0.t-ipconnect.de] has joined #openttd
17:32<frosch123>during world gen it does not necessarily have to suspend the script
17:32<frosch123>the command does not need sending over netowrk, but could be executed directly
17:33-!-roadt [~roadt@114.96.142.39] has quit [Ping timeout: 480 seconds]
17:36<Zuu>All APIs that call a DoCommand are currently implemented so that they don't return the return value from the Squirrel DoCommand helper method. That helper only returns if the command succeded or not. The return value to the squirrel script is pushed into the stack and then the script is suspended by throwing an exception. Thus, a fix that involves returning the return value back to the API method means changing a lot of API methods.
17:37<APTX>does that mean exceptions do standard behaviour?
17:37<Zuu>yes
17:37<APTX>funny
17:38-!-Dr_Tan [~nat@00179a279bbd.click-network.com] has joined #openttd
17:39<Zuu>Dig into src/script/api/script_object.cpp:301 if you want to see it.
17:39<frosch123>night
17:39-!-frosch123 [~frosch@frnk-590ffca7.pool.mediaWays.net] has quit [Remote host closed the connection]
17:40<Zuu>Here is the call from one API method: http://paste.openttdcoop.org/show/2295/
17:44-!-sla_ro|master [~sla.ro@89.137.75.224] has quit []
17:44-!-Nat_aS [~nat@00179a279bbd.click-network.com] has quit [Ping timeout: 480 seconds]
17:48<@Terkhen>good night
17:54-!-Progman [~progman@p57A1B494.dip0.t-ipconnect.de] has quit [Remote host closed the connection]
17:59-!-HellTiger_ [~HellTiger@43-54.61-188.cust.bluewin.ch] has joined #openttd
18:06-!-HellTiger [~HellTiger@43-54.61-188.cust.bluewin.ch] has quit [Ping timeout: 480 seconds]
18:06-!-Elukka [~Elukka@a91-152-213-89.elisa-laajakaista.fi] has quit []
18:08-!-tokai|mdlx [~tokai@port-92-195-22-137.dynamic.qsc.de] has joined #openttd
18:09-!-oskari89 [oskari89@62-241-226-106.bb.dnainternet.fi] has quit []
18:12-!-guru3 [~guru3@000128ea.user.oftc.net] has quit [Ping timeout: 480 seconds]
18:12-!-guru3 [~guru3@000128ea.user.oftc.net] has joined #openttd
18:14-!-tokai|noir [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds]
18:23-!-flaa [~flaa@89.100.79.103] has quit [Quit: leaving]
18:26-!-kais58_ [~kais58@cpc2-cwma8-2-0-cust293.7-3.cable.virginmedia.com] has joined #openttd
18:28-!-kais58 [~kais58@cpc2-cwma8-2-0-cust293.7-3.cable.virginmedia.com] has quit [Ping timeout: 480 seconds]
18:37-!-kais58_ is now known as kais58|AFK
18:37-!-guru3 [~guru3@000128ea.user.oftc.net] has quit [Ping timeout: 480 seconds]
18:37-!-guru3_ [~guru3@90-224-111-173-no225.tbcn.telia.com] has joined #openttd
18:44-!-Alice3 [~Alice@cpc18-grim14-2-0-cust478.12-3.cable.virginmedia.com] has quit []
18:53-!-guru3_ [~guru3@90-224-111-173-no225.tbcn.telia.com] has quit [Read error: Connection reset by peer]
18:57-!-Devroush [~dennis@dD5765BAC.access.telenet.be] has quit []
18:57-!-guru3 [~guru3@000128ea.user.oftc.net] has joined #openttd
19:00-!-FLHerne [~quassel@dsl-217-155-24-22.zen.co.uk] has quit [Remote host closed the connection]
19:04-!-Zuu [~Zuu@h-114-141.a98.priv.bahnhof.se] has quit [Ping timeout: 480 seconds]
19:09-!-KritiK [~Maxim@0001264a.user.oftc.net] has quit [Quit: Leaving]
19:22-!-chester_ [~chester@128-68-180-36.broadband.corbina.ru] has quit [Quit: Leaving.]
21:01-!-HellTiger_ [~HellTiger@43-54.61-188.cust.bluewin.ch] has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
21:21-!-roadt [~roadt@114.96.142.39] has joined #openttd
21:34-!-gelignite [~gelignite@i528C31A0.versanet.de] has quit [Quit: http://bit.ly/nkczDT]
21:39-!-cyph3r [~Miranda@ip-213-220-193-253.net.upcbroadband.cz] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
21:55-!-_aD [quadra@0001362b.user.oftc.net] has quit [Ping timeout: 480 seconds]
22:07-!-glx [glx@000128ec.user.oftc.net] has quit [Quit: Bye !]
22:13-!-pugi_ [~pugi@host-091-097-070-208.ewe-ip-backbone.de] has joined #openttd
22:18-!-pugi [~pugi@host-091-097-184-013.ewe-ip-backbone.de] has quit [Read error: Operation timed out]
22:18-!-pugi_ is now known as pugi
22:39-!-ST2 [~ST2@bl6-253-39.dsl.telepac.pt] has joined #openttd
22:45-!-xT2 [~ST2@bl20-226-203.dsl.telepac.pt] has quit [Ping timeout: 480 seconds]
22:45-!-ST2 is now known as xT2
22:46-!-Biolunar__ [~mahdi@blfd-4db0e9b6.pool.mediaWays.net] has joined #openttd
22:52-!-kais58|AFK is now known as kais58_
22:52-!-Biolunar_ [~mahdi@blfd-5d823649.pool.mediaWays.net] has quit [Read error: Operation timed out]
23:19-!-pugi [~pugi@host-091-097-070-208.ewe-ip-backbone.de] has quit []
---Logclosed Mon May 27 00:00:30 2013