IRC logs for #openttd on OFTC at 2022-11-14
⏴ go to previous day
00:08:03 *** Soni has quit IRC (Ping timeout: 480 seconds)
01:23:32 *** Wormnest_ has quit IRC (Ping timeout: 480 seconds)
01:35:58 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
01:50:09 *** WormnestAndroid has joined #openttd
02:43:19 *** Wormnest_ has joined #openttd
02:43:26 *** Wormnest_ has quit IRC (Remote host closed the connection)
02:46:44 *** ChanServ sets mode: +v tokai
02:53:16 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
03:51:06 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:26:58 *** supermop_Home has quit IRC (Ping timeout: 480 seconds)
06:19:45 *** wallabra has joined #openttd
06:21:12 *** DDR has quit IRC (Ping timeout: 480 seconds)
06:43:14 *** nielsm has quit IRC (Ping timeout: 480 seconds)
07:28:14 *** sla_ro|master has joined #openttd
08:54:33 *** WormnestAndroid has quit IRC (Remote host closed the connection)
10:06:52 <petern> Hmm, I should set up an icon/image for my misskey instance.
11:18:20 *** sla_ro|master has quit IRC ()
11:28:00 *** sla_ro|master has joined #openttd
11:38:16 *** leanishbrish has quit IRC (Quit: User went offline on Discord a while ago)
11:39:54 *** sla_ro|master has quit IRC ()
12:04:08 <petern> Does our INI settings system support floats?
12:05:35 <petern> Previously you could just leave font-zoom on 1x and set your gui zoom and 2x and font size to say 15px, now as it's intrinsically linked you can get 7px to get 14px, or 8px to get 16px... but you can't get 15px.
12:06:18 <petern> It is a bit weird how the system font APIs seem to only allow whole-numbers too.
12:22:09 *** JustANortherner has quit IRC (Quit: User went offline on Discord a while ago)
12:25:35 *** WormnestAndroid has joined #openttd
12:29:22 <Eddi|zuHause> i think you need to add a float parser in settings.cpp
12:30:56 <Eddi|zuHause> probably easier to just do a fixed-point integer
12:31:17 <peter1138> Problem with that is the setting already exists as an integer.
12:31:48 *** discord_user_89adaf5 has joined #openttd
12:31:48 <discord_user_89adaf5> What does irc mean
12:32:27 <Eddi|zuHause> IRC stands for Internet Relay Chat. it's what your grandparents used to talk before the war...
12:32:49 <andythenorth> that's increasingly worryingly true
12:33:15 <andythenorth> allowing that every 12 year old seems to have discord, or is campaigning to have it
12:33:32 <andythenorth> and irc was already 'old news' when I joined the web
12:33:55 <Eddi|zuHause> some people who used IRC in the late 80s are bound to be grandparents by now
12:34:07 <andythenorth> and there have been plenty of wars
12:34:56 <Eddi|zuHause> i think the first time i used IRC was arond 2001
12:36:30 <petern> Hey look, I managed to type in IRC by mistake 🙂
12:36:55 <Eddi|zuHause> i think i do have a discord account, actually
12:38:19 <discord_user_89adaf5> How do u talk here without discord
12:52:39 <Eddi|zuHause> echoes from the past
13:35:29 *** sla_ro|master has joined #openttd
14:01:54 <andythenorth> chunky tankers with chunky bevels?
14:34:33 <petern> That is annoyingly not quite 1:1 on here, so it's blurry :/
14:35:47 <petern> Hmm, does uniscribe get font widths directly from the font, or from what we say?
14:37:37 <petern> Hmm, seems to be from GetGlyphWidth, so...
14:38:03 <petern> Oh maybe not, that's used for sprite overrides.
14:40:14 <petern> Makes sense otherwise kerning wouldn't work.
15:52:35 *** Smedles has joined #openttd
15:52:41 *** Smedles_ has quit IRC (Ping timeout: 480 seconds)
16:33:00 <andythenorth> can 'chunky' be be the new New and Not
16:44:04 *** peter1138 has quit IRC (Quit: leaving)
16:44:28 *** peter1138 has joined #openttd
16:44:28 *** ChanServ sets mode: +o peter1138
16:52:10 <petern> Interestingly, it's possible to use the monospace font before the monospace font cache is initialised, in which case it'll use the sprite font instead of configured truetype font.
16:57:22 <petern> Okay it's not that interesting.
16:59:09 *** D-HUND is now known as debdog
17:36:11 <TallTyler> I was hoping that chunky bevels would solve this, but no 😦
17:36:28 <TallTyler> (Not because it bothers me, I just want to get the issue count down 😛 )
17:52:59 <petern> TallTyler: A good test to find things that are still done by absolute sprite size rather than applying scaling is to use 1.75x or even 3x GUI scaling. The things that don't expand become more obvious then. Sometimes it's appropriate, other times not.
17:54:15 <petern> Not that I'm suggesting you need to 🙂
17:56:02 <TallTyler> I'm sure there are other people eager to try and break things 🙂
17:56:22 <TallTyler> James, Zorg, Samu, your time has come 😛
17:56:56 <LordAro> TallTyler: traditionally (well, since git) the changelog has been in reverse PR# order (after feature/change/fix)
17:56:59 <TallTyler> I mean that seriously though, it's good to have people with a variety of skills and interests
17:57:38 <TallTyler> Oh, I've been ordering by "excitement level" 😛
17:57:55 <petern> Excitement level is valid IMHO.
17:57:55 <LordAro> yeah, doesn't factor in i'm afraid :p
17:58:01 <LordAro> save it for the news post
17:58:30 <LordAro> is that TrueBrain's new data format?
17:58:31 <TallTyler> Well that's an easy change to make then
17:59:21 <petern> Oops, redefinition of default argument...
17:59:27 <LordAro> seems james didn't notice the )) in the line above the missing )
17:59:39 <LordAro> presumably the extra one was supposed to go on the line below
18:02:35 <LordAro> weren't we leaving #10110 out of the changelog? :p
18:03:39 <TallTyler> Arastais: Would you be insulted if we left that out as an easter egg?
18:04:01 <TallTyler> We could always leave it in the changelog and make a teasing reference in the news post
18:07:55 *** wallabra has joined #openttd
18:10:05 <petern> It's centred within a scaled bounding box currently
18:10:37 <TallTyler> Too much what? It looks fine to me
18:10:40 <petern> What other icons are shown there?
18:10:48 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
18:10:59 <TallTyler> Stop, and I think the lost icon?
18:11:29 *** WormnestAndroid has joined #openttd
18:11:41 <LordAro> is the "no power" icon the same as the lost icon?
18:11:45 <petern> Oops, I found a crash.
18:13:06 <Arastais> TallTyler: nah, completely up to you guys
18:13:33 *** wallabra_ has joined #openttd
18:13:39 <Arastais> it can be our little secret 😛
18:13:44 <petern> Inside OnInitialPosition of ErrmsgWindow. Which is not something I've touched. Weird.
18:17:36 *** wallabra_ has joined #openttd
18:18:17 *** wallabra has quit IRC (Ping timeout: 480 seconds)
18:18:17 *** wallabra_ is now known as wallabra
18:18:54 <petern> Ah, probably the window is too big to fit in the screen.
18:19:14 <LordAro> probably shouldn't crash regardless
18:19:35 <petern> Which easy easier to achieve with larger scaling available the touch of a slider.
18:19:42 <petern> Yes of course, just finding the cause 🙂
18:21:08 *** HerzogDeXtEr has joined #openttd
18:21:14 <petern> Okay, that's gotta be fixed!
18:28:13 <petern> (Hmm, doesn't crash in 12.x, but then again no asserts)
18:28:27 *** gelignite has joined #openttd
18:32:23 <petern> Ah std::clamp is C++17, that's probably why we don't use it.
18:40:43 <TallTyler> Wonder if a related fix would work for #9632
18:42:06 *** Flygon has quit IRC (Read error: Connection reset by peer)
18:50:19 <DorpsGek> - Update: Translations from eints (by translators)
18:50:48 <LordAro> or indeed the linked #8869
18:55:54 <petern> Alternatively, use std::clamp where we want the assert, and remove the assert from Clamp()
18:56:54 <LordAro> except std::clamp doesn't assert, it's just undefined
18:57:15 <petern> Oh yes, misremembered.
18:57:32 <petern> That's... one reason to not use std::clamp. How silly.
18:59:37 <LordAro> perhaps 2 clamp functions - one with constexpr low/high values that you can static_assert are the right way round, and another that uses min/max combination
18:59:48 <LordAro> *the former then using std::clamp
19:24:15 <petern> I can only imagine how much money you can accidentally spend with that 🙂
19:33:12 <andythenorth> can we have modifier combos?
19:33:17 <andythenorth> like shift-ctrl-click?
19:37:56 <nielsm> that just shows the cost of the ctrl-click action
19:48:23 <TallTyler> I think most ship newgrfs make canals significantly more affordable
20:13:53 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
21:15:15 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:27:50 <andythenorth> we can't use alt 😛
21:27:56 <andythenorth> I've been told before
21:28:38 *** Wormnest has joined #openttd
21:28:58 *** WormnestAndroid has joined #openttd
21:51:44 <andythenorth> some people don't have alt? 😛
21:51:54 <petern> What key do you use to get into the Cheat menu?
21:52:43 <petern> Well if your hardware will mislabel the Alt key...
21:52:56 <petern> `Hotkey(WKC_CTRL | WKC_ALT | 'C', "cheats", MTHK_CHEATS),`
21:53:49 <petern> The problem with alt is that mouse-button-down and dragging can be caught by a window manager.
21:54:12 *** sla_ro|master has quit IRC ()
21:54:46 <petern> So using alt combined with mouse-based operations would be problematic as a default.
21:58:27 <petern> Position is good at 1x, except I can't see it 😄
21:58:57 <andythenorth> chunky flip-vehicle-in-depot
21:59:11 <andythenorth> but with a different hotkey, which increments a byte and rolls over
21:59:40 <andythenorth> a long time ago I was going to patch that destination / speed display
22:00:08 <andythenorth> hmm no copy-paste failed
22:00:16 <andythenorth> oh I didn't hold ctrl 😛
22:00:38 <andythenorth> Moving the string code for speed to the front of the string would stop the speed being hidden
22:00:50 <andythenorth> I did the patch, but there was some edge case, and my attention span failed
22:01:09 <andythenorth> then I think someone complained in the channel about it needing state machines or something
22:01:14 <andythenorth> so I didn't return to it
22:02:27 <petern> Oh, make it a ticker 😄
22:34:45 *** Speedy` has joined #openttd
22:34:47 *** Speedyn has quit IRC (Ping timeout: 480 seconds)
22:39:17 *** gelignite has quit IRC (Quit: Stay safe!)
23:23:37 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
23:28:26 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
23:31:40 <petern> Hmm left or centre... not sure.
23:36:12 <glx[d]> petern: `set(CMAKE_CXX_STANDARD 17)` so we could use it actually
23:36:53 <petern> Yes I meant it's not that long ago that we did (IIRC) so wouldn't have got around to using all the things yet.
23:37:15 <petern> But anyway, the undefined behaviour is a bit of a bum.
continue to next day ⏵