IRC logs for #openttd on OFTC at 2026-10-07
⏴ go to previous day
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: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?
03:13:43 *** Phileman has joined #openttd
03:17:06 *** Philemon has quit IRC (Ping timeout: 480 seconds)
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:44:08 <kaibaneddy> 10:30 meeting ended up happening at ~1 pm
05:52:56 *** wallabra has quit IRC (Ping timeout: 480 seconds)
05:54:59 *** skee has quit IRC (Quit: WeeChat 3.5)
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: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.
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"
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: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
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:14:38 <_zephyris> OpenTTD-Sans missing 1: (ồ)
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: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:13 <_zephyris> Presumably a native/vietnamese language name for the currency: `đồng`
15:17:50 <peter1138> For Lithuanian, I did merge a PR to fix it once, but the translators promptly put it back.
15:19:00 <peter1138> Not ideal but not the end of the world.
15:19:36 *** toktik is now known as Guest2068
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:45:49 *** hpiirai has joined #openttd
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: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: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:52:12 <mnhebi> I could have so many dongs with all these coins I have.
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:53:54 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
17:54:36 *** WormnestAndroid 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> 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: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:14:02 <tony_pixel> can irc access other channels>
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
23:16:04 *** keikoz has quit IRC (Remote host closed the connection)
23:49:34 *** toktik is now known as Guest2107
23:55:16 *** Guest2107 has quit IRC (Ping timeout: 480 seconds)
continue to next day ⏵