IRC logs for #openttd on OFTC at 2019-11-18
            
00:01:21 *** Thedarkb1-X40 has quit IRC
00:15:20 <andythenorth> so bedtime :P
00:15:21 *** andythenorth has left #openttd
00:15:24 *** frosch123 has quit IRC
00:26:19 *** Flygon has joined #openttd
00:37:07 *** Jyggalag has joined #openttd
00:37:07 *** Sheogorath has quit IRC
00:38:11 <Samu> who can look at this https://github.com/OpenTTD/OpenTTD/pull/7822
00:46:30 *** Samu has quit IRC
01:08:36 *** Thedarkb-X40 has joined #openttd
01:20:16 <Eddi|zuHause> if i'm starting a java program, and it tells me "segmentation fault"... how many wrong turns did i take?
01:25:02 <FLHerne> Well, the first one was 'Java' and none of the others matter :P
01:25:30 <FLHerne> It's frustratingly easy to segfault the Python interpreter by using PyQt wrong
01:25:43 <FLHerne> And, of course, it's then a complete nightmare to debug
01:26:25 <FLHerne> > "If it can't possibly go wrong, it will go wrong and be impossible to fix."
02:05:51 *** Thedarkb-X40 has quit IRC
02:13:28 *** Thedarkb-X40 has joined #openttd
02:29:39 *** Wormnest_ has quit IRC
02:37:30 *** Wormnest_ has joined #openttd
03:29:54 *** Wormnest_ has quit IRC
03:31:00 *** glx has quit IRC
03:34:14 *** Wormnest_ has joined #openttd
03:51:34 *** gelignite2nd has joined #openttd
03:58:55 *** gelignite has quit IRC
04:35:41 *** D-HUND has joined #openttd
04:39:02 *** debdog has quit IRC
04:48:34 *** Wormnest_ has quit IRC
05:07:21 *** Thedarkb-X40 has quit IRC
05:12:13 *** Eddi|zuHause2 has joined #openttd
05:16:33 *** cHawk has quit IRC
05:16:55 *** Eddi|zuHause has quit IRC
05:19:49 *** cHawk has joined #openttd
06:39:45 *** gelignite2nd has quit IRC
08:36:22 <DorpsGek_III> [OpenTTD/OpenTTD] timmeh87 opened issue #7838: random crash https://git.io/JeKL5
09:45:26 *** D-HUND is now known as debdog
10:14:57 <Arveen> breakfast time ?
10:31:35 <peter1138> Already had mine, probably too early thinking about it. I'll struggle getting to lunch.
11:07:34 *** Samu has joined #openttd
11:37:19 <peter1138> Do I need a table saw?
12:15:41 *** smoke_fumus has joined #openttd
12:33:38 <DorpsGek_III> [OpenTTD/OpenTTD] glx22 commented on issue #7838: random crash https://git.io/JeKL5
13:31:44 <peter1138> Is it lunch now?
13:31:52 <peter1138> andy isn't about
13:50:56 <DorpsGek_III> [OpenTTD/OpenTTD] Eric-01 opened issue #7839: [Suggestion] Addition of cargo icons in the corporate Industries window and all own windows of industries https://git.io/JeKsc
14:25:44 <DorpsGek_III> [OpenTTD/OpenTTD] planetmaker commented on issue #7836: Negativ Integer values for GRF Parameters crashes the game https://git.io/Jeozl
14:29:17 *** Flygon has quit IRC
14:41:55 *** Pikka has joined #openttd
14:48:46 <peter1138> Is it?
14:52:30 <Arveen> table saw : yes
15:02:20 <peter1138> Probably not one for £90 from Aldi though.
15:07:31 <Arveen> probably
15:35:35 *** tycoondemon has quit IRC
15:38:09 *** Pikka has quit IRC
15:44:36 *** Eddi|zuHause2 is now known as Eddi|zuHause
16:20:38 <DorpsGek_III> [OpenTTD/OpenTTD] planetmaker approved pull request #7837: fix typo in town growth rates https://git.io/JeKny
16:20:50 <DorpsGek_III> [OpenTTD/OpenTTD] planetmaker merged pull request #7837: fix typo in town growth rates https://git.io/Jeo6F
16:21:31 <Samu> i wonder if that is indeed a typo
16:21:37 <Samu> or intended
16:38:24 *** tokai has joined #openttd
16:38:24 *** ChanServ sets mode: +v tokai
16:40:36 <DorpsGek_III> [OpenTTD/OpenTTD] Eddi-z commented on issue #7836: Negativ Integer values for GRF Parameters crashes the game https://git.io/Jeozl
16:45:13 *** tokai|noir has quit IRC
16:56:28 <Samu> planetmaker, it's not a typo https://github.com/OpenTTD/OpenTTD/blame/ccaaa7d33ac92f91ebddcf4d1f6537639a38a13c/src/town_cmd.cpp#L1698
16:56:41 <Samu> m = 160
16:56:44 <Samu> double of that is 320
17:04:04 *** Wormnest_ has joined #openttd
17:07:23 <DorpsGek_III> [OpenTTD/OpenTTD] glx22 commented on issue #7836: Negativ Integer values for GRF Parameters crashes the game https://git.io/Jeozl
17:09:50 *** supermop_work_ has joined #openttd
17:09:55 <supermop_work_> yo
17:15:37 *** HerzogDeXtEr has joined #openttd
17:15:41 <DorpsGek_III> [OpenTTD/OpenTTD] SamuXarick left a comment on commit: Fix: typo in town growth rates (#7837) https://git.io/JeKC8
17:16:51 *** tokai|noir has joined #openttd
17:16:51 *** ChanServ sets mode: +v tokai|noir
17:23:39 *** tokai has quit IRC
17:28:37 <DorpsGek_III> [OpenTTD/OpenTTD] Eddi-z commented on issue #7836: Negativ Integer values for GRF Parameters crashes the game https://git.io/Jeozl
17:52:06 <FLHerne> Why does nml force `write_tables = 0` when setting up the parser?
17:52:39 <FLHerne> I suppose it might be a problem for system installs, but release builds could ship with a prebuilt parsetab.py
17:53:45 <FLHerne> Building the parse table each time costs about 2s, which for small grfs is a majority of the total runtime
17:55:51 <FLHerne> That's a rounding error for FIRS, but most grfs aren't that
18:14:48 *** tokai has joined #openttd
18:14:48 *** ChanServ sets mode: +v tokai
18:21:39 *** tokai|noir has quit IRC
18:32:58 <Eddi|zuHause> FLHerne: don't tell that to andy, he'll crazily obsess over those 2 seconds :)
18:33:29 <DorpsGek_III> [OpenTTD/OpenTTD] glx22 opened pull request #7840: Fix #7836: check coherency of newgrf parameter min/max https://git.io/JeKlG
18:34:10 *** glx has joined #openttd
18:34:10 *** ChanServ sets mode: +v glx
18:34:16 <LordAro> i think Samu might be right regarding #7837
18:34:29 <LordAro> https://github.com/OpenTTD/OpenTTD/commit/7e22f243ed3b324df3da9dba5594c14b4e6794a0
18:35:14 <LordAro> the question is whether "320" (or 160) was correct in the first place
18:35:40 <FLHerne> The faster option for FIRS would be to just generate the NML ast directly rather than writing it all out :P
18:38:05 *** gelignite has joined #openttd
18:38:08 <LordAro> Samu: the question is *why* the n == 0 value growth rate was lower than n == 1
18:39:40 <LordAro> yeah, Samu is right
18:40:04 <LordAro> town with 0 active stations should have lower growth rate than 1 active stations, imo
18:40:19 <LordAro> (without funding new buildings)
18:40:37 <glx> makes sense
18:41:36 <LordAro> it should definitely have had a big comment explaining that though
18:44:23 <LordAro> though i'm not sure why the values for funding buildings are so much lower
18:44:34 <LordAro> is it called more often or something?
18:52:40 *** Progman has joined #openttd
18:57:37 <glx> originally it was 60 for funding, ignoring station count
19:02:37 *** supermop_work_ has quit IRC
19:21:58 <DorpsGek_III> [OpenTTD/nml] ConiKost commented on pull request #59: Simplify pillow imports and version detection https://git.io/JeK8B
19:36:08 *** andythenorth has joined #openttd
19:38:03 *** Wolf01 has joined #openttd
19:38:26 <andythenorth> FLHerne: I did wonder about dropping the NML for FIRS and teaching to write bytecode :P
19:38:31 <andythenorth> how hard can it be? o_O
19:44:17 <NGC3982> every time jeremy clarkson said those exact words at least one engine exploded
19:55:04 <andythenorth> supermop_Home: yo
19:56:46 *** supermop_work_ has joined #openttd
19:58:24 <Samu> @calc 320 * 12
19:58:24 <DorpsGek> Samu: 3840
19:59:43 <Samu> 420 means town need more time to grow
20:00:53 <andythenorth> supermop_work yo
20:02:35 <supermop_work_> Samu: that's not what 420 means here
20:07:09 <andythenorth> supermop_work: the MU thing, it's about not showing cabs in mail cars in a pax consist?
20:08:53 <supermop_work_> yeah - in case you want to cheat with one mail MU in a rake of pax ones
20:09:10 <andythenorth> agree, it's non trivial to implement
20:09:27 <andythenorth> there's no appropriate variable to check for other specific IDs in the consist
20:09:41 <andythenorth> and there are cases where the cabs are wanted
20:09:51 <andythenorth> TL;DR unlikely to change it :D
20:10:04 <andythenorth> we need controllable livery variations :P
20:10:06 <supermop_work_> ok
20:10:38 <supermop_work_> i do like cabs showing up for 3-4 car unit breaks in rake
20:11:37 <andythenorth> I haven't given up hope that we might find a way to choose appearance of a vehicle directly :P
20:12:05 <andythenorth> also
20:12:07 * andythenorth must to go
20:12:09 *** andythenorth has quit IRC
20:31:08 <Samu> what does 420 mean
20:34:20 <Samu> town grows every 200 days with 420
20:35:43 <Samu> town grows every 152 days with 320
20:36:07 <Samu> just tested
20:36:57 <Samu> in reality, every 200 days, town has a 1/12 chance to grow
20:37:21 <Samu> because 0 stations
20:37:44 <LordAro> 'm' (420) is modified quite significantly before the function returns
20:38:05 <LordAro> look up how the town's growth_rate member is used
20:47:56 <Samu> every 50 houses, t->growth_rate becomes smaller
20:51:20 <Samu> this 50 could be a more interesting variable instead
20:55:05 <Samu> something exponential
21:00:58 <DorpsGek_III> [OpenTTD/OpenTTD] timmeh87 commented on issue #7838: random crash https://git.io/JeKL5
21:04:21 *** andythenorth has joined #openttd
21:05:26 <Samu> testing dumb stuff
21:05:28 <Samu> return TownTicksToGameTicks(m / (t->cache.num_houses / (50 * min(1, t->cache.num_houses / 50)) + 1));
21:08:10 <Samu> ops
21:10:51 <Samu> i think iwant max, not min
21:23:55 <LordAro> Samu: towns with less than 50 houses do indeed result in 0, but that's what the +1 is for
21:30:18 *** Darkvater has joined #openttd
21:30:46 <andythenorth> @seen frosch123
21:30:46 <DorpsGek> andythenorth: frosch123 was last seen in #openttd 21 hours, 36 minutes, and 17 seconds ago: <frosch123> probably russian hackers
21:33:34 <Samu> return TownTicksToGameTicks(m / (t->cache.num_houses / (50 * max((uint)1, (t->cache.num_houses / 50))) + 1));
21:33:40 <Samu> this is what I'm trying
21:34:07 <Samu> every 50 houses, the growth needs 50 more houses
21:34:36 <Samu> 50, then +100
21:34:45 <Samu> 150, then +150
21:34:54 *** gelignite has quit IRC
21:34:56 <Samu> 300, then +200
21:35:02 <Samu> 500, then +250
21:35:10 <Samu> I think this is what it does
21:35:47 <Samu> goal is to make big towns not grow too fast
21:37:10 <andythenorth> supermop_work: I need to draw 1 (or maybe 2, but probably 1) pointless small steam engine
21:37:14 <andythenorth> what should it be?
21:37:20 <andythenorth> Toby tram?
21:38:03 <supermop_work_> id just say a saddle tank
21:39:41 <andythenorth> ?? https://bristolharbourrailway.co.uk/locomotives-and-rolling-stock/portbury/
21:41:38 <Samu> nop, my math sucks
21:43:22 <andythenorth> engine is called grub
21:53:20 <supermop_work_> i was thinking even one of the stubbier yard type ones
21:56:36 <andythenorth> got a picture?
21:56:46 <andythenorth> needs to be 1860 appropriate :P
21:56:52 <andythenorth> but realism is not top priority
22:16:54 *** Wormnest_ has quit IRC
22:22:43 <DorpsGek_III> [OpenTTD/OpenTTD] LordAro commented on pull request #7840: Fix #7836: check coherency of newgrf parameter min/max https://git.io/JeK0o
22:22:45 *** Wormnest_ has joined #openttd
22:38:20 *** Darkvater is now known as DarkSSH
22:38:45 *** DarkSSH is now known as Darkvater
22:39:32 <DorpsGek_III> [OpenTTD/OpenTTD] glx22 commented on issue #7838: random crash https://git.io/JeKL5
22:40:26 *** Darkvater has quit IRC
22:43:42 *** Darkvater has joined #openttd
22:45:17 *** Darkvater has joined #openttd
22:45:47 *** Darkvater has joined #openttd
22:45:47 *** ChanServ sets mode: +o Darkvater
22:51:59 *** arikover has joined #openttd
22:57:06 <Samu> I need a math expert for this https://paste.openttdcoop.org/pmsrcgscu
22:57:24 <Samu> is there a formula that I can do to achieve the same results
23:01:59 <glx> uint x = t->cache.num_houses / 50 - t->cache.num_house / 100; should remove some lines
23:09:32 *** andythenorth has quit IRC
23:25:02 *** Wolf01 has quit IRC
23:34:29 <Samu> nah, doesn't quite work for 350+
23:42:25 <Samu> num_houses is a uint32
23:57:34 <Samu> well maximum value of m is 420
23:57:42 <Samu> @calc 420 * 50
23:57:42 <DorpsGek> Samu: 21000