Config
Log for #openttd on 8th August 2013:
Times are UTC Toggle Colours
00:19:37  *** pugi [~pugi@host-091-097-001-087.ewe-ip-backbone.de] has quit []
00:23:50  *** roboboy [~robotboy@0001164c.user.oftc.net] has joined #openttd
00:30:44  *** KritiK [~Maxim@0001264a.user.oftc.net] has quit [Quit: Leaving]
00:31:00  *** wakou2 [~stephen@host86-182-193-134.range86-182.btcentralplus.com] has quit [Quit: Konversation terminated!]
00:34:44  *** megakacktus [~debussy@174-30-204-96.mpls.qwest.net] has joined #openttd
00:45:45  *** MatrixCL2 [~mielipuol@host-109-204-157-114.tp-fne.tampereenpuhelin.net] has quit [Quit: Nettalk6 - www.ntalk.de]
01:07:32  *** megakacktus [~debussy@174-30-204-96.mpls.qwest.net] has quit [Ping timeout: 480 seconds]
01:15:08  *** megakacktus [~debussy@174-30-204-96.mpls.qwest.net] has joined #openttd
01:19:55  *** glx [~glx@000128ec.user.oftc.net] has quit [Quit: Bye]
01:20:00  <megakacktus> How would one transfer FiosItems from a SmallVector to a GUIList?
01:30:28  *** SamanthaD [~SamanthaD@c-98-248-25-134.hsd1.ca.comcast.net] has quit [Quit: Leaving]
01:31:37  <megakacktus> wait, never mind, I think i figured it out :P
01:46:04  *** megakacktus [~debussy@174-30-204-96.mpls.qwest.net] has quit [Quit: Live long and prosper]
01:46:27  *** amiller [~amiller@pool-96-255-47-217.washdc.fios.verizon.net] has joined #openttd
01:55:40  *** fjb is now known as Guest2644
01:55:42  *** fjb [~frank@000158aa.user.oftc.net] has joined #openttd
02:02:45  *** Guest2644 [~frank@000158aa.user.oftc.net] has quit [Ping timeout: 480 seconds]
02:07:26  *** montalvo [~montalvo@macbook60.icrar.org] has joined #openttd
02:44:54  *** Pereba [~UserNick@187.58.119.65] has joined #openttd
03:28:20  *** Pereba [~UserNick@187.58.119.65] has quit [Quit: Connection reset by beer (www.adiirc.com)]
03:36:29  *** Pereba [~UserNick@187.58.119.65] has joined #openttd
04:56:01  *** Eddi|zuHause [~johekr@p57BD5B36.dip0.t-ipconnect.de] has quit []
04:56:16  *** Eddi|zuHause [~johekr@p5DC67A7A.dip0.t-ipconnect.de] has joined #openttd
05:15:04  *** Supercheese [~Superchee@98.145.153.126] has joined #openttd
05:19:53  <dihedral> greetings
05:28:51  *** Pecio [~fgh@adra228.neoplus.adsl.tpnet.pl] has joined #openttd
05:33:30  *** Pecio [~fgh@adra228.neoplus.adsl.tpnet.pl] has left #openttd []
05:40:01  *** Pecio [~fgh@adra228.neoplus.adsl.tpnet.pl] has joined #openttd
05:45:17  *** Pol [~quassel@h220216.upc-h.chello.nl] has joined #openttd
05:53:11  *** tokai|mdlx [~tokai@port-92-195-8-116.dynamic.qsc.de] has joined #openttd
05:59:16  *** tokai|noir [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds]
05:59:53  *** sla_ro|master [slamaster@85.186.160.35] has joined #openttd
06:31:59  *** Twofish [~Twofish@0001308f.user.oftc.net] has joined #openttd
06:42:56  *** Devroush [~dennis@91.179.117.51] has joined #openttd
06:48:26  *** Pereba [~UserNick@187.58.119.65] has quit [Quit: AdiIRC - Anti trolls IRC client certified. (www.adiirc.com)]
07:02:41  *** Midnightmyth [~quassel@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
07:09:46  *** Midnightmyth_ [~quassel@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
07:15:46  *** Midnightmyth [~quassel@93-167-84-102-static.dk.customer.tdc.net] has quit [Ping timeout: 480 seconds]
07:49:48  *** Elukka [~Elukka@a91-152-213-89.elisa-laajakaista.fi] has joined #openttd
07:52:18  *** Twofish [~Twofish@0001308f.user.oftc.net] has quit [Quit: Leaving]
07:52:35  *** Twofish [~Twofish@0001308f.user.oftc.net] has joined #openttd
07:52:53  *** Twofish [~Twofish@0001308f.user.oftc.net] has quit []
07:53:10  *** Twofish [~Twofish@0001308f.user.oftc.net] has joined #openttd
07:57:28  *** Twofish [~Twofish@0001308f.user.oftc.net] has quit []
08:04:19  *** Twofish [~Twofish@0001308f.user.oftc.net] has joined #openttd
08:04:23  *** LordAro [~LordAro@host81-158-56-249.range81-158.btcentralplus.com] has joined #openttd
08:04:36  *** Twofish [~Twofish@0001308f.user.oftc.net] has quit []
08:04:40  <LordAro> morning gentlemen
08:07:26  *** Midnightmyth_ [~quassel@93-167-84-102-static.dk.customer.tdc.net] has quit [Ping timeout: 480 seconds]
08:07:31  <V453000> yoloswag sokool hiiiiiii <3
08:07:51  <V453000> k this doesnt work
08:07:54  <V453000> good morning good sir
08:07:55  <V453000> :>
08:09:08  <TWerkhoven> mornin
08:13:01  *** Twofish [~Twofish@0001308f.user.oftc.net] has joined #openttd
08:20:19  *** DDR [~chatzilla@154.20.132.104] has quit [Ping timeout: 480 seconds]
08:24:44  *** Twofish [~Twofish@0001308f.user.oftc.net] has quit [Quit: Leaving]
08:25:01  *** Twofish [~Twofish@0001308f.user.oftc.net] has joined #openttd
08:28:19  *** Twofish [~Twofish@0001308f.user.oftc.net] has quit []
08:28:30  *** pugi [~pugi@dyndsl-091-096-014-056.ewe-ip-backbone.de] has joined #openttd
08:28:39  *** Twofish [~Twofish@0001308f.user.oftc.net] has joined #openttd
08:29:04  *** Twofish [~Twofish@0001308f.user.oftc.net] has quit []
08:34:38  *** Twofish [~Twofish@0001308f.user.oftc.net] has joined #openttd
08:35:06  *** Twofish [~Twofish@0001308f.user.oftc.net] has quit []
08:37:45  *** Alice3 [~Alice@cpc18-grim14-2-0-cust478.12-3.cable.virginmedia.com] has joined #openttd
08:46:27  *** Twofish [~Twofish@0001308f.user.oftc.net] has joined #openttd
08:51:51  *** wakou2 [~stephen@host86-182-193-134.range86-182.btcentralplus.com] has joined #openttd
08:56:25  *** Alberth [~hat@a82-95-164-127.adsl.xs4all.nl] has joined #openttd
08:56:28  *** mode/#openttd [+o Alberth] by ChanServ
08:57:34  <Alberth> moin
08:57:40  *** Midnightmyth [~quassel@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
09:07:51  *** Supercheese [~Superchee@98.145.153.126] has quit [Ping timeout: 480 seconds]
09:25:22  <LordAro> hai Alberth
09:25:49  *** Ristovski [~rafael@ppp-seco11pa2-46-193-128.78.wb.wifirst.net] has joined #openttd
09:28:29  *** MatrixCL [~mielipuol@host-109-204-157-114.tp-fne.tampereenpuhelin.net] has joined #openttd
09:34:24  *** Eddi|zuHause2 [~johekr@p5DC67A7A.dip0.t-ipconnect.de] has joined #openttd
09:34:24  *** Eddi|zuHause [~johekr@p5DC67A7A.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer]
09:37:02  *** Kurimus [~stabbity@dsl-tkubrasgw3-50dd93-34.dhcp.inet.fi] has quit [Ping timeout: 480 seconds]
09:37:30  *** Kurimus [~stabbity@dsl-tkubrasgw3-50dd93-34.dhcp.inet.fi] has joined #openttd
09:51:51  *** Devroush367 [~dennis@91.179.117.51] has joined #openttd
09:55:31  *** Devroush [~dennis@91.179.117.51] has quit [Ping timeout: 480 seconds]
10:05:56  *** robotboy [~robotboy@0001164c.user.oftc.net] has joined #openttd
10:08:41  *** Devroush [~dennis@91.179.117.51] has joined #openttd
10:12:56  *** roboboy [~robotboy@0001164c.user.oftc.net] has quit [Ping timeout: 480 seconds]
10:13:34  *** Devroush367 [~dennis@91.179.117.51] has quit [Ping timeout: 480 seconds]
10:51:42  *** Pereba [~UserNick@187.58.119.65] has joined #openttd
10:51:54  *** TheMask96 [martijn@polaris.ne2000.nl] has quit [Ping timeout: 480 seconds]
10:54:12  *** TheMask96 [martijn@polaris.ne2000.nl] has joined #openttd
10:54:49  *** |2rB [~Twofish@0001308f.user.oftc.net] has joined #openttd
10:58:25  *** |2rB [~Twofish@0001308f.user.oftc.net] has quit [Read error: Connection reset by peer]
10:58:45  *** |2rB [~Twofish@0001308f.user.oftc.net] has joined #openttd
11:02:47  *** |2rB [~Twofish@0001308f.user.oftc.net] has quit []
11:02:51  *** Twofish [~Twofish@0001308f.user.oftc.net] has quit [Quit: Leaving]
11:03:11  *** Twofish [~Twofish@0001308f.user.oftc.net] has joined #openttd
11:05:29  *** montalvo [~montalvo@macbook60.icrar.org] has quit [Quit: Textual IRC Client: www.textualapp.com]
11:08:58  *** Twofish [~Twofish@0001308f.user.oftc.net] has quit [Read error: Connection reset by peer]
11:09:18  *** Twofish [~Twofish@0001308f.user.oftc.net] has joined #openttd
11:09:42  *** fjb [~frank@000158aa.user.oftc.net] has quit [Ping timeout: 480 seconds]
11:12:54  *** sla_ro|master [slamaster@85.186.160.35] has quit [Ping timeout: 480 seconds]
11:32:00  *** guru3 [~guru3@000128ea.user.oftc.net] has quit [Ping timeout: 480 seconds]
11:45:42  *** Twofish [~Twofish@0001308f.user.oftc.net] has quit [Quit: Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Hobbes, Calvin and H]
11:45:59  *** Twofish [~Twofish@0001308f.user.oftc.net] has joined #openttd
11:56:44  *** sla_ro|master [slamaster@85.186.160.35] has joined #openttd
12:01:40  *** sla_ro|master [slamaster@85.186.160.35] has quit []
12:09:17  *** fjb [~frank@000158aa.user.oftc.net] has joined #openttd
12:16:54  *** guru3 [~guru3@000128ea.user.oftc.net] has joined #openttd
12:25:56  *** TrueBrain [~truebrain@ip82-139-82-247.lijbrandt.net] has quit [Ping timeout: 480 seconds]
12:30:01  *** roadt [~roadt@114.96.134.112] has joined #openttd
12:42:54  *** SamanthaD [~SamanthaD@c-98-248-25-134.hsd1.ca.comcast.net] has joined #openttd
12:43:00  <SamanthaD> \o
12:43:14  <LordAro> /o
12:46:21  <Alberth> hi hi
12:51:38  <SamanthaD> morning tide >.<
13:08:46  <robotboy> hello
13:12:09  <krinn> hi
13:13:48  *** tstst [~id@37.140.99.39] has joined #openttd
13:17:59  <SamanthaD> I love hacking games
13:18:02  <SamanthaD> I'm not goofing off
13:18:07  <SamanthaD> I'm performing "quality assurance"
13:18:41  <Alberth> I do that so much, I basically stopped playing :p
13:19:33  <krinn> didn't play a ttd party for days... i'm looking at my ai (trying) doing it
13:21:10  <SamanthaD> yeah...
13:21:25  <SamanthaD> I'm currently building loops on the ground and watching to make sure the vehicles separate themselves
13:21:55  <SamanthaD> then I'm going to get an account on the forums and post my patch
13:22:03  <SamanthaD> then I'm going to play it in a real game and see if it crashes :p
13:22:14  <Alberth> :)
13:22:37  <Alberth> the game of hacking software is so much more interesting :p
13:22:49  <SamanthaD> it is n_n
13:22:55  <krinn> specially when it fail
13:23:01  <SamanthaD> I'm just starting to get used to this code base
13:23:47  <SamanthaD> going to update a few more patches before I try writing one of my own
13:24:06  <SamanthaD> I dunno what patch though...
13:24:17  <SamanthaD> I'm open to suggestions
13:25:36  <robotboy> Diagonal lel crossings, custom bridgeheads. I don't realy care as I'm not an active user of OpenTTD
13:25:49  <LordAro> D:
13:26:14  <SamanthaD> *horrors*
13:26:30  <krinn> SamanthaD, easy -> http://bugs.openttd.org/task/4754
13:27:39  <krinn> SamanthaD, even more simple : http://bugs.openttd.org/task/5377
13:28:13  <SamanthaD> yeah, okay!
13:28:46  <SamanthaD> yeah, I just merged Advanced Timetables to current
13:28:58  <SamanthaD> Advanced Timetables > Slim Timetables
13:29:04  <SamanthaD> IMHO
13:32:36  <Alberth> so far, I mostly fail to understand what time tables aim to solve
13:33:32  <robotboy> same
13:34:03  <SamanthaD> They were SUPPOSED to help keep trains from bunching up together
13:34:41  <SamanthaD> which... they admittedly do if your idea of "playing" is more akin to bookkeeping
13:34:59  *** sla_ro|master [slamaster@85.186.160.35] has joined #openttd
13:35:48  <V453000> typical solution, "I can not use brain to solve it in game, I have to use a patch"
13:38:26  <Alberth> never tried the patches, but the standard time table seems to work well if you play without break downs, and don't change number of trains, after some manual twiddling
13:39:14  <V453000> yes and no :) the stacking can occur with it, too
13:39:27  <V453000> still, there are various other solutions to it
13:40:38  <Alberth> time tables in their current form are still too much trouble to setup, let alone maintain, so I am open to other suggestions :)
13:40:53  <SamanthaD> it's not that you can't use brain to solve it in game, it's that using brain to solve it in game is boring and grind-y
13:41:23  <SamanthaD> yeah, what this patch does is basically update the timetables in real time to adjust for changing conditions
13:42:16  <SamanthaD> I want to make a modification to this patch though... as it is it's very aggressive in that it will make trains wait in stations to get back on the new schedule
13:42:42  <SamanthaD> maybe it would be good to be able to tell it "these platforms need to be cleared as soon as possible at all times"
13:43:02  <krinn> it would have just been better to timetable the station and not the trains, with some timed signals at station entry/exit
13:43:35  <SamanthaD> krinn: how do you mean?
13:43:59  <krinn> that with some signals that light green or red for a period
13:44:22  <V453000> you can make timed signals already :)
13:44:47  <SamanthaD> yes, but then it wouln't be smart in that when you add and remove trains from a line it'll mess up their separation
13:44:54  <SamanthaD> or if you refit to faster/slower trains
13:45:04  <SamanthaD> ... or production levels change
13:45:24  <krinn> you won't care the time to travel, only if the train is there in time it can enter, if not, it wait next green light
13:46:17  <SamanthaD> that sounds like play without timetables at all
13:46:26  <SamanthaD> you get regular service by saturating the line :p
13:46:43  <krinn> yes, you time the staiton signal, not the trains
13:47:04  <V453000> sooner or later you get so much traffic in the station that you need constant saturation anyway :)
13:47:09  <SamanthaD> "Yeah, it only carries 10k passengers a month on that line but it's 2000 tiles long so I've got 50 trains!"
13:47:52  *** amiller [~amiller@pool-96-255-47-217.washdc.fios.verizon.net] has quit [Ping timeout: 480 seconds]
13:47:57  <SamanthaD> maybe what I should add to this patch is a second mode
13:48:14  <SamanthaD> instead of "evenly space all the trains" it would "try to ensure that there's always a train in the platform"
13:48:48  <SamanthaD> or perhaps some logic so that a section of track can get a speed limit so that trains don't have to stop and wait for a platform to clear on a saturated line
13:51:33  <V453000> put them in a depot if station is full for example?
13:51:45  <V453000> or on a waiting line
13:51:47  <V453000> same thing
13:52:24  <SamanthaD> V453000: Yes, but stopping a low-acceleration train adds more of a delay than keeping it moving at a lower speed. Also, it's less pretty.
13:53:03  <V453000> well then keep them running on a separate "waiting loop" or simply make station bigger :D
13:53:45  <V453000> btw if trains would "randomly" slow down on the network it would create some nice jams
13:54:06  <V453000> less pretty = actually building rails? :)
13:54:22  <SamanthaD> it's not for the main network, it's for feeder lines
13:54:44  <V453000> those can jam too cant they :)
13:55:23  <SamanthaD> indeed
13:55:50  <SamanthaD> it's just that my last three games or so have involved passenger feed-lines inside cities where there just simply isn't any room to build more tracks
13:56:04  <SamanthaD> I dunno... kinda a low priority for me right now
13:57:24  *** robotboy [~robotboy@0001164c.user.oftc.net] has quit [Ping timeout: 480 seconds]
14:03:04  *** ntoskrnl [~not@a91-153-231-146.elisa-laajakaista.fi] has joined #openttd
14:05:34  *** Twofish [~Twofish@0001308f.user.oftc.net] has quit [Quit: Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Hobbes, Calvin and H]
14:05:46  *** Pereba [~UserNick@187.58.119.65] has quit [Quit: AdiIRC - Yet another Free IRC client - http://www.adiirc.com]
14:06:23  *** Pereba [~UserNick@187.58.119.65] has joined #openttd
14:09:00  *** scshunt [~scshunt@00017de0.user.oftc.net] has quit [Remote host closed the connection]
14:12:26  *** sla_ro|master [slamaster@85.186.160.35] has quit []
14:18:59  <NGC3982> Good afternoon.
14:19:07  <krinn> hi
14:22:43  *** amiller [~amiller@129-2-129-154.wireless.umd.edu] has joined #openttd
14:24:22  *** megakacktus [~debussy@174-30-204-96.mpls.qwest.net] has joined #openttd
14:33:02  *** montalvo [~montalvo@101.166.155.98] has joined #openttd
14:33:28  <SamanthaD> Hi NGC3982
14:36:07  *** sla_ro|master [slamaster@85.186.160.35] has joined #openttd
14:45:00  *** amiller [~amiller@129-2-129-154.wireless.umd.edu] has quit [Read error: Connection reset by peer]
14:45:25  <SamanthaD> <.<
14:45:38  <SamanthaD> tt-forums.net apparently thinks my registration is spam?
14:47:09  <SamanthaD> brb
14:47:17  *** SamanthaD [~SamanthaD@c-98-248-25-134.hsd1.ca.comcast.net] has quit [Quit: Leaving]
14:52:34  *** amiller [~amiller@129-2-129-154.wireless.umd.edu] has joined #openttd
15:05:44  *** Aristide [~quassel@ALyon-552-1-186-250.w2-3.abo.wanadoo.fr] has joined #openttd
15:08:49  *** SamanthaD [~SamanthaD@c-98-248-25-134.hsd1.ca.comcast.net] has joined #openttd
15:09:14  *** DDR [~chatzilla@154.20.132.104] has joined #openttd
15:09:50  *** montalvo [~montalvo@101.166.155.98] has quit [Quit: Textual IRC Client: www.textualapp.com]
15:10:37  *** amiller [~amiller@129-2-129-154.wireless.umd.edu] has quit [Read error: Operation timed out]
15:12:12  <megakacktus> I'm having a tough time with this load dialog filter, mainly because I can't get the file list out of a SmallVector object and into a GUIList object :L
15:13:27  <megakacktus> As a GUIList inherits directly from a SmallVector, can I use the Guilist as a drop-in replacement?
15:14:17  <Alberth> just copy all entries, one at a time?
15:14:32  <Rubidium> I reckon you can
15:14:43  <Alberth> Hi Rubidium
15:15:05  <megakacktus> Maybe I'm just incredibly thick but I can't find the correct methods to do that in the doxygen :P
15:18:04  <Alberth> http://docs.openttd.org/classSmallVector.html  ?
15:18:38  <Alberth> it has  Get, it has [], and it has Begin() and End()
15:20:43  <Alberth> for (const FileElement *p = gl->Begin(); p != gl->End(); p++)  { /* do something with *p */ }
15:20:56  <megakacktus> Trouble is, I can't get the items from the SmallVector into the GUIList
15:21:12  *** Pecio [~fgh@adra228.neoplus.adsl.tpnet.pl] has left #openttd []
15:21:31  <Alberth> the above are smallvector methods, so they should work
15:21:50  <Alberth> can you pastebin the patch?
15:24:44  <megakacktus> it's pretty messy and rough (i'm pretty new to C++) but here it is: https://paste.openttdcoop.org/show/2482/
15:25:54  *** TrueBrain [~truebrain@ip82-139-82-247.lijbrandt.net] has joined #openttd
15:29:14  <Alberth> ok, what's the plan?
15:30:20  <Alberth> I don't see a second list
15:31:09  <megakacktus> I'm trying to get the file list out of the smallvector into a guilist so I can filter it with the built in functions, then place that guilist in the load dialog for massive win.
15:31:18  <megakacktus> I don't know if that's a crap plan though :P
15:34:05  *** scshunt [~scshunt@00017de0.user.oftc.net] has joined #openttd
15:34:15  <Alberth> sounds feasible
15:34:53  *** Pereba [~UserNick@187.58.119.65] has quit [Quit: AdiIRC! Smaller, Faster, Easier. http://adiirc.com/]
15:35:34  <Alberth> for (uint pos = this->vscroll->GetPosition(); pos < _fios_items.Length(); pos++) { const FiosItem *item = _fios_items.Get(pos); ...  <-- there is the basic way to pull an element from the list, around line 360
15:36:12  <Alberth> so make a gui list, and copy the elements into it, if matched by the filter
15:36:42  <Alberth> maybe at first you want to make it work with just copying everything, ie without filtering out things
15:37:03  <megakacktus> that's what I wanted to do at first just to make sure it worked
15:37:16  <megakacktus> then start filtering
15:40:28  <Alberth> and of course modify that access method at line 360 to your new list :)
15:40:36  <Alberth> possibly at other spots too
15:41:05  *** Aristide [~quassel@ALyon-552-1-186-250.w2-3.abo.wanadoo.fr] has quit [Remote host closed the connection]
15:45:48  <megakacktus> How exactly do I add the FiosItem I just got from _fios_items to my GUIList? I can't find the method here :P
15:47:13  <Alberth> Append()
15:47:48  <megakacktus> oh right, it inherits :)
15:48:40  <Alberth> megakacktus: a simple trick in these cases is to find another piece of code that also uses GUIList, and see what happens there. Then consult the docs to verify your findings
15:50:09  *** TheMask96 [martijn@polaris.ne2000.nl] has quit [Ping timeout: 480 seconds]
15:50:10  <Alberth> why invent it all from scratch if you can just borrow existing practices :)
15:54:44  *** TheMask96 [martijn@polaris.ne2000.nl] has joined #openttd
15:58:37  *** scshunt [~scshunt@00017de0.user.oftc.net] has quit [Quit: Lost terminal]
15:59:17  <megakacktus> :D I think I know how I can do this now!
16:08:08  *** HerzogDeXtEr [~Flex@i59F6C3D.versanet.de] has joined #openttd
16:18:30  *** amiller [~amiller@129-2-129-154.wireless.umd.edu] has joined #openttd
16:31:41  <megakacktus> hmm... "error: cannot convert 'FiosItem* const*' to 'const FiosItem*' in initialization"
16:32:23  <LordAro> those are slways fun :L
16:32:53  <Alberth> sounds correct, const pointers to data, and pointers to const data  are different things :)
16:33:06  <megakacktus> Yeah, I've been wrangling that for a half hour :P
16:33:22  <Alberth> also, you're off by one *  indirection :)
16:33:38  <megakacktus> I added another * and got a segfault :(
16:36:22  <SamanthaD> what is a good convention for savegame versions of patched games?
16:42:12  <Alberth> I always rename the company name to a prefix that somewhat describes the game setup
16:42:59  <Alberth> you may want to keep savegames together with the patched binary
16:43:34  <SamanthaD> *nods*
16:43:43  <Alberth> which you can do by putting an openttd.cfg right next to the openttd binary
16:44:13  <SamanthaD> Perhaps SAVEGAME_VERSION should be an array instead of a unit16
16:44:30  <SamanthaD> with two fields
16:44:46  <SamanthaD> one for the trunk version and the other for the version of the patch/patchset applied to it
16:44:50  <Alberth> http://vcs.openttd.org/svn/browser/trunk/readme.txt#L266   looks like the right starting point
16:45:24  <Alberth> SamanthaD: yeah, and then someone patches a patched game, and needs a 3rd field :p
16:45:48  <Alberth> You can also use different segments of the savegame number for different patches
16:46:04  <SamanthaD> like... 180 -> 1180?
16:46:13  <Alberth> ie use the upper 8 bit for your patch number :)
16:46:40  <SamanthaD> is there any technical reason why savegames can't store an array of arbitrary length as the savegame ID?
16:46:45  <SamanthaD> eeer... savegame version ID
16:46:54  <Alberth> your idea is a bit more readable for humans :)
16:47:07  <SamanthaD> that's the IMPORTANT part ;)
16:48:09  <LordAro> readable for humans? burn the heretic!
16:48:20  <Alberth> there may be limits due to compatibility with early save games
16:48:59  <SamanthaD> true... there'd need to be a function that converts a unit16 to an array of a single field if that's what it gets
16:49:40  <Alberth> so you probably end up making a new savegame version that adds a new number-array
16:50:23  <SamanthaD> OH! That's a good idea. Have the original unit16 as the trunk version and an array for patches?
16:50:35  *** Progman [~progman@p57A185F1.dip0.t-ipconnect.de] has joined #openttd
16:50:50  <Alberth> and comparing game versions becomes more complicated
16:51:41  <megakacktus> woah o.O https://paste.openttdcoop.org/show/2483/
16:52:11  <SamanthaD> how about a 2D Array? You have a str describing what patch it is and a number for a revision
16:52:45  *** tstst [~id@37.140.99.39] has quit [Ping timeout: 480 seconds]
16:52:59  <LordAro> megakacktus: rather useless without the patch (or crash.dmp)
16:54:11  <Alberth> megakacktus: compile with debugging, so you get can use gdb to get a readable stack dump
16:54:30  <Alberth> SamanthaD: so complicated to store just one extra number
16:54:50  <SamanthaD> I suppose...
16:55:24  <megakacktus> Here's the diff https://paste.openttdcoop.org/show/2484/
16:55:36  <Alberth> if you don't know what patch it contains, you are doing something wrong :)
16:57:24  <Alberth> just use a larger number than current trunk (eg 1000, 1010, 1020, etc), and you have enough information to know what it is
17:00:10  *** frosch123 [~frosch@frnk-590f6e4c.pool.mediaWays.net] has joined #openttd
17:00:10  *** megakacktus [~debussy@174-30-204-96.mpls.qwest.net] has quit [Read error: Connection reset by peer]
17:00:15  *** megakacktus [~debussy@174-30-204-96.mpls.qwest.net] has joined #openttd
17:02:17  <megakacktus> So I think I set up my pointers improperly :(
17:03:40  <LordAro> i think that's quite likely :)
17:03:50  <LordAro> that's generally the reason for segfaults
17:04:03  <LordAro> (in my limited experience)
17:08:41  <Alberth> megakacktus: I don't see a new list nor do I see any copying??
17:09:27  <megakacktus> umm
17:09:56  *** sla_ro|master [slamaster@85.186.160.35] has quit []
17:10:44  <megakacktus> maybe I pasted the old patch, I'll try again
17:12:03  <megakacktus> https://paste.openttdcoop.org/show/2485/
17:16:58  <Alberth> this->vscroll->GetPosition()   line 62   should be 0, since you want to copy the entire list
17:20:07  <Alberth> _fios_items.Length()  line 119, looks wrong, you are using a different list to read from
17:21:09  <megakacktus> oops
17:21:16  <megakacktus> yeah that might be a problem
17:21:46  <SamanthaD> eeek! I delete my ~/.openttd directory and OTTD starts with a window of ZERO size O.O
17:22:00  * SamanthaD goes to see if it does the same thing in trunk
17:22:37  <Alberth> be careful with not introducing changes that are irrelevant to the patch you're making:  31-33, 121 extra " " after the "*", 150
17:22:37  <LordAro> that's... unusual
17:24:22  <SamanthaD> it also crashes! I think it's my latest revision
17:24:45  * SamanthaD sings the praises of revision control!
17:27:24  <Alberth> one of the things you wonder how you ever managed to live without it :)
17:28:15  <SamanthaD> indeed!
17:29:51  *** oskari89 [oskari89@62-241-226-106.bb.dnainternet.fi] has joined #openttd
17:29:54  <SamanthaD> why is it that gcc complies fast when you don't care and takes FOREVER when you're anxious for it to get done?!
17:30:53  <frosch123> it's controled by /dev/mood
17:31:08  <frosch123> or /proc/mood
17:31:09  <SamanthaD> HAHA
17:31:11  <frosch123> cannot rmember
17:32:24  <megakacktus> is FiosItem* const* a constant pointer to a pointer to a class?
17:32:43  <frosch123> read it from right to left
17:32:54  <frosch123> a is pointer to a const pointer to fiositem
17:33:03  <LordAro> D:
17:33:14  <megakacktus> I'm screwed :c
17:36:57  <SamanthaD> that is REALLY weird
17:37:32  <SamanthaD> I set the savegame version to 1185 and it completely hosed everything...
17:37:36  <SamanthaD> ah well, I won't do that then
17:37:48  <Alberth> :D
17:38:23  <frosch123> SamanthaD: it's currently saved as uint8
17:38:36  <frosch123> though it can be extended to uint16
17:39:00  <SamanthaD> weird...
17:39:10  <SamanthaD> the line in my code says "extern const unit16"
17:39:40  <Alberth> ha, you make the same "unit" typo I always make :)
17:39:58  <SamanthaD> :p
17:40:42  <frosch123> hmm, maybe we already extended it to uint16 :p
17:41:05  <SamanthaD> and int defaults to 32bit, right?
17:42:45  <Rubidium> in openttd it does
17:42:45  <SamanthaD> I need a faster processor...
17:43:33  <SamanthaD> I think it might be because I'm setting the savegame version from an int
17:43:41  <SamanthaD> int to uint16 might be causing problems
17:43:56  <frosch123> ah, SL_MAX_VERSION was the weird thing
17:45:36  <DorpsGek> Commit by translators :: r25701 /trunk/src/lang (4 files) (2013-08-08 17:45:30 UTC)
17:45:37  <DorpsGek> -Update from WebTranslator v3.0:
17:45:38  <DorpsGek> english_US - 1 changes by Rubidium
17:45:39  <DorpsGek> finnish - 1 changes by jpx_
17:45:40  <DorpsGek> italian - 1 changes by lorenzodv
17:45:41  <DorpsGek> norwegian_bokmal - 3 changes by cuthbert
17:48:57  *** Pol [~quassel@h220216.upc-h.chello.nl] has quit [Remote host closed the connection]
17:50:52  <megakacktus> no more segfaults, yay!
17:52:21  <megakacktus> I *think* i'm on the right track
17:55:52  *** roadt [~roadt@114.96.134.112] has quit [Ping timeout: 480 seconds]
17:56:49  *** scshunt [raedford@00017de0.user.oftc.net] has joined #openttd
18:02:57  *** sla_ro|master [~sla.ro@85.186.160.35] has joined #openttd
18:06:25  *** Supercheese [~Superchee@98.145.153.126] has joined #openttd
18:06:45  *** Wolf01 [~wolf01@0001288e.user.oftc.net] has joined #openttd
18:07:10  <Wolf01> hai
18:07:18  <SamanthaD> Hey Wolf01
18:14:55  *** Devroush367 [~dennis@91.179.117.51] has joined #openttd
18:17:07  *** Devroush [~dennis@91.179.117.51] has quit [Ping timeout: 480 seconds]
18:17:20  *** sla_ro|master2 [slamaster@85.186.160.35] has joined #openttd
18:17:56  <Alberth> hi Wolf01
18:22:06  *** sla_ro|master [~sla.ro@85.186.160.35] has quit [Ping timeout: 480 seconds]
18:26:43  <Wolf01> today I saw frogs swimming in the air, some fish too
18:28:09  <frosch123> you were quite thirsty then
18:28:32  *** Pereba [~UserNick@187.58.119.65] has joined #openttd
18:33:27  *** sla_ro|master2 [slamaster@85.186.160.35] has quit []
18:33:28  <Wolf01> it's really too wet here, the humidity reached 71% today
18:35:53  *** peter1139 [~petern@lachesis.fuzzle.org] has quit [Ping timeout: 480 seconds]
19:00:22  *** glx [~glx@000128ec.user.oftc.net] has joined #openttd
19:00:25  *** mode/#openttd [+v glx] by ChanServ
19:01:05  <DorpsGek> Commit by frosch :: r25702 trunk/src/saveload/saveload.h (2013-08-08 19:01:02 UTC)
19:01:06  <DorpsGek> -Add: about 3000 years of savegame compatibility.
19:03:53  *** sla_ro|master [slamaster@85.186.160.35] has joined #openttd
19:11:33  <SamanthaD> THanks for the fix, frosch123
19:11:54  <frosch123> "fix" :p
19:12:20  <SamanthaD> why "fix"?
19:13:45  * Rubidium is sad about the size of the commit message
19:13:50  <Rubidium> oh... and
19:13:54  <Rubidium> [citation needed]
19:14:15  <__ln__> @seen Bjarni
19:14:16  <DorpsGek> __ln__: Bjarni was last seen in #openttd 1 year, 43 weeks, 5 days, 18 hours, 55 minutes, and 9 seconds ago: <Bjarni> heh
19:14:58  <frosch123> Rubidium: should i have used "-Change: oh... that's just way too easy" ?
19:15:16  <frosch123> or just "3000 years [citation needed]"?
19:16:09  <Rubidium> Wolf01: you call that wet? The average humidity (over ~30 years) for early august is 77% over here
19:16:15  <SamanthaD> Maybe he just wanted you to change it from a 16bit word to a 64bit word, just to be on the safe side ;)
19:18:36  <Rubidium> Wolf01: and it ain't the rain either, as a week ago it was on average (over 24 hours) about 25 degrees with 91% sun and no rain whatsoever but still 68% humidity
19:19:06  <Rubidium> frosch123: the commit message could've easily been multitudes of the patch size long
19:20:05  <frosch123> too much work :p
19:20:06  <Wolf01> but here there are also 36°C, wich feel like 42°C with the humidity
19:38:25  *** peter1138 [~petern@00013681.user.oftc.net] has joined #openttd
19:38:28  *** mode/#openttd [+o peter1138] by ChanServ
19:39:26  *** ntoskrnl [~not@a91-153-231-146.elisa-laajakaista.fi] has quit [Ping timeout: 480 seconds]
19:41:09  <SamanthaD> why the heck is mercurial reporting merges for files I never freaking changed?!
19:41:26  <dihedral> any chance one of the guys in amsterdam would have me and my brother in law stay a night?
19:41:57  <dihedral> we are looking for a cheap place to stay for one night, during our fun fair tour :-)
19:42:04  <dihedral> Rubidium? TrueBrain? :-P
19:42:44  <dihedral> sometime during the last week of august
19:43:00  <SamanthaD> this is very disconcerting...
19:43:20  <megakacktus> crap, more segmentation faults :(
19:43:50  <LordAro> SamanthaD: maybe you updated by accident? what does hg diff / hg stat say?
19:44:07  <SamanthaD> LordAro: I'm sure I didn't...
19:44:38  <SamanthaD> I did the hg stat right before the update
19:44:41  <SamanthaD> then... poof!
19:44:47  <SamanthaD> things all went to hell
19:44:58  <LordAro> megakacktus: try this one :P http://paste.openttdcoop.org/show/2487/ especially when it's not your code...
19:45:06  * LordAro points at Alberth
19:47:46  <frosch123> you have voxels in frct?
19:48:16  <LordAro> umm, yes? :L
19:48:24  * LordAro continues pointing at Alberth
19:48:24  <Alberth> SamanthaD: run a diff between the old the the new revision  (perhaps with --stat for a compressed file overview)
19:48:50  <SamanthaD> Alberth: Yes, I should do that. Give me a sec.
19:49:31  <Alberth> not the kind of voxels that other people think :)
19:49:49  <Alberth> ie it's just the 3d grid in FreeRCT
19:50:17  <SamanthaD> "voxel" makes me think of a small furry animal
19:50:52  <frosch123> we already have a squirrel plague in ottd, please don't bring in more animals
19:51:42  <Alberth> you forgot the unicorns
19:51:54  <frosch123> oh, that's only one
19:51:58  <LordAro> and the ponys
19:52:01  <frosch123> we can handle it
19:52:25  <SamanthaD> I keep seeing the squirrels
19:52:28  <SamanthaD> what the heck are they?!
19:53:14  <frosch123> LordAro: i haven't seen a pony in months :p
19:53:16  <Alberth> http://squirrel-lang.org/
19:53:33  <Alberth> used for AIs and GSes
19:53:38  <SamanthaD> oh!
19:54:42  <megakacktus> is GRF pronounced 'gerf' or 'griff'?
19:55:04  <frosch123> it isn't pronounced, it is yelled in anger
19:55:10  <LordAro> ^^
19:55:10  <Rubidium> dihedral: I'm not even close to Amsterdam (in Dutch terms at least)
19:55:46  <LordAro> i pronounce it gee-arr-eff
19:56:10  * Alberth says 'graph'
19:56:16  <SamanthaD> Alberth: hg diff src/order_backup.cpp shows about half the file getting added
19:56:19  <Rubidium> no ga-re-fi ?
19:56:35  <Alberth> no graffiti :)
19:56:48  <SamanthaD> which... I don't doubt it was but... considering I didn't modify it you'd think the automatic merger would have fixed it without me having to tweak at it
19:56:53  <frosch123> NewGiraffe? i approve
19:56:57  <LordAro> SamanthaD: editor screwup? "hg revert src/order_backup.cpp"
19:57:10  <Alberth> SamanthaD: EOL convention changed?
19:57:25  <SamanthaD> LordAro: Yeah... I suppose. I didn't actually do anything with an editor though. I just applied a patch.
19:57:57  <Alberth> frosch123: new animal is always good
19:58:07  <LordAro> :D
19:58:18  <frosch123> exactly :)
19:58:21  <SamanthaD> Alberth: No... I don't think so... easiest explanation is a mercurial bug :p
19:58:44  <LordAro> :O
20:03:23  <Alberth> never seen hg mess up a file before :o
20:03:53  <krinn> never seen a girl that doesn't mess up something before
20:04:24  <LordAro> ooooo
20:05:03  <SamanthaD> ;_; *sniffles*
20:05:04  *** krinn was kicked from #openttd by DorpsGek [oops, messed up]
20:05:16  <Alberth> I did see it crash on smaller stuff like failing to delete the same patch twice :)
20:05:19  <glx> hehe
20:05:26  *** krinn [~krinn@53.54.71.86.rev.sfr.net] has joined #openttd
20:05:27  <krinn> :D
20:05:43  <LordAro> DorpsGek is a girl?
20:05:44  <Alberth> good girl, DorpsGek
20:06:05  <glx> DorpsGek is just an idiot
20:06:20  <megakacktus> Ok... so all the segfaults are gone... now the GUIList just isn't displaying :s
20:06:26  <LordAro> and a girl? or is that just implied? :P
20:06:29  * LordAro is sorry
20:06:32  <megakacktus> but... I can still access files from it o.O
20:08:34  <megakacktus> wat
20:08:54  <Alberth> megakacktus: nice for randomly picking a save game :)
20:09:13  <megakacktus> exactly
20:13:49  <fjb> Moin.
20:14:17  *** Pereba [~UserNick@187.58.119.65] has quit [Quit: Quit Message sponsored by AdiIRC - www.adiirc.com]
20:30:48  *** HerzogDeXtEr1 [~Flex@i59F6BC68.versanet.de] has joined #openttd
20:36:26  *** HerzogDeXtEr [~Flex@i59F6C3D.versanet.de] has quit [Ping timeout: 480 seconds]
20:36:45  *** KritiK [~Maxim@0001264a.user.oftc.net] has joined #openttd
20:43:03  <LordAro> megakacktus: make a "random" button :P
20:43:20  <megakacktus> lol
20:48:31  <megakacktus> OpenTTD Roulette (R)
20:50:32  *** Alberth [~hat@a82-95-164-127.adsl.xs4all.nl] has left #openttd []
20:54:11  *** Devroush [~dennis@91.179.117.51] has joined #openttd
20:54:25  <frosch123> night
20:54:28  *** frosch123 [~frosch@frnk-590f6e4c.pool.mediaWays.net] has quit [Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn]
20:55:25  *** Devroush367 [~dennis@91.179.117.51] has quit [Ping timeout: 480 seconds]
20:56:56  <TWerkhoven> xaroth: ingame date of 20th november 1950, comes in as ServerDate -> {'date': datetime.datetime(1950, 11, 21, 0, 0)}, is that right?
21:02:36  *** sla_ro|master [slamaster@85.186.160.35] has quit []
21:06:51  <LordAro> Xaroth|Work: ^ in case that helps :)
21:14:02  <TWerkhoven> might do, i think he highlights both
21:14:39  *** tokai|noir [~tokai@00012860.user.oftc.net] has joined #openttd
21:14:42  *** mode/#openttd [+v tokai|noir] by ChanServ
21:20:31  *** tokai|mdlx [~tokai@port-92-195-8-116.dynamic.qsc.de] has quit [Ping timeout: 480 seconds]
21:22:33  *** Aristide [~quassel@37.175.204.84] has joined #openttd
21:46:06  *** Midnightmyth [~quassel@93-167-84-102-static.dk.customer.tdc.net] has quit [Ping timeout: 480 seconds]
21:47:33  <TWerkhoven> gnite
21:48:20  <megakacktus> I'm out, too
21:48:23  <megakacktus> bye
21:48:26  *** megakacktus [~debussy@174-30-204-96.mpls.qwest.net] has quit [Quit: Live long and prosper]
22:00:54  <Wolf01> night
22:01:00  *** Wolf01 [~wolf01@0001288e.user.oftc.net] has quit [Quit: Once again the world is quick to bury me.]
22:01:55  *** oskari89 [oskari89@62-241-226-106.bb.dnainternet.fi] has quit [Read error: Connection reset by peer]
22:02:27  *** oskari89 [oskari89@62-241-226-106.bb.dnainternet.fi] has joined #openttd
22:10:07  *** Progman [~progman@p57A185F1.dip0.t-ipconnect.de] has quit [Remote host closed the connection]
22:11:39  *** Elukka [~Elukka@a91-152-213-89.elisa-laajakaista.fi] has quit []
22:14:21  *** fjb [~frank@000158aa.user.oftc.net] has quit [Ping timeout: 480 seconds]
22:15:31  *** oskari89 [oskari89@62-241-226-106.bb.dnainternet.fi] has quit []
22:17:24  *** NeuhNeuh [~quassel@37.175.204.84] has joined #openttd
22:21:36  *** Aristide [~quassel@37.175.204.84] has quit [Ping timeout: 480 seconds]
22:24:59  *** krinn [~krinn@53.54.71.86.rev.sfr.net] has quit [Remote host closed the connection]
22:25:12  *** MatrixCL [~mielipuol@host-109-204-157-114.tp-fne.tampereenpuhelin.net] has quit [Quit: Nettalk6 - www.ntalk.de]
22:37:42  *** fjb [~frank@000158aa.user.oftc.net] has joined #openttd
22:44:10  *** glx [~glx@000128ec.user.oftc.net] has quit [Ping timeout: 480 seconds]
22:46:16  *** Aristide [~quassel@37.175.204.84] has joined #openttd
22:48:43  *** glx [~glx@000128ec.user.oftc.net] has joined #openttd
22:48:46  *** mode/#openttd [+v glx] by ChanServ
22:50:27  *** NeuhNeuh [~quassel@37.175.204.84] has quit [Ping timeout: 480 seconds]
23:11:23  *** Devroush [~dennis@91.179.117.51] has quit []
23:19:58  *** Alice3 [~Alice@cpc18-grim14-2-0-cust478.12-3.cable.virginmedia.com] has quit []
23:20:45  *** Aristide [~quassel@37.175.204.84] has quit [Read error: Connection reset by peer]
23:20:59  *** Aristide [~quassel@37.175.204.84] has joined #openttd
23:23:30  *** Supercheese [~Superchee@98.145.153.126] has quit [Ping timeout: 480 seconds]
23:32:51  <SamanthaD> is there some way in Hg I can combine two consecutive commits into one?!
23:33:49  <SamanthaD> I'm finding myself in a lot of situations where I want to commit work that's clearly not done just so I can revert to it when there's, say, a big huge complex merge or something and it would be nice to merge the "there, all done" commit and the intermediate commits together
23:39:20  <SamanthaD> oh, I see how to do it
23:40:30  <SamanthaD> what a hack >.>
23:44:32  *** pugi [~pugi@dyndsl-091-096-014-056.ewe-ip-backbone.de] has quit []
23:50:36  *** amiller [~amiller@129-2-129-154.wireless.umd.edu] has quit [Ping timeout: 480 seconds]
23:50:58  *** roadt [~roadt@114.96.134.112] has joined #openttd
23:53:01  *** Ristovski [~rafael@ppp-seco11pa2-46-193-128.78.wb.wifirst.net] has quit [Quit: Leaving]
23:54:00  *** DarkAceZ [~BillyMays@50.107.55.36] has quit [Ping timeout: 480 seconds]
23:57:52  *** DarkAceZ [~BillyMays@50.107.55.36] has joined #openttd

Powered by YARRSTE version: svn-trunk