IRC logs for #openttd on OFTC at 2025-05-19
            
01:39:49 *** tokai|noir has joined #openttd
01:39:49 *** ChanServ sets mode: +v tokai|noir
01:46:45 *** tokai has quit IRC (Ping timeout: 480 seconds)
02:14:54 *** Wormnest has quit IRC (Quit: Leaving)
02:40:30 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
02:40:33 *** WormnestAndroid has joined #openttd
02:40:35 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
02:40:36 *** WormnestAndroid has joined #openttd
02:40:48 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
02:40:49 *** WormnestAndroid has joined #openttd
02:44:49 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #14280: Codechange: Use EnumBitSet for VehicleRailFlags. https://github.com/OpenTTD/OpenTTD/pull/14280#pullrequestreview-2849256420
02:50:32 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #14279: Codechange: Make ContentType::State an enum class. https://github.com/OpenTTD/OpenTTD/pull/14279#pullrequestreview-2849258451
02:57:17 *** gnu_jj has joined #openttd
03:00:35 *** gnu_jj_ has quit IRC (Ping timeout: 480 seconds)
04:07:49 *** keikoz has joined #openttd
05:53:19 <DorpsGek> [OpenTTD/OpenTTD] Release workflow was not successful https://github.com/OpenTTD/OpenTTD/actions/runs/15105008277
06:57:48 <andythenorth> moin
07:05:14 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
07:05:43 *** WormnestAndroid has joined #openttd
07:10:47 <pickpacket> andythenorth: moin
07:11:12 <pickpacket> github tells me that nightly workflows for my openttd fork will be disabled soon. I didn't even know I had them
07:18:30 <DorpsGek> [OpenTTD/survey-web] survey-summary[bot] pushed 1 commits to main https://github.com/OpenTTD/survey-web/commit/e05fec817db33925575c18be969f09945afca15d
07:18:31 <DorpsGek> - Add: summary for week 20 of 2025 (by OpenTTD Survey)
07:29:01 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #14279: Codechange: Make ContentType::State an enum class. https://github.com/OpenTTD/OpenTTD/pull/14279
08:16:21 <DorpsGek> [OpenTTD/OpenTTD] felixprigge commented on discussion #12886: Push-pull: What if trains could back up? https://github.com/OpenTTD/OpenTTD/discussions/12886
08:23:57 <xarick> hi
08:50:47 <pickpacket> xarick: o/
08:54:43 *** Flygon has quit IRC (Read error: Connection reset by peer)
09:26:39 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13476: Add: [Script] GetEconomyAge and GetWagonEconomyAge https://github.com/OpenTTD/OpenTTD/pull/13476
09:51:29 <xarick> weird issues with vehicle ids in regression results
09:51:44 <xarick> some effect vehicle probably took an id
09:52:55 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1373961612737904722/image.png?ex=682c50f7&is=682aff77&hm=b34ea454bd9a12dd7de48abe6fd8b761f5cf4fdd61434cfbd49432a9736bfe04&
09:52:55 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1373961613119324171/image.png?ex=682c50f7&is=682aff77&hm=e82647e1c2beafaad56e0ab93df175eb6c6b337133db619f1010198fd1b19637&
09:52:55 <xarick> I did not touch this part
09:53:12 *** michi_cc_ has quit IRC ()
09:53:50 <xarick> but now I have to touch it
09:53:58 <xarick> change those 20's to 21
09:54:29 <xarick> totally unrelated to my tests
09:58:46 *** michi_cc_ has joined #openttd
10:01:59 <peter1138[d]> So timing changes means the ID changes.
10:04:01 <peter1138[d]> Could you place your own changes further down, after this stuff?
10:05:43 <xarick> erm... I mean, I could but...
10:06:33 <xarick> I placed my changes in the appropriate class method tests
10:06:44 <xarick> they're neatly organized
10:10:07 <peter1138[d]> Yeah, so probably not.
10:11:09 <peter1138[d]> Are you able to verify that it's an effect vehicle and not some other change that shouldn't be occuring?
10:11:54 <peter1138[d]> (Probably the easiest way to do that is to modify OpenTTD to temporarily add a message outputting the ID when a new effect vehicle is created)
10:12:45 <xarick> gonna verify what it is
10:13:35 <peter1138[d]> If it is the case, then you can update the unit tests for it, and explain in the PR itself why the unit test changed 🙂
10:14:49 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1373967120538538084/image.png?ex=682c5618&is=682b0498&hm=c82a42b311c7d5cbad405bf18e8aceaa1c3567871148abadf32619d85cd06537&
10:14:49 <xarick> these are the tests I added
10:14:59 <xarick> I didn't buy any vehicle
10:25:56 <peter1138[d]> Doesn't matter, any build command will suspend the script until the next tick. And that will allow effect vehicles to be created by the game.
10:26:24 <peter1138[d]> So it's not an issue with your changes, it's just an artifact of how the game works.
10:27:25 <xarick> i'm getting a vehicle_id 20 being a ship, testing refit capacities
10:27:43 <xarick> this refit part happens before
10:27:56 <xarick> ship is sold at the end of refit tests i guess
10:29:14 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1373970751090331698/image.png?ex=682c597a&is=682b07fa&hm=afe55756208ed60a89acfb62ae4496314a4ed88baa65e2a541a724b78cc9fd2c&
10:29:14 <xarick> yeah, there's a SellVehicle
10:29:22 <_glx_> You added 11 ticks delay
10:29:42 <peter1138[d]> The effect vehicle could be before that 🙂
10:30:52 <_glx_> All tests depending on fixed ID have be updated
10:33:20 <_glx_> xarick: If the built vehicle is now 21, then you need to update the order commands to work with 21
10:33:42 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1373971873616101478/image.png?ex=682c5a85&is=682b0905&hm=9d525ce2588770da53a1b640b08c5d8862fa8b77525fc1d758cf20feeec51138&
10:33:42 <xarick> vehicle 20 is an animation of some kind
10:34:11 <_glx_> Effect vehicle
10:35:49 <peter1138[d]> Yup, now you have successfully confirmed that's what it is, not some other unintended change. So just update the IDs.
10:42:23 <xarick> i wanted to know what animation was it
10:42:26 <xarick> and where 🙂
10:42:31 <xarick> it says tile 0 though
10:43:09 <peter1138[d]> Basically irrelevant.
10:43:21 <peter1138[d]> But they do have x_pos and y_pos set.
10:47:57 <peter1138[d]> Some of these things misuse tile as a target identifier.
10:48:21 <peter1138[d]> Which is funny, because they are still in the vehicle tile hash, but with a tile that isn't really a tile.
10:48:29 <peter1138[d]> "funny"
11:05:12 <xarick> oh gosh, what a joke, now later on, on the next commit, vehicle is 20 again
11:05:28 <xarick> added the next tests
11:06:02 <peter1138[d]> So the effect vehicle is deleted 🙂
11:06:49 <xarick> multiple road waypoints tests per commit, is hard!
11:08:25 <xarick> nearly each commit has a regression test 😦 <https://github.com/OpenTTD/OpenTTD/pull/13398/commits>
11:12:53 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13398: Add: [Script] Multiple road waypoints API functions https://github.com/OpenTTD/OpenTTD/pull/13398
11:15:17 <peter1138[d]> If you re-order the commits, maybe the change is nullified.
11:28:40 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick commented on pull request #13398: Add: [Script] Multiple road waypoints API functions https://github.com/OpenTTD/OpenTTD/pull/13398#issuecomment-2890661371
11:29:35 *** WormnestAndroid has quit IRC (Remote host closed the connection)
11:29:42 *** WormnestAndroid has joined #openttd
11:37:44 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13398: Add: [Script] Multiple road waypoints API functions https://github.com/OpenTTD/OpenTTD/pull/13398#issuecomment-2890686055
12:23:59 <xarick> which station functions are you referring to
12:26:45 <xarick> IsRoadStationTile ?
12:33:06 <xarick> interesting, I wonder what it returns on a drivethrough station (not waypoint)
12:42:39 *** reldred has quit IRC (Quit: User went offline on Discord a while ago)
12:47:08 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1374005453775704144/image.png?ex=682c79cb&is=682b284b&hm=9941b281159e96b4f7aaa327fe89968eeab28de7a5307629ab54aefd72c8132b&
12:47:08 <xarick> too bad 33411 is a normal station 😦
12:48:21 <DorpsGek> [OpenTTD/OpenTTD] glx22 merged pull request #13456: Add: [Script] ScriptVehicleList_Waypoint https://github.com/OpenTTD/OpenTTD/pull/13456
12:54:04 <xarick> ^-^!
12:55:32 <xarick> should I add a test for IsRoadStationTile on a Drivethrough station?
12:55:44 <xarick> as a new PR?
12:57:14 <xarick> it returns true, not sure if I agree with it
12:59:13 <xarick> I made no changes to IsRoadStationTile at all, but then again, it was never tested against a drivethrough in regression before
12:59:52 <xarick> not sure if it warrants a fix...
13:00:26 <peter1138[d]> Are you suggesting that a drive through station is not a road station tile?
13:00:51 <xarick> yes, since there's IsDriveThroughRoadStationTile
13:01:17 <LordAro> what if i told you things can have more than one property?
13:01:35 <peter1138[d]> A drive through road station tile is still a road station tile.
13:02:27 <xarick> I see, might be too late to make changes now
13:02:39 <LordAro> also those changes would be wrong
13:02:46 <peter1138[d]> Bah, this CD won't rip with whipper as it's got a read error near the end. Sometimes it'd be nice to have "a rip" even if it's not a 100% accurate rip, right.
13:10:01 <xarick> I'm creating a PR to add the test, just for the sake of completeness, not going to change behaviour
13:27:10 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick opened pull request #14285: Add: [Script] regression test for IsRoadStationTile on drive through station https://github.com/OpenTTD/OpenTTD/pull/14285
13:28:54 <xarick> probably fine to return true
13:34:37 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #14285: Add: [Script] regression test for IsRoadStationTile on drive through station https://github.com/OpenTTD/OpenTTD/pull/14285#issuecomment-2891060595
13:36:43 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13476: Add: [Script] GetEconomyAge and GetWagonEconomyAge https://github.com/OpenTTD/OpenTTD/pull/13476
13:43:27 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13408: Add: [Script] GetBaseStationID https://github.com/OpenTTD/OpenTTD/pull/13408
13:51:18 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13406: Change: [Script] Move GSStation::GetOwner to GSBaseStation::GetOwner https://github.com/OpenTTD/OpenTTD/pull/13406
13:54:00 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #14279: Codechange: Make ContentType::State an enum class. https://github.com/OpenTTD/OpenTTD/pull/14279#pullrequestreview-2850860069
13:54:22 <xarick> Bribe has a ~93% chance to succeed
13:54:50 <xarick> 93% chance to deny exclusive transport rights of someone else
13:55:32 <xarick> in AI wars, that's kind of cheap
13:56:59 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on discussion #12886: Push-pull: What if trains could back up? https://github.com/OpenTTD/OpenTTD/discussions/12886
14:05:40 <DorpsGek> [OpenTTD/OpenTTD] glx22 approved pull request #13406: Change: [Script] Move GSStation::GetOwner to GSBaseStation::GetOwner https://github.com/OpenTTD/OpenTTD/pull/13406#pullrequestreview-2850898296
14:14:21 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13398: Add: [Script] Multiple road waypoints API functions https://github.com/OpenTTD/OpenTTD/pull/13398
14:16:55 <xarick> meh... frosch closed some stuff
14:17:11 <xarick> about airports
14:19:26 <peter1138[d]> Yes, and reasons were given.
14:20:34 <xarick> not sure I rebase those that are closed
14:20:38 <xarick> guess not
14:21:43 <peter1138[d]> Correct, there is no point in doing so.
14:22:58 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #12249: Add: [Script] Unbunch order flag https://github.com/OpenTTD/OpenTTD/pull/12249
14:24:31 <DorpsGek> [OpenTTD/OpenTTD] Pixel-Tony commented on discussion #12886: Push-pull: What if trains could back up? https://github.com/OpenTTD/OpenTTD/discussions/12886
14:36:02 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #12097: Change: [Script] Improve some ScriptAirport return values for AT_OILRIG airport type https://github.com/OpenTTD/OpenTTD/pull/12097
14:56:10 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #12093: Add: [Script] GetTileOfAirport https://github.com/OpenTTD/OpenTTD/pull/12093
14:57:13 <peter1138[d]> Ok, raw cd-paranoia managed to grab it, inaccurately, but better than nowt.
15:03:21 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #12088: Add: [Script] GetAirportPlaneCompatibility https://github.com/OpenTTD/OpenTTD/pull/12088
15:09:01 <LordAro> "Through the magic of knowing what I'm doing, I have determined what you're talking about"
15:09:08 <LordAro> is this professional enough to say to a colleague?
15:09:19 <peter1138[d]> Probably the same issues as the other rejected PRs.
15:09:27 <peter1138[d]> LordAro, well...
15:09:48 <LordAro> How about, "Through the magic of being good at my job" ?
15:12:08 <peter1138[d]> I would suggest something invoking your experience...
15:12:16 <peter1138[d]> But I dunno 😄
15:12:35 <kuhnovic> "I've been it this for 30 years so..." 😛
15:12:52 <andythenorth> "GPT suggested that..."
15:12:56 <LordAro> with some prompting they sent a picture that gave the necessary additional context
15:13:24 <peter1138[d]> It wasn't one of Xarick's PRs then...
15:14:26 *** nielsm has joined #openttd
15:29:46 <LordAro> me: "you should probably do something about this too <picture>" colleague: "non-matching response" me/colleague: <follow up comments> colleague: "oh yeah, the image didn't load yet"
15:32:08 <peter1138[d]> Time for another 200km ride.
15:32:22 <LordAro> next weekend
15:47:26 *** Wormnest has joined #openttd
16:00:40 <xarick> `local x = array(99999999)` let's test this
16:03:39 <xarick> hmm no crash
16:03:50 <xarick> nevermind, i didn't save main.nut
16:06:31 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1374055633023795200/image.png?ex=682ca887&is=682b5707&hm=c2f72e3789ebf25432736b2a095cd9867ab9733766581824402f7abea7fa8c4d&
16:06:44 <xarick> trying to ~Squirrel()
16:08:55 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1374056233363046432/image.png?ex=682ca916&is=682b5796&hm=f54ee1d211d240ff811ba4aaf464c9efe81ad10c465b77418b81a5c0990c2c10&
16:08:55 <xarick> ignored the assert, it didn't crash openttd
16:11:32 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #14279: Codechange: Make ContentType::State an enum class. https://github.com/OpenTTD/OpenTTD/pull/14279
16:12:11 *** foodliker has quit IRC (Quit: User went offline on Discord a while ago)
16:44:24 *** gelignite has joined #openttd
17:38:06 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1374078680091070605/image.png?ex=682cbdfe&is=682b6c7e&hm=da2e5679821dedadb48e6afd0e72fc4fbdb0ca0339b5be5ae156069645a2177a&
17:38:06 <xarick> is this too many settings?
17:38:56 *** belajalilija has joined #openttd
17:38:56 <belajalilija> Nah
17:43:01 <kuhnovic> If you ask yourself "would I ever change this setting" and the answer is "no" or "most likely not", just remove it
17:45:22 <xarick> think i'm gonna get rid of those load orders modes
17:45:39 <xarick> they're a pain to manage
17:46:26 <xarick> and also I have further ideas regarding load orders, I just didn't bother changing them yet
17:47:14 <xarick> cargodist also ruins them
17:51:25 <xarick> I'm also waiting for unbunch for scripts
17:51:40 <xarick> if it ever gets implementefd
17:54:31 *** akimoto has joined #openttd
17:54:41 <_glx_> these load orders looks like self infliged pain 🙂
17:55:34 <_glx_> just let the AI decide by itself what is best depending on actual game settings
17:56:50 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #14280: Codechange: Use EnumBitSet for VehicleRailFlags. https://github.com/OpenTTD/OpenTTD/pull/14280
17:57:00 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #14281: Fix: Clear rail vehicle flipped flag if reverse probability callback returns false. https://github.com/OpenTTD/OpenTTD/pull/14281
17:59:20 <andythenorth> did I break it? 😮
18:00:10 <peter1138[d]> No, just rebased after merging #14280.
18:12:09 *** akimoto has quit IRC (Ping timeout: 480 seconds)
18:13:25 *** Wolf01 has joined #openttd
18:33:52 <andythenorth> OpenTTD is finished after 14281? 🙂
18:34:36 <DorpsGek> [OpenTTD/OpenTTD] PeterN closed pull request #14037: Codechange: Replace SETTING_BUTTON_WIDTH/_HEIGHT macros with a function. https://github.com/OpenTTD/OpenTTD/pull/14037
18:53:57 <DorpsGek> [OpenTTD/OpenTTD] felixprigge commented on discussion #12886: Push-pull: What if trains could back up? https://github.com/OpenTTD/OpenTTD/discussions/12886
19:50:25 *** tokai|noir has quit IRC (Quit: c('~' )o)
19:56:34 *** gelignite has quit IRC ()
20:19:44 <xarick> i keep getting crashes on loading my AI
20:19:56 <xarick> due to the horrible timely manner things are saved
20:21:17 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1374119745519091833/image.png?ex=682ce43d&is=682b92bd&hm=6939a6ed7b69fd72b64887024f9fc6a05c67584cb82765a578a302fc2e148833&
20:21:17 <xarick> it expected a dock at the tile
20:22:05 <xarick> dock isn't there, it was being removed, but the member variable wasn't updated on time to reflect no dock
20:25:26 *** Flygon has joined #openttd
20:25:44 <xarick> is it possible to set some flag that the Save function can check to prevent it from saving before time?
20:27:01 <xarick> something like... This operation must be done before saving!
20:27:43 *** debdog has quit IRC (Quit: Initiating getting-the-hell-out-of-here maneuver!)
20:29:32 *** debdog has joined #openttd
20:35:48 <peter1138[d]> When do you update the local data?
20:36:20 <peter1138[d]> Sounds like your AI will break horrible if the player joins the company 🙂
20:41:18 <xarick> forget it
20:41:23 <xarick> just dont save
20:41:30 <xarick> run the AI nonstop
20:43:09 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1374125246298460230/image.png?ex=682ce95c&is=682b97dc&hm=4a6b401ffc3a35879b24d8a8f5fcf76cef53f612eb8fd6da4f5f12c8634e605e&
20:43:09 <andythenorth> oops I've broken company colours
20:43:15 <andythenorth> 'mistakes were made'
20:47:52 <xarick> okay, I managed to salvage this crash
20:48:09 <xarick> if (this.m_dock_to == -1 || (!AIMarine.IsDockTile(this.m_dock_to) || AITile.GetOwner(this.m_dock_to) != ::caches.m_my_company_id)) {
20:48:42 <xarick> copy paste gone wrong
20:48:51 <peter1138[d]> You managed to invoke the spoiler feature.
20:49:03 <peter1138[d]> Wrap code in backticks to avoid.
20:49:15 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1374126781585428510/image.png?ex=682ceaca&is=682b994a&hm=22f51a4c3bef2e2a74a5b0cd948436ca2c61278176b6880a5a87d3ade9881897&
20:50:00 <peter1138[d]> `if (this.m_dock_to == -1 || (!AIMarine.IsDockTile(this.m_dock_to) || AITile.GetOwner(this.m_dock_to) != ::caches.m_my_company_id)) {`
20:50:03 <peter1138[d]> Silly Xarick.
20:50:16 <xarick> thx
21:00:36 <andythenorth> maybe I should just finish all the unfinished trains in the other branch, and ignore the brake vans branch
21:03:49 *** treky97 has joined #openttd
21:03:49 <treky97> Hey all sorry to bother but my game just crashed and I figured for once I'd actually be useful and send in the .json.log, .dmp, .sav, and .png. The error message says to send it to the github but I'm not entirely sure where within the github or how. Any advice would be great, thanks in advance
21:07:10 <peter1138[d]> Under here <https://github.com/OpenTTD/OpenTTD/issues>
21:09:35 <treky97> Just post it as an issue?
21:09:45 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1374131943712755792/image.png?ex=682cef99&is=682b9e19&hm=03ba869c7e7a9b8950d63e3bb50ab19488574f7dc488d16e213263f5dc6ddbc6&
21:09:45 <xarick> got my AIs fighting over transport rights kek
21:10:31 <treky97> I see thanks
21:13:28 <xarick> i should be more verbose about successful bribes and failed bribes
21:13:47 <xarick> a thing for tomorrow, gotta go sleep, cyas good night
21:14:42 <peter1138[d]> All your logging probably slows your script down :p
21:23:43 <DorpsGek> [OpenTTD/OpenTTD] ScratchScrub opened issue #14286: [Crash]: Game crashed for unknown reason while FFing time https://github.com/OpenTTD/OpenTTD/issues/14286
21:25:54 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:30:34 *** nielsm has quit IRC (Ping timeout: 480 seconds)
22:15:07 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:37:23 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #14286: [Crash]: Game crashed for unknown reason while FFing time https://github.com/OpenTTD/OpenTTD/issues/14286