IRC logs for #openttd on OFTC at 2019-11-18
⏴ go to previous day
00:15:21 *** andythenorth has left #openttd
00:37:07 *** Jyggalag has joined #openttd
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:13:28 *** Thedarkb-X40 has joined #openttd
02:37:30 *** Wormnest_ has joined #openttd
03:34:14 *** Wormnest_ has joined #openttd
03:51:34 *** gelignite2nd has joined #openttd
05:12:13 *** Eddi|zuHause2 has joined #openttd
09:45:26 *** D-HUND is now known as debdog
10:31:35 <peter1138> Already had mine, probably too early thinking about it. I'll struggle getting to lunch.
11:37:19 <peter1138> Do I need a table saw?
12:15:41 *** smoke_fumus has joined #openttd
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
15:02:20 <peter1138> Probably not one for £90 from Aldi though.
15:44:36 *** Eddi|zuHause2 is now known as Eddi|zuHause
16:21:31 <Samu> i wonder if that is indeed a typo
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
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:15:37 *** HerzogDeXtEr has joined #openttd
17:16:51 *** tokai|noir has joined #openttd
17:16:51 *** ChanServ sets mode: +v tokai|noir
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 *** ChanServ sets mode: +v tokai
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:16 <LordAro> i think Samu might be right regarding #7837
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: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: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: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: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: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:34:20 <Samu> town grows every 200 days with 420
20:35:43 <Samu> town grows every 152 days with 320
20:36:57 <Samu> in reality, every 200 days, town has a 1/12 chance to grow
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
21:04:21 *** andythenorth has joined #openttd
21:05:28 <Samu> return TownTicksToGameTicks(m / (t->cache.num_houses / (50 * min(1, t->cache.num_houses / 50)) + 1));
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 <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:34:07 <Samu> every 50 houses, the growth needs 50 more houses
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:38:03 <supermop_work_> id just say a saddle tank
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:46 <andythenorth> needs to be 1860 appropriate :P
21:56:52 <andythenorth> but realism is not top priority
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: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: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:34:29 <Samu> nah, doesn't quite work for 350+
23:57:34 <Samu> well maximum value of m is 420
continue to next day ⏵