IRC logs for #openttd on OFTC at 2025-03-19
⏴ go to previous day
00:04:59 <peter1138> cargo is probably short enough.
02:22:56 *** Wormnest has quit IRC (Quit: Leaving)
02:37:47 *** akimoto has joined #openttd
03:08:12 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
03:08:15 *** WormnestAndroid has joined #openttd
03:08:16 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
03:08:17 *** WormnestAndroid has joined #openttd
04:00:50 *** geizeskrank has quit IRC (Ping timeout: 480 seconds)
04:03:28 *** D-HUND has quit IRC (Ping timeout: 480 seconds)
04:04:25 *** geizeskrank has joined #openttd
06:37:31 *** keikoz has quit IRC (Ping timeout: 480 seconds)
07:28:44 *** SigHunter has joined #openttd
07:39:29 <peter1138> * @return True ifffffff the name is unique.
07:40:05 *** akimoto has quit IRC (Ping timeout: 480 seconds)
08:02:33 *** HerzogDeXtEr has joined #openttd
08:08:29 *** exceptik has joined #openttd
08:08:29 <exceptik> xarick: isn't std::abs a template function?
08:11:25 *** mindlesstux has joined #openttd
09:42:01 <xarick> should I attempt to fix abs?
09:47:28 <LordAro> removing it would be more worthwhile
09:50:08 <xarick> oh these templated functions look like an open can of worms 🙂
09:50:44 <xarick> okay, i'm not gonna touch this
09:52:23 <xarick> are there any tests for these functions
09:53:19 <LordAro> sounds like an opportunity for you to write some
09:53:52 <LordAro> actually that's not true - src/tests/math_func.cpp
09:55:31 *** akimoto has joined #openttd
10:27:04 <_zephyris> Does the openttd org want to own the openttd-ttf font repo?
10:29:29 <xarick> > 10:28:25:572 The following tests FAILED:
10:29:29 <xarick> > 10:28:25:572 36 - abs (Failed)
10:29:47 <xarick> test failed successfulyy
10:32:41 <frosch123> Good question. I guess source distributions did not notice the missing build step yet
10:41:36 <xarick> am I missing something?
10:48:43 <peter1138> What's the point of it?
10:48:48 <xarick> int32_t did not fail, strange
10:53:42 <xarick> i dunno, is it not worth looking into?
10:54:11 <peter1138> What does adding all that achieve?
10:56:53 <xarick> std::abs passed all tests
11:18:26 <xarick> > CHECK( abs(std::numeric_limits<int32_t>::lowest()) == std::abs(std::numeric_limits<int32_t>::lowest()) )
11:18:26 <xarick> > CHECK( std::abs(std::numeric_limits<int32_t>::lowest()) == abs(std::numeric_limits<int32_t>::lowest()) )
11:18:27 <xarick> > -1561147408 == 520 (0x208)
11:18:27 <xarick> this makes no sense... I don't understand... the order matters
11:21:21 <LordAro> mm, undefined behaviour
11:37:22 <_zephyris> frosch123: It's barely built, just exported from the fontforge source file. And, the output TTFs and preview images are included in the repo because they're such small binaries/images.
11:37:22 <_zephyris> Would be easy to add basic makefile
11:52:20 <xarick> std::abs is also wrong...
11:55:17 <xarick> why does abs(int32_t) calls the std version and abs(int16_t) calls the templated version of abs?
11:55:54 <xarick> float and double call some fabs
11:57:03 <peter1138> How long before we can use checked integer arithmetic?
11:58:14 <xarick> oh, stdlib.h is some microsoft file...
12:01:03 <xarick> well i am giving up on this... I see this is way too messed up
13:24:55 <peter1138> Seems like a bad idea.
13:34:10 <peter1138> This is why nothing gets done.
13:58:19 <andythenorth> so just napping and lunching?
13:58:41 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
14:17:34 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
14:20:37 *** WormnestAndroid has joined #openttd
14:39:45 *** urdh has quit IRC (Ping timeout: 480 seconds)
15:21:31 *** Wormnest has joined #openttd
15:32:36 <andythenorth> reminds me of one of my kid's gaming PCs
15:32:48 <andythenorth> multiple ports but some are USB 2 only
16:02:23 <xarick> Amount of vehicle smoke/sparks: None, but breakdowns still show smoke
16:13:32 *** kuka_lie has joined #openttd
16:22:21 <peter1138> Urgh, no `friend` in C#...
16:24:34 <kuhnovic> Not entirely the same, but there is partial class
17:30:41 <truebrain> `Thank you for bringing this issue to our attention. We have received similar reports, and it is already a known issue. Our technical team is actively working on a fix, which should be available soon. We apologize for the downtime and any inconvenience caused.`
17:30:46 <truebrain> So the ChatGPT reply was wrong
17:31:39 <truebrain> And for next time: I shouldn't bother to create a support ticket with the Steam Team. I have to direct it at the Steamworks Team. The first are just a bunch of AIs .. the second has actual capable humans at work 😛
17:33:00 <peter1138> I wish I was an actual capable human.
17:34:18 <truebrain> I am 100% sure you are more capable than what-ever it was that replied to me the first two times via Steam Support 😛
17:38:10 <talltyler> Okay, tech support time. I have a new computer and am trying to install NML compiler.
17:38:10 <talltyler> I've run `pip install nml`, but typing `nmlc` into the command line says `The term 'nmlc' is not recognized as the name of a cmdlet, function, script file, or operable program ... `
17:38:10 <talltyler> Do I need to add it to my environment variables or something...?
17:43:13 <LordAro> sounds like wherever pip install installed it isn't on PATH
17:56:46 <talltyler> Hmm, I haven't added it to my PATH but even when the terminal is pointed at the NML folder, I get the same result
17:57:01 <talltyler> I can see the file named `nmlc`, but terminal cannot
17:57:13 <talltyler> I'm probably stupid 🙂
17:57:49 <talltyler> If you just type `nmlc` without any arguments, shouldn't it print version info, etc.?
17:58:01 <truebrain> no, Steam Support classifies under "stupid" 😛
18:04:44 <_glx_> so it was the new version (as supposed)
18:09:57 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
18:11:21 <truebrain> depends on who you ask .. Steam Support blames it on me. Steamworks is more honest 😛
18:15:23 <talltyler> Adding it to PATH has not helped 😦
18:16:28 <_glx_> using python from microsoft store ?
18:16:57 <talltyler> Python 3.12, I think
18:18:48 <_zephyris> truebrain: Steam Support tried to scam you out of $5...
18:20:55 <_glx_> `C:\Users\loicg\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts` is what I have in path for pip installed stuff
18:21:31 <talltyler> Yes, that's where it was when I installed from pip
18:21:35 <_glx_> (I have python 3.11.9 from MS store)
18:21:38 <talltyler> I didn't trust it, so I downloaded manually
18:22:07 <talltyler> I added this to my path: `C:\Users\tyler\OneDrive\Documents\nml\nml-0.7.6`
18:22:31 <_glx_> but pip doesn't install anything there 🙂
18:23:16 <talltyler> Right, I downloaded the release and unzipped it there 🙂
18:23:27 <talltyler> And uninstalled the pip version
18:23:36 <_glx_> for me the best way to install is clone the repo, and `pip install -e .` from the clone
18:24:34 <talltyler> Interesting, didn't know that was an option 🙂
18:25:43 <talltyler> Okay, did that and added the location it suggested to my path
18:25:59 <talltyler> Doesn't work, but maybe it needs a reboot?
18:26:02 <_glx_> that way any changes in the source are usable immediately
18:26:12 <_glx_> you might need to restart the terminal
18:26:49 <talltyler> Ah, restarting the terminal seems to have done it
18:26:57 <_glx_> so it uses the new path value
18:27:54 <talltyler> Thanks for your help! 😄
18:28:54 <talltyler> Eh, my build script doesn't like OneDrive...
18:28:54 <talltyler> `openttd_path = os.path.expanduser("~/Documents/OpenTTD/newgrf")`
18:28:54 <talltyler> Silly Windows changing the location of my documents...
18:42:04 *** ChanServ sets mode: +v tokai
18:42:58 <peter1138> Hmm, do I get picky about comment style...
18:43:23 <peter1138> `/* Sentence. */` vs `// sentence`
18:48:57 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
18:59:23 <frosch123> string_view is probably possible. Need a better name for GetStringPtr then
18:59:42 <peter1138> We can still use a pointer :-)
18:59:56 <frosch123> However I am still in the NML part of this rabbit hole
19:00:20 <peter1138> It seems I broke it badly :(
19:01:19 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
19:01:57 <frosch123> It was also broken before. So I wonder whether my test.grf is the first user ever
19:06:20 *** WormnestAndroid has joined #openttd
19:14:57 <jfkuayue> andythenorth: Does your Child #1 still use that PC? 😛
19:24:48 *** exceptik has quit IRC (Ping timeout: 480 seconds)
19:24:56 *** ajmiles has quit IRC (Read error: Connection reset by peer)
19:24:56 *** simonmb6044 has quit IRC (Write error: connection closed)
19:24:56 *** brickblock19280 has quit IRC (Write error: connection closed)
19:24:56 *** _jgr_ has quit IRC (Write error: connection closed)
19:24:56 *** draegdrwg has quit IRC (Write error: connection closed)
19:24:56 *** locosage has quit IRC (Write error: connection closed)
19:24:56 *** talltyler has quit IRC (Write error: connection closed)
19:24:56 *** _zephyris has quit IRC (Write error: connection closed)
19:24:56 *** truebrain has quit IRC (Write error: connection closed)
19:24:56 *** florafex has quit IRC (Read error: Connection reset by peer)
19:24:56 *** squirejames has quit IRC (Read error: Connection reset by peer)
19:24:56 *** jfkuayue has quit IRC (Read error: Connection reset by peer)
19:24:56 *** thought2 has quit IRC (Write error: connection closed)
19:24:56 *** _rei4122 has quit IRC (Write error: connection closed)
19:24:56 *** michi_cc has quit IRC (Write error: connection closed)
19:24:56 *** frosch123 has quit IRC (Write error: connection closed)
19:24:56 *** belajalilija has quit IRC (Write error: connection closed)
19:24:56 *** marktheshark3209 has quit IRC (Read error: Connection reset by peer)
19:24:56 *** emperorjake has quit IRC (Write error: connection closed)
19:24:56 *** xarothbrook has quit IRC (Read error: Connection reset by peer)
19:24:56 *** DorpsGek_vi has quit IRC (Read error: Connection reset by peer)
19:24:56 *** fairyflossy has quit IRC (Write error: connection closed)
19:24:56 *** planetbaker has quit IRC (Write error: connection closed)
19:24:56 *** mnhebi has quit IRC (Write error: connection closed)
19:24:56 *** wensimehrp has quit IRC (Write error: connection closed)
19:24:56 *** _glx_ has quit IRC (Write error: connection closed)
19:24:56 *** audigex has quit IRC (Write error: connection closed)
19:24:56 *** merni has quit IRC (Read error: Connection reset by peer)
19:24:56 *** digitalfox has quit IRC (Read error: Connection reset by peer)
19:24:56 *** reldred has quit IRC (Write error: connection closed)
19:24:56 *** ahyangyi has quit IRC (Write error: connection closed)
19:24:56 *** peter1138[d] has quit IRC (Write error: connection closed)
19:24:56 *** notluke2578 has quit IRC (Write error: connection closed)
19:24:56 *** kuhnovic has quit IRC (Write error: connection closed)
19:24:56 *** gwyd4016 has quit IRC (Write error: connection closed)
19:24:56 *** andythenorth has quit IRC (Write error: connection closed)
19:24:56 *** xarick has quit IRC (Write error: connection closed)
19:25:15 *** DorpsGek_vi has joined #openttd
19:44:54 *** gelignite has joined #openttd
19:47:31 *** andythenorth has joined #openttd
19:50:24 *** _zephyris has joined #openttd
19:50:24 <_zephyris> Lol, forgot the title.
20:06:44 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
20:06:47 *** WormnestAndroid has joined #openttd
20:07:55 *** akimoto has quit IRC (Ping timeout: 480 seconds)
20:19:03 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
20:26:18 *** WormnestAndroid has joined #openttd
20:37:23 <peter1138> Hmm, such templates.
20:42:00 *** Wormnest has joined #openttd
20:47:58 <xarick> there's a bug when filtering aircraft by mail capacity
20:48:09 <xarick> the sorting isn't correct
20:49:02 <xarick> Kelling K7 has more mail capacity than Darwin 400
20:49:37 <xarick> but it's sorted as having less
20:52:08 <xarick> oh i guess that also goes for goods
21:01:38 <_zephyris> I posted a bug becase I didn't understand the code... I may have been being dumb...
21:08:44 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
21:09:58 *** kuka_lie has quit IRC (Quit: Lost terminal)
21:36:09 *** nielsm has quit IRC (Remote host closed the connection)
21:39:34 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
21:51:32 *** gelignite has quit IRC (Quit: Stay safe!)
22:25:13 <_zephyris> I think I've solved it
22:31:21 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:31:44 <cu-kai> not sure if anybody here recalls my issues with sdl3 (sdl2-compat really) on linux, but they seem to have been resolved by some recent sdl change
22:32:52 <cu-kai> i kinda miss using the sprite font, but never mind
22:56:49 *** reldred has joined #openttd
22:56:49 <reldred> you can just... use the sprite font?
23:02:46 <cu-kai> not on a highdpi display :)
23:03:14 *** debdog has quit IRC (Quit: Initiating getting-the-hell-out-of-here maneuver!)
23:04:42 <xarick> my AI attempting 5000 at everything
23:04:47 <cu-kai> anyway, i think my point is, sdl2-compat is now probably safe to use
23:06:36 <peter1138> Always surprised when people use less then 2x scale.
23:06:46 <peter1138> I'm not even Dutch.
23:07:37 <cu-kai> on a normal display, i use standard scaling personally
23:08:28 <cu-kai> but i'll be using 1.25 from now on
23:08:36 <cu-kai> (that's what i use on my laptop's main display)
23:08:49 <_glx_> 1.25 doesn't help with sprite font 🙂
23:09:12 <cu-kai> i don't mind the new font really
23:09:57 <peter1138> It's not brilliant between 1x and 2x, it's much chunkier/darker than it should be.
23:10:09 <peter1138> 1x is good. 2x and above is good.
23:12:26 <cu-kai> i think it looks ok at 1.5x really, i might stick with this. 1.25 feels a bit small now
23:16:40 *** Xaroth92328 has quit IRC ()
continue to next day ⏵