IRC logs for #openttd on OFTC at 2025-07-18
โด go to previous day
01:37:30 *** tokai|noir has joined #openttd
01:37:30 *** ChanServ sets mode: +v tokai|noir
01:44:36 *** tokai has quit IRC (Ping timeout: 480 seconds)
02:15:32 <_glx_> probably asserts are disabled in this build for some reason
02:38:58 *** Wormnest has quit IRC (Quit: Leaving)
02:56:10 *** gnu_jj_ has joined #openttd
02:59:31 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
03:20:37 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
03:20:38 *** WormnestAndroid has joined #openttd
04:03:15 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:24:14 <ahyangyi> peter1138[d]: "Bug report: can no longer use the very cool red-black text colors"
05:29:36 *** KamijouHSF has joined #openttd
07:24:04 <peter1138[d]> Can't drop 8bpp support now, can we?
07:33:08 <peter1138[d]> I kinda miss the funky hue shifts that happened with the ancient version that used RGB instead of HSV.
08:08:29 <peter1138[d]> Well, 8bpp gets some funky hue shifts anyway:D
08:11:41 <LordAro> took me a good moment to work out what was different
08:24:20 *** Flygon has quit IRC (Remote host closed the connection)
08:29:35 *** SigHunter has joined #openttd
08:30:24 <peter1138[d]> So it works well enough? :p
08:34:44 <ahyangyi> But once I notice it I keep noticing it
08:35:22 <ahyangyi> peter1138[d]: Drop 8bpp support and add HDR instead
08:36:10 <ahyangyi> and wide gamut colors
08:36:58 <ahyangyi> NightGFX2 could not have worked without these ๐
08:38:06 <ahyangyi> Ah I forgot to add /s
08:38:45 <ahyangyi> Though really dark background and really bright windows and vehicle lights is indeed HDR material
08:38:56 <ahyangyi> (doesn't make sense for gameplay of course)
08:40:57 <ahyangyi> peter1138[d]: HDR would make really glossy glasses too ๐
09:02:51 <peter1138[d]> Anyway, custom company colours are illegal.
09:03:35 <peter1138[d]> > Chaos of excess colors
09:03:43 <reldred> is this a reddit thing again
09:03:52 <reldred> have you caught andy's brainworms
09:04:14 <peter1138[d]> No, the PR was Zorged ๐
09:04:44 <reldred> yeah i think that's still a family of brainworms related to andys
09:05:25 <reldred> the angrier a PR makes zorg the more you should probably do it anyway
09:06:39 <reldred> zorgs opinions are wrong, you should listen to my opinions, which are ofcourse 100% correct
09:11:23 <peter1138[d]> His complaint is basically... 1) there are not enough colours 2) this change allows too many colours. ๐
09:12:17 <reldred> disregard, approve and merge pr, job done.
09:18:46 <_zephyris> Just need a minimum RGB difference from another player, to avoid multiplayer confusions...
09:20:04 <peter1138[d]> I'm not convinced that's necessary.
09:20:17 <emperorjake> It would also make NewCC obsolete so you won't have to see the "wrong" UI colours anymore ๐
09:21:12 <peter1138[d]> With livery colours and group colours, colours can conflict anyway.
09:21:22 <peter1138[d]> Although you can turn that off for competitors if you want.
09:21:51 <peter1138[d]> Problem with minimum RGB difference is that some of the default colours are actually pretty close, at least for the main colour.
09:22:02 <emperorjake> You can also turn off station signs for competitors so you can tell what isn't yours
09:22:31 <peter1138[d]> Also, "realistic liveries"
09:22:40 <peter1138[d]> Though yeah, infrastructure isn't that.
09:27:09 <_zephyris> Compulsary 2CC? More visible 2CC?
09:36:11 *** Smedles has joined #openttd
09:44:13 <_zephyris> Lunch is confirmed: jollof rice, grilled chicken and plantain!
09:48:35 <locosage> peter1138[d]: may be because of the color space used for conversion
09:48:59 <locosage> blue hue shifts are quite common for color space issues
09:52:31 <locosage> _zephyris: well, that's kinda lost cause already as you can paint your vehicles into other company color
09:52:44 <locosage> though requiring some small color distance wouldn't hurt imo
09:53:03 <locosage> may need to depend on number of companies in the game if that goes over 15 one day xD
09:54:28 <_zephyris> Yeah... I've had the vague lingering idea (and no ability) to allow preventing custom liveries and enforced 2CC for more competitive multiplayer where you don't want confusion
09:55:45 <locosage> yeah, I'll probably disable that on citymania if I ever remember about it while messing with the code
09:57:14 <peter1138[d]> Funky shifts with 8bpp are because the palette doesn't contain every colour.
09:57:54 <peter1138[d]> _zephyris: Displaying custom liveries is already a game setting.
09:58:35 <_zephyris> I thought it was, couldn't remember what I'd checked in my musings
09:58:43 <locosage> peter1138[d]: well, yes and no, you still can prioritize hue over lightness in your color distance, figuratively speaking
09:59:19 <_zephyris> I was quite happy with my RGB lut code, and the 8bpp lut table -> RGB lut code.
10:20:14 <peter1138[d]> Disabled widget state is... not always helpful ๐
10:24:05 <peter1138[d]> (It only works when you have enabled and disabled widgets of the same colour near by)
11:25:48 <kuhnovic> Maybe we should introduce friend-or-foe colors just like AoEII
11:26:16 <kuhnovic> "My stuff is red, everyone else's stuff is blue"
11:36:00 <peter1138[d]> (Isn't it the other way around though, blue is me, red is opponents?)
11:37:28 <kuhnovic> You're probably right. It's been years since I've played it.
11:40:43 <LordAro> blue is player 1, red is player 2, green is player 3
11:41:21 <LordAro> though there might be a mode change display colours to blue/red only, it rings a bell
12:57:09 <peter1138[d]> 14445 smells like a fluidsynch is not set up correctly.
13:07:41 <ahyangyi> peter1138[d]: That's fair but what about custom company **hues**?
13:07:56 <peter1138[d]> What about them?
13:08:04 <ahyangyi> fixed saturation/brightness
13:08:15 <ahyangyi> of course perhaps white/gray/black are exceptions
13:09:10 <ahyangyi> (Hmm, not particularly proud about this idea)
13:09:22 <ahyangyi> (Not able to choose between light blue and dark blue hurts ๐ )
13:09:49 <peter1138[d]> Not sure what problem that is solving. We'd still 'need' to test for nearby colours, there'd just be way more chance of a collision.
13:10:52 <ahyangyi> Thought you want *fewer* colors
13:11:07 <peter1138[d]> That was quoting someone else, it's not what I want.
13:11:40 <ahyangyi> Oh, I haven't read the Zorg parts
13:11:47 <ahyangyi> Sorry for effectively Zorging
13:11:50 <peter1138[d]> I don't blame you.
13:16:52 <wensimehrp> ahyangyi: I think oklch would be the solution?
13:21:00 *** SigHunter has joined #openttd
13:27:51 <wensimehrp> fixed saturation/brightness
13:44:23 <peter1138[d]> Colours that conflict (according to an arbitrary threshold)
14:06:49 *** bigyihsuan has joined #openttd
14:06:49 <bigyihsuan> peter1138[d]: is rgbcc finally happening?
14:07:35 <peter1138[d]> Doubt it, it's been aroudn for 12 years.
14:13:42 *** brickblock19280 has joined #openttd
14:13:42 <brickblock19280> peter1138[d]: The line not corresponding with the slider does annoy me a bit but I guess it can't be helped without making the window bigger and making it have a weird layout
14:13:48 <peter1138[d]> In the version in the PR there's a commit from Jan 2013 ๐
14:14:34 <brickblock19280> Why hasn't it happened? I've not been around for all those years
14:14:46 <peter1138[d]> The scrollbars have up and down buttons, and a minimum height to the 'tab'.
14:16:07 <brickblock19280> The displays could be shrunk but I don't know if that'd be any better
14:16:13 <peter1138[d]> I think we tried hue on the 2D section, but it made it trickier to keep the same hue.
14:17:36 <brickblock19280> brickblock19280: It would be really bad actually since it aligns with nothing
14:22:04 <peter1138[d]> It would need to align with the middle of the slider, leaving a button and a half of space either end. Not doing it ๐
14:22:57 <peter1138[d]> Of course, the scrollbars are not necessary anyway, but without them it's not entirely obvious which bits you can click on.
14:23:19 <belajalilija> Why not instead of sliders just let people select RGB values as numbers?
14:24:34 <belajalilija> Like just 3 boxes where you type in a number on the 0-255 range
14:28:26 <peter1138[d]> In a colour picker, though are generally extras, not instead of.
14:29:29 <belajalilija> Imo itโs better as it lets there be finer control
14:30:01 <peter1138[d]> Well, I don't know if you noticed, but the picker is HSV not RGB.
14:30:18 <belajalilija> Itโs been a while since i saw
14:30:40 <peter1138[d]> Yeah, fair, the screen is a whole 45 minutes ago ๐
14:31:11 <belajalilija> peter1138[d]: This is the last screenshot i see
14:31:12 <peter1138[d]> Just copy this, amirite?
14:31:42 <brickblock19280> :gui_company:: :widdle_goblin:
14:31:53 <peter1138[d]> Oh it was video not a screenshot.
14:31:57 <belajalilija> Oh you mean this?
14:33:50 <belajalilija> peter1138[d]: I meant to just have RGB boxes where you change the value like you do entering any text
14:46:08 <peter1138[d]> Heh, the commits are quite different and shuffled by now.
14:52:00 <talltyler> Ah, I had in mind `Codechange: Remove direct access to _colour_gradient` and `Codechange: Rename Colour to RgbaColour`
14:53:47 <peter1138[d]> Some of that is already merged, and I ended up not doing the rename because Colour is actually ColourRGBA, ColourARGB, or ColourBGRA depending on platform.
14:54:43 <peter1138[d]> TextColour, Colours and Colour is certainly a bit confusing though.
14:57:04 <peter1138[d]> So `Colour` does at least still store RGBA values, so maybe it could be renamed.
14:57:34 <talltyler> Just looking for low-hanging fruit, it's certainly not an obstacle to the main PR. ๐
14:57:58 <peter1138[d]> No, I'm just talking about it to figure out better naming ๐
14:58:11 <peter1138[d]> `Colours` is used by company colours and widget colours.
14:58:34 <peter1138[d]> It's definitely a bad name.
14:58:52 <peter1138[d]> And wIth the patch it has HSV information stuffed into it.
14:59:19 <peter1138[d]> `TextColour` is fine IMHO, except I complicate it by stuffing RGB data into it.
14:59:43 <talltyler> `Colours` are palette entries, if I'm not mistaken, while Colour allows any data?
15:00:38 <peter1138[d]> `Colours` is an index into the company colour palette remaps. It isn't actually a palette entry itself.
15:00:41 <talltyler> `FosterColour` ๐
15:01:02 <talltyler> Ah, right, I forgot that you can remap palette colours
15:01:09 <peter1138[d]> If it was just for company colours, I would have renamed it to `CompanyColour` long ago, but also widgets.
15:01:36 <peter1138[d]> It's not that you "can remap palette colours", that is... the entire point.
15:02:15 <peter1138[d]> `COLOURS_DARK_BLUE` = 0, `COLOURS_PALE_GREEN` = 1
15:02:31 <belajalilija> Will the colour be controllable via both rgb and hsv?
15:02:40 <peter1138[d]> The order is just the order the palette remaps appear in the basesets.
15:04:01 <peter1138[d]> So anyway, I bitstuff HSV data into `Colours`, and I bitstuff RGB data into `TextColour`. `Colour` is not touched, and `RGBMColour` (actually renamed in the current version) stores RGB + palette index.
15:04:16 <talltyler> I am sure I'm using the wrong terminology, having a slow brain day ๐
15:05:20 <peter1138[d]> belajalilija: The UI is HSV, because RGB is dumb for a colour picker.
15:07:02 <peter1138[d]> Converting between HSV and RGB both ways is simple, but an RGB colour pickers are bad.
15:07:14 <peter1138[d]> (I know, because it was originally all RGB.)
15:07:50 <talltyler> Are you requesting a way for players to enter their favourite colour into the UI, in the case that they don't already have it saved? In that case, why would the format matter?
15:07:57 <belajalilija> Will the hsv values be enterable as text at least?
15:08:31 <belajalilija> talltyler: No i just donโt understand hsv but a way to enter the colour would be good yeah
15:09:07 <peter1138[d]> Some very early testing ๐
15:09:39 <belajalilija> Whatโs the bottom one for?
15:10:10 <talltyler> I'm going to wear out my `u` key if I keep talking about colours and favourites ๐
15:10:20 *** Wormnest has joined #openttd
15:10:54 <talltyler> All my coworkers are British, I'm getting very good at code-switching between American and British English. I even went "on holiday" earlier this month! ๐
15:11:39 <peter1138[d]> Just never use the other words.
15:12:11 <belajalilija> I canโt really hate on American spelling
15:12:41 <belajalilija> Itโs different due to an attempt to phoneticise the language
15:12:47 <belajalilija> Which is something i appreciate
15:13:27 <peter1138[d]> I mean "holibobs" and "staycation".
15:15:03 <talltyler> We have "staycation" here, I had to look up "holibob" ๐
15:16:17 <belajalilija> Holibob is new to me tbf
15:16:38 <peter1138[d]> "staycation" would've been alright except the media corrupted it to me "holiday in the UK, not abroad", when it's meant to mean "holiday staying at home"
15:17:05 <peter1138[d]> (Well, not "in the UK" for you, but I think you'll understand :))
15:18:16 <belajalilija> Yeah our use of staycation doesnโt even make sense in the American context
15:18:36 <belajalilija> Given that most of them just holiday within their country anyway and many donโt even have passports
15:20:32 <belajalilija> Staycation just means the economy is fucked so youโre too broke for Majorca so you have to go to Skeggy
15:20:46 <belajalilija> Only to realise itโs not really cheaper
15:21:26 <peter1138[d]> It means you fucking stay at home. Bloody morons.
15:22:04 <belajalilija> Aye but itโs shite at home and the media canโt make something positive about it
15:22:55 <belajalilija> But look at all those patriotic brits having a โจ staycation โจ in Blackpool
15:23:00 <peter1138[d]> Home is great. I have computer games, and... er... programming computer games.
15:27:34 <peter1138[d]> Discord being a bit smelly.
15:27:36 <audigex> peter1138[d]: Cycling at home? You must have a big house
15:27:50 <peter1138[d]> Cycling from home.
15:28:09 <audigex> I had visions of you cycling between the east and west wings of your giant mansion
15:28:22 <peter1138[d]> If that picture loaded, that's the old hue-shift, due to brightness adjustment being done in RGB space.
15:28:45 <peter1138[d]> Heh, well, plenty of people just cycle in one fixed spot on their turbo trainer.
15:28:48 <peter1138[d]> (I can't stand it)
15:29:35 <belajalilija> audigex: On a saw style trike
15:30:15 <belajalilija> Or like whatโs his face from the shining
15:30:33 <belajalilija> With the same dodgy carpets
15:31:18 <belajalilija> peter1138[d]: Out of curiosity what would happen if someone selected black
15:31:49 <belajalilija> Would the darkest colour be black and everything else lighter
15:32:00 <belajalilija> Or would it all be black?
15:32:11 <belajalilija> Similarly what if someone selected white?
16:16:16 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
16:31:54 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
16:35:03 *** Smedles has joined #openttd
16:38:26 <andythenorth> Is now the ideal time for me to be changing FIRS industry colours? ๐
16:38:43 <andythenorth> I just 'tuned' some of them, because grey looks silly on a grey building
16:39:05 <andythenorth> and I seem to have banned other colurs like red for some historical prejudicial reasons
16:41:11 *** WormnestAndroid has joined #openttd
16:46:40 *** gelignite has joined #openttd
17:03:58 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
17:06:59 *** WormnestAndroid has joined #openttd
17:24:28 <talltyler> Industry colours are randomized by town, yes? Not tied to a specific type of industry? Seems fair game to change to me. ๐
17:37:23 <andythenorth> talltyler: the range FIRS uses is industry-specific
17:37:51 <talltyler> I wonder if players have memorized it. I certainly have not. ๐
17:38:07 <peter1138[d]> Silly callback, tbh.
17:38:15 <andythenorth> I mean...if we get arbitrary company colours, do FIRS colours go weird
17:38:20 <andythenorth> I ignore the current CC grf
17:38:32 <peter1138[d]> No, because the existing colours still exist.
17:41:16 <andythenorth> `peter1138 (level 40+): It's not that you "can remap palette colours", that is... the entire point.`
17:41:22 <andythenorth> I should read sometimes
17:50:24 <peter1138[d]> What did you read?
17:51:42 <andythenorth> I skimmed and for some reason thought this was a remap of existing company colours ๐
18:22:44 <peter1138[d]> Bah, silly naming.
18:24:41 <peter1138[d]> I can't really touch `Colour`, as it's optimized for use within the 32bpp blitters.
18:35:10 *** WormnestAndroid has quit IRC (Quit: Quit)
18:40:38 <peter1138[d]> Oh yeah, and `TextColour` can also be a palette colour. Hmm.
19:09:44 <ahyangyi> wensimehrp: Probably
19:37:33 <peter1138[d]> I don't see how it help.
19:38:15 *** Smedles has joined #openttd
19:45:24 *** Wormnest has joined #openttd
19:57:31 <peter1138[d]> LordAro, oof. bought a chain, can't see a Quick-Link ๐ฎ
20:13:45 <peter1138[d]> Hmm, now, a size might be represent as length width and height ๐
20:14:07 <peter1138[d]> But, uh, width and length are a bit awkward and loaded.
20:37:36 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
20:37:52 *** WormnestAndroid has joined #openttd
21:17:13 *** ChanServ sets mode: +v tokai
21:21:55 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
22:02:48 *** Wormnest has joined #openttd
22:13:26 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:20:10 *** keikoz has quit IRC (Ping timeout: 480 seconds)
23:03:44 <peter1138[d]> Oops. I fixed the cheat case first, didn't spot it was using the same function.
23:12:12 <_glx_> hmm I hope a temporary vcpkg bug
23:12:51 <_glx_> but both x86 and x64 failed on libogg
23:19:01 <_glx_> of course locally it used cached source
23:22:22 <peter1138[d]> Error 502, so likely just temporary.
23:24:58 <_glx_> funny they get libogg from gitlab but opus from github (both are from xiph)
23:37:26 <_glx_> anyway a re-run fixed it
continue to next day โต