IRC logs for #openttd on OFTC at 2023-03-31
            
01:07:16 *** WormnestAndroid has quit IRC (Remote host closed the connection)
01:07:17 *** WormnestAndroid has joined #openttd
01:38:47 *** bryjen has quit IRC (Quit: Leaving)
02:18:12 *** Wormnest has quit IRC (Quit: Leaving)
03:02:30 *** D-HUND has joined #openttd
03:06:02 *** debdog has quit IRC (Ping timeout: 480 seconds)
03:13:42 *** Izzy_ has joined #openttd
03:16:17 *** Izzy_ has quit IRC ()
03:27:34 *** D-HUND is now known as debdog
03:36:58 *** keikoz has joined #openttd
05:12:02 *** keikoz has quit IRC (Ping timeout: 480 seconds)
06:02:57 *** nielsm has joined #openttd
06:03:40 *** sla_ro|master has joined #openttd
06:13:43 *** nielsm has quit IRC (Ping timeout: 480 seconds)
06:23:25 *** pickpacket7 has joined #openttd
06:23:25 *** pickpacket has quit IRC (Read error: Connection reset by peer)
06:23:25 *** pickpacket7 is now known as pickpacket
08:43:45 *** TrueBrain has joined #openttd
08:43:45 <TrueBrain> It is not that I spy on all our forks, but: https://github.com/TheSpiffingUnpaidIntern/OpenTTD-Spiffing/commits/Spiffing
08:45:52 <LordAro> heh
08:46:21 <TrueBrain> to answer the question: on what commit is it based 🙂
08:47:33 <dP> that question was answered before it arised :p
08:47:33 <TrueBrain> I love the account-name btw 😄
08:52:52 <pickpacket> 😂
09:03:50 <andythenorth> sharding 😛
09:04:09 * andythenorth just says words
09:07:21 <pickpacket> farthing
09:07:26 * pickpacket also
09:16:30 <petern> What lovely weather.
09:22:55 <TrueBrain> only if you look outside
09:27:45 <petern> Is it food time yet?
09:27:51 <TrueBrain> no, wait 1 more hour
09:27:57 <TrueBrain> are we ChatGPT?
09:28:32 <petern> No, you give more useful answers I think.
09:28:40 <TrueBrain> give it time
09:31:46 <LordAro> "I think"
09:33:27 <petern> Based on what andy writes, I've never used it.
09:47:26 <DorpsGek> [OpenTTD/team] sander732 opened issue #412: [nl_NL] Translator access request https://github.com/OpenTTD/team/issues/412
10:04:00 <andythenorth> GPT is a great game
10:04:19 <DorpsGek> [OpenTTD/team] glx22 commented on issue #412: [nl_NL] Translator access request https://github.com/OpenTTD/team/issues/412
10:04:33 <andythenorth> if you want an advanced version of 'Microsoft Word Grammar Fixing" GPT is great
10:33:39 *** keikoz has joined #openttd
10:58:01 <pickpacket> petern: definitely food time now if you haven't eaten alread
10:58:07 <pickpacket> +y
10:59:54 <petern> Oh okay, thanks
11:00:04 <petern> Permission granted 😄
11:01:37 <pickpacket> :D
11:10:54 *** Flygon has joined #openttd
11:58:11 <DorpsGek> [OpenTTD/team] SpamixOfficial opened issue #413: [sv_SE] Translator access request https://github.com/OpenTTD/team/issues/413
12:37:50 *** GeorgeVB has joined #openttd
12:37:50 <GeorgeVB> NMLC> String code 'POP_WORD' has been deprecated and will be removed soon
12:37:50 <GeorgeVB> what should be used instead?
13:05:53 <LordAro> https://github.com/OpenTTD/nml/commit/9277920c816f0924b5270a3b367d378cd02604a3 quite an old deprecation
13:06:35 <LordAro> you'd need the old ottdcoop repo to know what #1848 is though
13:14:20 <TrueBrain> so it is replaced by `SKIP`, right? 🙂
13:15:47 <LordAro> i guess so
13:17:44 <dP> iirc SKIP doesn't work in GS so idk what is it doing in nml
13:18:33 <glx[d]> It's a newgrf thing
13:19:32 <dP> would be helpful in GS too
13:34:04 <DorpsGek> [OpenTTD/grfcodec] SoapGentoo commented on pull request #16: Gentoo patches https://github.com/OpenTTD/grfcodec/pull/16#issuecomment-1491934341
14:35:49 <petern> Hmm, new jockey wheels to fit but it's raining, boo
14:43:38 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #10580: Backport master into release/13 https://github.com/OpenTTD/OpenTTD/pull/10580
14:45:08 <Rubidium_> why would you need SKIP in GS? You can just specify the index for parameters, just like https://github.com/OpenTTD/OpenTTD/blob/master/src/lang/english.txt#L5520, right?
14:46:01 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #10586: Codechange: Use a shared_ptr for viewport overlay. https://github.com/OpenTTD/OpenTTD/pull/10586#pullrequestreview-1367085340
14:48:21 <dP> because I want to use strings with less parameters than requested
14:48:38 <dP> like if it's STRING4 I want to sometimes just do 2 and skip two more
14:49:09 <dP> rn I have to pass empty strings around instead
14:49:45 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #10585: Fix #10574 -- revert the change and don't list unavailable rail/road types to game script. https://github.com/OpenTTD/OpenTTD/pull/10585#pullrequestreview-1367093587
14:50:46 <dP> though I guess RAW_STRING will help greatly with that
14:56:54 <Rubidium_> it's not allowed for a GS to do STR_BLA: {STRING4} {STRING2} {STRING}? And then pass STR_FIRST: {NUM}? It needs to actually consume four?
14:58:13 <Rubidium_> as that's exactly what happens for STR_ORDER_TEXT where for a waypoint it just sets one parameter for the first string, and the second string gets defined at index 5 with a parameter in 6 & 7, and the third is defined at index 8.
14:59:23 <Rubidium_> or is it that the string validation is too pedantic and it wants you to set index 2-4 as well? That's something a {SKIP} in the sub string is not going to solve
15:00:26 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #10585: Fix #10574 -- revert the change and don't list unavailable rail/road types to game script. https://github.com/OpenTTD/OpenTTD/pull/10585#pullrequestreview-1367112359
15:03:18 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #10583: Fix: Clicking on editbox clear button didn't take account of padding. https://github.com/OpenTTD/OpenTTD/pull/10583#pullrequestreview-1367117126
15:06:40 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #10586: Codechange: Use a shared_ptr for viewport overlay. https://github.com/OpenTTD/OpenTTD/pull/10586
15:07:20 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #10583: Fix: Clicking on editbox clear button didn't take account of padding. https://github.com/OpenTTD/OpenTTD/pull/10583
15:08:56 <dP> Rubidium_: afiact, no, it needs to actually consume all, and #10492 added checks for that (was just ub before)
15:09:26 <dP> breaking half of gamescripts in the process 😆
15:10:41 <dP> oh, btw, if it's backported probably need to do something about that in 13.1
15:11:11 <dP> ah, it was removed, nvm
15:12:18 <petern> Yeah, I get GS errors now...
15:12:40 <Rubidium_> well, maybe it's as easy to solve as making the check slightly more lenient. So that STRINGN consumes at most N parameters
15:13:10 *** gelignite has joined #openttd
15:13:14 <dP> if it's possible, yes
15:14:28 <dP> if not would probably need to remove the check for older api compatibility
15:21:05 <dP> though allowing less may cause new problems as params are flat outside gs so there is no way to check if it actually consumed as many as it was given
15:21:51 <dP> so if you accidentally consume less it will shift params for other strings
15:22:46 <dP> though it's probably the case already anyway
15:25:50 <Rubidium_> that's the whole point of STRINGN, it should just behave as if it has consumed the string and N parameters, regardless of the number of parameters that were actually consumed by the substring
15:26:07 <Rubidium_> if it doesn't, then that's a bug (IMO)
15:27:50 <dP> ah, you mean auto-skip if it consumed less?
15:31:57 <Rubidium_> yes, that's how it's supposed to behave
15:34:53 <dP> been a while since I tested it but I don't think it did that before 10492
15:34:56 <dP> maybe does now, idk
15:50:35 <dP> https://cdn.discordapp.com/attachments/1008473233844097104/1091389087308583063/Screencast_from_31-03-23_194918.webm
16:23:27 <petern> Hmm
16:25:08 *** Wolf01 has joined #openttd
16:27:23 <andythenorth> improved industry placement you say?
16:30:42 <DorpsGek> [OpenTTD/OpenTTD] LC-Zorg commented on issue #10578: [Bug]: No way in GUI to select a previous version of AI or GS https://github.com/OpenTTD/OpenTTD/issues/10578
16:35:19 <glx[d]> Rubidium_: parameters are added based on the substring "parsing" and there's no padding if the substring consumes less than expected
16:40:26 <glx[d]> in most cases GS broken by the validation do the opposite, they consume more than expected
16:46:01 <glx[d]> example from BeeReward ```
16:46:01 <glx[d]> destination_string = GSText(GSText.STR_TOWN_NAME, destination);
16:46:01 <glx[d]> ...
16:46:01 <glx[d]> goal_text = GSText(GSText.STR_COMPANY_GOAL_REWARD, cargo.cid, this.wanted_amount, destination_string, this.reward);```
16:46:28 <glx[d]> with `STR_TOWN_NAME :{WHITE}{TOWN}` and `STR_COMPANY_GOAL_REWARD :Deliver {GOLD}{CARGO_LONG} {ORANGE}to {STRING}{ORANGE} for {WHITE}{STRING}{CURRENCY_LONG}`
16:47:13 <glx[d]> they added an extra `{STRING}` to discard the parameter from the first one
16:56:03 <DorpsGek> [OpenTTD/OpenTTD] SpartaWarsec opened issue #10588: [Bug]: Server time out (netzwork traffic) https://github.com/OpenTTD/OpenTTD/issues/10588
16:57:15 <DorpsGek> [OpenTTD/team] glx22 commented on issue #413: [sv_SE] Translator access request https://github.com/OpenTTD/team/issues/413
17:24:45 *** tokai has joined #openttd
17:24:45 *** ChanServ sets mode: +v tokai
17:31:32 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
17:33:19 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #10588: [Bug]: Server time out (netzwork traffic) https://github.com/OpenTTD/OpenTTD/issues/10588
17:40:09 <DorpsGek> [OpenTTD/OpenTTD] SpartaWarsec commented on issue #10588: [Bug]: Server time out (netzwork traffic) https://github.com/OpenTTD/OpenTTD/issues/10588
19:10:51 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #10396: Change: More icon space size by interface scaling. https://github.com/OpenTTD/OpenTTD/pull/10396
20:03:41 *** gnu_jj has joined #openttd
20:30:23 <Rubidium_> glx[d]: it feels really wrong to me if GS behaves differently for STRING4 if the string only uses two parameters, because then the whole STRINGN in GS is essentially pointless as you're going to count anyway you can just inject the right STRINGN token. Though that makes using different strings like we do in C++ for orders harder to accomplish
20:31:32 <glx[d]> that's why it's an error in the current validation
20:31:46 <glx[d]> param count must match
20:33:38 <glx[d]> should be easy to allow less than expected, with automatic padding
20:38:33 <glx[d]> in the bee reward case the parameters are 'SCC_ENCODED STR_COMPANY_GOAL_REWARD:cid:amount:SCC_ENCODED STR_TOWN_NAME:destination:reward'
20:43:03 <dP> https://cdn.discordapp.com/attachments/1008473233844097104/1091462687495565443/Screenshot_from_2023-04-01_00-42-50.png
20:43:03 <dP> hm, still missing something with FIRS...
20:43:23 <glx[d]> and because it's using {STRING} `destination` parameter is still present as param for the main string
20:44:03 <glx[d]> hence the extra {STRING} to discard it, but validating that is complicated
20:44:25 <glx[d]> it should have been STRING1 directly
21:19:30 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
21:36:42 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:37:24 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
21:46:42 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
21:47:16 *** WormnestAndroid has joined #openttd
21:47:19 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
21:47:20 *** WormnestAndroid has joined #openttd
22:20:23 <DorpsGek> [OpenTTD/OpenTTD] SackMathen opened issue #10589: [Crash]: using make on debian to install most recent update crashes cmake https://github.com/OpenTTD/OpenTTD/issues/10589
22:21:02 <DorpsGek> [OpenTTD/OpenTTD] SackMathen commented on issue #10589: [Crash]: using make on debian to install most recent update crashes cmake https://github.com/OpenTTD/OpenTTD/issues/10589
23:28:07 *** lobstarooo___ has joined #openttd
23:29:25 *** lobstarooo has joined #openttd
23:36:12 *** lobstarooo___ has quit IRC (Ping timeout: 480 seconds)
23:36:16 *** lobstarooo is now known as lobstarooo___
23:44:50 *** sla_ro|master has quit IRC ()