IRC logs for #openttd on OFTC at 2024-09-15
            
00:05:25 <DorpsGek> [OpenTTD/OpenTTD] PikkaBird commented on discussion #12939: Level crossing extensions in NewGRF https://github.com/OpenTTD/OpenTTD/discussions/12939
00:43:35 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
01:27:36 *** Wormnest has joined #openttd
02:00:06 *** Wormnest has quit IRC (Quit: Leaving)
02:18:51 *** Tirili has quit IRC (Quit: Leaving)
02:24:00 *** gnu_jj_ has joined #openttd
02:27:09 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
02:40:37 *** D-HUND has joined #openttd
02:43:58 *** debdog has quit IRC (Ping timeout: 480 seconds)
03:15:59 *** D-HUND is now known as debdog
03:54:15 *** keikoz has joined #openttd
04:29:08 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #12718: Codechange: Replace FILE * with FileHandle class. https://github.com/OpenTTD/OpenTTD/pull/12718#pullrequestreview-2305282620
04:31:53 *** Flygon has quit IRC (Read error: Connection reset by peer)
04:44:34 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/3784a3d3d645986c61d358d5c7bdf995fa7a6702
04:44:35 <DorpsGek> - Update: Translations from eints (by translators)
04:45:48 *** HerzogDeXtEr has joined #openttd
06:55:00 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #12718: Codechange: Replace FILE * with FileHandle class. https://github.com/OpenTTD/OpenTTD/pull/12718
07:00:00 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #12938: Add: Overlay cargo icon in vehicle/depot list when holding shift+ctrl. https://github.com/OpenTTD/OpenTTD/pull/12938
07:01:30 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #12938: Add: Overlay cargo icon in vehicle/depot list when holding shift+ctrl. https://github.com/OpenTTD/OpenTTD/pull/12938#issuecomment-2351420256
07:06:13 *** Wolf01 has joined #openttd
07:12:20 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #12938: Add: Overlay cargo icon in vehicle/depot list when holding shift+ctrl. https://github.com/OpenTTD/OpenTTD/pull/12938#issuecomment-2351424367
07:16:47 <kuhnovic> Afdal: Glad to hear you like it. Here's a blog post on how it works https://www.openttd.org/news/2024/02/24/new-ship-pathfinder . It's much less computationally expensive compared to the old PF.
07:18:01 <DorpsGek> [OpenTTD/grfcodec] PeterN opened pull request #42: Change: Allow encoding 32bpp-only sprites. https://github.com/OpenTTD/grfcodec/pull/42
07:18:49 <peter1138> Do we still have those edge-cases that only affect Samu?
07:19:02 <_pruple> almost certainly
07:20:43 <peter1138> What do you mean it doesn't make 70,000 ships usable?
07:40:45 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #12938: Add: Overlay cargo icon in vehicle/depot list when holding shift+ctrl. https://github.com/OpenTTD/OpenTTD/pull/12938#issuecomment-2351439473
07:58:57 *** Artea has quit IRC (Remote host closed the connection)
08:00:43 *** gelignite has joined #openttd
08:02:39 *** nielsm has joined #openttd
08:05:35 *** Artea has joined #openttd
08:41:44 <truebrain> Hmm .. I am looking into dibridge, and I wonder if Discord channel #openttd still works?
08:41:57 <truebrain> it does ... but it fails when I try that locally πŸ™‚
08:41:58 <truebrain> nice!
08:46:59 <peter1138> Hmm, I think I need to squash badges and re-split it.
09:00:17 <peter1138> "Even a first year programmer" good luck with that.
09:01:00 <andythenorth> am I one of those?
09:01:10 <andythenorth> I have been a first year programmer for 39 years
09:03:54 <peter1138> I'm zero-year in terms of academic studying...
09:04:55 <peter1138> But we only needed to start with a bit of BBC Basic back in my day.
09:05:46 <peter1138> Hmm, no appetite for default cargo translation tables?
09:07:01 <andythenorth> wait we what now?
09:07:10 <andythenorth> wasn't that to stop FIRS breaking things?
09:07:27 <peter1138> Yeah.
09:09:09 <peter1138> But not just FIRS. Anything that replaces default cargo types.
09:09:26 <andythenorth> _whistles_ mostly FIRS then πŸ˜›
09:09:36 <andythenorth> I'll get my coat
09:09:43 <peter1138> It's just that changing passengers or mail is immediately noticable.
09:45:52 <DorpsGek> [OpenTTD/OpenTTD] michicc commented on pull request #12646: Change: Use default NewGRF cargo translation table. https://github.com/OpenTTD/OpenTTD/pull/12646#issuecomment-2351503170
09:45:57 <michi_cc[d]> Sorry. YOLO approve anyway?
10:50:38 <aviationgamerx> https://cdn.discordapp.com/attachments/1008473233844097104/1284828721659904082/image.png?ex=66e80d7e&is=66e6bbfe&hm=490a2e82bfb677ad9cd9b2fd55497ec38303d92e8aea292e1c67cfc3c4c01d6c&
10:50:38 <aviationgamerx> what do these variables stand for in the .ini files
10:51:44 <peter1138> _cb = callback.
10:52:10 <peter1138> So it's a function that does extra stuff just for that setting.
10:58:36 <aviationgamerx> peter1138: so pre post and def don't have specific meaning, just their order?
11:04:27 <aviationgamerx> I don't quite understand how the ini files work, or what suntax or language they are following
11:05:31 <peter1138> They're a bit magic and completely non-standard. Almost ini files but actually parsed and converted to C++ during build.
11:06:38 <peter1138> pre_cb is the PreChangeCheck. It allows the variable to be validated before it is actually changed, if some variable requires more than the normal validation.
11:07:22 <peter1138> post_cb is the PostChangeCallback, called to execute something after the setting is actually changed. Commonly used to do things like force the screen to be redrawn.
11:08:05 <peter1138> def_cb is used to provide a non-fixed default value, e.g. the default might depend on another setting's value.
11:10:14 <peter1138> On build the ini files are parsed by settingsgen and converted into (almost unreadable) C++ code
11:17:09 *** ufo-piloot has quit IRC (Ping timeout: 480 seconds)
11:23:35 *** ufo-piloot has joined #openttd
11:25:49 *** SigHunter has quit IRC ()
11:28:51 *** SigHunter has joined #openttd
12:34:14 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #12938: Add: Overlay cargo icon in vehicle/depot list when holding shift+ctrl. https://github.com/OpenTTD/OpenTTD/pull/12938#issuecomment-2351573279
12:34:48 <aviationgamerx> Thanks a lot
12:34:49 <aviationgamerx> and the flags, is there a set of known flags and their purpose?
12:36:04 <talltyler> Also, pre_cb allows you to prevent the setting from being changed depending on the result of the callback function. I am not at a computer to recall exactly how, but I think you just return a Boolean…
12:50:52 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #12938: Add: Overlay cargo icon in vehicle/depot list when holding shift+ctrl. https://github.com/OpenTTD/OpenTTD/pull/12938
13:07:56 <peter1138> Hmm, articulated magic...
13:08:06 *** Flygon has joined #openttd
13:10:05 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1284863814197841920/image.png?ex=66e82e2c&is=66e6dcac&hm=4b682cb0277dd351d25ebff6db89c4613ebf96a14b1adcce40dc3b9cb5f5161e&
13:10:05 <peter1138> Bugger
13:13:37 <peter1138> I guess the y_offset shouldn't be included πŸ˜„
13:14:02 <talltyler> A good way to stop people doing silly things πŸ˜›
13:17:56 <peter1138> I guess it's transparent 1st part, sprite in 2nd part, transparent 3rd part.
13:18:07 <peter1138> Overlay is drawn on the 1st part.
13:18:33 <peter1138> Well it changes a bit.
13:24:31 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #12938: Add: Overlay cargo icon in vehicle/depot list when holding shift+ctrl. https://github.com/OpenTTD/OpenTTD/pull/12938#pullrequestreview-2305360383
13:27:24 <dropboxkenshiro> does OpenTTD have any roadmap of features planned for the next major version?
13:28:10 <talltyler> Right-clicking on vehicles in the depot is the hidden feature I always forget about πŸ™‚
13:28:12 <peter1138> Ah, offsets are wrong for shorter parts anyway. Hmm.
13:28:37 <peter1138> Ctrl-clicking on vehicles in the group vehicles list is a feature I didn't know about either.
13:29:01 <talltyler> dropboxkenshiro: Nope, you can look at open PRs and those merged since the last release, but we have no development plans. Just whatever people want to add. πŸ˜„
13:30:39 <dropboxkenshiro> talltyler: I kinda like this philosophy, especially since it's a silly train game and not enterprise-grade software πŸ˜„
13:35:53 <_jgr_> dropboxkenshiro: Nevertheless, quality control in OpenTTD is seemingly a lot better than some "enterprise-grade" software I've dealt with πŸ˜›
13:42:29 <peter1138> Hmm, let's try Iron Horse
13:43:18 <peter1138> Cool. offsets eh?
13:44:29 <peter1138> If only shorter parts had been specified properly from the start, but I guess it's just "well it works in ttdpatch".
13:48:09 <andythenorth> I have failed to lunch
13:48:21 <peter1138> Okay, using width / 2 instead of offset.x works better. But short triple part wagons are... noisy.
13:49:14 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1284873667431370812/image.png?ex=66e8375a&is=66e6e5da&hm=086767cded163bd5b3473182fda8bf46aeadfab039a4fac880b9c380aeccd19f&
13:49:14 <peter1138> Overlapping πŸ˜„
13:50:18 <peter1138> Needs some more complicated logic :/
13:52:39 <peter1138> Some way to distinguish between articulated parts used for N * <= 8/8 parts, and those used for 1 * > 8/8 parts.
13:53:04 <peter1138> Or even, I suppose N * > 8/8 parts...
13:55:27 <andythenorth> is manchego lunch?
13:57:19 <talltyler> New feature request: make a setting for persistent icons and draw them in the game world so I can avoid drawing vehicle cargo sprites and use the GUI ones instead πŸ˜› πŸ˜›
13:59:00 <talltyler> I suppose you could check articulated vehicles for how many cargo types they carry. If more than one, draw icons as usual. If only one, draw a single icon centered on the total length of the articulated vehicle.
14:02:06 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1284876906537160725/image.png?ex=66e83a5e&is=66e6e8de&hm=c05b088418816521093ad12f74ba6447f30009a9137056ea808099775706b8c3&
14:02:06 <peter1138> That's the idea... almost :p
14:03:35 <talltyler> Heheh
14:03:50 <peter1138> It's because I'm an idiot.
14:05:07 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1284877665026969696/image.png?ex=66e83b13&is=66e6e993&hm=4c93a6439b1d7d4fe06c43bb5d400bd1208a96e459bf5c32d19483d73b63ff0b&
14:05:07 <peter1138> Because `left + right / 2` is not the same as `(left + right) / 2`
14:05:54 <peter1138> Hmm, anyone got an example of a mixed-cargo articulated wagon?
14:12:48 <peter1138> talltyler: viewport cargo icons? πŸ˜„
14:13:35 <peter1138> I would consider adding a sprite-outline-composer for that, so that only one sprite is drawn instead of five...
14:17:19 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1284880735072817245/image.png?ex=66e83def&is=66e6ec6f&hm=d3953ccf20d3537c6852bee769af4ef4e512ebd308974e02b541b21f997eac61&
14:17:19 <peter1138> This is the case where it's not so good.
14:18:09 <peter1138> I think there are some sets that use articulated parts for fixed consists too
14:20:04 <talltyler> peter1138: Horse has one: https://grf.farm/iron-horse/3.28.0/html/auto_coach_pony_gen_2.html
14:20:09 <talltyler> I think the pacer is the same
14:20:17 <peter1138> China set is weird, it basically starts in 2000...
14:22:17 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1284881983624970312/image.png?ex=66e83f18&is=66e6ed98&hm=b528bb9b895da8dcf0de513b83ad680779b3ed2009bb944c50e3d838dd31649a&
14:22:24 <peter1138> Works fine
14:22:43 <peter1138> Basically as if it was not articulated.
14:24:42 <talltyler> Yeah, I suspect multi-cargo articulated vehicles are likely to do what you expect
14:30:11 <peter1138> Oh, RUKTS seems okay... I guess that's obsolete or something...
14:30:32 <peter1138> (I'm joking, it's got variants)
14:45:12 <peter1138> Oh it has running sounds.
15:04:31 *** smeilz has joined #openttd
15:04:31 <smeilz> HI, where can i read about AI improvement for OpenTTD?
15:09:36 <_pruple> https://wiki.openttd.org/en/Development/Script/
15:13:43 <smeilz> _pruple: Only on C? Can i use python lang?
15:14:30 <LordAro> dunno where you got C from
15:14:31 <LordAro> but no
15:15:16 <LordAro> unless you also want to write a python -> squirrel converter, of course
15:15:32 <_pruple> sounds messy
15:15:37 <LordAro> it does
15:17:31 <smeilz> LordAro: i see. This on Squirrel
15:18:17 <smeilz> LordAro: I think AI can do it now
15:18:27 <LordAro> uhuh.
15:22:13 <peter1138> Heh, are you talking about developing AIs to run in the game, or using AI to "improve" the code?
15:22:33 <peter1138> Sorry, using "AI"
15:42:20 <smeilz> peter1138: it different things πŸ™‚ AI for play in game or AI just for rewrite for python --> squirrel .
16:17:32 <peter1138> Hmm, now, articulated road vehicles...
16:52:48 <peter1138> `std::vector<std::tuple<int, int, CargoID, int>> overlays;`
16:52:56 <peter1138> Okay, probably too much for a tuple now πŸ˜„
17:49:56 *** bryjen has joined #openttd
18:10:03 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #12938: Add: Overlay cargo icon in vehicle/depot list when holding shift+ctrl. https://github.com/OpenTTD/OpenTTD/pull/12938
18:10:08 <peter1138> Meh, somewhat bigger now.
18:12:27 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #12938: Add: Overlay cargo icon in vehicle/depot list when holding shift+ctrl. https://github.com/OpenTTD/OpenTTD/pull/12938
18:13:40 <DorpsGek> [OpenTTD/grfcodec] rubidium42 approved pull request #42: Change: Allow encoding 32bpp-only sprites. https://github.com/OpenTTD/grfcodec/pull/42#pullrequestreview-2305500278
18:26:40 <DorpsGek> [OpenTTD/nml] PeterN approved pull request #335: Add: Support for station properties 0E and 0F https://github.com/OpenTTD/nml/pull/335#pullrequestreview-2305529811
18:27:27 <DorpsGek> [OpenTTD/nml] PeterN merged pull request #339: Change: Support for 8 bit station tile types. https://github.com/OpenTTD/nml/pull/339
19:05:55 <andythenorth> well
19:06:08 <andythenorth> I'm not sure Horse needs to generate 13,096 vehicle images just for the docs
19:06:20 <andythenorth> that's a side effect of variants πŸ˜›
19:07:04 <andythenorth> this is also why my grf.farm docs repo has 522,095 files tracked by git πŸ˜›
19:07:22 <andythenorth> which is perfoming about as well as expected for `git st` etc
19:23:10 <peter1138> Oof
19:23:31 *** bryjen has quit IRC (Quit: Leaving)
19:28:07 <wensimehrp> peter1138: It is pretty much incomplete. Moreover, the authors don't want to include too many locos and wagons that expires before Oct. 1, 1949...
19:39:18 <DorpsGek> [OpenTTD/nml] glx22 merged pull request #335: Add: Support for station properties 0E and 0F https://github.com/OpenTTD/nml/pull/335
19:50:54 <peter1138> Such revisionism
19:58:11 *** gelignite has quit IRC (Quit: Stay safe!)
20:02:35 <andythenorth> Horse takes 46s to compile now 😦
20:02:45 <andythenorth> could it be the addition of lots of wagons? πŸ˜›
20:03:29 <peter1138> It's the addition of lots of lots.
20:04:44 <andythenorth> the html for the engines takes 12s
20:04:47 <andythenorth> bit slow eh
20:07:09 <peter1138> I remember watching a video a few months ago (probably more) about some game engine that was able to recompile and reload things on the fly in sub-seconds...
20:08:06 <andythenorth> was it GPT?
20:45:07 <andythenorth> is it naptime?
20:57:20 <peter1138> Badgetime?
21:01:40 <andythenorth> is there a hammer badge?
21:08:49 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
21:19:59 <peter1138> Probably too close to a sickle for comfort.
21:23:48 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:31:37 <peter1138> Another attempt on Trump? Oh dear...
21:41:37 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:06:49 <Afdal> is there a way to change your game script in the middle of game...
22:07:29 <Afdal> debug build lets me swap out newgrfs but I don't see anything like that for game scripts
22:09:40 *** Afdal has quit IRC (Quit: Leaving)
22:11:38 *** nielsm has quit IRC (Ping timeout: 480 seconds)
22:26:02 *** Afdal has joined #openttd
22:40:01 <peter1138> RIP
22:43:55 <_pruple> isn't it
23:09:59 <_pruple> not feeling the reversible-articulated-vehicle love peter1138?
23:17:06 *** tokai has joined #openttd
23:17:06 *** ChanServ sets mode: +v tokai
23:19:54 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)