IRC logs for #openttd on OFTC at 2024-12-16
            
01:45:24 *** IoT has joined #openttd
01:46:23 *** IoT has quit IRC ()
02:47:04 *** Flygon has quit IRC (Read error: Connection reset by peer)
02:51:11 <DorpsGek> [OpenTTD/OpenTTD] NahashonM updated pull request #13130: Fix #9056: [interface] missing scrollbar on infrastructure window. https://github.com/OpenTTD/OpenTTD/pull/13130
03:00:45 *** Wormnest has quit IRC (Quit: Leaving)
03:03:15 *** D-HUND is now known as debdog
03:20:42 *** gnu_jj_ has joined #openttd
03:23:54 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
03:39:41 <DorpsGek> [OpenTTD/team] glx22 commented on issue #605: [zh_CN] Translator access request https://github.com/OpenTTD/team/issues/605
03:41:46 *** D-HUND has joined #openttd
03:45:16 *** debdog has quit IRC (Ping timeout: 480 seconds)
03:46:13 *** D-HUND is now known as debdog
04:45:56 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25
04:45:57 <DorpsGek> - Update: Translations from eints (by translators)
04:54:02 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150384389
04:58:25 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150384459
05:00:54 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150384495
05:01:07 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150384496
05:02:16 *** keikoz has joined #openttd
05:02:56 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150384529
05:04:05 <wensimehrp> 😮 spam?
05:07:36 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150384614
05:11:44 <wensimehrp> https://github.com/OpenTTD/OpenTTD/blob/6ba6ae5e6f977eee37e5f2c08921056522532b25/src/lang/english.txt#L3145-L3159
05:11:44 <wensimehrp> Are these lines legacy?
05:11:55 <wensimehrp> oh wait
05:11:56 <wensimehrp> no
05:15:32 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150384718
05:17:26 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150384781
05:18:41 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150384816
05:33:36 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150385138
07:18:00 <DorpsGek> [OpenTTD/survey-web] survey-summary[bot] pushed 1 commits to main https://github.com/OpenTTD/survey-web/commit/c4992198846d8b68e890e8f379da2082a1f0ccda
07:18:01 <DorpsGek> - Add: summary for week 50 of 2024 (by OpenTTD Survey)
07:52:58 <truebrain> wensimehrp: It is spamming, as it is highly irregular to leave comments like that. GitHub makes non attempt to show them in any way that makes sense, doesn't allow you to list them, etc. So we make a very verbose message here to give them some visibility. But GitHub is not designed for the workflow you are attempting here 😉
07:55:13 <wensimehrp> I see. Maybe I'll find another way to get in touch with them.
07:58:30 <DorpsGek> [OpenTTD/nml] andythenorth updated pull request #344: Change: add vehicle 'refit' callback (cb 0x163) and cargo class filter prop (0x28 for trains etc) https://github.com/OpenTTD/nml/pull/344
07:58:30 <truebrain> Up to you, I am just explaining why it is spammy like this, and that the receiver of your messages only has his email notifications to find back your comments 😦
07:59:19 <truebrain> (In other words, I am not judging your approach; I am just being annoyed how difficult GitHub made this 😄 )
08:34:08 <peter1138> Yeah
08:42:50 *** rere has joined #openttd
08:43:22 *** rere has quit IRC ()
09:20:26 *** mindlesstux has quit IRC (Quit: The Lounge - https://thelounge.chat)
09:21:31 *** mindlesstux has joined #openttd
09:56:36 *** Flygon has joined #openttd
10:16:30 <peter1138> Squash into one giant commit right?
10:17:04 <truebrain> That is the pro-way to go, so I read!
10:56:15 <peter1138> With no commit message.
10:58:28 <andythenorth> "Change: roadtypes"
11:02:28 *** kuka_lie has joined #openttd
11:10:12 <peter1138> Hmm, how to write "do X to commit changes" in normal person English?
11:12:55 <peter1138> Never mind. I ate a Wispa instead.
11:13:11 <LordAro> good choice
11:14:21 <andythenorth> mostly air?
11:14:32 <peter1138> It's basically good for you.
11:25:24 *** kuka_lie has quit IRC (Quit: leaving)
11:46:31 <peter1138> Ok, how many parameters is the newgrf TextRefStack allowed to access?
11:47:58 <peter1138> I'm assuming that the num entries refers to the number of registers used rather than the number of parameters.
11:51:21 <peter1138> Although strings.cpp:1559 suggests it might be. That might be wrong.
11:54:28 <peter1138> That the text ref stack modifies the existing parameters, instead of having its own set of private parameters, is awkward.
11:59:24 <andythenorth> does anyone know? 🙂
11:59:34 <andythenorth> also is it lunch?
12:00:01 <LordAro> pretty sure
12:01:59 <_glx_> Text ref stack is a set of register with variable size params
12:03:14 <peter1138> I know that, I'm just trying to determine if there is some sort of limit.
12:04:28 <_glx_> I think most have 6 registers
12:04:47 <peter1138> But does 6 registers mean only 6 parameters?
12:04:57 <_glx_> But it's painful to use stack
12:05:22 <_glx_> It's possible to pack more than one param in a register
12:06:06 <_glx_> And rotate stuff in the string commands
12:08:16 <peter1138> Okay so for maximum "make sure it's not breaking anything" I need to reserve 20 parameters just in case.
12:13:32 <peter1138> Also need to test the error messages, which first means trying to find a NewGRF error that uses the stack...
12:14:34 <andythenorth> ouch
12:20:54 <peter1138> ECS likes to give error messages, but they're probably fixed strings.
12:26:37 <peter1138> There must be at least one, because the textrefstack is invokved in the error window for a reason already.
12:26:53 <andythenorth> I am sick and hallucinating, otherwise the easiest thing would be to just write a grf
12:26:58 <andythenorth> but nah
12:32:38 <peter1138> Hmm, resolving the stack earlier would be nice.
12:34:46 <peter1138> BLT roll?
12:34:59 <peter1138> It's got lettuce in it, it's basically a salad and therefore healthy.
12:58:06 <peter1138> andythenorth: Clearly you've turned into an LLM.
12:59:18 <andythenorth> 'turned into'? 😛
12:59:33 <andythenorth> there was a difference before?
13:17:37 <LordAro> let's test
13:17:42 <LordAro> andythenorth: tell me about David Faber
13:22:27 <truebrain> seems you broke it; most likely a tokenizer issue
13:25:55 <andythenorth> I'd have to google "David Faber"
13:26:02 <andythenorth> would you like me to google it for you?
13:26:14 <LordAro> nah, you've already proved you're not
13:27:33 <andythenorth> I can probably give a custom GPT those rules 😛
13:27:49 <truebrain> can we train an LLM on all the talk andy does, to make a chatbot that looks&feels like andy?
13:27:54 <truebrain> I feel there is enough chat to actually do that
13:28:20 <LordAro> i feel a markov chain would do
13:28:35 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1318208156593160274/image.png?ex=67617c83&is=67602b03&hm=c51cb6ae2bbbe0701fb81b2dfba61d983d90dfcc1a55d5ff44053d493ac4bfa2&
13:28:45 <andythenorth> I trained a GPT earlier this year
13:29:00 <truebrain> LordAro: not sure that is an insult or not 😛 😛
13:29:04 <andythenorth> it's only allowed to respond as a dog
13:29:06 <truebrain> (insult to andy, to be clear)
13:29:23 <andythenorth> `from math import random` would do
13:29:32 <truebrain> no, you are everything but not random
13:29:36 <truebrain> so that would be wrong
13:29:40 <andythenorth> then `random.choice(['hmm', 'lunch?"])`
13:29:54 <truebrain> You would never ask for lunch after 1130 😛
13:29:57 <andythenorth> could just data mine the irc logs for the weights
13:30:09 <andythenorth> well it could have a timestamp vector too
13:30:17 <LordAro> truebrain: ;)
13:30:19 <truebrain> so we are back to a markov chain 🙂
13:30:33 <truebrain> You are not helping your own case here btw 😛
13:31:14 <andythenorth> there was a case? 😮
13:31:58 <andythenorth> also lunchtime
13:36:59 <peter1138> Ah yes, the obvious `ModelState.Clear();` to make things work.
14:18:33 <DorpsGek> [OpenTTD/OpenTTD] tinygrox left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150401623
14:21:37 <DorpsGek> [OpenTTD/OpenTTD] PeterN left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150401704
14:44:01 *** nielsm has joined #openttd
14:54:11 *** kuka_lie has joined #openttd
15:58:00 <DorpsGek> [OpenTTD/OpenTTD] tinygrox left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150405636
16:00:01 <peter1138> wensimehrp: sort them out :p
16:10:11 <DorpsGek> [OpenTTD/OpenTTD] PeterN left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150406168
16:11:13 <FLHerne> I like the screenshot :-)
16:11:53 <_glx_> reading comments on commits is the worst interface
16:12:32 <peter1138> it's not great, but there's not much option here.
16:25:35 <DorpsGek> [OpenTTD/OpenTTD] tinygrox left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150406791
16:30:23 *** ialokin has quit IRC (Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in)
16:30:31 *** ialokin has joined #openttd
16:36:11 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150407203
16:36:22 *** virtualrandomnumber has joined #openttd
16:36:49 *** virtualrandomnumber has quit IRC ()
16:37:50 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150407291
16:39:16 <wensimehrp> Oof, just learned that this dude intentionally used the incorrect term
16:40:01 <xarick> hi
16:40:36 <wensimehrp> Ih
16:41:57 <peter1138> Well, good luck.
16:46:35 <DorpsGek> [OpenTTD/OpenTTD] Babel-TTT left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150407733
16:58:02 <peter1138> I'm now imagining Wikipedia-style edit wars...
17:05:37 <peter1138> Alright anyone found a NewGRF error that uses the textref stack yet?
17:05:56 <andythenorth> I have not
17:06:38 <andythenorth> FIRS uses substrings in errors
17:06:51 <andythenorth> but I assume nmlc composes those to static action 4s
17:07:34 <DorpsGek> [OpenTTD/OpenTTD] tinygrox left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150408658
17:09:56 <_glx_> peter1138: you mean action B?
17:10:09 <_glx_> or callback returns?
17:10:21 <DorpsGek> [OpenTTD/OpenTTD] tinygrox left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150408734
17:10:35 <peter1138> Callback I guess? Whatever it is that uses the textref stack.
17:11:13 <peter1138> <https://github.com/OpenTTD/OpenTTD/issues/4599>
17:11:17 <peter1138> Hmm, some clues. Old though.
17:11:27 <wensimehrp> tinygroxviaGitHub: bruh
17:11:29 <DorpsGek> [OpenTTD/OpenTTD] Babel-TTT left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/8bf2ab62d9f2c3ad2a70d62693c57f98763ffe45#r150408767
17:12:39 <kuhnovic> wensimehrp: Come on, just update the entire translation, since you clearly have all the time in the world 😛
17:13:46 <wensimehrp> After they are done, sure
17:13:56 <_glx_> that looks like action B, and it doesn't use stack IIRC
17:15:06 <_glx_> "Custom NewGRF error messages (0xFF)" <-- this part seems to relate to https://newgrf-specs.tt-wiki.net/wiki/ActionB#message-id
17:17:18 <peter1138> Hm
17:18:19 <peter1138> Well anyway, there exist errors that use the textrefstack.
17:18:43 <peter1138> Or ShowErrorMessage() invokes StartTextRefStackUsage() for no reason, which seems unlikely.
17:20:42 <andythenorth> maybe we should data mine grfs
17:23:08 <_glx_> yeah text stack is usable for industry build failure like CB28 result
17:25:35 *** Wolf01 has joined #openttd
17:25:35 *** kuka_lie has quit IRC (Quit: leaving)
17:29:09 <_glx_> hmm or maybe not, I don't see it passing the text stack
17:29:42 <_glx_> the error stuff is hard to follow
17:33:13 <_glx_> only call location where stack info could pass is `CommandHelperBase::InternalPostResult()` it seems
17:35:11 <DorpsGek> [OpenTTD/OpenTTD] tinygrox left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/8bf2ab62d9f2c3ad2a70d62693c57f98763ffe45#r150409763
17:36:46 <peter1138> That... seems odd.
17:37:25 <_glx_> all other call seems to use the other signature and never fill stack related args
17:37:36 <peter1138> Yeah, GetErrorMessageFromLocationCallbackResult.
17:37:46 <peter1138> So it's only used by the industry location callback.
17:37:48 <peter1138> What a faff
17:42:39 <peter1138> Okay, does FIRS use this? 😄
17:44:41 <peter1138> Oh, not only that. Stations, objects, and industries.
17:44:43 <peter1138> TIL.
17:55:21 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150410494
17:56:42 <peter1138> Hmm. Yeah, damn, this does not work.
18:08:07 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1318278500393680937/image.png?ex=6761be06&is=67606c86&hm=3b24745b3082601abf0bb7631c7c5c9efc0b7b90e20b5935d746d25791838ce1&
18:08:07 <peter1138> Wonder if that's stack usage or just... utterly broken.
18:16:43 <peter1138> Just broken, no stack usage.
18:17:15 <peter1138> Still a leftover of game-script string ID limits applied to internally encoded strings.
18:21:24 *** gelignite has joined #openttd
18:23:04 <DorpsGek> [OpenTTD/OpenTTD] tinygrox left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150411645
18:30:18 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1318284083947638804/image.png?ex=6761c33a&is=676071ba&hm=106ecd03b047fbdf8daa6b23c3987c0ad1227b594baa753a2663491a478dd8aa&
18:30:18 <peter1138> Okay, fixed. But it's not the stack.
18:32:10 <_glx_> let see if I can quickly make a grf with an error using stack
18:45:00 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1318287783194001438/example_station.grf?ex=6761c6ac&is=6760752c&hm=b35138c31dea6985aca46e6d4e3668b1ebd529964c7d41f2bced7696aabf8e16&
18:45:00 <_glx_> just build the station, it will always error
18:45:37 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1318287937787658271/image.png?ex=6761c6d0&is=67607550&hm=3ae90bf7455ece75cc7374f11bb0a7169a846cb58ab65c4a3e36c199518ef217&
18:47:51 <_glx_> station location check puts 1234 and 5678 in 0x100 and 0x101, then returns "Error test {COMMA} {COMMA}"
18:54:37 <peter1138> Hmm. Suspicious.
18:56:56 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1318290787779477504/image.png?ex=6761c978&is=676077f8&hm=aaddc7db64efb105bea4aad493db862f41f7fc727a94a4e9d5f773b48031f666&
18:57:08 <_glx_> looks fine
18:57:48 <_glx_> do you need a more complex string ?
18:57:52 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150412975
18:58:11 <peter1138> ```c++
18:58:11 <peter1138> std::array<StringParameter, 20> params{};
18:58:11 <peter1138> res.UseTextRefStack(grffile, 4);
18:58:11 <peter1138> res.SetDetailedMessage(GetEncodedStringWithArgs(res.GetErrorMessage(), params));
18:58:42 <peter1138> So this is my working solution. Pre-allocate parameters by encoding them into the string.
18:59:04 <peter1138> It's a bit overkill though, because each uninitialised parameter is actually just a `:` in the encoded string.
18:59:43 <peter1138> (Uninitialised isn't quite right, it's initialised to "no value")
19:00:39 <peter1138> I was surprised because it really was as simple as adding parameters to the encoded string.
19:01:54 <peter1138> And `20` becuase that's the old global parameter size. I don't think 20 is really usable here, but without pre-parsing the string I don't think I there's a way to know.
19:02:41 <peter1138> But also, I wonder if we _should_ pre-parse it, so that we don't need to store any copies of the stack.
19:58:05 *** gelignite has quit IRC (Quit: Stay safe!)
20:06:18 <_glx_> At most stack is 32 bytes (6 registers), but read size is variable
20:20:04 <peter1138> Yes, my idea is if we parsed the string before sending it to GetString() then we could maybe dynamically fill a parameter vector in advance, and modify the string. It's then suitable for passing into GetString() to use directly, or into GetEncodedString() to save for later. The textrefstack is no longer needed as it's been applied already.
20:20:12 <peter1138> But for now, I'm not touching it.
20:33:03 <_glx_> but params is always empty here
20:39:26 <DorpsGek> [OpenTTD/OpenTTD] tinygrox left a comment on commit: Update: Translations from eints https://github.com/OpenTTD/OpenTTD/commit/6ba6ae5e6f977eee37e5f2c08921056522532b25#r150423750
20:53:26 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:03:40 <wensimehrp> Now they're making things personal
21:45:03 *** SigHunter has quit IRC ()
21:46:03 <xarick> 🙂
21:50:11 *** SigHunter has joined #openttd
22:05:25 <xarick> town generation stalls
22:05:38 <xarick> investigating it
22:07:43 <_glx_> not enough names ?
22:11:22 <xarick> deleting towns during gen costs a bit
22:11:31 <xarick> of stall time
22:12:10 <xarick> oh, I remember this
22:12:46 <xarick> it's the issue of bridges having no town owner
22:14:06 <xarick> need to dig into the past to refresh my memory
22:26:28 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1318343516979462154/image.png?ex=6761fa94&is=6760a914&hm=5d898f136557145da6e6221ddfae43a4bb0b4f7ce5cffeadc3460e5d13131860&
22:30:58 <xarick> oh, debug build, bad test
22:56:18 *** keikoz has quit IRC (Ping timeout: 480 seconds)
23:10:15 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)