IRC logs for #openttd on OFTC at 2024-05-09
            
00:28:18 *** gelignite has quit IRC (Quit: Stay safe!)
02:00:26 *** Wormnest has quit IRC (Quit: Leaving)
02:12:35 *** gnu_jj has joined #openttd
02:15:02 *** tokai|noir has joined #openttd
02:15:02 *** ChanServ sets mode: +v tokai|noir
02:15:44 *** gnu_jj_ has quit IRC (Ping timeout: 480 seconds)
02:16:26 *** Flygon has joined #openttd
02:22:09 *** tokai has quit IRC (Ping timeout: 480 seconds)
02:52:53 *** D-HUND has joined #openttd
02:56:14 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:01:02 *** keikoz has joined #openttd
04:29:09 <DorpsGek> [OpenTTD/team] SwatCoding opened issue #559: [hi_IN] Translator access request https://github.com/OpenTTD/team/issues/559
04:36:29 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
04:42:52 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/132e226b273f76750e6f7b0623f9ff977dd12ff9
04:42:53 <DorpsGek> - Update: Translations from eints (by translators)
04:44:23 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #11878: Add: public key authentication to the admin connection https://github.com/OpenTTD/OpenTTD/pull/11878#issuecomment-2101923458
04:44:31 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #11878: Add: public key authentication to the admin connection https://github.com/OpenTTD/OpenTTD/pull/11878
06:02:00 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12636: Change: Use button aspect ratio for buttons that show vehicle icons. https://github.com/OpenTTD/OpenTTD/pull/12636
06:03:05 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12644: Cleanup: Remove Windows 9x font locale workaround. https://github.com/OpenTTD/OpenTTD/pull/12644
06:04:55 <DorpsGek> [OpenTTD/OpenTTD] PeterN approved pull request #12635: Fix: always allow setting company settings, company/president name/face https://github.com/OpenTTD/OpenTTD/pull/12635#pullrequestreview-2047210183
06:50:00 <peter1138> Hmm, annoying. USB got disabled or something. And ssh not runnig.
06:50:02 <peter1138> +n
06:52:12 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1238020680730280006/image.png?ex=663dc41b&is=663c729b&hm=e89ad3e9e7f7c4e7dee9d34180d779d372e6438e439c9ababbff0d3dd4a83c7b&
06:52:12 <peter1138> Less than ideal ๐Ÿ˜’
06:52:55 *** nielsm has joined #openttd
06:53:09 *** HerzogDeXtEr has joined #openttd
06:55:26 *** Ox7C5 has joined #openttd
06:56:06 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #12646: Change: Use default NewGRF cargo translation table. https://github.com/OpenTTD/OpenTTD/pull/12646#issuecomment-2102067053
07:23:13 *** gelignite has joined #openttd
07:34:04 <andythenorth> if we break grfs, does that violate the savegame warranty?
07:34:46 <peter1138> Players get their money back.
07:35:50 <peter1138> Hmm, can I have the old "font" output back? The new one is waaaaay to long.
07:37:14 <DorpsGek> [OpenTTD/OpenTTD] koutya0125 opened issue #12648: [Crash]: If the directory name contains 2-byte characters, openTTD will crash. https://github.com/OpenTTD/OpenTTD/issues/12648
07:39:33 <peter1138> With windows all filename characters are 2 bytes, so I guess that's UTF-16 surrogate pairs.
07:40:59 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1238032958817046539/image.png?ex=663dcf8a&is=663c7e0a&hm=18d1ce6752a092197f6f378d4faf815e14a3f1c05cc6a6ea69db29c3084d8299&
07:40:59 <peter1138> Is that worse than current?
07:43:29 <peter1138> Oh, 14.1 has the old terse format anyway.
07:45:03 <peter1138> Fonts 473 through to 1174 are all Iosevka variants. Maybe I should've just download the ones I used instead of the massive combined file ๐Ÿ˜„
07:47:24 <ahyangyi> Pressure test ๐Ÿ˜›
07:48:02 <peter1138> This font is problematic in OpenTTD, it renders noticeably slower.
07:49:48 <peter1138> Hmm, maybe this font list should show families followed by "x styles" instead of listing each individually.
07:50:02 <peter1138> And then providing the family name as a parameter can list the styles.
07:50:25 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1238035333430509568/image.png?ex=663dd1c1&is=663c8041&hm=e44832174d0a3f69eafe2189eaa25778c8af3ff6596c0a16d12a1e0bcce2d8cd&
07:50:25 <peter1138> This is not ideal.
07:52:01 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic opened pull request #12649: Fix 12643: _is_water_region_valid is not cleared/reset in AllocateWatโ€ฆ https://github.com/OpenTTD/OpenTTD/pull/12649
07:52:17 <peter1138> That's terse :p
07:53:46 <LordAro> peter1138: seems sensible
07:53:55 <peter1138> kuhnovic: can you add a little more detail to the PR?
07:54:13 <LordAro> might want to exclude bold/italic/etc variants entirely
07:54:25 <peter1138> I don't think so.
07:54:34 <kuhnovic> Doesn't the refered issue speak for itself?
07:54:54 <peter1138> The referred issue speaks for itself, not for your PR.
07:57:06 <peter1138> The commit itself is fine, but I'm not keen on a blank Description section.
07:57:24 <kuhnovic> Done
07:57:46 <DorpsGek> [OpenTTD/OpenTTD] PeterN approved pull request #12649: Fix 12643: _is_water_region_valid is not cleared/reset in AllocateWatโ€ฆ https://github.com/OpenTTD/OpenTTD/pull/12649#pullrequestreview-2047376720
07:57:47 <peter1138> Ty
07:58:22 <kuhnovic> When submitting the PR I thought "someone is going to complain about this". I was right ๐Ÿ˜›
07:58:33 <peter1138> You are most welcome.
07:59:12 <peter1138> Hmm, do I EVER need to have a full family -> style list...
08:13:16 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic updated pull request #12615: Codechange: Reduced size of water region by not storing tile area https://github.com/OpenTTD/OpenTTD/pull/12615
08:27:53 <kuhnovic> Does anyone else feel that it takes rather long to generate all the languages?
08:28:38 <kuhnovic> I'm considering adding a cmake option to skip the rest of them
08:29:08 <LordAro> profile strgen :p
08:29:39 <truebrain> kuhnovic: Compared to the rest of the game? No ๐Ÿ˜›
08:32:29 <peter1138> How long is too long?
08:33:20 <kuhnovic> On my windows machine it's about 2 minutes for just the lang files
08:33:31 <peter1138> Woah?
08:33:35 <peter1138> it's 2.9 seconds for me.
08:34:05 <peter1138> (And that includes strgen)
08:34:49 <peter1138> If I precompile strgen, it doesn't even give me a time for the language. `time` says 0.460s
08:34:59 <silent_tempest> I mean the build takes a while on my laptop but the languages I don't think take that long
08:35:32 <peter1138> Are you perhaps using WSL2 with the bad file io choice?
08:35:54 <kuhnovic> Nope, just bare bone windows
08:36:01 <silent_tempest> Oh yeah I'm on Linux. That probably helps
08:36:07 <michi_cc> Random Windows data point: 10 seconds.
08:36:25 <LordAro> how long does the rest of the OTTD build take?
08:36:26 <michi_cc> And yes, process start/fork is rather slow on Windows, so being longer than Linux is expected
08:36:41 <kuhnovic> It also seems to generate one language at a time, no parallellism
08:36:43 <peter1138> Is your build directory on a network share?
08:36:58 <silent_tempest> I mean that sounds like the problem
08:37:44 <kuhnovic> Nope, it on an M.2 SSD, same one as the OS. Not an NVMe drive but it should be plenty fast. And nowhere near full either.
08:39:15 <truebrain> And your CPU is a potato?
08:39:55 <peter1138> Lack of parallelism isn't a problem, that'll also be why it's 10 seconds for michi_cc.
08:40:10 <truebrain> MSVC compiles OpenTTD faster for me than clang (or worse, gcc)
08:40:44 <peter1138> Is your build directory synced with one of thise "cloud storage" things? (One Drive, Dropbox...)
08:41:33 <kuhnovic> truebrain: Intel i7-7700, certainly not winning any races but should be alright ๐Ÿ˜›
08:42:09 <kuhnovic> peter1138: Not that I know of, my source dir used to be at some point
08:42:46 <kuhnovic> But anyway, you guys don't experience this. No need for a cmake option then.
08:43:00 <truebrain> No, but we want to solve your problem now ๐Ÿ˜›
08:43:37 <truebrain> Any weird AV active? (So not Defender, but some other?)
08:43:49 <peter1138> I know the perfect solution. netinst.iso ๐Ÿ˜‰
08:44:02 <truebrain> Lol
08:44:46 <kuhnovic> I'm no longer behind the machine, the little human was craving too much attention
08:45:26 <silent_tempest> You should obviously get a shit-ton of RAM and use a RAM disk for the OpenTTD source code. ๐Ÿ˜›
08:46:55 <kuhnovic> Openttd, compiled for potato's, but compiled on the sickest of development rigs ๐Ÿ˜›
08:47:03 * orudge digs out RAMDRIVE.SYS
08:47:04 <orudge> the good old says
08:47:06 <orudge> *days
09:10:57 *** XYZ has quit IRC (Remote host closed the connection)
09:12:04 <silent_tempest> Lol
09:12:36 <silent_tempest> I've literally never done that but an old Coworker got the build time from like 40 to like 6 minutes and ram drive was a huge part of it
09:14:43 *** XYZ has joined #openttd
10:25:34 <andythenorth> I am a potato
10:26:48 <peter1138> Debian Potato?
10:27:06 <andythenorth> iPotato
10:27:45 <LordAro> hmm, guess i'm working from home today
10:30:00 <_glx_> kuhnovic: Using ninja or msbuild?
10:38:32 <kuhnovic> Msbuild
10:50:38 <_glx_> Msbuild needs a flag for parallelism, and it doesn't always work
11:05:05 <kuhnovic> Yes the /MP flag, but that gave me issues in the past. Maybe I should give it another go.
11:38:00 *** jenkings has joined #openttd
11:38:00 <jenkings> Is it intentional, that when you use transparency settings, it is not applied to "news" ?
11:39:13 <jenkings> I mean, i usualy play with hidden trees, because it is almost impossible to build railway, when you can not see it because of trees. But in the moment, when the "citezens celebrate.." newspaper comes on, it is just a huge forest ๐Ÿ™‚
11:39:30 <jenkings> Because, i use the "bribe by trees" glitch ๐Ÿ™‚
11:44:38 *** Eddi|zuHause2 is now known as Eddi|zuHause
11:44:43 <Eddi|zuHause> it has always been this way
11:46:31 <DorpsGek> [OpenTTD/team] glx22 commented on issue #559: [hi_IN] Translator access request https://github.com/OpenTTD/team/issues/559
12:10:25 <FLHerne> I suppose the transparency doesn't affect the newspaper reporter's camera
12:10:46 <FLHerne> would guess it's less "intentional" and more "no-one thought about it at all"
12:15:12 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1238101969780998184/image.png?ex=663e0fd0&is=663cbe50&hm=eaec2b734039c68b697083c5cdce76a8964513625a42866f7fb40896acaed15b&
12:15:12 <peter1138> Nah, it's correct ๐Ÿ™‚
12:16:28 *** Ox7C5 has quit IRC ()
12:20:11 <DorpsGek> [OpenTTD/team] ahyangyi opened issue #560: [zh_CN] Translator access request https://github.com/OpenTTD/team/issues/560
12:20:56 <ahyangyi> lol, requested before but didn't click on that "join organization" link... *mea culpa*
12:21:25 <ahyangyi> (and placed comments in the wrong place this time, oof)
12:22:05 <DorpsGek> [OpenTTD/team] ahyangyi opened issue #561: [zh_CN] Translator access request https://github.com/OpenTTD/team/issues/561
12:24:13 <audigex> FLHerne: This seems like the obvious logic - itโ€™s a newspaper photo, not the map youโ€™re looking at
12:24:46 <ahyangyi> At least the honest newspapers don't tend to do that ๐Ÿ˜›
12:30:48 <peter1138> It's definitely intentional. It's a viewport window, so without extra logic to do it it would be transparent like the main viewport.
12:32:05 <DorpsGek> [OpenTTD/OpenTTD] merni-ns commented on pull request #12209: Remove: NPF https://github.com/OpenTTD/OpenTTD/pull/12209#pullrequestreview-2047846838
12:36:26 <DorpsGek> [OpenTTD/OpenTTD] merni-ns commented on pull request #12209: Remove: NPF https://github.com/OpenTTD/OpenTTD/pull/12209#pullrequestreview-2047858349
12:39:17 <DorpsGek> [OpenTTD/OpenTTD] merni-ns updated pull request #12209: Remove: NPF https://github.com/OpenTTD/OpenTTD/pull/12209
12:40:23 <merni> commit checker failed with "No common parent found for this merge commit (max-depth of 256 reached)" ...
12:40:30 <merni> I need to rebase?
12:41:37 <DorpsGek> [OpenTTD/OpenTTD] merni-ns updated pull request #12209: Remove: NPF https://github.com/OpenTTD/OpenTTD/pull/12209
12:42:00 <merni> that worked
12:48:06 <merni> #12648 is a nice bug ๐Ÿ˜†
12:48:38 <peter1138> Nice?
12:49:39 <merni> idk how to explain
12:49:43 *** gelignite has quit IRC (Remote host closed the connection)
12:49:46 <merni> interesting>
12:50:44 <peter1138> Ah. I don't have any tools to decode a Windows crash dump
13:05:40 *** gelignite has joined #openttd
13:11:09 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1238116048532672654/image.png?ex=663e1ced&is=663ccb6d&hm=575c9dbe321500ffa7385dbecb7ee4635cc4dd8b274047cd387669fc22b60824&
13:11:09 <peter1138> Hmm
13:11:56 <peter1138> Although no idea if that's multibyte in utf-16. And of course it's actually utf-8, with wine on top.
13:13:48 <LordAro> pEtErN
13:14:17 <merni> https://en.wikipedia.org/wiki/Yen_and_yuan_sign#Microsoft_Windows That's single byte in Shift-JIS (the same position as backslash in ASCII) and it's also single byte in UTF-8
13:14:39 <merni> I think everything is multibyte in UTF-16 since the minimum is 2 bytes :P
13:14:49 <peter1138> Surrogate pair, I meant.
13:15:19 <merni> It's U+00A5
13:15:20 <peter1138> And I'm referring to the bit after 'test', I'm aware that the path separator becomes a different character for whatever reason.
13:16:50 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1238117479411220490/image.png?ex=663e1e42&is=663cccc2&hm=0ff158732806ec140bbc1f81a2433491809a58798b85d318da2c56359746338a&
13:16:52 <peter1138> Okay, no ๐Ÿ˜‰
13:22:15 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1238118843998539970/image.png?ex=663e1f87&is=663cce07&hm=f7dd49e89cba155d232c668cba71a9aacd80b00a3508b6921e1b1d4f44e20e73&
13:22:15 <peter1138> That has surrogate pairs. No glyphs for it but no crash here.
13:22:41 <merni> Analysing the dump might be helpful :P
13:22:42 <LordAro> sounds like you're going to need that crash dump output :)
13:29:07 <DorpsGek> [OpenTTD/OpenTTD] MuxyDuGoulp updated pull request #12647: Fix: [AdminPort] #12411 Send Network Welcome Packet to admin port after game creation completed https://github.com/OpenTTD/OpenTTD/pull/12647
14:53:39 *** gelignite has quit IRC (Read error: Connection reset by peer)
14:54:31 *** gelignite has joined #openttd
15:54:44 *** gelignite has quit IRC (Quit: Stay safe!)
16:04:28 <DorpsGek> [OpenTTD/team] glx22 commented on issue #561: [zh_CN] Translator access request https://github.com/OpenTTD/team/issues/561
16:12:53 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #12648: [Crash]: If the directory name contains multibyte characters, openTTD will crash. https://github.com/OpenTTD/OpenTTD/issues/12648
16:16:45 <peter1138> std::string filename_base = std::filesystem::path(filename).filename().string();
16:17:23 <peter1138> Hmm, so I need some tar files inside my multi-byte directory.
16:19:18 <peter1138> :492 in current master.
16:20:07 <peter1138> filename is in utf-8 format at this point.
16:21:39 <_glx_> and std::filesystem::path tries to convert to wchar I think
16:21:54 <peter1138> Actually, is it...
16:22:04 <peter1138> Ah yes, it is.
16:22:23 <_glx_> ``` template <class _Src, enable_if_t<_Is_Source<_Src>, int> = 0>
16:22:23 <_glx_> path(const _Src& _Source, format = auto_format) : _Text(_Convert_Source_to_wide(_Source)) {
16:22:23 <_glx_> // format has no meaning for this implementation, as the generic grammar is acceptable as a native path
16:22:23 <_glx_> }
16:23:05 <peter1138> Not sure filesystem::path is doing any conversion here.
16:23:15 <peter1138> But it might be treating it as native anyway.
16:24:47 <peter1138> Part of the rabbit hole I've been looking at is to make all uses of std::filesystem::path be native. But that makes more work where we use it for tar file, which is always utf-8 and native has no bearing on i.t
16:26:37 <peter1138> `std::string filename_base = FS2OTTD(std::filesystem::path(OTTD2FS(filename)).filename().string());`
16:27:00 <LordAro> nice.
16:27:07 <peter1138> Might be a quick-and-dirty fix, but I can't test it.
16:27:34 <peter1138> Or we use an old-fashioned `.rfind(PATH_SEP)`
16:27:43 <_glx_> I first need to reproduce
16:28:49 <_glx_> process name in dmp is K:\ใ‚ใ‚ใ‚\steamapps\common\OpenTTD\openttd.exe
16:28:51 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
16:29:40 *** gelignite has joined #openttd
16:35:14 <peter1138> Hmm, suspicious, it will crash sometimes...
16:37:30 <wensimehrp> I think the best solution is to tell the player your path should only contain a-z / A-Z / 0-9 and underscores and dashes to avoid the problems
16:38:03 <peter1138> Why does your "best solution" sound like exactly the opposite of the best solution?
16:38:10 <LordAro> "doctor doctor, it hurts when i do this" "well don't do that"
16:39:01 <_glx_> let's try renaming a tar
16:40:49 *** Wolf01 has joined #openttd
16:40:54 <wensimehrp> Mostly because this is common within all programs. "Don't install your game under a path that contains a Chinese character (i assume this is similar to the Japanese case)' is something Chinese game players say everyday.
16:41:03 <wensimehrp> ๐Ÿคท
16:41:48 <peter1138> Sorry that why was rhetorical.
16:42:02 <peter1138> It's a bad "solution".
16:42:51 <LordAro> wensimehrp: only because most programs do things incorrectly
16:43:11 <LordAro> doesn't mean it's not an issue, and doesn't mean you should just accept it
16:43:19 <peter1138> Probably not most. You don't hear about the ones that do work...
16:43:24 <LordAro> well, quite
16:44:20 <peter1138> It is somewhat annoying that C++ allows implicit conversion from std::string to std::filesystem::path as well.
16:45:07 <peter1138> They want us to use u8string for our utf-8 encoded strings, but that's... meh.
16:45:42 <wensimehrp> I personally don't install programs under paths like C:\ๆธธๆˆ\ๅผ€ๆบ่ฟ่พ“ๅคงไบจ\some_folder just for maximum compatibility
16:45:42 <wensimehrp> But yeah maybe it's because all other programs done the path thing incorrectly.
16:50:13 <ahyangyi> One day I should try installing everything under`C:\๐Ÿ˜‚\` and see what happens
16:51:39 <peter1138> WenSim, you're basically telling us not to fix something because you personally work around it. That is not how things work.
16:52:08 <peter1138> There is also the matter that (I believe) it used to work in 13.x, as the poster talks about downgrading to the previous version.
16:54:13 <_glx_> main issue for me will be to reproduce
16:56:09 <_glx_> because my system is not MBCS
16:58:34 <ahyangyi> It was our traditional wisdom -- "nobody cared about non-ascii paths, so either we work around it or everything breaks".
16:58:34 <ahyangyi> Sure, time has changed a bit... and isn't it nice when developers actually care about non-ascii paths?
17:08:23 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #12650: Fix #12648: Ensure all uses of std::filesystem::path use native encoding. https://github.com/OpenTTD/OpenTTD/pull/12650
17:08:33 <peter1138> ^ Some of this stuff I already had patches for...
17:10:01 <peter1138> The language file stuff explains why there was a crash in the json formatter later.
17:10:11 <_glx_> ahyangyi: don't let the invite expire this time
17:10:38 <peter1138> <https://steamcommunity.com/app/1536610/discussions/0/6361972497307778033/>
17:10:50 <peter1138> ```Unhandled exception in ottdgame thread:
17:10:50 <peter1138> [ison.exception.type_error.316] invalid UTF-8 byte at index 49: 0x95 ```
17:11:25 <peter1138> Hmm, I didn't actually try building, haha.
17:13:33 <peter1138> Okay, it builds ๐Ÿ˜„
17:15:43 <_glx_> of course `string()` can be std::string or std::wstring
17:15:54 <_glx_> nice interface ๐Ÿ™‚
17:16:47 <ahyangyi> _glx_: Thanks, this time I clicked accept in time!
17:17:11 <LordAro> peter1138: not quite
17:17:19 <DorpsGek> [OpenTTD/team] glx22 closed issue #561: [zh_CN] Translator access request https://github.com/OpenTTD/team/issues/561
17:17:22 <DorpsGek> [OpenTTD/team] glx22 commented on issue #561: [zh_CN] Translator access request https://github.com/OpenTTD/team/issues/561
17:17:46 <peter1138> It builds for me, anyway ๐Ÿ™‚
17:19:05 <peter1138> Hmm, we did we do before...
17:20:05 <peter1138> The other way is to forget FS2OTTD and use `.u8string()` , which then needs to be reinterpreted to std::string
17:20:06 <_glx_> use .native()
17:20:40 <_glx_> FS2OTTD(.native()) should be always fine
17:21:08 <peter1138> Hmm, maybe I don't need anything.
17:22:19 <peter1138> Then the implicit conversion should work.
17:24:12 <DorpsGek> [OpenTTD/OpenTTD] flowprint commented on discussion #12630: Option to set all months to 30 days for timetable sync https://github.com/OpenTTD/OpenTTD/discussions/12630
17:24:18 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #12650: Fix #12648: Ensure all uses of std::filesystem::path use native encoding. https://github.com/OpenTTD/OpenTTD/pull/12650
17:27:18 <_glx_> code looks fine, it should default to native if you don't use string()
17:27:47 <peter1138> Yup, that was we found with c_str() the other week, but I forgot ๐Ÿ™‚
17:29:34 <_glx_> ``` _NODISCARD const string_type& native() const noexcept {
17:29:34 <_glx_> // return a reference to the internally stored wstring in the native format
17:29:34 <_glx_> return _Text;
17:29:34 <_glx_> }
17:29:34 <_glx_> _NODISCARD const value_type* c_str() const noexcept {
17:29:36 <_glx_> // return a NTCTS to the internally stored path in the native format
17:29:36 <_glx_> return _Text.c_str();
17:29:38 <_glx_> }
17:29:38 <_glx_> operator string_type() const { // implicitly convert *this into a string containing the native format
17:29:40 <_glx_> return _Text;
17:29:40 <_glx_> }
17:29:42 <_glx_> ``` all native
17:30:09 <_glx_> but yeah it's easy to forget
17:32:41 <_glx_> string() conversion seems really "random" ``` template <class _EcharT, class _Traits = char_traits<_EcharT>, class _Alloc = allocator<_EcharT>,
17:32:41 <_glx_> enable_if_t<_Is_EcharT<_EcharT>, int> = 0>
17:32:41 <_glx_> _NODISCARD basic_string<_EcharT, _Traits, _Alloc> string(const _Alloc& _Al = _Alloc()) const {
17:32:41 <_glx_> // convert the native path from this instance into a basic_string
17:32:41 <_glx_> return _Convert_wide_to<_Traits>(_Text, _Al);
17:32:42 <_glx_> }
17:32:42 <_glx_> _NODISCARD _STD string string() const { // convert the native path from this instance into a string
17:32:44 <_glx_> return string<char>();
17:32:44 <_glx_> }
17:33:38 <_glx_> I guess it uses current codepage
17:34:06 <peter1138> Hopefully this fixes it, but who knows ๐Ÿ™‚
17:34:15 <_glx_> vs ``` _NODISCARD auto u8string() const { // convert the native path from this instance into a UTF-8 string
17:34:15 <_glx_> #ifdef __cpp_lib_char8_t
17:34:15 <_glx_> using _U8Ty = char8_t;
17:34:15 <_glx_> #else // ^^^ defined(__cpp_lib_char8_t) / !defined(__cpp_lib_char8_t) vvv
17:34:15 <_glx_> using _U8Ty = char;
17:34:16 <_glx_> #endif // ^^^ !defined(__cpp_lib_char8_t) ^^^
17:34:16 <_glx_> return _Convert_wide_to_narrow<char_traits<_U8Ty>>(__std_code_page::_Utf8, _Text, allocator<_U8Ty>{});
17:34:18 <_glx_> }
17:34:59 <_glx_> I can trigger a build for the PR so affected users may test
17:36:18 <peter1138> Plus we have a user here who may be able to assist, even if they think it's not worth it ๐Ÿ˜‰
17:36:41 <DorpsGek> [OpenTTD/OpenTTD] Release workflow was not successful https://github.com/OpenTTD/OpenTTD/actions/runs/9021191197
17:37:36 <_glx_> yeah I know I triggered 12648 because my brain saw Fix #12648
17:39:54 <truebrain> and computer said: no ๐Ÿ˜„
17:40:49 <_glx_> but it tried 3 times
17:56:23 <DorpsGek> [OpenTTD/OpenTTD] Release workflow was not successful https://github.com/OpenTTD/OpenTTD/actions/runs/9021202783
17:57:04 <_glx_> nice failure macos
17:59:39 *** aperezdc has quit IRC (Ping timeout: 480 seconds)
18:00:19 <DorpsGek> [OpenTTD/OpenTTD] JGRennison opened issue #12651: [Crash]: max_train_length assertion in ReplaceChain can be triggered for long articulated leading engines when wagon removal is enabled https://github.com/OpenTTD/OpenTTD/issues/12651
18:02:44 <peter1138> Oh dear.
18:03:26 <peter1138> What was the macos failure?
18:05:58 <peter1138> I guess the properly solution is to not allow building the extra-long consists.
18:06:54 <peter1138> 231MB ๐Ÿ˜ฎ
18:09:14 <_jgr_> You can change the setting at any time regardless of existing trains, so that wouldn't completely avoid the issue
18:10:11 <peter1138> Any indiciation of what engine to buy (year & model?)
18:12:08 <peter1138> DB VT 11.5 10-part is 7.0 exactly, hah
18:12:35 <peter1138> Well, I can just set the limit to 1 tile anyway.
18:12:37 <_jgr_> DB BR 407, from 2010, it's set up in the attached save
18:15:29 <DorpsGek> [OpenTTD/OpenTTD] Release workflow was not successful https://github.com/OpenTTD/OpenTTD/actions/runs/9021202783
18:18:07 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic merged pull request #12649: Fix 12643: _is_water_region_valid is not cleared/reset in AllocateWatโ€ฆ https://github.com/OpenTTD/OpenTTD/pull/12649
18:18:10 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic closed issue #12643: [Bug]: _is_water_region_valid is not cleared/reset in AllocateWaterRegions (#12560) https://github.com/OpenTTD/OpenTTD/issues/12643
18:18:13 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic closed issue #12643: [Bug]: _is_water_region_valid is not cleared/reset in AllocateWaterRegions (#12560) https://github.com/OpenTTD/OpenTTD/issues/12643
18:28:07 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1238195816280096821/image.png?ex=663e6737&is=663d15b7&hm=c2ec2e578015aa898bb685192967f95fa5b960535cfce5e25947ff3c4dbc2614&
18:28:07 <peter1138> Part one...
18:31:59 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1238196788456980610/image.png?ex=663e681e&is=663d169e&hm=99a75f0cdfa22b78798397fc5929ab9cd54124b4d47c119f4e7bd612c4f5f796&
18:31:59 <peter1138> Well...
18:33:49 *** Wolf01 is now known as Guest5375
18:33:51 *** Wolf01 has joined #openttd
18:37:41 *** Wormnest has joined #openttd
18:39:13 <peter1138> Well, rabbit holes eh?
18:39:49 *** Guest5375 has quit IRC (Ping timeout: 480 seconds)
18:44:42 <peter1138> glx22viaGitHub: sadface
18:48:14 *** aperezdc has joined #openttd
18:52:02 <peter1138> Hmm, that build won't be compatible with 14.x any more.
18:54:01 <_glx_> Well it's not your patch, it's the bundling
18:56:02 <_glx_> Ha no second fail is the upload to cdn
19:10:02 <DorpsGek> [OpenTTD/OpenTTD] Release workflow was not successful https://github.com/OpenTTD/OpenTTD/actions/runs/9021202783
19:11:13 <peter1138> That got less far...
19:11:31 <_glx_> it failed on first file, maybe because it was already there
19:11:32 <truebrain> You can't overwrite files that already exist on the CDN ๐Ÿ™‚
19:12:30 <truebrain> either you have to create a new git hash, and retrigger, or you just download the artifact and ask the user to test ๐Ÿ™‚
19:14:42 <peter1138> New git hash would probaly just fail again? I'm not sure what the original problem was though, I wasn't looking ๐Ÿ™‚
19:15:05 <truebrain> seems like a random failure during upload to CDN
19:15:12 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on pull request #12650: Fix #12648: Ensure all uses of std::filesystem::path use native encoding. https://github.com/OpenTTD/OpenTTD/pull/12650#issuecomment-2103265958
19:15:44 <peter1138> Atomic CDN uploads, all or nothing? ๐Ÿ˜„
19:16:34 <truebrain> that would even be possible, as I can keep the uploads in limbo, till all are uploaded. But #effort ๐Ÿ˜›
19:17:00 <truebrain> it now failed twice in hundredths of uploads ๐Ÿ˜›
19:17:44 <peter1138> If a real release fails, do we have to make a new release with a new version? :p
19:18:06 <truebrain> no, then I have to login to the backend, remove files, and retry ... and I will be grumpy, and most likely fix the problem once and for all
19:18:09 <truebrain> till that day .... ๐Ÿ˜„
19:19:56 <_glx_> posted a link to the build in steam discussion
19:25:46 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #12648: [Crash]: If the directory name contains multibyte characters, openTTD will crash. https://github.com/OpenTTD/OpenTTD/issues/12648
19:30:33 <peter1138> Hmm, of course 14.x doesn't have changes I already made to use more std::filesystem stuff.
19:31:15 <peter1138> I guess the tar-file symlink stuff won't matter ๐Ÿ™‚
19:33:33 <DorpsGek> [OpenTTD/OpenTTD] MuxyDuGoulp updated pull request #12647: Fix: [AdminPort] #12411 Send Network Welcome Packet to admin port after game creation completed https://github.com/OpenTTD/OpenTTD/pull/12647
19:42:37 <DorpsGek> [OpenTTD/OpenTTD] MuxyDuGoulp commented on pull request #12647: Fix: [AdminPort] #12411 Send Network Welcome Packet to admin port after game creation completed https://github.com/OpenTTD/OpenTTD/pull/12647#issuecomment-2103303771
19:43:12 *** muxydugoulp has joined #openttd
19:43:12 <muxydugoulp> what is wrong with this game script code ?
19:43:12 <muxydugoulp> GSNews.Create( GSNews.NT_GENERAL, "Message", GSCompany.COMPANY_INVALID, GSNews.NR_NONE, 0 );
19:44:25 <muxydugoulp> i get an error : wrong number of parameters
19:45:34 <muxydugoulp> even if "Message" is replaced with a GSText stuff
19:47:40 <_glx_> number of parameters seems fine
19:48:28 <muxydugoulp> yes 5 parameters
19:50:34 <peter1138> Are you using an older compatibility layer?
19:50:38 <muxydugoulp> i have a dedicated serveur under linux with a game script running fine and when using a light script with this function on a server not dedicated on windows it goes wrong
19:50:52 <muxydugoulp> what is an older compatibilty layer ?
19:51:30 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #12635: Fix: always allow setting company settings, company/president name/face https://github.com/OpenTTD/OpenTTD/pull/12635
19:52:30 <peter1138> Oh it was changed in 2015. Hmm.
19:52:41 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #12420: Add: support for admin to change company allow lists https://github.com/OpenTTD/OpenTTD/pull/12420
19:52:53 <_glx_> GSNews::Create() used to need less parameters
19:53:07 <_glx_> before API 1.5
19:53:17 <muxydugoulp> i'm using release 14.1
19:53:49 <_glx_> and what is the API set for your script ?
19:54:19 <_glx_> try with just type, text and company
19:54:27 <muxydugoulp> ok found
19:54:53 <muxydugoulp> stupid info.nut file
19:54:53 <muxydugoulp> function GetAPIVersion() { return "1.2"; }
19:55:05 <_glx_> yeah that's old
19:55:59 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #12647: Fix: [AdminPort] #12411 Send Network Welcome Packet to admin port after game creation completed https://github.com/OpenTTD/OpenTTD/pull/12647#issuecomment-2103321817
19:56:03 <_glx_> btw log window will tell you "XXX API compatibility in effect."
19:56:28 <muxydugoulp> yes it does
19:58:25 <peter1138> Hmm, now, filtering the list of fonts to only those that are usable...
20:11:54 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1238221932999217193/image.png?ex=663e7f89&is=663d2e09&hm=870a71027b78dd3978c705ca900ccbef853f3b8b56ec9707c956072caec07fd3&
20:12:00 <peter1138> Genuinely didn't expact that to work.
20:12:34 <peter1138> Also console with RTL language is kinda broken but nothing new there ๐Ÿ™‚
20:15:16 <peter1138> Hmm, not exactly working. For urdu I'm listing no fonts, but clearly a font is working.
20:20:20 <peter1138> Well
20:20:20 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1238224058122768506/image.png?ex=663e8184&is=663d3004&hm=87286a121dbd4c0d5437af36e66c910065b7a88dbc215dec9259f2a5f86e288a&
20:20:34 <peter1138> The joke was that Germans make up long words, but this...
20:32:39 *** nielsm has quit IRC (Ping timeout: 480 seconds)
20:33:29 <Eddi|zuHause> that's multiple words as far as i can tell :)
20:37:49 <DorpsGek> [OpenTTD/OpenTTD] MuxyDuGoulp commented on pull request #12647: Fix: [AdminPort] #12411 Send Network Welcome Packet to admin port after game creation completed https://github.com/OpenTTD/OpenTTD/pull/12647#issuecomment-2103383619
20:43:57 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #12647: Fix: [AdminPort] #12411 Send Network Welcome Packet to admin port after game creation completed https://github.com/OpenTTD/OpenTTD/pull/12647#issuecomment-2103391985
20:45:18 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12209: Remove: NPF https://github.com/OpenTTD/OpenTTD/pull/12209#pullrequestreview-2048809344
20:45:47 <truebrain> Pam pam pammm
20:46:36 <andythenorth> ๐Ÿ˜ฎ ๐Ÿ˜ฎ ๐Ÿ˜ฎ
20:48:17 *** gelignite has quit IRC (Quit: Stay safe!)
21:16:06 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
21:16:14 *** Smedles has joined #openttd
21:39:22 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:07:06 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:19:08 *** Wormnest has quit IRC (Read error: Connection reset by peer)
22:19:34 *** Wormnest has joined #openttd
22:28:50 *** Wormnest has quit IRC (Quit: Leaving)
22:29:52 <truebrain> Lol, the partial upload is now causing issues for publishing the website .. ghehehe, guess I need to fix that tomorrow
22:31:03 *** debdog has joined #openttd
22:33:27 <peter1138> `int name_len = (name.length() >= INT_MAX) ? INT_MAX : (int)name.length();`
22:33:33 <peter1138> Hmm, do we often have 2GB strings?
22:34:03 <peter1138> (Yeah, silly APIs)
22:41:48 <truebrain> Lol
23:13:56 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)