IRC logs for #openttd on OFTC at 2025-09-05
            
00:30:35 <DorpsGek> [OpenTTD/OpenTTD] James103 opened issue #14588: [Bug]: No error detail text when trying to clone a crashed train in the process of being cleaned up https://github.com/OpenTTD/OpenTTD/issues/14588
01:24:40 *** m3henry has quit IRC (Quit: m3henry)
01:57:09 *** Wormnest has quit IRC (Quit: Leaving)
03:06:28 *** Zathras has joined #openttd
03:09:50 *** Zathras_11 has quit IRC (Ping timeout: 480 seconds)
04:07:48 *** Flygon has joined #openttd
04:08:19 *** keikoz has joined #openttd
04:23:31 <DorpsGek> [OpenTTD/OpenTTD] Baricus commented on discussion #14576: Adding a "screensaver" console command/feature https://github.com/OpenTTD/OpenTTD/discussions/14576
04:25:26 <DorpsGek> [OpenTTD/OpenTTD] Baricus commented on discussion #14576: Adding a "screensaver" console command/feature https://github.com/OpenTTD/OpenTTD/discussions/14576
04:39:11 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/122023be8d3080ab144f987596fcebe163456ffe
04:39:12 <DorpsGek> - Update: Translations from eints (by translators)
07:42:59 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #14583: Fix #14572: Incorrect playlist entry removed if there are duplicates. https://github.com/OpenTTD/OpenTTD/pull/14583
07:57:00 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #14589: Codechange: Switch to C++23 https://github.com/OpenTTD/OpenTTD/pull/14589
07:57:40 <peter1138> Hmm, I probably should have done that only in my fork. Oh well.
08:02:28 <LordAro> feels mildly premature tbh
08:02:48 *** reldred has joined #openttd
08:02:48 <reldred> yolo
08:15:37 <peter1138> Linux is happy, might as well merge?
08:17:36 <peter1138> Well, seems to be some valid issues anyway.
08:21:35 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #14589: Codechange: Switch to C++23 https://github.com/OpenTTD/OpenTTD/pull/14589
08:26:33 <peter1138> Those two should not be allowed anyway :o
08:30:18 <LordAro> :o
08:39:53 <LordAro> https://godbolt.org/z/nrT178W5T am i missing something obvious with this? i'd expect the compiler to optimise them to the same thing
09:05:47 *** locosage has joined #openttd
09:05:47 <locosage> aren't they essentially the same?
09:06:12 <locosage> code is a bit bloated in the second one but it still does the same operations afaict
09:31:56 <LordAro> essentially the same isn't what i'm asking :p
10:04:05 *** Zathras has quit IRC (Quit: Initiating getting-the-hell-out-of-here maneuver!)
10:12:57 <peter1138> It produces the same code with Clang.
10:27:55 *** lobster has quit IRC (Read error: Connection reset by peer)
11:51:20 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #14590: Codefix: Use of nullptr instead of std::nullopt. https://github.com/OpenTTD/OpenTTD/pull/14590
12:11:07 <DorpsGek> [OpenTTD/OpenTTD] LordAro approved pull request #14590: Codefix: Use of nullptr instead of std::nullopt. https://github.com/OpenTTD/OpenTTD/pull/14590#pullrequestreview-3189123228
12:23:43 *** dh1 has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
13:05:07 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #14590: Codefix: Use of nullptr instead of std::nullopt. https://github.com/OpenTTD/OpenTTD/pull/14590
13:11:47 *** Flygon has quit IRC (Read error: Connection reset by peer)
13:51:24 *** toktik has quit IRC (Remote host closed the connection)
13:52:05 *** toktik has joined #openttd
14:00:59 <peter1138> Ah the old "but we talked about this in Teams" -> "why isn't it fixed yet" timeline.
14:11:31 <_glx_> no reported in the right place, not fixed
15:25:28 <DorpsGek> [OpenTTD/OpenTTD] glx22 closed pull request #14574: Fix #14573, a38bbefe: [Script] Some ScriptVehicle functions need specific error messages https://github.com/OpenTTD/OpenTTD/pull/14574
15:25:31 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on pull request #14574: Fix #14573, a38bbefe: [Script] Some ScriptVehicle functions need specific error messages https://github.com/OpenTTD/OpenTTD/pull/14574#issuecomment-3258776020
15:28:33 <peter1138> LordAro, a few pints tonight should set me up for tomorrows long ride, yeah?
15:34:01 <LordAro> peter1138: yes
15:34:23 * LordAro is getting on a train instead of having a few pints
15:37:21 *** toktik has quit IRC (Remote host closed the connection)
15:37:53 *** toktik has joined #openttd
15:38:47 *** Wormnest has joined #openttd
16:38:37 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler opened pull request #14591: Fix #14588: Show error when unable to clone partly-cleared crashed train https://github.com/OpenTTD/OpenTTD/pull/14591
16:49:17 *** emperorjake has joined #openttd
16:49:17 <emperorjake> I swear I used to be able to clone partly-cleaned-up crashed trains, has something changed?
16:55:19 <emperorjake> Nvm, I might be misremembering
17:45:23 <talltyler> Crashed before cleanup can be cloned
17:54:10 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #14589: Codechange: Switch to C++23 https://github.com/OpenTTD/OpenTTD/pull/14589
18:05:32 *** Flygon has joined #openttd
18:15:33 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #14592: Codechange: Give better names to water tile layouts. https://github.com/OpenTTD/OpenTTD/pull/14592
18:21:57 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #14592: Codechange: Give better names to water tile layouts. https://github.com/OpenTTD/OpenTTD/pull/14592#pullrequestreview-3190385298
18:41:26 <DorpsGek> [OpenTTD/OpenTTD] Rito13 opened issue #14593: [Bug]: Trains do not collide with themselves https://github.com/OpenTTD/OpenTTD/issues/14593
18:44:14 <LordAro> i think that's a duplicate of a very old issue
18:44:55 <rito12_51026> Sorry, I couldn't find one
18:50:09 <rito12_51026> LordAro: that one? https://github.com/OpenTTD/OpenTTD/issues/5360
18:51:38 *** _jgr_ has joined #openttd
18:51:38 <_jgr_> Trains not crashing with other parts of themselves is as per the original game
18:52:13 <_jgr_> In practice typical old-style layouts would be complete death traps if trains could crash with themselves
18:59:06 <talltyler> Yeah, that’s not a bug. The pathfinder doesn’t let the train do silly things but if you manage to make it do silly things, it doesn’t crash, because that’s original behavior.
19:39:04 *** Wolf01 has joined #openttd
19:39:05 <peter1138> Is it still on?
19:42:51 <andythenorth> I had curry
19:59:59 <kuhnovic> I tried to look at issue 9817, but my god that YAPF and PBS reservation stuff is complicated...
20:01:00 <peter1138> Eh.
20:02:17 <kuhnovic> "How hard can it be"
20:02:49 <peter1138> I just assumed the problem is that we ask the pathfinder for a path, but it follows the reserved path first, or something like that.
20:03:59 *** dh1 has joined #openttd
20:06:48 <kuhnovic> That is indeed the issue. And the reservation is not set up to temporarily extract / shelve / restore a reservation.
20:14:04 <peter1138> Yes, memory is cheap, it should be relatively painless to either ignore the path, or make a backup of it and erase/restore it.
20:15:14 <peter1138> Probably better to backup/restore to give the pathfinder a clean slate, and avoid more special-casing in it.
20:16:17 <peter1138> (Might only need to handle junction tiles, so even less.)
20:18:05 <kuhnovic> I hacked something together where the existing reservation is always cleared prior to searching for a depot. That does lead to the desired behavior. But that's not really backing up / restoring, that's the difficult part.
20:18:35 <peter1138> Following an existing reservation shouldn't be hard.
20:18:39 <peter1138> There's no choices to make.
20:21:18 <kuhnovic> True, but there's quite some special casing to deal with stations, bridges and to avoid loops. I don't really see how loops could arise but that code is probably there for a reason.
20:35:38 <peter1138> Pretend you're a train, follow it the only way possible and record/clear as you go.
20:36:22 <peter1138> Or make a copy of the map to work on ;)
20:37:50 <kuhnovic> I'll go for the last one, memory is cheap right 😉
21:05:17 *** tokai has joined #openttd
21:05:17 *** ChanServ sets mode: +v tokai
21:10:16 <_glx_> most likely it's only a track segment between train and next signal
21:12:11 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
21:34:20 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:40:23 *** Flygon has quit IRC (Remote host closed the connection)
21:45:33 *** lobster has joined #openttd
22:00:51 *** toktik has quit IRC (Remote host closed the connection)
22:01:26 *** toktik has joined #openttd
22:24:25 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:50:48 *** keikoz has joined #openttd
23:37:20 *** Wormnest has quit IRC (Quit: Leaving)