IRC logs for #openttd on OFTC at 2026-10-07
            
00:16:35 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
00:16:54 *** WormnestAndroid has joined #openttd
01:02:04 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
01:02:09 *** MinchinWeb[m] has joined #openttd
01:30:32 *** WormnestAndroid has quit IRC (Remote host closed the connection)
01:31:10 *** WormnestAndroid has joined #openttd
01:31:11 *** WormnestAndroid has quit IRC (Remote host closed the connection)
01:31:22 *** WormnestAndroid has joined #openttd
01:31:24 *** WormnestAndroid has quit IRC (Remote host closed the connection)
01:31:48 *** WormnestAndroid has joined #openttd
01:31:49 *** WormnestAndroid has quit IRC (Remote host closed the connection)
01:32:00 *** WormnestAndroid has joined #openttd
01:38:20 *** WormnestAndroid has quit IRC (Remote host closed the connection)
01:38:30 *** WormnestAndroid has joined #openttd
01:42:53 *** WormnestAndroid has quit IRC (Remote host closed the connection)
01:43:03 *** WormnestAndroid has joined #openttd
01:54:24 *** MinchinWeb[m] has quit IRC (Read error: Connection reset by peer)
01:55:22 *** MinchinWeb[m] has joined #openttd
02:03:24 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
02:03:59 *** MinchinWeb[m] has joined #openttd
02:12:14 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #16065: Fix f864aaf13: Fallback font choice should have glyphs not only missing glyphs https://github.com/OpenTTD/OpenTTD/pull/16065
02:15:27 <peter1138> Fiddled with my fontconfig and now Firefox is looking a bit strange :o
02:16:09 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
02:16:12 *** MinchinWeb[m] has joined #openttd
02:16:43 <peter1138> > Fontconfig doesn't handle full language isocodes, only the part before the _ of e.g. en_GB is used, so "remove" everything after the _.
02:16:54 <peter1138> This appears to be wrong for Chinese fonts.
02:18:40 <peter1138> I think it's enough to replace the '_' with a '-'.
02:19:25 <peter1138> Or at least, better.
02:27:35 <wensimehrp> peter1138: your message is ruined by discord's markdown renderer
02:34:46 <peter1138> Meh, with this on my system, Chinese (Simplified) picks MS YaHei, and Chinese (Traditional) picks Unifont.
02:35:55 <peter1138> Out of the frying pan info the fire?
02:35:57 <peter1138> *into
02:57:26 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #16066: Fix: Pass full isocode when searching for font with fontconfig https://github.com/OpenTTD/OpenTTD/pull/16066
03:13:43 *** Phileman has joined #openttd
03:17:06 *** Philemon has quit IRC (Ping timeout: 480 seconds)
04:12:35 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #16035: Codechange: introduce ScreenToAnimBuffer over duplicated pointer calculation magic https://github.com/OpenTTD/OpenTTD/pull/16035
04:37:40 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #16066: Fix: Pass full isocode when searching for font with fontconfig https://github.com/OpenTTD/OpenTTD/pull/16066#pullrequestreview-5437682793
04:39:05 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #16065: Fix f864aaf13: Fallback font choice should have glyphs not only missing glyphs https://github.com/OpenTTD/OpenTTD/pull/16065#pullrequestreview-5437690457
04:39:37 *** Flygon has joined #openttd
04:39:49 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #16058: Change: [NewGRF] Implement airport tile 0xFF clearance check https://github.com/OpenTTD/OpenTTD/pull/16058#pullrequestreview-5437694374
04:44:43 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #15779: Change: migrate from SDL2 to SDL3 https://github.com/OpenTTD/OpenTTD/pull/15779
05:03:17 *** tokai|noir has joined #openttd
05:03:17 *** ChanServ sets mode: +v tokai|noir
05:04:50 *** hpiirai has quit IRC (Quit: User went offline on Discord a while ago)
05:10:21 *** tokai has quit IRC (Ping timeout: 480 seconds)
05:20:30 <andythenorth> Wonder how kaibaneddy meeting cliffhanger got resolved
05:31:57 *** jfs_ has joined #openttd
05:44:08 <kaibaneddy> 10:30 meeting ended up happening at ~1 pm
05:44:17 <kaibaneddy> 👍
05:52:56 *** wallabra has quit IRC (Ping timeout: 480 seconds)
05:54:59 *** skee has quit IRC (Quit: WeeChat 3.5)
05:58:05 *** skee has joined #openttd
06:00:38 *** jfs_ has quit IRC (Ping timeout: 480 seconds)
06:14:48 *** wallabra has joined #openttd
08:32:07 <LordAro> bit of a late night for peter
08:48:33 <reldred> bank holiday or somethin?
08:54:50 <LordAro> if only
08:54:57 <LordAro> no bank holidays until Christmas now
09:42:01 <peter1138> I must have pushed a wrong button, my two monitors have slightly different hues now.
10:18:30 <reldred> LordAro: yeah i think we had our last one here for the next few months
10:18:50 <reldred> which considering i'm a contractor and I don't get paid for holidays i am happy about
10:20:42 *** ialokin has joined #openttd
10:33:25 *** WormnestAndroid has quit IRC (Remote host closed the connection)
10:33:36 *** WormnestAndroid has joined #openttd
10:40:16 *** aperezdc has quit IRC (Ping timeout: 480 seconds)
10:47:41 <peter1138> Noto Sans CJK SC / TC apparently behaves strangely, in that merely choosing the SC or TC seems to not be enough to get the correct glyphs.
10:49:58 <peter1138> Found this post but haven't found anything to confirm it, or indeed figure out how to solve it. https://www.zhihu.com/en/answer/2729605017
11:02:28 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #13464: [Bug]: OpenTTD detecting incorrect font since openttd-20250120-master-g7da21379f0-windows-win64 https://github.com/OpenTTD/OpenTTD/issues/13464
11:07:26 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #16066: Fix: Pass full isocode when searching for font with fontconfig https://github.com/OpenTTD/OpenTTD/pull/16066
11:08:09 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #16065: Fix f864aaf13: Fallback font choice should have all glyphs not only missing glyphs https://github.com/OpenTTD/OpenTTD/pull/16065
11:08:52 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #16058: Change: [NewGRF] Implement airport tile 0xFF clearance check https://github.com/OpenTTD/OpenTTD/pull/16058
11:17:15 <peter1138> With all that, font selection on Linux is a bit better, but for me when requesting Cyrillic it goes for "MS PGothic Regular" which is not ideal. Compatible but not ideal.
11:18:17 <peter1138> Of course, OpenTTD Sans covers Cyrillic anyway, so that is usually used unless you tick "Use traditional sprite font"
11:29:04 <DorpsGek> [OpenTTD/OpenTTD] PeterN approved pull request #16035: Codechange: introduce ScreenToAnimBuffer over duplicated pointer calculation magic https://github.com/OpenTTD/OpenTTD/pull/16035#pullrequestreview-5441610638
12:03:00 <peter1138> Okay, so we just keep going in case there's a better font -- but basically a lot of fonts match, there's no good way to determine what is a desirable font.
12:13:09 <peter1138> Pretty sure the list is just random (but deterministic) too. If I change it to request the name of the font during the list, the list will be returned in a different order than without.
12:13:20 <peter1138> Consistent in both cases.
12:29:26 <DorpsGek> [OpenTTD/OpenTTD] kkock opened issue #16067: [Bug]: AITile::IsBuildable() returns a wrong result https://github.com/OpenTTD/OpenTTD/issues/16067
12:34:44 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
12:35:22 *** MinchinWeb[m] has joined #openttd
12:38:04 *** MinchinWeb[m] has quit IRC (Read error: Connection reset by peer)
12:38:20 *** MinchinWeb[m] has joined #openttd
12:50:30 *** aperezdc has joined #openttd
13:49:55 <DorpsGek> [OpenTTD/OpenTTD] Rito13 commented on issue #16067: [Bug]: AITile::IsBuildable() returns a wrong result https://github.com/OpenTTD/OpenTTD/issues/16067
14:09:55 <DorpsGek> [OpenTTD/OpenTTD] kkock closed issue #16067: [Bug]: AITile::IsBuildable() returns a wrong result https://github.com/OpenTTD/OpenTTD/issues/16067
14:09:58 <DorpsGek> [OpenTTD/OpenTTD] kkock commented on issue #16067: [Bug]: AITile::IsBuildable() returns a wrong result https://github.com/OpenTTD/OpenTTD/issues/16067
14:16:31 <DorpsGek> [OpenTTD/OpenTTD] LordAro reopened issue #16067: [Bug]: AITile::IsBuildable() returns a wrong result https://github.com/OpenTTD/OpenTTD/issues/16067
14:16:34 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on issue #16067: [Bug]: AITile::IsBuildable() returns a wrong result https://github.com/OpenTTD/OpenTTD/issues/16067
14:18:28 *** jfs_ has joined #openttd
15:07:12 <_zephyris> peter1138[d]: FWIW, sprite font in OpenGFX2 covers everything in the OpenTTD TTFs, and could be added to openttd.grf too...
15:07:58 <peter1138> I'm deliberateely testing "worst case" :-)
15:09:32 <peter1138> Saying that, I'm not against having more glyphs in openttd.grf, as long as it doesn't conflict with OpenGFX1 etc.
15:13:16 <_zephyris> Fair enough 🙂
15:14:38 <_zephyris> Hmm...
15:14:38 <_zephyris> finnish
15:14:38 <_zephyris> OpenTTD-Sans missing 1: (ồ)
15:15:02 <_zephyris> lithuanian
15:15:02 <_zephyris> OpenTTD-Sans missing 1: (‌)
15:15:38 <_glx_> ah yes, finnish use special vietnamese letters in currencies
15:15:44 <_zephyris> That character for finnish looks like it's from the vietnamese range
15:15:46 <_zephyris> Oh
15:16:02 <peter1138> Lithuanian is fine in master, it's a whitespace character that's now ignored.
15:16:07 *** babel_ttt has quit IRC (Quit: User went offline on Discord a while ago)
15:16:21 <peter1138> Finnish probably shouldn't be using that character.
15:16:57 <peter1138> Although for the whitespace characters, when using the sprite font the glyph is not actually ignored.
15:17:02 <DorpsGek> [OpenTTD/OpenTTD] kkock commented on issue #16067: [Bug]: AITile::IsBuildable() returns unexpected result https://github.com/OpenTTD/OpenTTD/issues/16067
15:17:13 <_zephyris> Presumably a native/vietnamese language name for the currency: `đồng`
15:17:24 <_glx_> exactly
15:17:26 <peter1138> Yeah
15:17:41 <_zephyris> Hmm
15:17:50 <peter1138> For Lithuanian, I did merge a PR to fix it once, but the translators promptly put it back.
15:18:53 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1557411903310139452/image.png?backend=b2&ex=6ac7b45d&is=6ac662dd&hm=e8bb4b8c77ab77088f117dc03d7f028cf80c5fa7587250574da682d6ee4e03e2&
15:19:00 <peter1138> Not ideal but not the end of the world.
15:19:36 *** toktik is now known as Guest2068
15:19:42 *** toktik has joined #openttd
15:23:10 <peter1138> We could perhaps make the fallback font layouter handle these special characters, but I haven't yet. I think I may have started a patch for it though.
15:23:46 <_zephyris> ANy chance you remember the unicode code? Very easy to add special whitespace
15:24:56 *** Guest2068 has quit IRC (Ping timeout: 480 seconds)
15:27:28 <peter1138> Well it was something between 0x2000 and 0x200C, and we also support 0x200D which is a zero-width joiner.
15:28:06 <peter1138> Not sure if the sprite font system supports zero-width glyphs, but might do.
15:31:26 <_zephyris> Cool, I'll take a look
15:33:18 *** f_ has quit IRC (Ping timeout: 480 seconds)
15:41:42 *** f_ has joined #openttd
15:45:49 *** hpiirai has joined #openttd
15:45:49 <hpiirai> _zephyris: Finnish translator here – https://fi.wikipedia.org/wiki/Vietnamin_%C4%91%E1%BB%93ng indeed calls the Vietnamese currency *đồng*, but according to https://kielitoimistonohjepankki.fi/ohje/valuuttojen-nimitykset/ *dong* should be acceptable, so I changed it now
15:47:52 <_zephyris> Thanks1
15:49:08 <_zephyris> I would like to support Vietnamese diacritics, but they are tricky!
15:49:36 <peter1138> They are stacking aren't they?
15:52:20 <peter1138> Hmm, maybe.
15:54:53 <_zephyris> Yeah, super tall. There are conventions about placing them to the left or right instead of stacking.
15:56:14 <peter1138> It should be pretty well covered by a fallback font so it's not critical.
15:56:36 <LordAro> h̶̨̭͂̎͋̏͘e̸̛̼̗͍͔̗͗͒ ̶̪̙̟̱̓͐̀͗ͅc̴̹͓̙͗̀͆̚ọ̸͈̃̒͌͋̀m̴̡̫̪̖̄̋̎̍̾è̵͓̪̱̊ṣ̴͚͉̓̊̿̉
16:02:21 <_zephyris> Hah, try stacking that into 10px
16:06:09 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #16035: Codechange: introduce ScreenToAnimBuffer over duplicated pointer calculation magic https://github.com/OpenTTD/OpenTTD/pull/16035
16:09:17 *** gelignite has joined #openttd
16:13:13 <peter1138> I could re-apply the patch to lithuanian.
16:13:52 <peter1138> All the other languages that use the funky spaces require other extra glyphs anyway.
16:14:29 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
16:16:22 *** MinchinWeb[m] has joined #openttd
16:27:37 *** toktik has quit IRC (Remote host closed the connection)
16:27:58 *** toktik has joined #openttd
16:34:04 <belajalilija> hpiirai: Dong 🥰
16:52:12 <mnhebi> I could have so many dongs with all these coins I have.
16:52:21 <mnhebi> unlimited dong works.
17:28:48 *** MinchinWeb[m] has quit IRC (Read error: Connection reset by peer)
17:29:03 *** MinchinWeb[m] has joined #openttd
17:33:08 *** MinchinWeb[m] has quit IRC (Read error: Connection reset by peer)
17:33:27 *** MinchinWeb[m] has joined #openttd
17:35:05 <jfkuayue> wėłł.
17:51:18 <_zephyris> https://cdn.discordapp.com/attachments/1008473233844097104/1557450261742616707/image.png?backend=b2&ex=6ac7d816&is=6ac68696&hm=6444cf2723a946f5175fa6361b24534fc06d77ed0b659140ae1fd529a2e0790e&
17:53:54 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
17:54:36 *** WormnestAndroid has joined #openttd
18:56:51 *** Wolf01 has joined #openttd
19:34:00 <merni> does anyone use mingw to compile openttd on windows?
19:34:00 <merni> I'm trying to compile master and I get this
19:34:00 <merni> [18/691] Linking CXX executable src\strgen\strgen.exe
19:34:00 <merni> FAILED: [code=1] src/strgen/strgen.exe
19:34:00 <merni> C:\WINDOWS\system32\cmd.exe /C "cd . && C:\PROGRA~1\JETBRA~1\CLION2~1.1\bin\mingw\bin\C__~1.EXE -g src/strgen/CMakeFiles/strgen.dir/strgen.cpp.obj src/strgen/CMakeFiles/strgen.dir/strgen_base.cpp.obj src/strgen/CMakeFiles/strgen.dir/__/3rdparty/fmt/format.cc.obj src/strgen/CMakeFiles/strgen.dir/__/misc/getoptdata.cpp.obj src/strgen/CMakeFiles/strgen.dir/__/error.cpp.obj
19:34:02 <merni> src/strgen/CMakeFiles/strgen.dir/__/string.cpp.obj src/strgen/CMakeFiles/strgen.dir/__/core/string_builder.cpp.obj src/strgen/CMakeFiles/strgen.dir/__/core/string_consumer.cpp.obj src/strgen/CMakeFiles/strgen.dir/__/core/string_inplace.cpp.obj src/strgen/CMakeFiles/strgen.dir/__/core/utf8.cpp.obj -o src\strgen\strgen.exe -Wl,--out-implib,src\strgen\libstrgen.dll.a -Wl,--major-image-version,0,--
19:34:02 <merni> minor-image-version,0 -static -static-libgcc -static-libstdc++ -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
19:34:04 <merni> C:/Program Files/JetBrains/CLion 2026.2.3.1/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Program Files/JetBrains/CLion 2026.2.3.1/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/lib/../lib\libpthread.a(libwinpthread_la-thread.o):(.text+0x9a8): undefined reference to `__intrinsic_setjmpex'
19:34:04 <merni> C:/Program Files/JetBrains/CLion 2026.2.3.1/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Program Files/JetBrains/CLion 2026.2.3.1/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/lib/../lib\libmsvcrt.a(lib64_libmsvcrt_common_a-snprintf_alias.o):snprintf_alias:(.text+0x3a): undefined reference to `__ms_vsnprintf'
19:34:06 <merni> collect2.exe: error: ld returned 1 exit status
19:34:20 <merni> something to do with
19:34:20 <merni> undefined reference to `__intrinsic_setjmpex'
19:34:20 <merni> undefined reference to `__ms_vsnprintf'
19:52:01 *** jfs_ has quit IRC (Ping timeout: 480 seconds)
20:06:36 <_glx_> mingw was fine 16h ago for the nightly check
20:07:24 <_glx_> but we are using gcc 16.2.0
20:09:11 <_glx_> and `lld` as linker because `ld` had some issues
20:19:55 <tony_pixel> peter1138[d]: hi Peter, did the question of inheriting properties from item set in `variant_group` got asked or answered here?
20:20:39 <tony_pixel> It was brought up once in '22 but I can't find any more references
20:21:26 *** gelignite has quit IRC ()
20:26:49 <merni> _glx_: it was something wrong with my local setup :)
20:27:05 <_glx_> and after a check on my local mingw install (gcc 16.1.0) and configuring with `cmake <path>` and no other options, it builds fine
20:27:08 <merni> the IDE's bundled mingw wasn't working for some reason
20:27:20 <merni> when I installed msys2 separately, it's working fine
20:32:54 <_glx_> oh actually the `ld` to `lld` was just to speed up CI
20:54:18 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
20:54:27 *** WormnestAndroid has joined #openttd
20:56:54 <peter1138[d]> There was a patch, possibly a PR, to copy stats. But I don't think it ever went anywhere
21:06:31 <tony_pixel> would it be possible though?
21:07:04 <tony_pixel> an NML-only thing should be easy to do, just copy defaults from `vehicle_group` instead of (possible) original vehicle
21:07:10 <tony_pixel> not that I force anyone to do that
21:07:44 <tony_pixel> I just assumed this got into friction and was declined, if it's free to be implemented then I can spend some time on the weekend
21:07:58 <tony_pixel> one of them anyway
21:08:59 <andythenorth> I feel like someone did a prototype of it somewhere
21:12:15 <tony_pixel> it shouldn't be that hard and will make it viable to implement liveries as variants by hand and also enable more code reuse
21:12:38 <tony_pixel> I will try to spend some time this weekend to at least get a draft going
21:13:07 <peter1138> Go for it.
21:14:02 <tony_pixel> can irc access other channels>
21:18:06 <peter1138> LordAro, chilly
21:18:13 <andythenorth> how would you flag to nml that it needs to clone?
21:18:34 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
21:18:51 <peter1138> That's for the NML patch author to decide, there's no precedent afaik.
21:20:37 <tony_pixel> I thought about adding another pseudoproperty that goes nowhere but instead enables the copying
21:21:04 <tony_pixel> so for liveries it would be just `variant_group` and, a.e., `variant_inherit`
21:21:07 <andythenorth> dirty quick way is arbitrary keyword, and have the parser clone for the AST node instead of appending a node?
21:21:19 <andythenorth> (I don't know how the AST is actually constructed)
21:21:58 <tony_pixel> copying ast may imply some overhead but at the same time could preserve intricate `if/else` logic inside parent
21:24:32 <tony_pixel> if anyone goes for that kind of thing novadays
21:25:54 *** Flygon has quit IRC (Read error: Connection reset by peer)
21:51:11 <brickblock19280> I have but not for vehicles
22:07:48 <andythenorth> naptime?
22:19:28 <LordAro> peter1138: yes
23:16:04 *** keikoz has quit IRC (Remote host closed the connection)
23:16:25 *** keikoz has joined #openttd
23:49:34 *** toktik is now known as Guest2107
23:49:41 *** toktik has joined #openttd
23:55:16 *** Guest2107 has quit IRC (Ping timeout: 480 seconds)