IRC logs for #openttd on OFTC at 2016-04-15
            
00:20:46 *** supermop has quit IRC
00:21:25 *** supermop has joined #openttd
00:26:39 *** Biolunar has quit IRC
00:33:01 *** zeknurn has quit IRC
00:33:42 *** zeknurn has joined #openttd
00:52:58 *** Wormnest has quit IRC
01:08:03 *** LadyHawk- has joined #openttd
01:08:52 *** JacobD88 has quit IRC
01:10:25 <Wolf01> 'night
01:10:28 *** Wolf01 has quit IRC
01:11:07 *** LadyHawk- has quit IRC
01:11:18 *** LadyHawk- has joined #openttd
01:13:11 *** LadyHawk has quit IRC
01:13:51 *** LadyHawk- has quit IRC
01:13:59 *** LadyHawk has joined #openttd
01:17:44 *** tokai has joined #openttd
01:17:44 *** ChanServ sets mode: +v tokai
01:24:41 *** tokai|noir has quit IRC
01:30:51 <Samu> the _do_autosave bool is misleading
01:31:43 <Samu> it never returns true when I most need it to return true :(
01:48:27 *** sim-al2 has left #openttd
01:48:40 *** sim-al2 has joined #openttd
02:04:55 *** HerzogDeXtEr has quit IRC
02:54:16 *** Myhorta has quit IRC
02:54:35 *** Samu has quit IRC
02:56:27 *** Myhorta has joined #openttd
03:23:12 *** Snail has joined #openttd
04:23:58 *** TrueBrain has quit IRC
04:24:11 *** TrueBrain has joined #openttd
04:40:45 *** glx has quit IRC
04:42:06 *** Supercheese has joined #openttd
04:45:01 *** Myhorta has quit IRC
05:03:46 *** Quatroking has quit IRC
06:15:59 *** Klanticus has quit IRC
06:27:04 *** Klanticus has joined #openttd
06:28:22 *** sla_ro|master has joined #openttd
06:29:15 *** sim-al2 has quit IRC
06:31:44 *** Klanticus_ has joined #openttd
06:32:32 *** Ketsuban has joined #openttd
06:35:14 *** Klanticus has quit IRC
07:20:41 *** Snail has quit IRC
08:30:41 *** Biolunar has joined #openttd
09:13:09 *** efess has quit IRC
09:22:26 *** strohalm has quit IRC
10:02:19 *** Supercheese has quit IRC
10:04:19 *** sla_ro|master has quit IRC
10:19:20 *** Quatroking has joined #openttd
10:41:28 *** Hiddenfunstuff has joined #openttd
10:43:03 *** Samu has joined #openttd
10:43:07 <Samu> hi
10:56:41 <Samu> I finally figured out why _do_autosave is false, it's the function GameLoop() in openttd.cpp
10:57:04 <Samu> it is setting _do_autosave from true to false too early
11:00:07 <Samu> it only keeps _do_autosave = true as long as DoSave isn't threaded = true
11:02:48 <Samu> if threaded = true in DoSave, only the memcopy part of the autosave will return _do_autosave = true, the encoding part of the autosave returns _do_autosave = false :(
11:05:18 *** efess has joined #openttd
11:40:30 *** JacobD88 has joined #openttd
11:41:05 *** Wolf01 has joined #openttd
11:41:46 <Wolf01> moin
11:55:48 <Samu> i need halp, i can't use the _do_autosave bool to detect if the writting to file thread is for the autosave or for another kind of save
11:56:03 *** Myhorta has joined #openttd
11:56:50 <Wolf01> yes, bool only transport one information: true or false
11:59:24 <Samu> gameloop is receiving the wrong information about _do_autosave, DoSave is retuning an SL_OK all the way back to GameLoop which then makes _do_autosave = false
12:01:41 <Samu> this SL_OK is sent back because of the new thread that is started to write the file, some asynchronous thread if I understand this code
12:02:05 <Samu> it sends the SL_OK too early imo
12:02:11 <Samu> it's still writting to the file
12:02:20 <Samu> what can I do about this?
12:07:36 *** smoke_fumus has joined #openttd
12:09:14 <Samu> in short, I was counting on _do_autosave bool to know if the current save in progress was started by the autosave
12:17:57 *** JacobD88 has quit IRC
12:23:02 <Samu> maybe I need to find a workaround
12:25:41 *** blathijs has quit IRC
12:30:23 <Samu> if (!_do_autosave) ShowErrorMessage(STR_ERROR_SAVE_STILL_IN_PROGRESS, INVALID_STRING_ID, WL_ERROR);
12:30:33 <Samu> this line of code is useless
12:33:15 <Samu> it would work as expected if the current save in progress was not caused by the autosave
12:45:23 <Samu> nevermind, time to think about a workaround
12:46:39 <Samu> that line of code works fine afterall, but it's very misleading
12:46:59 <Samu> the code is already accounting with these misleadings
12:47:06 <Samu> :(
12:59:30 *** MonkeyDronez has joined #openttd
13:23:39 *** tycoondemon has quit IRC
13:41:57 <Wolf01> V453000, is there a valid reason for the signals icons to show 2 lights in the inventory and 3 lights when placed, while the combo signal in the inventory shows 3 lights but just one when placed?
14:09:03 *** Flygon has quit IRC
14:09:14 *** Flygon has joined #openttd
14:20:07 <Samu> I think I solved this problem!
14:20:10 <Samu> omg :9
14:22:43 *** blathijs has joined #openttd
14:23:13 <Samu> when a client joins, the server is always sending the strong compressed map to client. if the server needs to autosave while it is still sending the map, it doesn't perform the autosave
14:23:28 <Samu> and the opposite
14:25:15 <Samu> when a client joins, but the server is currently performing an autosave, wait for it to save (by stalling openttd), and once its saved, start sending map to client immediately after
14:25:28 <Samu> what I have to deal with is the stalling
14:25:50 <Samu> and it's here that i set the autosave to use the fastest compression method possible
14:26:00 <Samu> to minimize the stall duration
14:27:12 <Samu> the client will receive a strong compressed map
14:30:24 *** Snail has joined #openttd
14:32:20 *** tycoondemon has joined #openttd
14:34:38 *** Arveen has joined #openttd
14:41:12 <Samu> there's probably a better solution to avoid the stall alltogether, but my coding skills won't allow it
14:41:41 <Samu> it would be sending a wait command to the client attempting to join
14:48:39 *** tycoondemon has quit IRC
14:56:39 *** Snail has quit IRC
15:12:52 <Samu> /* Who removed LZO support? Bad bad boy! */
15:12:56 <Samu> keks
15:21:27 <Samu> https://paste.openttdcoop.org/p65qyonpa
15:21:49 <Samu> need some help at lines 27,28,29
15:33:45 <argoneus> what do you guys think about memes
15:37:02 <Samu> meh
15:37:31 <Samu> who's a c++ expert?
15:38:41 <Samu> need help on improving the code I wrote on lines 27, 28, 29
15:39:01 <Samu> what I have written there will work, but it's noob coding :(
15:54:40 <supermop> yo
15:59:21 *** sim-al2 has joined #openttd
16:06:43 *** TheMask96 has quit IRC
16:10:27 *** TheMask96 has joined #openttd
16:21:35 <Samu> here's the patch, help me with improvements in the code plz http://www.tt-forums.net/viewtopic.php?f=33&t=74731
16:21:58 <supermop> i don't anything about programming
16:22:46 <Samu> :O
16:25:51 *** Alberth has joined #openttd
16:25:51 *** ChanServ sets mode: +o Alberth
16:31:33 *** Clockworker has joined #openttd
16:39:24 <Samu> hi alb
16:39:38 <Samu> want to test my patch?
16:42:38 <Alberth> not really
16:42:43 <Samu> :(
16:44:18 <Alberth> I only play SP, and have maps of around 512x512
16:45:56 <Wolf01> so big? I play 64x128 usually
16:46:19 <supermop> pssh 16*8 is all i i need
16:47:47 <Alberth> :)
16:48:29 <Alberth> longer tracks make that sharing tracks is more natural
16:49:42 *** Biolunar has quit IRC
17:02:07 *** Wolf03 has joined #openttd
17:02:07 *** Wolf01 is now known as Guest615
17:02:07 *** Wolf03 is now known as Wolf01
17:03:33 <supermop> need to figure out fake capacities for trains now
17:08:08 *** Guest615 has quit IRC
17:16:20 *** supermop_ has joined #openttd
17:17:28 <supermop_> hello again
17:19:05 <Alberth> o/
17:20:08 *** MonkeyDronez has quit IRC
17:23:15 *** supermop has quit IRC
17:23:53 <Rubidium> Samu: what are you trying to accomplish? Slightly faster saves?
17:24:44 <Rubidium> rather work on checking whether multiple saves can happen simultaniously than adding magic constants that only break future changes
17:24:47 <Samu> autosaves yes
17:25:40 <Samu> what's a magic constant?
17:25:51 <Rubidium> 3
17:25:53 <Samu> the sgf_id?
17:26:19 <Alberth> any literal value that has no name and explanation is magic
17:26:23 <Samu> i needed help there, i don't know how to improve that part
17:26:37 <Samu> want it to retrive zlib format
17:26:48 <Rubidium> https://en.wikipedia.org/wiki/Magic_number_%28programming%29
17:29:28 <Alberth> ha, nice :)
17:32:28 *** Myhorta has quit IRC
17:33:06 <Samu> i know my code isn't perfect :(
17:33:20 <Samu> i'm editing a video about this patch, brb
17:34:03 * Rubidium feels like being back 20-ish years
17:34:18 <Rubidium> internet so slow...
17:37:46 *** Progman has joined #openttd
17:41:04 * Rubidium also wonders why he gets notified that the planned arrival time of a flight is 1 minute earlier; on 8 hours, that's pointless information because the weather will have a more significant impact on arrival time than this
17:42:20 <Alberth> they want to make a good impression :)
17:42:35 <Alberth> or the person doing the announcement was bored :p
17:43:06 <Rubidium> it's probably automated
17:43:32 <Alberth> you could ask about the significance of that announcement at some help desk :p
17:43:45 <Rubidium> TMWFTLB
17:43:52 <Alberth> :)
17:44:08 *** HerzogDeXtEr has joined #openttd
17:44:21 <Rubidium> it's automated and adding code to prevent sending mails when arriving 1 minute earlier it probably also TMWFTLB for them
17:44:44 <Rubidium> because I can't think of someone making the whole mail for just 1 minute
17:45:08 *** smoke_fumus has quit IRC
17:45:11 <Rubidium> if it were that I had to be an hour earlier on the airport, then I could imagine it being useful
17:45:16 <Samu> video, old behaviour and my patch behaviour > https://onedrive.live.com/redir?resid=23B29F3DE45F6F1F!1266&authkey=!AJMEWu0YEm5sFo0&ithint=file%2cmp4
17:45:23 <Samu> hope video loads
17:45:31 * Rubidium won't even try
17:46:17 *** KouDy has quit IRC
17:46:31 *** KouDy has joined #openttd
17:49:06 *** Wormnest has joined #openttd
17:58:18 *** Progman_ has joined #openttd
17:58:24 *** sim-al2 has quit IRC
18:01:50 <Eddi|zuHause> your 20-years-ago internet speed is probably my 5-years-ago internet speed :p
18:02:53 *** Progman has quit IRC
18:03:04 *** Progman_ is now known as Progman
18:04:38 <Rubidium> it's about 64 kbps (or 8 kBps)
18:07:20 <Eddi|zuHause> ok, that makes it 10 years ago :p
18:08:14 <Rubidium> 10-14 years ago I had the fastest internet
18:08:40 *** Myhorta has joined #openttd
18:08:59 <Alberth> :)
18:09:14 <Rubidium> what I would have at home is merely 30% (down) or 3% (up) of what I had back then
18:09:39 <Rubidium> but then, what's a fast internet connection when the other side is slow
18:09:48 *** Myhorta has quit IRC
18:19:57 *** strohalm has joined #openttd
18:29:08 *** HerzogDeXtEr1 has joined #openttd
18:31:52 <Samu> 16:24] <@Rubidium> rather work on checking whether multiple saves can happen simultaniously
18:32:03 <Samu> it cannot
18:32:12 <Rubidium> in any case, being in a place where things are worse than where you normally live makes me appreciate what I have more. So in the end having some bad/slow internet makes me happier about the internet I have at home
18:33:09 <Samu> i tried to let openttd do the autosave and sending map to client at the same time, but... either part gets corrupted
18:33:46 <Samu> there can only be 1 DoSave running at a time
18:35:43 *** HerzogDeXtEr has quit IRC
18:37:49 <Samu> maybe it's possible, but my coding skills suck, can't see an easy way about that
18:39:45 <Rubidium> so work on unsucking your codin skills
18:40:47 <Samu> :)
18:41:10 *** tycoondemon has joined #openttd
18:46:21 *** glx has joined #openttd
18:46:21 *** ChanServ sets mode: +v glx
18:57:37 *** sim-al2 has joined #openttd
18:57:48 *** gelignite has joined #openttd
19:04:02 <Samu> ok i need to think of a model to deal with these saves
19:05:34 <Samu> a structure, or whatever
19:05:39 <Samu> dont know the name
19:06:00 <Samu> something like a queue for savegames
19:06:48 <Samu> similar in nature to what happens with multiple clients trying to join, clients wait in queue
19:12:09 <Samu> SaveWithFilter function
19:12:20 <Samu> SaveOrLoad function
19:13:50 <Samu> SaveFileToDiskThread function too
19:14:14 <Samu> name is misleading
19:14:28 *** Arveen has quit IRC
19:14:42 <Samu> SafeFileToWhateverFilterYouHaveChosenThread
19:16:09 <Samu> SaveMemoryDumpToWhateverFilterYouHaveChosenThread
19:23:07 <Eddi|zuHause> my internet was upgraded from 16/1 to 50/10 recently
19:24:57 <Wolf01> my internet was upgraded to 4/0.5 5 years ago, it was 2/0.5, no chances to upgrade anymore
19:25:12 <supermop_> my internet was upgraded from "australian" to fiber optic recently
19:26:43 *** Gjax has joined #openttd
19:30:17 *** Gjax has quit IRC
19:31:59 <Eddi|zuHause> fibre is virtually unknown in germany
19:32:15 <Wolf01> here too
19:32:44 <Eddi|zuHause> (ftth that is, the backbones do use fibre)
19:33:46 *** gelignite has quit IRC
19:34:27 *** Gjax has joined #openttd
19:36:27 <peter1138> many providers are calling fttc "fibre"
19:36:31 <peter1138> lying scum
19:36:39 <Wolf01> I live in a rural area and the best option is the wimax, but a friend had lots of problems with that (from trees in the line of sight to signal loss in too sunny or rainy days), so I'll keep the standard adsl
19:37:13 <peter1138> fttp is ... not readily available, and expensive
19:37:41 <glx> we have one calling cable "fibre" here
19:37:56 <glx> other use "fibre" only for ftth
19:38:22 <peter1138> virgin media call their coax cable fibre
19:38:45 <glx> it's numericable/sfr here
19:38:45 <peter1138> pretty much all the vdsl fttc providers call that fibre broadband too
19:39:57 *** frosch123 has joined #openttd
19:42:18 <Wolf01> quak
19:42:52 <frosch123> hola
19:45:08 <Alberth> quak
19:59:11 *** M-E has quit IRC
20:12:23 *** FLHerne has joined #openttd
20:48:00 <Wolf01> ha! I found I have a bundle of hidden objects games and I totally forgot about it
20:53:52 *** sla_ro|master has joined #openttd
20:58:43 *** Clockworker has quit IRC
20:58:55 *** Clockworker has joined #openttd
21:04:28 <Eddi|zuHause> i suppose my current connection is FTTC, but i don't really know
21:14:59 *** andythenorth has joined #openttd
21:21:10 <supermop_> yo andythenorth
21:21:14 <andythenorth> o/
21:21:41 <supermop_> more train sets running about?
21:24:45 *** FLHerne_ has joined #openttd
21:24:45 *** FLHerne has quit IRC
21:28:36 *** FLHerne has joined #openttd
21:28:37 *** FLHerne_ has quit IRC
21:38:36 <supermop_> ive got names and capacities now
21:38:56 <supermop_> not sure if the numbers make sense though
21:39:08 <supermop_> so might just start drawing more sprites
21:44:00 *** FLHerne_ has joined #openttd
21:44:01 *** FLHerne has quit IRC
21:46:14 <andythenorth> supermop_: got wagons? o_O
21:46:28 <supermop_> nope
21:46:43 <supermop_> not drawn at least
21:47:10 <supermop_> are there big differences in the wagon properties between rosters?
21:48:36 <supermop_> i guess if i were to have, say, only 6/8 wagons id need capacity lower
21:50:21 <andythenorth> the capacity is driven more by narrow gauge / standard gauge
21:50:28 <supermop_> yeah
21:50:33 <andythenorth> narrow gauge is cheaper, but lower capacity per tile
21:50:39 <andythenorth> so longer trains for the same cargo
21:50:41 <supermop_> i want freight capacity lower than pony roster
21:50:56 <supermop_> was thinking 70% or so?
21:50:58 <andythenorth> have a look at antelope
21:51:02 <andythenorth> it’s probably the same
21:51:22 <supermop_> japan is 1067mm but loading gauge not that much smaller than UK
21:51:30 <andythenorth> same as cape gauge in africa
21:52:02 <supermop_> but you do see only 20' containers on flatbeds there, no 40'
21:52:10 <andythenorth> there are gameplay upper and lower limits to capacity
21:52:28 <andythenorth> lower is ~20t, upper ~100t
21:52:46 <andythenorth> and there needs to be progression on 2 or 3 generations
21:59:14 <supermop_> i think the 12t wagons of pony NG wont cut it, even for 1880s
21:59:43 <supermop_> unless add old sub-meter stuff
22:01:15 <supermop_> so much rivet counting to do to read up on old wagon types
22:01:26 <supermop_> can i just invent 3 fake generations?
22:02:31 <andythenorth> https://www.youtube.com/watch?v=cHWjelxe_MU
22:02:39 <andythenorth> supermop_: just invent wagons
22:03:34 <supermop_> crazy pantograph sparks in that vid
22:08:29 <supermop_> can i just leave work at 4:10 for 3 beers?
22:09:41 *** sim-al2 has quit IRC
22:10:18 <supermop_> beer sounds better than researching wagons
22:10:43 *** frosch123 has quit IRC
22:12:32 <andythenorth> supermop_: if it’s 04:10, definitely
22:12:44 <supermop_> haha
22:14:02 *** FLHerne_ has quit IRC
22:14:13 *** FLHerne_ has joined #openttd
22:18:08 <supermop_> nothing in IH has a car carrier yet?
22:20:51 <supermop_> no idea who the english version of the JR Freight website is supposed to be targeted towards
22:22:00 <supermop_> anyone who doesn't understand the concepts presented in these infographics already is in no position to be placing an order for moving freight around anyway
22:22:02 <supermop_> http://www.jrfreight.co.jp/english/business/logistics.html
22:22:20 <supermop_> let alone from one part of Japan to another
22:22:48 <supermop_> i guess investors?
22:33:31 <andythenorth> there is a car carrier in Brit Pony
22:35:18 <supermop_> ah have yet to play a "vehicles" game with pony
22:35:30 <supermop_> i'll be taking that then
22:38:30 *** Belugas has quit IRC
22:38:30 *** Belugas has joined #openttd
22:38:30 *** ChanServ sets mode: +o Belugas
22:49:40 *** gelignite has joined #openttd
22:54:49 *** aminos has joined #openttd
23:06:21 *** andythenorth has left #openttd
23:08:37 *** NGC1 has quit IRC
23:09:16 *** Progman has quit IRC
23:15:05 *** Ketsuban has quit IRC
23:21:29 *** tycoondemon has quit IRC
23:24:16 *** JacobD88 has joined #openttd
23:28:17 *** supermop_ has quit IRC
23:31:09 *** FLHerne_ has quit IRC
23:31:28 *** FLHerne_ has joined #openttd
23:32:27 <Samu> i'm duplicating the whole _save_thread related code
23:32:35 <Samu> i bet this is the wrong approach
23:33:12 <Samu> there will be 2 save threads
23:33:21 <Samu> 1 for autosaves, 1 for the other saves
23:37:49 *** sla_ro|master has quit IRC
23:41:45 *** Alberth has left #openttd
23:42:00 *** JacobD88 has quit IRC
23:42:13 *** sim-al2 has joined #openttd