IRC logs for #openttd on OFTC at 2025-12-29
⏴ go to previous day
00:23:26 <reldred> The same screenshot I posted in github btw, this is great seeing this in stock OpenTTD 😄
01:01:53 *** tokai|noir has joined #openttd
01:01:53 *** ChanServ sets mode: +v tokai|noir
01:08:43 *** tokai has quit IRC (Ping timeout: 480 seconds)
02:04:27 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
02:06:19 *** MinchinWeb[m] has joined #openttd
03:21:26 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
03:23:49 *** WormnestAndroid has joined #openttd
04:47:17 <DorpsGek> - Update: Translations from eints (by translators)
07:08:23 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
07:08:25 *** WormnestAndroid has joined #openttd
07:08:32 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
07:08:48 *** WormnestAndroid has joined #openttd
07:21:12 *** MinchinWeb[m] has quit IRC (Remote host closed the connection)
07:21:24 *** MinchinWeb[m] has joined #openttd
09:51:00 <peter1138> 15001 seems unlikely :o
09:52:38 <_zephyris> Presumably NewGRF confusion
09:59:10 <ahyangyi> Some of the ground sets look pretty desolate
09:59:20 <ahyangyi> Perhaps it's one of them?
10:07:44 <_zephyris> W00p, first bug >15000 already resolved!
10:35:23 <peter1138> (I'm not sure how that would happen, mind you.)
10:36:43 <talltyler> Wasteland GRF, I suspect
10:54:36 *** Flygon has quit IRC (Remote host closed the connection)
11:03:38 <xarick> or I'll ask Rubidium to include 14805 fixes in his 14937
11:05:57 <peter1138> Rebase it, then ask for a review. Don't ask for a merge.
11:07:38 <xarick> there's not much to review, I already tested it
11:08:02 <peter1138> That's not how it works.
11:52:23 <peter1138> Hmm, is gimp shit now?
11:52:32 <peter1138> Trying to select areas by colour and it keeps hanging :/
11:59:04 <andythenorth> ok time to learn about random triggers 😐
13:30:04 *** gelignite has joined #openttd
13:44:20 <xarick> ```this->items.try_emplace(item, value, this->values.emplace(value, item).first);
13:44:20 <xarick> this->items.emplace(item, ItemRecord{value, this->values.emplace(value, item).first});
13:44:20 <xarick> this->items.insert({item, ItemRecord{value, this->values.emplace(value, item).first}});
13:44:20 <xarick> this->items.insert_or_assign(item, ItemRecord{value, this->values.emplace(value, item).first});
13:44:20 <xarick> this->items.emplace_hint({}, item, ItemRecord{value, this->values.emplace(value, item).first});```
14:30:15 *** vldb1245 has quit IRC (Quit: User went offline on Discord a while ago)
14:47:53 <_glx_> but `this->items.emplace()` should be the default choice
16:20:03 *** reldred has quit IRC (Ping timeout: 480 seconds)
16:20:05 *** robinsonmanae0486 has quit IRC (Ping timeout: 480 seconds)
16:20:08 *** sinas128 has quit IRC (Ping timeout: 480 seconds)
16:20:11 *** _auxilian has quit IRC (Ping timeout: 480 seconds)
16:20:11 *** chaoticc_0579 has quit IRC (Ping timeout: 480 seconds)
16:20:21 *** vondpc has quit IRC (Ping timeout: 480 seconds)
16:20:21 *** utrain has quit IRC (Ping timeout: 480 seconds)
16:20:21 *** lemuria0685 has quit IRC (Ping timeout: 480 seconds)
16:20:23 *** kuhnovic has quit IRC (Ping timeout: 480 seconds)
16:20:28 *** kaji_kaede has quit IRC (Ping timeout: 480 seconds)
16:20:29 *** DorpsGek_vi has quit IRC (Ping timeout: 480 seconds)
16:20:30 *** jfkuayue has quit IRC (Ping timeout: 480 seconds)
16:20:33 *** _glx_ has quit IRC (Ping timeout: 480 seconds)
16:20:35 *** tabytac has quit IRC (Ping timeout: 480 seconds)
16:20:37 *** limyx826 has quit IRC (Read error: Connection reset by peer)
16:20:37 *** ode_ has quit IRC (Write error: connection closed)
16:20:37 *** blinkyistaken has quit IRC (Write error: connection closed)
16:20:37 *** hpiirai has quit IRC (Write error: connection closed)
16:20:37 *** sittinbythefire has quit IRC (Write error: connection closed)
16:20:37 *** rito12_51026 has quit IRC (Write error: connection closed)
16:20:37 *** belajalilija has quit IRC (Write error: connection closed)
16:20:37 *** mmtunligit has quit IRC (Write error: connection closed)
16:20:37 *** masterhellish has quit IRC (Read error: Connection reset by peer)
16:20:37 *** audigex has quit IRC (Read error: Connection reset by peer)
16:20:37 *** michi_cc[d] has quit IRC (Read error: Connection reset by peer)
16:20:37 *** thevbw has quit IRC (Write error: connection closed)
16:20:37 *** digitalfox has quit IRC (Write error: connection closed)
16:20:37 *** talltyler has quit IRC (Write error: connection closed)
16:20:37 *** xarick has quit IRC (Write error: connection closed)
16:20:37 *** emperorjake has quit IRC (Read error: Connection reset by peer)
16:20:37 *** _zephyris has quit IRC (Read error: Connection reset by peer)
16:20:37 *** locosage has quit IRC (Read error: Connection reset by peer)
16:20:37 *** onfirenfs has quit IRC (Write error: connection closed)
16:20:37 *** ahyangyi has quit IRC (Write error: connection closed)
16:20:37 *** _jgr_ has quit IRC (Read error: Connection reset by peer)
16:20:37 *** chucky76 has quit IRC (Read error: Connection reset by peer)
16:20:37 *** dojando has quit IRC (Write error: connection closed)
16:20:37 *** djsayaxe has quit IRC (Write error: connection closed)
16:20:37 *** merni has quit IRC (Write error: connection closed)
16:20:37 *** brickblock19280 has quit IRC (Write error: connection closed)
16:20:37 *** notluke2578 has quit IRC (Write error: connection closed)
16:20:37 *** andythenorth has quit IRC (Write error: connection closed)
16:20:58 *** DorpsGek_vi has joined #openttd
16:37:32 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
16:38:46 *** MinchinWeb[m] has joined #openttd
16:39:09 <_glx_> oh the bridge is gone too
16:39:32 <_glx_> ah no, we can come back
17:01:19 <dwfreed> yeah, the discord bridge does not connect puppets to IRC until they speak
17:01:39 <dwfreed> DorpsGek_vi will always be here as long as the bridge is running
17:19:57 <LordAro> did someone say something with a naughty character?
18:15:27 *** Wormnest has joined #openttd
18:29:25 <xarick> got my first `Your script made an error: Maximum memory allocation exceeded by 13 bytes when allocating 56 bytes` error
18:29:56 <xarick> when testing value iter tracking
18:34:35 <xarick> maybe 25 million? let's try
18:39:15 <xarick> 25 million -> 6.68 GiB
18:43:44 <xarick> 27,5 million -> 7.35 GiB
18:45:11 <xarick> _glx_: clone list and AddList on empty lists are still not smooth
18:45:22 <xarick> are you going to change?
18:47:54 <_glx_> these are just doing direct copy, but it's possible to do a suspendable copy instead
18:49:32 <xarick> 28,75 million -> 7.68 GiB
18:53:30 <xarick> there's also IsBuildableRectangle which could theoretically be intensive
18:54:45 <xarick> I wonder how many scripts are we making slower with these changes :(
18:56:38 <xarick> 29,375 million -> 7.85 GiB
19:02:38 <xarick> 29,6875 million -> 7.93 GiB
19:03:37 <_jgr_> Perhaps that could be considered a hint that you are wasting too much memory with all these extra iterators
19:46:39 <xarick> 29,84375 million -> 7.97 GiB
19:54:03 <xarick> 29,921875 million -> OOM :(
20:02:12 <xarick> 29,882812 million -> 7.99 GiB
20:02:43 *** andythenorth has joined #openttd
20:02:43 <andythenorth> we stopped asking 'why?' already?
20:02:49 *** kaji_kaede has joined #openttd
20:02:49 <kaji_kaede> _jgr_: Wasting memory would necessitate Xarick doing something that impacts anyone else.
20:03:07 <kaji_kaede> andythenorth: I think we've kinda already figured it out.
20:03:14 <kaji_kaede> There isn't a why.
20:06:11 <kaji_kaede> You're haphazardly stumbling about, attempting to make code perform a task faster - a task which (as far as I know) is so disproportionate in it's scope to any intended use case of the thing you're optimising that I start to question if it's only likely to cause more harm than good.
20:42:41 <andythenorth> speaking of which
20:42:42 <andythenorth> ` random_switch (FEAT_TRAINS, SELF, switch_spritelayer_cargos_intermodal_containers_low_floor_16px_random_livestock_DFLT, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) {
20:42:42 <andythenorth> 1: return ss_spritelayer_cargos_intermodal_containers_low_floor_16px_livestock_DFLT_0;
20:42:52 <andythenorth> random switch with only 1 choice? 😛
20:51:04 <andythenorth> about 350 or so of these random switches 😛
20:51:35 <andythenorth> the whole thing with triggers is weird, having to chain to a switch for them
20:51:51 <andythenorth> (an existing random switch)
20:53:59 <andythenorth> no way to reroll the bits outside of triggers?
20:57:33 <andythenorth> hmm what's the implementation?
20:58:58 <andythenorth> if there's a random switch in the default (non-callbacks) varact2 chain, there's a semaphore for each registered trigger?
21:02:44 <andythenorth> can I just dump in 1 otherwise meaningless random switch handling the trigger?
21:04:53 <andythenorth> oh nml has it's own thing `random_trigger`
21:04:57 <andythenorth> wonder how it does that
21:12:57 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
21:21:02 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
21:21:15 *** WormnestAndroid has joined #openttd
21:24:07 <andythenorth> does it do anything to try and magically only re-roll some bits?
21:32:28 *** nebulabc has quit IRC (Ping timeout: 480 seconds)
21:32:33 *** asymptotically2 has quit IRC (Ping timeout: 480 seconds)
21:34:15 *** nebulabc has joined #openttd
21:34:16 *** asymptotically2 has joined #openttd
21:38:36 <andythenorth> `Since TTDPatch 2.0.1 alpha 30, only those bits that actually get triggered will be re-randomized. Prior versions always re-randomized all bits. `
21:46:05 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
21:47:08 *** WormnestAndroid has joined #openttd
21:47:11 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
21:55:21 <andythenorth> hmm ok so how do I retrigger the bits when a vehicle gets a new load?
21:56:11 <andythenorth> `random_switch (FEAT_TRAINS, SELF, switch_spritelayer_cargos_intermodal_containers_default_24px_random_box_DFLT, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) {..}`
21:56:30 <andythenorth> triggers when the vehicle starts loading, and when it completes loading
21:57:05 <andythenorth> hmm no, it only triggers at 100% loaded
22:05:35 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
22:09:10 *** WormnestAndroid has joined #openttd
22:13:16 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
22:14:26 <xarick> bad result for value iter tracking
22:14:42 *** WormnestAndroid has joined #openttd
22:15:13 <xarick> caught me by surprise, but I forgot I'm doing clone lists in that test ... refreshing 29,9 million iterators
22:15:33 <xarick> well not exactly, up to 29,9
22:18:49 <xarick> requires 8 bytes more per item, requires iterator maintenance on swap, clone, copy
22:19:46 <xarick> gains only visible on erasing and valuating
22:21:10 *** _zephyris has joined #openttd
22:24:42 <xarick> didn't expect variant to lose to optional
22:25:51 <xarick> so I have nothing more to contribute to ScriptList
22:49:35 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
22:49:39 *** WormnestAndroid has joined #openttd
22:57:05 *** sittinbythefire has joined #openttd
22:57:05 <sittinbythefire> _zephyris: The thought of going blind terrifies me, but then I see an image like this and I start to welcome it
23:10:20 <peter1138> andythenorth, triggers make sense, the way NML abstracts everything maybe not.
23:15:02 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
23:18:00 *** MinchinWeb[m] has joined #openttd
continue to next day ⏵