IRC logs for #openttd on OFTC at 2025-05-25
            
00:10:40 *** WormnestAndroid has quit IRC (Remote host closed the connection)
00:10:46 *** WormnestAndroid has joined #openttd
00:18:39 *** kuka_lie has quit IRC (Remote host closed the connection)
00:47:36 *** Flygon has joined #openttd
01:05:24 *** gelignite has quit IRC ()
02:27:14 *** Wormnest has joined #openttd
02:31:21 *** Wormnest has quit IRC ()
02:50:21 *** gnu_jj has joined #openttd
02:53:56 *** gnu_jj_ has quit IRC (Ping timeout: 480 seconds)
03:20:55 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
03:20:57 *** WormnestAndroid has joined #openttd
03:21:03 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
03:21:04 *** WormnestAndroid has joined #openttd
03:21:07 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
03:21:08 *** WormnestAndroid has joined #openttd
03:29:32 *** D-HUND has joined #openttd
03:32:54 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:08:49 *** WormnestAndroid has quit IRC (Remote host closed the connection)
04:08:51 *** WormnestAndroid has joined #openttd
04:13:07 *** keikoz has joined #openttd
04:48:26 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/b82e32c360f2b6e5b86779661f79ba89f07f05ce
04:48:27 <DorpsGek> - Update: Translations from eints (by translators)
05:25:07 *** Flygon has quit IRC (Read error: Connection reset by peer)
05:54:46 <DorpsGek> [OpenTTD/OpenTTD] Release workflow was not successful https://github.com/OpenTTD/OpenTTD/actions/runs/15234582178
07:06:57 <_zephyris> talltyler: Style guides for guis would be useful...
07:13:21 <DorpsGek> [OpenTTD/OpenTTD] Fellteros opened issue #14298: [Crash]: Game crashes after setting speed limit in timetable https://github.com/OpenTTD/OpenTTD/issues/14298
07:16:52 <DorpsGek> [OpenTTD/OpenTTD] PeterN closed issue #14298: [Crash]: Game crashes after setting speed limit in timetable https://github.com/OpenTTD/OpenTTD/issues/14298
07:16:55 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #14298: [Crash]: Game crashes after setting speed limit in timetable https://github.com/OpenTTD/OpenTTD/issues/14298
07:17:15 <DorpsGek> [OpenTTD/OpenTTD] PeterN closed issue #14298: [Crash]: Game crashes after setting speed limit in timetable https://github.com/OpenTTD/OpenTTD/issues/14298
07:30:35 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #13993: Add: Player configuration of badge display. https://github.com/OpenTTD/OpenTTD/pull/13993#pullrequestreview-2866750296
07:32:37 *** Wolf01 has joined #openttd
07:37:31 <andythenorth> "badge time" 🙂
07:38:25 <peter1138[d]> \o/
07:41:39 <peter1138[d]> Hmm, flatmap would be nice to have, but the implementation is a bit trickier than flatset.
07:42:14 <peter1138[d]> IIRC the real flatmap uses two vectors, all my stuff is one vector.
07:45:03 <peter1138[d]> So iterators become a bit different.
07:52:21 <peter1138[d]> Okay, Garmin says I'm not training enough. Turns out it decided my maximum heart rate is 246 bpm. Yeah, there's a reason I'm not getting anywhere near that.
07:53:13 <andythenorth> maths
07:53:42 <andythenorth> oops, I quit openttd instead of generating a map
07:54:05 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1376106033768038500/image.png?ex=68341e1d&is=6832cc9d&hm=a789fc626819b96bf9423180549caccab57762d5f4974353cce5df6f2aae4d16&
07:54:05 <andythenorth> for some reason this drags me to a misclick
07:55:18 <peter1138[d]> You as well?
07:55:34 <andythenorth> something about it
07:56:05 <andythenorth> I want to click on the yellow strip to get rid of it
07:56:13 <andythenorth> but that's....unwise 🙂
08:13:10 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13993: Add: Player configuration of badge display. https://github.com/OpenTTD/OpenTTD/pull/13993
08:51:59 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #14021: Add: Filtering over badges by dropdown list selection. https://github.com/OpenTTD/OpenTTD/pull/14021
08:53:17 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #14021: Add: Filtering over badges by dropdown list selection. https://github.com/OpenTTD/OpenTTD/pull/14021#issuecomment-2907700594
08:53:54 <peter1138[d]> Well.
08:54:11 <peter1138[d]> Unconventional.
08:55:05 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1376121386548072509/image.png?ex=68342c69&is=6832dae9&hm=e4b4cb051d2caff4b6412d6657024c84f7892d3c48218ddb5ef75a60cf2981ff&
08:55:06 <peter1138[d]> Perfect.
09:03:17 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1376123448744611860/image.png?ex=68342e55&is=6832dcd5&hm=69885bc15fe29eb1d8a4b5bd21d29185a815746fa5bf9af688f6aa90a59368a6&
09:03:17 <peter1138[d]> Perfect company face, no blemishes.
09:41:43 *** reldred has quit IRC (Quit: User went offline on Discord a while ago)
09:41:43 <andythenorth> peter1138[d]: What did I break now? 😀
10:26:09 <xarick> hi
10:26:20 <xarick> time to test default limits
10:26:44 <xarick> am I still allowed a 4k map?
10:26:54 <xarick> and 15 ais
10:37:46 <DorpsGek> [OpenTTD/OpenTTD] Fellteros opened issue #14299: [Crash]: Game crashes after setting a speed limit for vehicles https://github.com/OpenTTD/OpenTTD/issues/14299
10:40:31 <_glx_> Annoying people
10:41:51 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick closed issue #14265: [Bug]: Changing setting value via query is not clamping https://github.com/OpenTTD/OpenTTD/issues/14265
10:41:54 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick commented on issue #14265: [Bug]: Changing setting value via query is not clamping https://github.com/OpenTTD/OpenTTD/issues/14265
10:43:35 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1376148687818068048/image.png?ex=683445d6&is=6832f456&hm=8d0224f92e62b1b7f1e71738178e2d86c07c89875db6dae28c53175353f58b8a&
10:43:35 <xarick> suddenly, it's fat
10:45:29 <DorpsGek> [OpenTTD/OpenTTD] PeterN closed issue #14299: [Crash]: Game crashes after setting a speed limit for vehicles https://github.com/OpenTTD/OpenTTD/issues/14299
10:45:32 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #14299: [Crash]: Game crashes after setting a speed limit for vehicles https://github.com/OpenTTD/OpenTTD/issues/14299
10:46:11 <peter1138[d]> xarick: No 😉
11:25:28 *** Flygon has joined #openttd
11:43:14 *** gelignite has joined #openttd
12:04:04 *** WormnestAndroid has quit IRC (Remote host closed the connection)
12:04:18 *** WormnestAndroid has joined #openttd
12:47:46 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic opened pull request #14300: Change: Allow building rail over bridges and through stations / waypoints / tunnels https://github.com/OpenTTD/OpenTTD/pull/14300
12:52:41 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic updated pull request #14300: Change: Allow building rail over bridges and through stations / waypoints / tunnels https://github.com/OpenTTD/OpenTTD/pull/14300
12:54:07 <peter1138[d]> Ah, "overbuilding" rather than "building over"
12:55:00 <kuhnovic> Is it overbuilding? I feel that that's more like a replacement of something with something else.
13:06:53 <peter1138[d]> Hmm, kinda.
13:07:18 <peter1138[d]> But "building over" is like, bridges that can be built over stations 🙂
13:08:16 <kuhnovic> Good point. Ugh, English 😛
13:10:23 <peter1138[d]> Hmm, saveload conversions 😒
13:11:11 <peter1138[d]> I need to temporarily store data loaded from the savegame, until NewGRFs have been activated.
13:43:35 <xarick> finland + estonia + russia.... why do i feel another war is gonna start there
13:45:05 <xarick> i need to stop watching these war videos
13:47:24 *** D-HUND is now known as debdog
14:10:50 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1376200845414371439/image.png?ex=6834766a&is=683324ea&hm=c87e9b6f3fd33ed3d5907d70b4e9947b8c6615719e89a69f507c4f08103e20e1&
14:10:50 <xarick> okay, 500 * 14 vehicles
14:37:04 <xarick> new task: make slow valuate a game setting
14:46:40 <peter1138[d]> Heh, I wasn't exactly serious about sticking to default limits. 🙂
14:47:23 <peter1138[d]> Although it is pretty useful to try both non-extreme and extreme, to see what is most affected.
14:53:44 <xarick> how to explain for the average player what the slow valuate do?
14:53:59 <xarick> STR_CONFIG_SETTING_SCRIPT_SLOW_VALUATE_HELPTEXT
14:54:11 *** Wormnest has joined #openttd
14:58:39 <_jgr_> There is really no reason why players should know or care about it
14:59:02 <_jgr_> Just have your code do the sensible thing, whatever that is
15:00:41 <xarick> slow valuate: "prevents excessive cpu in valuator function", but recently some FillLists use a pseudo-valuate which I didn't address
15:02:57 <xarick> I don't know if there's already any AI making use of it
15:05:26 <_glx_> using Valuate or filter during construction have the same limitations
15:23:49 <xarick> do I need afterload conversion?
15:24:13 <xarick> i want to treat old saves as having this off, but new games as having this defaulted to on
15:24:39 <xarick> forgot how it's done
15:25:49 <_glx_> using a pure squirrel Valuate is something to decide at script level, not openttd level
15:29:35 <xarick> hmm yeah, I'm not totally sure how to make that bridge happen
15:31:19 <_glx_> squirrel has try/catch
15:31:48 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1376221222534254672/image.png?ex=68348964&is=683337e4&hm=06663c622433683c3ff7e3c952334da1feaa876d9e6377240fd18f07537d35ee&
15:31:48 <xarick> pretty
15:33:29 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #14301: Codefix: Prefer `static inline const` keyword order. https://github.com/OpenTTD/OpenTTD/pull/14301
15:35:00 <peter1138[d]> A game option for that definitely seems wrong.
15:44:24 <_glx_> you can detect Valuate "crashes" and make the script survive
15:45:03 <_glx_> it's not the job of openttd to handle that
15:45:35 <_glx_> we provide Valuate, but if it doesn't work for you then use your own
15:49:15 <_glx_> you can even replace Valuate with your own wrapper calling the original and fallback to slow version if it crashed
15:56:13 *** Flygon has quit IRC (Read error: Connection reset by peer)
15:58:48 <andythenorth> Categorically cannot be a player setting
15:59:10 <andythenorth> “Do I need all 5 FIRS”
16:12:51 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1376231552270471399/image.png?ex=68349303&is=68334183&hm=462699c28ebbd3ff4c5a35ddd85092fcfcc4644e2234e45fb992a77e591d5d88&
16:12:51 <xarick> oops, I broke it
16:13:04 <xarick> looks like it's calling itself
16:13:51 <xarick> must think how to make it call the original valuator
16:18:51 <_glx_> usual ```AIList.oldValuate <- AIList.Valuate;`
16:18:51 <_glx_> AIList.Valuate <- function(...) { return this.oldValuate(...); }```
16:20:04 <xarick> that's a lot of copy paste
16:40:08 <xarick> while (true)
16:40:10 <xarick> works!
16:40:19 <xarick> I wonder something
16:40:40 <xarick> didn't that use to stall openttd indefinitely
16:42:06 <xarick> something's going on, this is fishy
16:44:59 <xarick> hmm
16:45:13 <xarick> why can't this be done in OpenTTD native code
16:45:27 *** mindlesstux has quit IRC (Quit: The Lounge - https://thelounge.chat)
16:46:14 <xarick> _can_suspend is 0 😦
16:46:44 *** mindlesstux has joined #openttd
17:18:14 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1376248004624908520/image.png?ex=6834a255&is=683350d5&hm=495f099ccc2b93cc1321181e0aae447d44dd6c55d6c9fda137f343f6ecd724de&
17:18:14 <xarick> the crash is back
17:19:49 <xarick> original valuate now incurs some delay :/
17:28:46 *** kuka_lie has joined #openttd
17:33:54 <peter1138[d]> Hmm, RoadVehController 16ms, but framerate window shows 50ms.
17:41:34 <xarick> automatic service
17:41:41 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
17:42:04 <peter1138[d]> ?
17:42:08 <xarick> https://github.com/OpenTTD/OpenTTD/pull/12977
17:42:31 <peter1138[d]> Wrong way around.
17:44:51 <peter1138[d]> Hmm, okay.
17:45:34 <peter1138[d]> Some of it is TicToc overhead.
17:47:42 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1376255420083077182/image.png?ex=6834a93d&is=683357bd&hm=b8e3fb1997ba955af36cc99ee503e13c5cc09dc9378e1128541958509b2701eb&
17:47:42 <peter1138[d]> Hmm, lots of gaps. Too much hash.
17:48:48 <peter1138[d]> Or maybe too many collisions.
18:01:24 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
18:05:47 *** WormnestAndroid has joined #openttd
18:07:34 *** foodliker has joined #openttd
18:07:34 <foodliker> peter1138[d]: i think your ottd has become irradiated
18:07:34 *** mindlesstux has quit IRC (Read error: Connection reset by peer)
18:07:43 *** mindlesstux has joined #openttd
18:10:22 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1376261127247233184/image.png?ex=6834ae8e&is=68335d0e&hm=d40e58e53f7af3eaa7b0db4c1cf46aa04c94b262edee68d29f29dac6463f6cea&
18:10:22 <peter1138[d]> Yeah. Wentbourne is way more dense.
18:13:46 <peter1138[d]> I guess, somehow, 5.000 * 15 road vehicles is no match for 4,833 TL6 trains.
18:15:46 <truebrain> I feel a bit black and white
18:16:58 <peter1138[d]> Yeah, I have a slightly modified version that shows collisions as shades of grey.
18:17:35 <truebrain> It feels like I am being tested .. should I see something in the pattern? 😄
18:18:21 *** mindlesstux has quit IRC (Quit: The Lounge - https://thelounge.chat)
18:18:44 <peter1138[d]> No 🙂
18:19:01 <peter1138[d]> It's just a visualisation of which vehicle tile hash buckets are used.
18:19:24 *** mindlesstux has joined #openttd
18:30:09 <peter1138[d]> So: what if the vehicle tile hash
18:30:20 <peter1138[d]> Uses a more... hash-like hash.
18:30:44 <peter1138[d]> And then, instead of being a fixed size, be variable sized.
18:31:09 <peter1138[d]> And instead of being sized by map size, be sized by vehicle pool size.
18:31:13 <peter1138[d]> Or: I have no idea 🙂
18:32:23 <peter1138[d]> As the pool grows larger it would need to rehash.
18:32:32 <peter1138[d]> Sounds a bit like an unordered_map, tbh.
18:38:56 <Rubidium> I'd say, just try it
18:39:06 <peter1138[d]> ^^ I am 😉
18:40:21 <xarick> nice that you're looking into it
18:41:16 <xarick> do you have my 74k trains save already
18:47:59 <peter1138[d]> Well, there's also the usual trick of stealing from JGRPP, although that probably has some bxbtbabtbtree or something.
18:50:13 <xarick> oh, good idea, i have try my nasty saves on jgr
18:50:57 <xarick> where do I download jgr, i don't feel like compiling
18:54:46 <xarick> crap, savegame is made with newer version
18:57:38 <peter1138[d]> ```c++
18:57:38 <peter1138[d]> using VehicleTypeTileHash = robin_hood::unordered_map<TileIndex, VehicleID>;
18:57:38 <peter1138[d]> static std::array<VehicleTypeTileHash, 4> _vehicle_tile_hashes;
18:57:41 <peter1138[d]> Close enough.
18:58:16 <peter1138[d]> So `VehicleID` rather then `Vehicle *` and one for each vehicle type.
18:59:04 <xarick> why my saves dont work
18:59:34 *** kale91 has quit IRC (Quit: User went offline on Discord a while ago)
19:00:08 <peter1138[d]> But this `SCOPE_INFO_FMT` macro completely breaks VS Code formatting.
19:00:28 <peter1138[d]> xarick: Because they're newer than JGRPP..
19:09:27 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1376275994918391858/image.png?ex=6834bc67&is=68336ae7&hm=cecb5e34aa329857036e5f8e170ac473cc35327158c137f0f45b6d0ad596e850&
19:09:27 <xarick> finally a save that works
19:10:17 <xarick> my stuff is faster
19:11:32 <xarick> jgr wins in world ticks
19:11:56 <xarick> loses in train ticks
19:12:26 <xarick> wins in graphics/viewports
19:12:42 <xarick> in cargo handling
19:13:08 <xarick> hard to tell about AIs
19:20:37 <xarick> on another save jgr wins ez
19:21:18 <xarick> but he killed a script
19:21:25 <xarick> maybe that's why
19:23:54 <xarick> openttd loses bid on world ticks
19:23:57 <xarick> big
19:27:56 <xarick> script took too Long in the load function
19:32:03 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #14301: Codefix: Prefer `static inline const` keyword order. https://github.com/OpenTTD/OpenTTD/pull/14301#pullrequestreview-2866926898
19:32:59 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #14301: Codefix: Prefer `static inline const` keyword order. https://github.com/OpenTTD/OpenTTD/pull/14301
19:33:36 <peter1138[d]> Hmm, so unordered_map performs worse than the flat vector.
19:34:12 <peter1138[d]> But that could be due to number of buckets, which unordered_map doesn't give control over.
19:34:31 <andythenorth> BADGER GUI 🙂
19:34:37 * andythenorth built master
19:34:56 <xarick> hmm 16k maps in jgr
19:35:08 <peter1138[d]> Yes.
19:35:15 <xarick> very tempting
19:35:42 <andythenorth> 11 hours to generate a max size map
19:35:47 <andythenorth> on my M1
19:38:16 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1376283245238419486/image.png?ex=6834c327&is=683371a7&hm=59345a07e064e493ea69983cd074e74927541f1accfe925a5e9c786640669a51&
19:38:18 <peter1138[d]> Pom te pom
19:38:58 <andythenorth> there's a hole in my bucket
19:39:39 <peter1138[d]> Ah, interesting. .clear() doesn't get rid of the buckets.
19:40:46 <xarick> my ai won't work on jgr, because I make some bitstuff about tileindexes
19:41:12 <xarick> okay, enough jgr, uninstalling
19:41:55 <peter1138[d]> Hmm, 0.499 load factor with wentbourne.
19:49:24 <andythenorth> you don't need to uninstall jgrpp 😛
19:57:51 <peter1138[d]> Hmm, goes who forgot to commit before changing it all to unordered_map?
19:59:04 <andythenorth> did you stash?
20:00:25 <peter1138[d]> No 🙂
20:00:33 <peter1138[d]> Ctrl-Z
20:06:44 <peter1138[d]> Yeah, the vector version gave it way more buckets... Hmm.
20:08:24 <peter1138[d]> About 25% less time for RV ticks.
20:09:12 <peter1138[d]> But this is 32x larger than master's fixed hash.
20:12:13 <peter1138[d]> 180ms in master. 40-45ms with unordered_map, 30-35ms with larger vector. But none of this really makes it usable.
20:12:30 <peter1138[d]> AI is at 500ms per tick.
20:19:18 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #14302: Codefix: Effect vehicles don't use v->tile, so shouldn't be in the vehicle tile hash. https://github.com/OpenTTD/OpenTTD/pull/14302
20:30:49 *** gelignite has quit IRC (Read error: No route to host)
20:31:37 *** gelignite has joined #openttd
20:38:37 *** gelignite has quit IRC ()
20:46:37 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #14302: Codefix: Effect vehicles don't use v->tile, so shouldn't be in the vehicle tile hash. https://github.com/OpenTTD/OpenTTD/pull/14302#pullrequestreview-2866939402
21:03:57 *** kuka_lie has quit IRC (Remote host closed the connection)
21:05:40 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
21:07:33 *** WormnestAndroid has joined #openttd
21:08:42 <pickpacket> Hmm. This looks like an interesting bug: https://github.com/OpenTTD/OpenTTD/issues/14035
21:10:02 <peter1138> Well, it's almost a feature request.
21:11:30 <pickpacket> Yeah, but a small one in that case
21:11:57 <pickpacket> From what I can see by just reading the issue and not ever having looked at that part of the code...
21:12:46 <pickpacket> Aaaaanyways. I'm putting it at the bottom of my todo list. If nobody else has fixed it before the end of the next decade I might give it a go
21:14:15 <pickpacket> I was looking through the open issues to get a feel for where we might be in regards to 15.0
21:15:38 <pickpacket> Has beta2 surfaced any bugs or issues that have yet to be addressed?
21:24:11 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:35:56 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #14292: Codechange: Use StrongType and StrongBitSet for CargoType and CargoTypes. https://github.com/OpenTTD/OpenTTD/pull/14292
21:37:03 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
21:53:00 *** Wormnest has joined #openttd
22:00:53 *** tokai has joined #openttd
22:00:53 *** ChanServ sets mode: +v tokai
22:07:41 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)