IRC logs for #openttd on OFTC at 2025-04-09
            
00:39:28 *** WormnestAndroid has quit IRC (Remote host closed the connection)
00:39:55 *** WormnestAndroid has joined #openttd
00:45:33 <DorpsGek> [OpenTTD/OpenTTD] Athozus commented on pull request #9577: Feature: Multi-tile depots https://github.com/OpenTTD/OpenTTD/pull/9577#issuecomment-2787956052
00:55:00 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
00:55:07 *** WormnestAndroid has joined #openttd
00:55:11 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
00:55:12 *** WormnestAndroid has joined #openttd
02:41:33 *** gnu_jj_ has joined #openttd
02:44:45 *** geizeskrank has quit IRC (Ping timeout: 480 seconds)
02:44:51 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
02:48:17 *** geizeskrank has joined #openttd
03:40:18 *** WormnestAndroid has quit IRC (Remote host closed the connection)
03:40:23 *** WormnestAndroid has joined #openttd
03:50:14 *** debdog has joined #openttd
03:53:39 *** D-HUND has quit IRC (Ping timeout: 480 seconds)
04:06:45 *** keikoz has joined #openttd
04:46:56 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/b1582b815c5f945d2845084b447f58b6a5f5c70a
04:46:57 <DorpsGek> - Update: Translations from eints (by translators)
04:49:37 <reldred> sigh, multitile depots my beloved
04:49:44 <reldred> 😢
05:01:50 *** keikoz has quit IRC (Ping timeout: 480 seconds)
06:05:15 <andythenorth> side quest time yet?
06:05:22 * andythenorth Horse
06:24:46 <andythenorth> back to the main quest then
07:09:07 <andythenorth> coffee
07:33:05 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #13966: Remove several C-string functions https://github.com/OpenTTD/OpenTTD/pull/13966#pullrequestreview-2752407649
07:52:09 <DorpsGek> [OpenTTD/OpenGFX2] Kuhnovic commented on pull request #169: Sharper gridlines https://github.com/OpenTTD/OpenGFX2/pull/169#issuecomment-2788683930
07:52:37 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #13981: Codefix: Avoid using keyword `override` as member/variable name. https://github.com/OpenTTD/OpenTTD/pull/13981
07:57:53 <DorpsGek> [OpenTTD/OpenGFX2] PeterN approved pull request #168: Fix: Incorrect image for 4x zoom 8bpp sprite for spr1545 https://github.com/OpenTTD/OpenGFX2/pull/168#pullrequestreview-2752473068
08:07:19 <DorpsGek> [OpenTTD/OpenTTD] LordAro approved pull request #13981: Codefix: Avoid using keyword `override` as member/variable name. https://github.com/OpenTTD/OpenTTD/pull/13981#pullrequestreview-2752497417
08:16:23 <DorpsGek> [OpenTTD/OpenGFX2] zephyris merged pull request #168: Fix: Incorrect image for 4x zoom 8bpp sprite for spr1545 https://github.com/OpenTTD/OpenGFX2/pull/168
09:29:47 <jfkuayue> Bike in the UK… for the first time
09:30:46 *** notluke2578 has joined #openttd
09:30:46 <notluke2578> Good luck
09:30:49 <notluke2578> Drivers hate us
09:44:52 <jfkuayue> Lol drivers have been already taking care of overtaking me
10:41:00 <xarick> in the past I vaguely remember iterating AILists were going through repeated items if there was changes to their values
10:41:39 <xarick> or am I misremembering ?
10:52:53 <xarick> https://discord.com/channels/142724111502802944/1008473233844097104/1077655291837038642
10:54:55 <_glx_> Well changing values affects the sorting
10:58:37 <_glx_> But if you sort by item it's fine
11:01:39 <peter1138> My list changes are a bit... stifled by the modifiable iterators...
11:08:46 *** keikoz has joined #openttd
11:13:43 <kuhnovic> Does anyone want to review 13968? Not because it would make Xarick happy, but because it fixes some stuff that I never intended to break in the first place 🙂
11:24:57 <xarick> I see now
11:57:02 <_glx_> Actually `List::Sort()` just changes the way content is iterated, internally it's always sorted ascendant by item, and also ascendant by value (there are 2 storages)
12:02:21 *** WormnestAndroid has quit IRC (Remote host closed the connection)
12:02:23 *** WormnestAndroid has joined #openttd
13:23:55 <DorpsGek> [OpenTTD/OpenGFX2] zephyris commented on issue #160: The chessboard pattern of the toyland is tiring for the eyes and can be a health hazard https://github.com/OpenTTD/OpenGFX2/issues/160
13:48:35 *** nielsm has joined #openttd
14:19:03 *** Wormnest has joined #openttd
14:33:20 <xarick> if the list has items where all values are 0, if i set a value to each item different that zero do I still have to have it sorted by item?
14:36:16 <peter1138> That question does not make sense.
14:46:19 <xarick> when i add a rectangle of tiles, all the items get a value of 0
14:47:09 <xarick> eh nvm
14:47:22 <xarick> I'll do some tests
14:54:09 <peter1138> While you are filling that list, I would imagine it's best to have it sorted by Item.
14:54:19 <peter1138> Then when you want to look at the values, sort by Value.
14:58:35 <xarick> I'm experimenting with this <https://gist.github.com/SamuXarick/319c4dc974e56e90ed8d4700ca5f7771>
15:01:20 <xarick> the asserts at line 49 and 54 should tell me whether things go wrong
15:05:23 <peter1138> The regression tests test some specific cases, but not everything. I wonder.
15:14:00 *** Flygon has quit IRC (Read error: Connection reset by peer)
15:16:35 <DorpsGek> [OpenTTD/OpenTTD] DrewJenn updated pull request #13978: Fix #12980: [Timetable] Ctrl+Clear Time does not reset timetable state https://github.com/OpenTTD/OpenTTD/pull/13978
15:19:14 <DorpsGek> [OpenTTD/OpenTTD] frosch123 merged pull request #13966: Remove several C-string functions https://github.com/OpenTTD/OpenTTD/pull/13966
15:21:10 <DorpsGek> [OpenTTD/OpenTTD] DrewJenn updated pull request #13978: Fix #12980: [Timetable] Ctrl+Clear Time does not reset timetable state https://github.com/OpenTTD/OpenTTD/pull/13978
15:49:30 <_glx_> xarick: default sorter is descending by value
15:50:17 <_glx_> so line 51 will cause reordering
15:51:45 <_glx_> and can affect iteration
15:53:14 <_glx_> but in this case, assuming all values are 0 when starting you won't see it I think
15:55:28 <peter1138> Bit of a weird default sort order, but hey.
15:55:32 <_glx_> still would make more sense to use a by item sorter
15:55:42 <_glx_> in this case
15:56:07 <peter1138> I guess it makes sense for "what's the fastest engine".
15:56:15 <_glx_> I think default sorter is useful for typical get a list, valuate, iterate
15:56:48 <xarick> wow <https://github.com/OpenTTD/OpenTTD/pull/13978/commits>
15:57:13 <xarick> is he confused?
15:58:24 <peter1138> Trial and error :p
15:58:46 <xarick> it's about 10 ops I save without doing Sort
16:00:24 <_glx_> in your test case default sorter should be fine, but keep in mind it's not always the case
16:26:04 *** gelignite has joined #openttd
16:31:07 <peter1138> Hmm, unit test.
16:34:58 *** Wolf01 has joined #openttd
17:09:20 <DorpsGek> [OpenTTD/OpenTTD] frosch123 updated pull request #13943: Remove C-style string parsing and composing https://github.com/OpenTTD/OpenTTD/pull/13943
17:13:04 *** kuka_lie has joined #openttd
17:13:23 <DorpsGek> [OpenTTD/OpenTTD] frosch123 updated pull request #13943: Remove C-style string parsing and composing https://github.com/OpenTTD/OpenTTD/pull/13943
17:15:59 <xarick> i should rewrite my airport searching methods 😦
17:21:11 <xarick> something eats 200 ticks here, and i can't figure out what
17:42:07 <peter1138> Hmm, the std::variant conundrum. Can't use it without the types being distinct enum or strong types. Strong types invite all the (deliberate) annoyance .base()...
17:58:16 <xarick> _glx_: can I change `heli_airports.HasItem(AIAirport.AT_HELIPORT)` to
17:58:16 <xarick> `heli_airports[AIAirport.AT_HELIPORT] != null` ?
18:17:28 <DorpsGek> [OpenTTD/OpenTTD] frosch123 opened pull request #13982: Reduce polution of global namespace with generic names. https://github.com/OpenTTD/OpenTTD/pull/13982
18:30:17 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
18:30:20 *** WormnestAndroid has joined #openttd
18:42:42 *** tokai has joined #openttd
18:42:42 *** ChanServ sets mode: +v tokai
18:49:44 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
18:59:07 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #13982: Reduce polution of global namespace with generic names. https://github.com/OpenTTD/OpenTTD/pull/13982#pullrequestreview-2754473898
19:05:42 <_glx_> xarick: You can try, but the expected result is script crash for non existing items
19:14:06 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on pull request #13982: Reduce polution of global namespace with generic names. https://github.com/OpenTTD/OpenTTD/pull/13982#issuecomment-2790754932
19:20:07 *** WormnestAndroid has quit IRC (Remote host closed the connection)
19:20:11 *** WormnestAndroid has joined #openttd
19:22:39 <DorpsGek> [OpenTTD/OpenTTD] J0anJosep commented on pull request #9577: Feature: Multi-tile depots https://github.com/OpenTTD/OpenTTD/pull/9577#issuecomment-2790773152
19:24:20 <frosch123> Often the class is in _type.h and the variable is in _func.h. That would end then.
19:24:20 <frosch123> Also do we want Vehicle::_pool instead of _vehicle_pool? But that makes it kind of more visible public. _vehicle_pool is more hidden private
19:27:25 <frosch123> Oh, the template magic actually does not allow Vehicle::_pool. That would be recursive.
19:28:45 <frosch123> VehiclePool::_instance would work, but kind of ugly
19:29:31 <DorpsGek> [OpenTTD/OpenTTD] Yozora3 commented on pull request #12523: Add: [NewGRF] Vehicle property to copy properties of an existing definiton. https://github.com/OpenTTD/OpenTTD/pull/12523#issuecomment-2790787240
19:35:08 <DorpsGek> [OpenTTD/OpenTTD] zephyris opened pull request #13983: Fix #13980: Allow diagonal selection for road convert https://github.com/OpenTTD/OpenTTD/pull/13983
19:38:28 <frosch123> Hmm. I think I do not like variables as static class members, if they are primarily used outside the class
19:41:46 <xarick> how list1.KeepList(list2) works if i try to keep items that don't exist in list1?
19:45:18 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1359615176512635323/image.png?ex=67f81fce&is=67f6ce4e&hm=68d0441c29fe30d8f07a192ffc55b7337a30448cff40cea07fc925a6aa384735&
19:47:01 <_glx_> RemoveList uses RemoveItem which does nothing if item is not found
19:52:34 <xarick> ow, it is managing 3 lists
19:52:43 <xarick> that oughta be cpu
19:52:57 <_glx_> that's the fastest way
19:54:45 *** _jgr_ has joined #openttd
19:54:45 <_jgr_> Somehow I doubt that 😛
19:54:48 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1359617565113974904/image.png?ex=67f82207&is=67f6d087&hm=e8004f69e67223083970908e232bf6431cb81f2551df17b27184d588d34a0f3c&
19:54:48 <xarick> trying to come up with a more elegant solution here
19:57:36 <_glx_> _jgr_: yeah at least 3 full iterations, but doing it's easy to understand 🙂
19:58:50 <xarick> `m_airport_types.RemoveList(heli_airports)` could be `m_airport_types[AIAirport.AT_HELIPORT] = null`
19:59:10 <xarick> because it has 1 item
20:00:10 <_glx_> yeah using RemoveList in this case is not the best idea 🙂
20:02:26 <xarick> wondering if i can get rid of those Sort
20:02:41 <xarick> instead of KeepBottom, it's KeepTop mabye?
20:04:14 <xarick> keep the most expensive, then remove from the main list
20:05:00 <_glx_> Sort is not expensive
20:05:15 <_glx_> it doesn't affect the list itself
20:07:04 <_jgr_> ScriptList in general is very expensive for what it does
20:07:38 <_glx_> true
20:11:39 <xarick> make them multithreaded 🙂
20:12:43 <_glx_> but Sort is almost a noop, if you have 10 or 10k items it will take the same time
20:16:55 *** nielsm has quit IRC (Remote host closed the connection)
20:17:49 <peter1138> Sort is only a no-op because it's always sorting even if you don't need it.
20:20:30 <_glx_> yup 2 sorted maps
20:20:40 <peter1138> And because it w
20:21:01 <peter1138> And because it allows modification of the list while iterating it, doing something else is a pain.
20:21:15 *** nielsm has joined #openttd
20:21:46 *** gnu_jj has joined #openttd
20:21:53 <_jgr_> _glx_: It's actually worse than that, the reverse mapping is a std::map<SQInteger, std::set<SQInteger>>
20:22:43 <peter1138> Some stuff I was fiddling with https://github.com/OpenTTD/OpenTTD/commit/2ebaf105d0922e94a0f77170d1a9c12f626f368f
20:23:02 <peter1138> It's a bit faster than the current way, but the sorting is still crap.
20:23:10 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #13983: Fix #13980: Allow diagonal selection for road convert https://github.com/OpenTTD/OpenTTD/pull/13983#issuecomment-2790918171
20:23:53 <peter1138> It (almost) passes the regression tests, but they don't test very much.
20:24:19 <_glx_> hehe we know authors can do unexpected things 🙂
20:24:43 <_glx_> hard to think about everything for regression tests
20:25:02 *** gnu_jj_ has quit IRC (Ping timeout: 480 seconds)
20:25:22 <peter1138> Having to search to find the next item/value after being invalidated is a pain.
20:27:39 <peter1138> Hmm, also seems like I've broken it again, as the regression test fails. Oh well.
20:28:44 <DorpsGek> [OpenTTD/OpenTTD] TheMowgliMan opened issue #13984: [Bug]: Incorrect Company Inauguration Date https://github.com/OpenTTD/OpenTTD/issues/13984
20:29:17 *** nielsm has quit IRC (Ping timeout: 480 seconds)
20:35:07 <DorpsGek> [OpenTTD/OpenTTD] zephyris commented on pull request #13983: Fix #13980: Allow diagonal selection for road convert https://github.com/OpenTTD/OpenTTD/pull/13983#issuecomment-2790939287
20:35:23 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #13984: [Bug]: Incorrect Company Inauguration Date https://github.com/OpenTTD/OpenTTD/issues/13984
20:38:22 <DorpsGek> [OpenTTD/OpenTTD] JGRennison commented on issue #13984: [Bug]: Incorrect Company Inauguration Date https://github.com/OpenTTD/OpenTTD/issues/13984
20:40:42 <DorpsGek> [OpenTTD/OpenTTD] TheMowgliMan commented on issue #13984: [Bug]: Incorrect Company Inauguration Date https://github.com/OpenTTD/OpenTTD/issues/13984
20:40:51 <DorpsGek> [OpenTTD/OpenTTD] TheMowgliMan closed issue #13984: [Bug]: Incorrect Company Inauguration Date https://github.com/OpenTTD/OpenTTD/issues/13984
20:49:39 *** Wormnest has quit IRC (Quit: Leaving)
20:59:54 *** kuka_lie has quit IRC (Remote host closed the connection)
21:02:38 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13981: Codefix: Avoid using keyword `override` as member/variable name. https://github.com/OpenTTD/OpenTTD/pull/13981
21:03:27 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13958: Codechange: Manage window viewport with std::unique_ptr. https://github.com/OpenTTD/OpenTTD/pull/13958
21:13:51 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
21:16:13 *** WormnestAndroid has joined #openttd
21:31:37 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:35:10 <peter1138> Hmm.
21:37:34 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #13985: Codefix: Avoid uppercase characters in variable names. https://github.com/OpenTTD/OpenTTD/pull/13985
21:41:10 <andythenorth> flash style objectCommonGameControllerSpriteList
21:44:28 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
21:48:22 <DorpsGek> [OpenTTD/OpenTTD] glx22 approved pull request #13985: Codefix: Avoid uppercase characters in variable names. https://github.com/OpenTTD/OpenTTD/pull/13985#pullrequestreview-2754881210
21:50:21 <xarick> prev, pprev, ppprev, pppprev
21:50:33 <xarick> so that also exists in openttd code, hah
21:51:39 <_glx_> pPrev meant it's a pointer, frequent in some coding style but not ours 🙂
21:58:47 <DorpsGek> [OpenTTD/OpenTTD] zephyris commented on pull request #13983: Fix #13980: Allow diagonal selection for road convert https://github.com/OpenTTD/OpenTTD/pull/13983#issuecomment-2791080209
22:07:13 <_zephyris> Hmm, odd, github.com is stuck/very slowly "processing updates" after a PR force push... Is that normal?
22:07:53 <_glx_> happens
22:08:50 <_glx_> is it on a LFS repo ?
22:12:49 <_zephyris> Nope, on openttd. I'll just leave it churning then 🙂
22:12:50 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
22:13:01 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1359652349357985802/image.png?ex=67f8426d&is=67f6f0ed&hm=cba01dd3fb193c39c1c7bb4bdf30424e2b4bca97b76c086f594e65fa98daa48b&
22:13:01 <xarick> 14 days wasted? it took a month and 7 days
22:13:29 <xarick> 38 days wasted it should be, unless it's doing something extra
22:13:38 *** WormnestAndroid has joined #openttd
22:13:43 *** peter1138[d] has joined #openttd
22:13:43 <peter1138[d]> Wallclock?
22:13:46 <xarick> no
22:13:57 <xarick> this is a me problem
22:14:24 <xarick> I am counting days badly
22:15:07 <xarick> 40 days if lucky to get the first airport running is too much
22:15:30 <xarick> i know there's 13k towns, but still too much
22:16:56 <xarick> this should be throwing airports routes like candy
22:17:06 <xarick> it used to be much faster
22:19:26 <xarick> the reality of 10k ops and medium speed 😦
22:21:46 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
22:23:32 *** WormnestAndroid has joined #openttd
22:35:36 *** Wormnest has joined #openttd
22:49:58 *** k-man has quit IRC (Ping timeout: 480 seconds)
22:57:00 *** gelignite has quit IRC (Quit: Stay safe!)
22:59:25 *** k-man has joined #openttd
23:02:03 *** Wormnest has quit IRC (Quit: Leaving)
23:41:35 <_glx_> _zephyris: https://www.githubstatus.com/
23:43:59 *** Flygon has joined #openttd
23:50:26 *** Rubidium has quit IRC (Ping timeout: 480 seconds)
23:58:32 *** Rubidium has joined #openttd