IRC logs for #openttd on OFTC at 2024-09-19
            
00:09:27 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1286116914762088531/image.png?ex=66ecbd37&is=66eb6bb7&hm=af56cb61f04f973899995919f07435fea7051178918e4b63856b0d9e8c6b3c48&
00:09:27 <peter1138> Hmmm...
00:09:44 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
00:13:01 <_pruple> hmm?
00:46:21 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #12951: Fix: Highscore/Endgame window can disappear offscreen if game window resized. https://github.com/OpenTTD/OpenTTD/pull/12951
00:53:34 *** Wormnest has joined #openttd
00:58:29 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12951: Fix: Highscore/Endgame window can disappear offscreen if game window resized. https://github.com/OpenTTD/OpenTTD/pull/12951#pullrequestreview-2314124600
02:13:45 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
02:18:10 *** Wormnest has joined #openttd
02:18:23 *** Wormnest has quit IRC ()
02:19:45 *** gnu_jj_ has joined #openttd
02:22:54 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
02:31:32 *** akimoto has joined #openttd
02:36:17 *** debdog has joined #openttd
02:39:38 *** D-HUND has quit IRC (Ping timeout: 480 seconds)
04:05:21 *** keikoz has joined #openttd
04:45:59 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/df0233f4c2ba8b7ecf32b26a3d5e933150e12f07
04:46:00 <DorpsGek> - Update: Translations from eints (by translators)
05:33:23 *** keikoz has quit IRC (Ping timeout: 480 seconds)
06:45:33 *** akimoto has quit IRC ()
07:15:26 *** SigHunter has quit IRC ()
07:18:23 *** SigHunter has joined #openttd
07:40:10 *** HerzogDeXtEr has joined #openttd
08:18:29 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12951: Fix: Highscore/Endgame window can disappear offscreen if game window resized. https://github.com/OpenTTD/OpenTTD/pull/12951
08:30:02 *** mindlesstux has quit IRC (Quit: The Lounge - https://thelounge.chat)
08:31:07 *** mindlesstux has joined #openttd
09:05:25 <xarick> hi
09:16:37 <_pruple> very
09:59:28 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1286265398072971304/image.png?ex=66ed4780&is=66ebf600&hm=d275cacf6c07254eb945230e1616b0f69a2c2720cfe528df21fa6db41af61b48&
10:00:11 <xarick> trying to understand what to do
10:04:01 <xarick> it really wants to find unofficial-breakpad
10:07:12 <DorpsGek> [OpenTTD/team] khosro8851 opened issue #588: [fa_IR] Translator access request https://github.com/OpenTTD/team/issues/588
10:08:25 <peter1138> xarick: It will try to find unofficial-breakpad, but it's not an error if it can't find it. As you can see it's compiling it without.
10:09:42 <xarick> how do i debug with this vscode is what i'm wondering
10:10:12 <xarick> does it support breakpoints
10:10:26 <xarick> or intellisense
10:11:33 <peter1138> VS Code uses extensions to provide more features. At the minimum you probably want the Microsoft C/C++ Extension Pack.
10:11:38 <peter1138> (Might already be installed)
10:12:05 <xarick> it installed that, but hmm
10:12:26 <DorpsGek> [OpenTTD/team] khosro8851 commented on issue #588: [fa_IR] Translator access request https://github.com/OpenTTD/team/issues/588
10:12:50 <peter1138> There's an extension called "Native Debug" that supports gdb or lldb. Not sure if it's required but I have it installed.
10:17:51 *** Flygon has quit IRC (Read error: Connection reset by peer)
10:22:29 <xarick> error code 2
10:22:36 <xarick> access denied
10:23:38 <xarick> no permissions to write in usr whatever folder
10:25:33 <peter1138> Don't try to install it.
10:25:38 <peter1138> Just run it.
10:25:39 <xarick> usr/games/openttd
10:27:05 <xarick> now its compiling again,
10:27:09 <xarick> oh well ๐Ÿ˜ฆ
10:28:59 <xarick> ah i see
10:29:02 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1286272839111938105/image.png?ex=66ed4e6e&is=66ebfcee&hm=bada3fb4a79f4ebb04e553f4b58a6f305272bb57aa438d36b90ec74c345beac1&
10:30:00 <xarick> i really need this virtual machine to run with more than 1 core
10:30:14 <xarick> any other OS that might work?
10:30:46 <xarick> mint doesn't boot when the VM has more than 1 cpu core
10:31:03 <peter1138> Strange.
10:31:33 <peter1138> AreAre you using virtualbox or something?
10:31:43 <xarick> im using Hyper-V
10:32:02 <peter1138> Ah
10:33:39 <peter1138> <https://forums.linuxmint.com/viewtopic.php?p=2499348#p2499348>
10:33:48 <peter1138> At the bottom, they seem to have the same issue.
10:34:18 <peter1138> (don't immediately jump to follow any instructions in there)
10:37:57 <xarick> i dont have SQUASHFS
10:38:09 <xarick> that one i solved with using non dynamic ram
10:47:52 <xarick> gcc++ is slower than whatever it used before
10:48:05 <peter1138> The last few posts are about more than 1 core.
10:48:30 <peter1138> What other compilers have you installed?
10:48:38 <peter1138> It could be debug vs release build.
10:49:08 <xarick> it was __unset__
10:49:15 <xarick> so i dunno what it used
10:49:25 <xarick> but on the list i only find gcc
10:54:11 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1286279165020078154/image.png?ex=66ed5452&is=66ec02d2&hm=5ebf92cc991c05d5cc0f7382b0f0cdf5bc27b5fed3912108150840e49af08019&
10:54:11 <xarick> hmm
10:54:23 <xarick> some errors but meh
10:56:56 <peter1138> IIRC hyper-v does not give you a virtual sound card. Though it may be possible to add one.
11:09:42 <LordAro> also allegro is not something that's particularly desirable on linux
11:23:49 <xarick> installing Ubuntu 22.04 LTS
11:23:53 <xarick> let ssee
11:25:47 <xarick> oh 24.04.1 is newer ๐Ÿ˜ฆ
11:30:08 <xarick> wow, the installation looks so similar
11:32:31 <peter1138> Mint and Ubuntu are both Debian-derivatives, so they use the same package manager and lots will be similar.
11:33:42 <xarick> maybe ubuntu is better on hyper-v, gonna test it
11:40:47 <Heiki> and Mint is basically Ubuntu with a different user interface
11:41:14 <ahyangyi> ^ mint flavored ubuntu
11:41:33 <peter1138> Is Mint based on Ubuntu or Debian?
11:41:45 <ahyangyi> Ubuntu, I think
11:42:02 <peter1138> It won't be long before Xarick is going native ๐Ÿ˜‰
11:42:59 <_glx_> I would just use wsl, it allows to run linux GUI programs directly from windows
11:44:20 <_glx_> Anyway virtual box is probably a better choice for VMs
11:45:09 <peter1138> Hyper-V works, but it feels like it is intended for headless background VMs.
11:48:26 <ahyangyi> Hmm
11:48:28 <ahyangyi> "WSL 2 is running as a hyper-v virtual machine."
11:49:46 <peter1138> Oh, overlay cargo icons.
11:56:55 <_glx_> ahyangyi: Yes but it just works, no need to configure anything, and it allows GUI apps like they are windows native
12:47:14 <peter1138> Hmm, block-scoped or file-scoped namespaces...
12:58:40 <_pruple> well that's fun
12:59:02 <_pruple> it appears the presence of an action b causes renum 6.1.0 to silently fail
13:01:26 <_pruple> tried it with the example code from the wiki, tried it in multiple nfo files
13:03:38 <peter1138> If only the codebase for nforenum/grfcodec wasn't absolutely horrible.
13:06:18 <_pruple> well, if wishes were fishes we'd all get wet, or something
13:06:45 <peter1138> Every time I look at it I get swamped.
13:07:01 <peter1138> it is hard to read, let alone understand what it's doing.
13:15:27 <ahyangyi> _glx_: Yeah, I like WSL 2
14:44:54 <xarick> could not find Fontconfig
14:45:10 <xarick> but i installed it somehow
14:58:05 <xarick> ah
14:58:13 <xarick> libfontconfig-dev
15:04:06 <xarick> alright, ubuntu does it better atm
15:04:19 <xarick> 16 virtual cpu cores
15:05:44 <xarick> but i hear mean things about ubuntu
15:11:19 <LordAro> oh well then
15:27:39 *** nielsm has joined #openttd
15:30:21 *** keikoz has joined #openttd
15:32:59 <ahyangyi> xarick: Yeah, I think you got that pattern. `lib<name>-dev` usually gets you what you need ๐Ÿ˜›
15:39:57 <peter1138> And then there's zlib...
15:49:42 <ahyangyi> And libressl isn't a library called "ressl".
15:52:43 <LordAro> peter1138: and libm
16:09:51 <DorpsGek> [OpenTTD/OpenTTD] LC-Zorg commented on pull request #12943: Fix #12940: Use specific error when overbuilding station on signals https://github.com/OpenTTD/OpenTTD/pull/12943#issuecomment-2361439063
16:14:29 <xarick> font is missing glyphs to display char 0x52 and 0x648 in medium font size
16:18:14 <peter1138> 0x52 would be surprising.
16:23:19 <peter1138> hehe, i was just looking for tictoc briefly
16:23:27 <peter1138> It does not exist in my work C# projects
16:26:16 <peter1138> Stopwatch should do.
16:37:56 <xarick> source control is difficult to understand
16:39:28 <xarick> wasn't I supposed to have an upstream
16:41:56 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler opened issue #12952: [Crash]: CTD opening Game Options https://github.com/OpenTTD/OpenTTD/issues/12952
16:42:02 <peter1138> 1.1ms to lookup 26,000 rows. Probably fine.
16:44:50 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1286367409762205808/image.png?ex=66eda682&is=66ec5502&hm=76afe98fc7ee2d1e79ccd4ec70304358d9d011824e929e0f462e5aa944c5f966&
16:44:50 <peter1138> Ok?
16:46:28 <_pruple> Zorged.
16:46:39 <_pruple> I'm honestly surprised he hasn't commented on the level crossing thing.
16:47:45 <LordAro> xarick: if you acquired the source, you probably have an upstream
16:47:50 <LordAro> unless you removed it
16:50:21 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #12952: [Crash]: CTD opening Game Options https://github.com/OpenTTD/OpenTTD/issues/12952
16:52:09 <_pruple> it crashes for me too fwiw
16:52:15 <peter1138> Yeah, my Steam version does.
16:55:22 <xarick> yay i successfuly managed to debug and hit a breakpoint
16:56:39 <xarick> hmm the mouse disappeared though ๐Ÿ˜ฆ
16:57:31 <xarick> is there a hotkey shortcut to stop debugging?
16:57:39 <peter1138> Oh, I threw the wrong exception type.
16:57:40 <peter1138> Hmm
16:57:49 <peter1138> I fixed that, but must've got lost in a stash.
16:59:57 <xarick> shift-f5, got it
17:00:48 <xarick> mouse cursor gets locked in when the breakpoint is reached
17:01:07 <xarick> not sure if it's a problem with virtual machine
17:01:09 <_glx_> yeah it's "known"
17:01:11 <xarick> or vs code
17:01:16 <_glx_> it's sdl
17:01:22 <_glx_> IIRC
17:01:56 <peter1138> in your openttd.cfg, videodriver = "sdl:no_mouse_capture"
17:02:03 <peter1138> in the [misc] section.
17:02:20 <xarick> thx
17:02:32 <xarick> i still dont know where this openttd.cfg is located on linux
17:03:21 <DorpsGek> [OpenTTD/grfcodec] PikkaBird opened issue #44: renum 6.1.0 silently fails if nfo file contains an action B https://github.com/OpenTTD/grfcodec/issues/44
17:03:36 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #12952: [Crash]: CTD opening Game Options https://github.com/OpenTTD/OpenTTD/issues/12952
17:05:45 <xarick> nice, it works!
17:13:06 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #12953: Fix #12952: Crash when opening Game Options when social plugins are installed. https://github.com/OpenTTD/OpenTTD/pull/12953
17:14:05 <DorpsGek> [OpenTTD/grfcodec] rubidium42 approved pull request #40: Fix: Install manpages in the proper place https://github.com/OpenTTD/grfcodec/pull/40#pullrequestreview-2316255429
17:16:41 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #12953: Fix #12952: Crash when opening Game Options when social plugins are installed. https://github.com/OpenTTD/OpenTTD/pull/12953#pullrequestreview-2316266875
17:17:30 <LordAro> how long's that been broken?
17:18:47 <Rubidium> few days?
17:18:47 <peter1138> Not very long.
17:19:09 <peter1138> Well, the social plugin side, since it was merged, but it wasn't noticed until now.
17:21:53 <LordAro> nice
17:38:38 <_glx_> oh so smallest size never worked, but the recent change in param validation make it visible
17:43:25 *** jlx__ has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
17:43:52 <peter1138> Yes, but only because the exception was incorrect...
17:44:14 <peter1138> Well, with the exception there shoul be a debug message.
17:44:27 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12953: Fix #12952: Crash when opening Game Options when social plugins are installed. https://github.com/OpenTTD/OpenTTD/pull/12953
17:44:30 <DorpsGek> [OpenTTD/OpenTTD] PeterN closed issue #12952: [Crash]: CTD opening Game Options https://github.com/OpenTTD/OpenTTD/issues/12952
17:46:10 *** jlx__ has joined #openttd
17:47:52 <peter1138> Also, funny how even with an exception, complete with message, no useful error message comes from the Windows crashlog...
18:02:12 <DorpsGek> [OpenTTD/OpenTTD] PikkaBird commented on pull request #12943: Fix #12940: Use specific error when overbuilding station on signals https://github.com/OpenTTD/OpenTTD/pull/12943#issuecomment-2361845957
18:05:50 *** akimoto has joined #openttd
18:25:25 *** Wolf01 has joined #openttd
19:06:58 *** gelignite has joined #openttd
19:13:28 *** nielsm has quit IRC (Ping timeout: 480 seconds)
19:27:24 <aviationgamerx> I need help with compiling
19:29:07 <aviationgamerx> vcpkg matter is very confusing, am I supposed to complete this whole thing? https://learn.microsoft.com/en-us/vcpkg/get_started/get-started-vs?pivots=shell-cmd#1---set-up-vcpkg
19:31:56 *** Flygon has joined #openttd
19:32:29 <aviationgamerx> https://cdn.discordapp.com/attachments/1008473233844097104/1286409598466789466/image.png?ex=66edcdcc&is=66ec7c4c&hm=937e5f04abc04e6cd35f4a79fa9dbe3c969b2725079dbe86c3b829f7f8498b6b&
19:32:29 <aviationgamerx> the dependencies are they like other things I have to install? I didn't understand from the "compiling.md" file, there is so much things that are vague, am I supposed to be knowing or have learned something before I can download these things before opening visual studio?
19:34:44 <aviationgamerx> I apologize for so much questions, but it's not clear, this is my first time seeing or working on any real project or anything similar
19:35:14 *** tokai|noir has joined #openttd
19:35:14 *** ChanServ sets mode: +v tokai|noir
19:37:47 <xarick> virtual machine eating 20 gb ram
19:41:18 <xarick> i recently reinstalled visual studio
19:42:04 *** tokai has quit IRC (Ping timeout: 480 seconds)
19:42:10 <xarick> cloning via github integrated on visual studio was easy enough, but i had a few trouble with setting up vcpkg
19:42:51 <xarick> i cloned vcpkg repository
19:45:06 <xarick> CMakeSettings for OpenTTD has a field for CMake Toolchain file
19:45:45 <xarick> I added the path for the cloned vcpkg repository, \vcpkg\scripts\buildsystems\vcpkg.cmake
19:46:17 <xarick> in your cause it's wherever you placed it
19:46:37 <xarick> guess I'm a bad helper ๐Ÿ˜ฎ
19:47:40 <xarick> then you need to change the VCPKG_TARGET_TRIPLET from x64-windows to x64-windows-static
19:47:56 <xarick> regenerate the caches and it should work
19:48:28 <xarick> oh, you may also need git bash installed to have version numbering working correctly
19:50:58 <aviationgamerx> xarick: ok wait, what do you mean here
19:51:32 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1286414393147396158/image.png?ex=66edd243&is=66ec80c3&hm=a8d9adee6b59421aed85191315237e940810d33f4c009373a5a18de0fbd48a0b&
19:52:31 <aviationgamerx> https://cdn.discordapp.com/attachments/1008473233844097104/1286414643169853612/image.png?ex=66edd27f&is=66ec80ff&hm=65dd5be88d85658a02302bc2710db3cc98ef8145f1625973e2da2bc48ba8be1b&
19:52:31 <aviationgamerx> ok so basically went and cloned vcpkg, and did the commands here
19:52:45 <aviationgamerx> I am lsot what to do after
19:53:11 <xarick> where is your vcpkg located
19:53:21 <aviationgamerx> in a file in my documents
19:54:39 <aviationgamerx> I am trying to run vcpkg.exe but it isn't working, I am not sure if that is what I was supposed to do
19:55:28 <xarick> git clone https://github.com/microsoft/vcpkg.git
19:56:12 <aviationgamerx> aviationgamerx: I did that and did this
19:57:01 *** Wormnest has joined #openttd
19:57:48 *** gelignite has quit IRC (Quit: Stay safe!)
19:57:49 <xarick> On visual studio open the OpenTTD folder (I assume you have the source), then open Project > Cmake Settings, and you should have a x64-Debug Configuration on the left, I believe
20:00:55 <xarick> there you should find the field 'CMake toolchain file' empty. You put there 'path-to-vcpkg\scripts\buildsystems\vcpkg.cmake
20:00:56 <aviationgamerx> oh i thought I had to do that after downloading the dependencies, I tought it would give me errors if I tried to clone without dependecies
20:01:17 <aviationgamerx> I am clonning a fork now
20:02:15 <xarick> bootstrap-vcpkg.bat hmm, I didn't use this step
20:02:18 <xarick> strange
20:03:00 <aviationgamerx> xarick: it's on the vcpkg setup instructions
20:03:15 <aviationgamerx> I am not sure why it wants me to make a project and do some weird stuff but I ignored that
20:04:09 <aviationgamerx> https://cdn.discordapp.com/attachments/1008473233844097104/1286417568059625614/image.png?ex=66edd538&is=66ec83b8&hm=e2e73ccb47f1adee9a57f6091e8b76bc5a0839084c276c22907068ad143ba703&
20:04:09 <aviationgamerx> xarick: ok
20:04:24 <xarick> yes
20:05:20 <aviationgamerx> https://cdn.discordapp.com/attachments/1008473233844097104/1286417867801235601/image.png?ex=66edd580&is=66ec8400&hm=dbafe64f7cdde8f7e7269f3901d2b8a51a18c868b30424759c8731f4da456ffd&
20:05:20 <aviationgamerx> xarick: field?
20:05:53 <xarick> yes, scroll up
20:06:04 <aviationgamerx> that is the top
20:06:53 <xarick> hmm you should have two vertical scrollbars, the outer one has more stuff hidden above
20:07:20 <xarick> but maybe try save and generate CMake cache just in case
20:11:28 <xarick> when i get in trouble, i rely on Project > Delete Cache and Reconfigure
20:14:12 <aviationgamerx> what is cmake cache?
20:16:25 <xarick> not really sure, but when making changes to the configurations, it's better to regenerate it
20:17:04 <xarick> otherwise it will fail to build
20:17:14 <xarick> fail to debug openttd
20:17:38 <_glx_> cmake should generate deps via vcpkg when configuring for openttd
20:19:01 <_glx_> because we have <https://github.com/OpenTTD/OpenTTD/blob/master/vcpkg.json>
20:19:21 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1286421396578373746/image.png?ex=66edd8c9&is=66ec8749&hm=d2166e223dfb30bb1bbf3b85e8c6a1b8861e7fe7fd2bf7a9d06919e3d4c7935e&
20:19:21 <xarick> VCPKG_TARGET_TRIPLET needs to be manually edited
20:19:29 <xarick> and save to JSON
20:19:40 <xarick> kinda sucks
20:19:52 <xarick> it's not automatically configured that way
20:20:08 <xarick> x64-windows-static
20:26:07 <_glx_> yes and we say it in compiling.md
20:28:57 <aviationgamerx> xarick: ok so what should I do?
20:29:45 <xarick> change x64-windows to x64-windows-static
20:31:54 <xarick> i tried x64-windows and it ends up looking for missing .dll files as libraries
20:32:06 <xarick> or it fails to save
20:32:15 <xarick> missing lzma stuff
20:35:53 <aviationgamerx> I don't have any vcpkg options there
20:38:43 <xarick> ๐Ÿ˜ฆ i need screenshots
20:38:56 <xarick> maybe i can see what's failing
20:41:12 <xarick> https://learn.microsoft.com/en-us/vcpkg/get_started/get-started-vs?pivots=shell-cmd#prerequisites
20:41:22 <xarick> prerequisites :p
20:41:58 <xarick> visual studio, and git
20:42:22 <xarick> then clone vcpkg, i think u did it ๐Ÿ˜›
20:42:41 <xarick> i didn't run the bootstrap file, maybe you should
20:42:54 <xarick> i dunno why It worked for me though
20:43:31 <xarick> 2 - Set up the Visual Studio project
20:43:31 <xarick> I really think this step doesn't matter
20:43:53 <xarick> or rather, you set it for OpenTTD project
20:44:21 <xarick> those instructions for hello world is too confusing for me
20:47:52 <xarick> oh, OpenTTD already have a vcpkg.json file
20:49:37 <xarick> <https://github.com/OpenTTD/OpenTTD/blob/master/vcpkg.json>
21:08:06 <aviationgamerx> xarick: that's what I was saying, I didn't understand how it is helping set up anything
21:08:40 <aviationgamerx> alr then, maybe I have to look around and try to see what is wrong
21:16:27 <peter1138> > str_purchase_axl_ltm_spc :{BLACK}Axle Weight: {YELLOW}{0:STRING}{}{BLACK}Loading Time: {YELLOW}{2:COMMA} day{P 2 "" s}{}{BLACK}{1:STRING}
21:16:37 <peter1138> Hmm, which parameter is that {P} referring to...
21:17:23 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:18:31 *** aperezdc has quit IRC (Remote host closed the connection)
21:19:06 <xarick> 2?
21:19:34 *** aperezdc has joined #openttd
21:20:29 *** akimoto has quit IRC (Remote host closed the connection)
21:23:06 <xarick> where do i find the variables in vscode
21:23:34 <xarick> configuration or environment not sure what I'm looking for
21:38:05 <truebrain> peter1138: can't be strings ๐Ÿ˜› So must be the COMMA! As that is how computers work ๐Ÿ˜›
21:44:13 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
21:45:05 <xarick> what the heck is a keyring
21:46:53 <peter1138> Hmm.
21:48:00 <xarick> stoopid pointless passwords no one cares about ๐Ÿ™‚
21:48:05 <peter1138> But this is a NewGRF string, which uses... <handwave> magic for parameters.
21:49:12 <peter1138> So I not sure that {P 2 "" s] actually refers to the {2:COMMA}.
21:54:14 <talltyler> Unless youโ€™re using days as a unit for axle weight, I suspect itโ€™s for the COMMA ๐Ÿ˜‰
21:54:38 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1286445375041044614/image.png?ex=66edef1e&is=66ec9d9e&hm=8a05b0c1492168e57a53ef19fe625df194f5ddfee3ccc12c06409c22144c6614&
21:54:44 <peter1138> Yeah, you'd think, but...
21:56:59 <talltyler> Does it currently work? As in, you broke it with a change and are trying to make it work? Or are you troubleshooting on behalf of a GRF author who is trying to implement it?
21:58:45 <_glx_> xarick: directly in json files
22:00:46 <peter1138> talltyler: I'm trying to ascertain whether it is broken because of my changes, or it was already broken but not visible.
22:02:45 <talltyler> I assume youโ€™ve tried 14.1 or a nightly?
22:02:49 <xarick> cyas good night
22:03:51 <talltyler> Iโ€™ve never seen a plural that reads from a specific parameter like that (assuming thatโ€™s what the 2 is for)
22:04:10 <talltyler> Not that I am any kind of string expert ๐Ÿ™‚
22:08:35 <michi_cc[d]> Normal thing in language files, but NewGRF string codes are different.
22:11:00 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:14:29 <peter1138> Hm, what does NML emit for {2:COMMA}{...
22:16:34 <peter1138> Yeah, I'm sure this NewGRF is wrong.
22:17:59 <peter1138> {P} will automatically use the previous parameter anyway.
22:18:50 <peter1138> And if parameter 2 is actually the {1:STRING}...
22:19:03 <_glx_> nml might to magic with arg stack
22:19:25 <peter1138> It always "worked" before because that the string system just returned 0.
22:19:39 <peter1138> You'd see "1 days" but only if the value is 1.
22:24:13 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #12954: Fix 3d8d0e0d26: Don't assume plural parameter is valid. https://github.com/OpenTTD/OpenTTD/pull/12954
22:25:12 <_glx_> I don't fully understand string code in nml but there is some magic <https://github.com/OpenTTD/nml/blob/master/nml/grfstrings.py#L468-L482>
22:25:23 <peter1138> Yes, it does rotates to the stack and things.
22:25:40 <peter1138> The {2:...} means it is grabbing a different value from the stack.
22:25:57 <peter1138> It does not affect which DParam is actually filled.
22:30:36 <peter1138> ^ without 12954 it may or may not crash.