IRC logs for #openttd on OFTC at 2025-12-28
            
00:02:04 *** MinchinWeb[m] has joined #openttd
00:07:21 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
01:02:19 *** tokai has joined #openttd
01:02:19 *** ChanServ sets mode: +v tokai
01:09:14 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
02:12:32 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
02:17:07 *** MinchinWeb[m] has joined #openttd
02:47:23 *** Wormnest has quit IRC (Quit: Leaving)
03:04:26 *** Flygon has joined #openttd
03:28:04 <reldred> @peter1138 nice work!
03:49:21 *** hexdog has joined #openttd
04:17:03 *** hexdog has quit IRC (Remote host closed the connection)
04:47:01 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/a0f80e1935f7eae04be0e28dcdcf51da95aa3bdc
04:47:02 <DorpsGek> - Update: Translations from eints (by translators)
04:51:08 <DorpsGek> [OpenTTD/OpenTTD] makhnanov opened issue #14997: [Bug]: Fullscreen game app hides when I move cursor out of game and click to another monitor. https://github.com/OpenTTD/OpenTTD/issues/14997
05:32:17 *** MinchinWeb[m] has quit IRC (Read error: Connection reset by peer)
05:35:43 *** MinchinWeb[m] has joined #openttd
05:42:18 <reldred> Also desert fences and desert farms when ๐Ÿ˜ญ
05:48:52 <reldred> Probably needs some grf wizardry around those though. Only really makes sense for pineapple landscape or other situations where desert != irradiated hellscape
06:07:31 <emperorjake> Snowy fields would be nice too
06:10:12 <reldred> also peter the children still yearn for the RGB/HSL CC ๐Ÿ™
06:11:45 <reldred> Snowy fields really needs grf aware fields though, and grf aware fields could then eventually let us have varied graphics controlled by the industry
06:12:04 <reldred> which you know, would be absolutely *fantastic*
07:50:51 <DorpsGek> [OpenTTD/OpenTTD] Rito13 commented on pull request #14983: Feature: Allow to build buoys at (0x0). https://github.com/OpenTTD/OpenTTD/pull/14983#issuecomment-3694544182
07:50:58 <DorpsGek> [OpenTTD/OpenTTD] Rito13 updated pull request #14983: Feature: Allow to build buoys at (0x0). https://github.com/OpenTTD/OpenTTD/pull/14983
07:51:15 <DorpsGek> [OpenTTD/OpenTTD] Rito13 updated pull request #14870: Codefix: Use proper widget type and update widgets properly. https://github.com/OpenTTD/OpenTTD/pull/14870
08:52:46 *** Wolf01 has joined #openttd
09:29:23 <_zephyris> NewGRF fields, woop
09:29:50 <_zephyris> Would really enhance how the world looks
09:30:21 <_zephyris> More generally, a few more options for random start of game object placement would be nice
09:31:17 <_zephyris> Lighthouse-like distribution, transmitter-like distribution, and a few creative new options
11:17:36 <andythenorth> like...a script? ๐Ÿ‘€
11:17:54 <_zephyris> Wellll
11:29:56 <sittinbythefire> Fields would be cool. I was just thinking how nice it would be if I could make farm fields look greener over time if water/supplies were delivered
11:30:16 <sittinbythefire> Would be a nice effect to show progress ๐Ÿ™‚
11:42:23 *** Borg has joined #openttd
12:00:24 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #14997: [Bug]: Fullscreen game app hides when I move cursor out of game and click to another monitor. https://github.com/OpenTTD/OpenTTD/issues/14997
12:04:13 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #14997: [Bug]: Fullscreen game app hides when I move cursor out of game and click to another monitor. https://github.com/OpenTTD/OpenTTD/issues/14997
12:54:52 <emperorjake> https://cdn.discordapp.com/attachments/1008473233844097104/1454819895656321138/image.png?ex=69527a1c&is=6951289c&hm=45cdf8b44de3b40ce29ee325798d3440c5bec14e794e943ca47ac9cbd378fefd&
12:54:52 <emperorjake> I've realised an interesting side effect - because the 15.0 title screen is toyland, it uses the toyland palette for the water pixels in the climate icons
13:14:48 <ahyangyi> Nice
13:40:31 *** dojando has joined #openttd
13:40:31 <dojando> I think the toyland water should be replaced with honey or chocolate ๐Ÿ˜
13:45:05 <emperorjake> I think other climates (especially tropic) should be able to use the toyland water
13:57:19 <DorpsGek> [OpenTTD/appstore-data] 2TallTyler opened issue #13: Increased size requirement for Steam assets https://github.com/OpenTTD/appstore-data/issues/13
14:04:20 <DorpsGek> [OpenTTD/appstore-data] 2TallTyler opened issue #14: RFC: Showing NewGRFs in screenshots and trailer? https://github.com/OpenTTD/appstore-data/issues/14
14:15:25 <DorpsGek> [OpenTTD/appstore-data] 2TallTyler opened issue #15: RFC: What to show in new screenshots? https://github.com/OpenTTD/appstore-data/issues/15
14:17:03 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1454840575390908498/image.png?ex=69528d5e&is=69513bde&hm=4aa9a9f554a9509d97a7caf6d1594fe71968028a3199fa967238adc636f9977b&
14:25:09 <xarick> I'm having a hard time deciding what's the best std map set build
14:27:26 <Rubidium> the one with lowest cyclomatic complexity?
14:29:17 <xarick> the effect of value iter tracking: it's strong showing in ValuateTests
14:29:31 <xarick> but a poor show in RemoveItemTests
14:32:20 <xarick> I am almost certain the poor show in RemoveItemTests is due to swap list
14:32:57 <xarick> because all the iterators need to be refreshed
14:33:17 <xarick> and there's 2-6 million iterators
14:34:22 <Rubidium> that'd be about 2-6 million (give or take a dozen) too many iterators
14:34:27 <xarick> let me test that test without SwapList... just curious
14:57:11 <DorpsGek> [OpenTTD/appstore-data] zephyris commented on issue #13: Increased size requirement for Steam assets https://github.com/OpenTTD/appstore-data/issues/13
15:02:24 <DorpsGek> [OpenTTD/appstore-data] zephyris commented on issue #15: RFC: What to show in new screenshots? https://github.com/OpenTTD/appstore-data/issues/15
15:04:43 <_zephyris> Idle thought, would it be possible to embed game and add-on metadata in screenshots?
15:05:55 <_zephyris> Should be possible to dump map settings and seed, newgrf list, other bananas IDs etc. in the EXIF data.
15:09:22 <Rubidium> I've toyed with that idea as well a while ago... https://github.com/OpenTTD/osie
15:12:57 <xarick> apparently I triggered an infinite loop :|
15:18:49 <Rubidium> _zephyris: the second image of https://goldplatedgames.com/2018/01/24/review-openttd/ tells me https://pastebin.com/Ut040DYh
15:19:30 <_zephyris> So it's already embedded?
15:19:53 <Rubidium> well, part of what you suggested is already implemented/embedded
15:21:08 <Rubidium> but yes, any unmodified PNG screenshot from the last ~15 years should have OpenTTD version, baseset + version, NewGRFs and companies/AIs
15:21:33 <_zephyris> Nice
15:34:13 <DorpsGek> [OpenTTD/appstore-data] Ufiby commented on issue #14: RFC: Showing NewGRFs in screenshots and trailer? https://github.com/OpenTTD/appstore-data/issues/14
15:40:52 <DorpsGek> [OpenTTD/appstore-data] zephyris commented on issue #14: RFC: Showing NewGRFs in screenshots and trailer? https://github.com/OpenTTD/appstore-data/issues/14
16:07:39 <xarick> just discovered a bug in my viter tracking :| I am very disappointed in myself
16:11:37 <xarick> "map/set iterators incompatible", but how
16:14:46 <xarick> so... the SwapList was actually saving my stuff from crashing
16:15:23 <xarick> now without it, there's some iterator mismatch :|
16:15:47 <xarick> I'm confused
16:15:59 <xarick> i expected the crash the other way around
16:24:03 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1454872536041914613/image.png?ex=6952ab22&is=695159a2&hm=d1d7bdd7f7504e451fc70570aab9cfa4a7338462355ef03b2d16b08e3b53b134&
16:24:03 <xarick> I need to think. small sample, I start by adding 10 items values_inited is false therefore there is no viter values and no values
16:24:58 <xarick> next I cast .Begin on the list, this should fill values and initialize all viters, let's see if that happens
16:27:13 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1454873332523602122/image.png?ex=6952abe0&is=69515a60&hm=7e75df09a279c382f2f6d63f99cc90a450ccecf8547c2a62f1943bd944ddb0a5&
16:27:13 <xarick> correct
16:31:57 <xarick> now i'm into the _set metamethod
16:32:12 <xarick> setting new values to the items
16:35:58 <xarick> try_emplace wondering if try_emplace is a bad choice
16:36:27 <xarick> this->items.try_emplace(item, ItemRecord(value))
16:36:36 <xarick> item already exists
16:37:05 <xarick> ItemRecord is not modified I assume
16:38:51 <xarick> value is updated. viter still points to the correct iterator in this->values list
16:39:11 <DorpsGek> [OpenTTD/survey-web] ingstem opened issue #66: Weekly summary creation is failing https://github.com/OpenTTD/survey-web/issues/66
16:40:49 <xarick> ``` /* Re-insert node handle */
16:40:49 <xarick> auto value_iter = this->values.insert(std::move(node_handle)).position;
16:40:49 <xarick> /* Update cached iterator */
16:40:49 <xarick> item_iter->second.viter = value_iter;```
16:41:12 <xarick> seems correct
16:41:35 <xarick> viter has a new fresh iterator
16:41:44 <xarick> item_iter value updated
16:41:55 <xarick> so, i don't get it where this crash comes form
16:54:43 <Rubidium> welcome to the wonderful world of UB
17:03:22 <LordAro> hmm, who turned a setting into a list recently?
17:20:14 <Rubidium> can't find anything obvious
17:21:19 <Rubidium> I've got no clue how to get to the specific json that causes the issue, so can't even exclude it being something malicious
17:48:43 <xarick> i have a vague idea where the problem originates from
17:49:12 <xarick> ScriptList::AddList when the list is empty
17:50:07 <xarick> `this->items = list->items;` "this" list is empty, "list" list items have iterators pointing to list->values
17:50:49 <LordAro> Rubidium: first step may be improving the exception message :)
17:50:53 <xarick> a copy will make "this" items to have iterators pointing to "list" values
17:51:27 <LordAro> should be able to use the repo secrets to get at the cloudflare data ;)
18:00:28 *** Flygon has quit IRC (Read error: Connection reset by peer)
18:02:55 <_glx_> I don't see any changes in settings
18:04:29 <peter1138> I did changes to font settings a while back, and then reverted them.
18:05:44 <_glx_> yeah but it's not a list
18:10:41 <_glx_> unless it's the "configured"/"active" change
18:11:26 <peter1138> Yeah, that.
18:11:31 <_glx_> most likely "active"
18:12:10 <_glx_> push_back feels like list
18:14:43 <_glx_> I guess any survey.json between #13303 and its revert should give enough data to reproduce the error
18:18:34 <_glx_> crash logs from #14898 also contain survey data
18:30:43 *** Wormnest has joined #openttd
18:32:45 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
18:33:00 *** Smedles has joined #openttd
18:54:02 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
18:54:45 *** MinchinWeb[m] has joined #openttd
19:04:28 *** gelignite has joined #openttd
19:25:45 *** Wormnest has quit IRC (Quit: Leaving)
19:55:04 *** toktik has quit IRC (Remote host closed the connection)
19:55:40 *** toktik has joined #openttd
19:56:56 <DorpsGek> [OpenTTD/OpenTTD] Rito13 commented on pull request #14685: Codechange: Use import instead of include for std. https://github.com/OpenTTD/OpenTTD/pull/14685#issuecomment-3695001559
19:56:59 <DorpsGek> [OpenTTD/OpenTTD] Rito13 closed pull request #14685: Codechange: Use import instead of include for std. https://github.com/OpenTTD/OpenTTD/pull/14685
20:03:07 *** Borg has quit IRC (Quit: leaving)
20:09:14 <andythenorth> well
20:31:33 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
20:31:50 *** WormnestAndroid has joined #openttd
20:43:45 *** chucky76 has joined #openttd
20:43:45 <chucky76> https://cdn.discordapp.com/attachments/1008473233844097104/1454937883226935522/Screenshot_2025-12-28_213822.png?ex=6952e7fe&is=6951967e&hm=9344141ee4f3f0f4ff96dc59511ec6123f9bc2528ef46af03a59643437413a56&
20:43:45 <chucky76> Just a little question: Has the intro menue been changed or is this for developing only?
20:44:19 <belajalilija> no, they just did it and released it as a joke
20:52:35 <DorpsGek> [OpenTTD/OpenTTD] Rito13 updated pull request #14605: Feature: [#13915] Make vehicle testing offers appear in one window. https://github.com/OpenTTD/OpenTTD/pull/14605
20:53:49 <chucky76> belajalilija: Really? Are you serious?
20:54:05 <rito12_51026> Simple rebase after one and a half month
20:54:23 <belajalilija> chucky76: very
20:54:37 <chucky76> https://cdn.discordapp.com/attachments/1008473233844097104/1454940629749465340/Screenshot_2025-12-28_214922.png?ex=6952ea8d&is=6951990d&hm=6931e90bb3eada3aa045375d83a3bb16cabace975d35871599525fb0fb3f1afb&
20:54:37 <chucky76> Iยดm asking because I have to change some additional code too...
20:55:18 <DorpsGek> [OpenTTD/OpenTTD] ingstem opened issue #14998: [Bug]: Exit button of the new title menu can become inaccessible in specific cases https://github.com/OpenTTD/OpenTTD/issues/14998
20:58:19 <mmtunligit> "dont use zbase"
20:59:47 <rito12_51026> Load save and leave to the desktop?
21:08:36 <LordAro> scrollbar on the menu screen!
21:10:25 <mmtunligit> or just yknow, ctrl+Q
21:10:29 <xarick> i got distracted with youtube again :/
21:10:47 <mmtunligit> or whatever the quit program keybind is on your system
21:10:55 <mmtunligit> or use the little x in the title bar
21:16:03 <Rubidium> mmtunligit: sounds like you haven't read the issue
21:21:54 <mmtunligit> i did initially but then i came back 15 minutes later and had forgotten some of the details because its not something i bothered to commit mental capacity to
21:22:16 <peter1138> Low priority imho.
21:22:27 <peter1138> You can quit with alt-f4.
21:24:23 <mmtunligit> small, unobstrusize edge case unless using zbase and the far end of the interface scale, not a crash, easily worked around
21:24:38 <rito12_51026> Allow to close main menu window, and perform division by zero if no window exist?
21:26:58 <xarick> how to refresh 2 million iterators fast
21:27:36 <xarick> must think
21:36:52 <xarick> maybe this <https://gist.github.com/SamuXarick/8d49945eeaff402b0a2f46eacdf62707>
21:39:48 <Rubidium> have fun optimising the wrong thing
21:40:16 <_zephyris> The real issue is window size vs interface size, surely?
21:40:35 <andythenorth> why not 20 million iterators? ๐Ÿ™‚
21:40:38 <_zephyris> So a "proper" fix would be to clamp max interface scale based on window size?
21:42:25 <xarick> I see the potential
21:42:51 <xarick> but i can't make it shine
21:43:44 <andythenorth> I don't understand random triggers https://newgrf-specs.tt-wiki.net/wiki/NML:Random_switch#Vehicles
21:44:13 <andythenorth> why are `bitmask(TRIGGER_VEHICLE_UNLOAD_ALL, TRIGGER_VEHICLE_ANY_LOAD, TRIGGER_ALL_NEEDED)` needed to re-randomise bits when a vehicle is loaded?
21:44:27 <andythenorth> why not just `TRIGGER_VEHICLE_ANY_LOAD`xor `TRIGGER_VEHICLE_UNLOAD_ALL`?
21:46:00 <andythenorth> also bits 2 and 3 of vehicle random trigger are for the consist (parent scope)
21:46:01 <andythenorth> https://newgrf-specs.tt-wiki.net/wiki/RandomAction2#Vehicles
21:46:12 <andythenorth> but NML docs have them as vehicle (self scope)
21:51:45 <_glx_> xarick: very easy, don't use 2M iterators
21:59:33 <xarick> i can get RemoveItemTests down to 334 seconds with value iter tracking
21:59:49 <xarick> but if i swap list
21:59:56 <xarick> this goes up to 369 seconds
22:01:31 <xarick> master is at 400 seconds
22:02:28 <peter1138> andythenorth, the text says "when the consist has been emptied and then receives new cargo"
22:02:36 <peter1138> That means it needs to have unloaded, and then loaded again.
22:02:53 <xarick> master without list swap is probably still 400 seconds
22:22:07 <andythenorth> triggers break my brain ๐Ÿ™‚
22:23:00 <andythenorth> Horse 4 has a bug with bits being re-randomised when 100% load is reached on a vehicle
22:23:17 <andythenorth> I will test tomorrow with Horse 3 to see if it's a new bug
22:29:42 <andythenorth> hmm bug exists in Horse 3 also
22:29:48 <andythenorth> so either it was always there unnoticed
22:29:50 <andythenorth> or NML is broken
22:30:09 <andythenorth> or OpenTTD random triggers are broken (probably recently ish)
22:30:14 <andythenorth> let's go with Horse bug ๐Ÿ˜›
22:36:26 <DorpsGek> [OpenTTD/OpenTTD] zephyris commented on issue #14998: [Bug]: Exit button of the new title menu can become inaccessible in specific cases https://github.com/OpenTTD/OpenTTD/issues/14998
22:40:13 <DorpsGek> [OpenTTD/OpenTTD] ingstem commented on issue #14998: [Bug]: Exit button of the new title menu can become inaccessible in specific cases https://github.com/OpenTTD/OpenTTD/issues/14998
22:41:52 <DorpsGek> [OpenTTD/appstore-data] zephyris commented on issue #15: RFC: What to show in new screenshots? https://github.com/OpenTTD/appstore-data/issues/15
22:46:23 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:51:02 *** gelignite has quit IRC ()
23:01:32 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1454972565557612597/image.png?ex=6953084b&is=6951b6cb&hm=c9423452c3ede8a4d3fe66799b7664e098b700c6f3f7d48a5962a1407087da0c&
23:01:32 <xarick> help my brain
23:02:18 <xarick> i have two lists, i swap, what should happen to each list
23:03:16 <xarick> unconditionally swap values
23:03:38 <xarick> now whether to rebuild items or swap items
23:04:45 <xarick> rebuilditems will relink iterators
23:04:57 <xarick> swap items will not
23:05:08 <xarick> iterators are toast if that happens
23:06:54 <xarick> if the values_inited is false in one of the lists, what must I do
23:08:34 <_glx_> not using iterators should help
23:09:06 <_glx_> it's always a pain to keep valid iterators
23:09:09 <xarick> if the items are not rebuilt and values_inited is false, that means i must forcefully create list->items, but, is swaping correct at that point
23:10:42 <xarick> i cannot swap if i just rebuilt for the other list
23:11:19 <xarick> or can i?
23:12:49 <xarick> i think the swap test should be first before the others
23:14:08 <xarick> if neither values are inited, swap is the only logical possible choice. okay, so I turned the problem around.
23:14:29 <xarick> but linking need to happen
23:14:38 <xarick> if any of the lists has list_values inited
23:17:04 <xarick> my goal was to avoid iterating ->items twice
23:17:47 <xarick> but apparently, i have no good brains to think this through
23:31:30 *** MinchinWeb[m] has quit IRC (Read error: Connection reset by peer)
23:31:47 *** MinchinWeb[m] has joined #openttd
23:45:38 <xarick> I can't do better than 369
23:46:24 <xarick> If i exclude the SwapList tests in RemoveItemTests, it goes to 334 seconds
23:46:34 <xarick> already with the fix
23:47:06 <xarick> bed
23:47:08 <xarick> good night
23:56:16 <DorpsGek> [OpenTTD/OpenTTD] scorpio1441 opened issue #14999: [Bug]: Station won't accept cargo when placed from the specific side of the Oil Refinery https://github.com/OpenTTD/OpenTTD/issues/14999