IRC logs for #openttd on OFTC at 2023-10-08
            
01:28:53 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
01:42:57 *** geli has joined #openttd
01:50:21 *** gelignite has quit IRC (Ping timeout: 480 seconds)
02:21:40 *** D-HUND has joined #openttd
02:22:33 *** Tirili has quit IRC (Quit: Leaving)
02:25:11 *** debdog has quit IRC (Ping timeout: 480 seconds)
02:52:17 *** D-HUND is now known as debdog
03:14:27 *** pm has joined #openttd
03:15:03 *** pm is now known as Guest2546
03:20:46 *** Guest2445 has quit IRC (Ping timeout: 480 seconds)
03:41:02 *** geli has quit IRC (Quit: Stay safe!)
04:13:30 *** keikoz has joined #openttd
05:55:13 *** berndj-blackout is now known as berndj
06:11:26 *** NGC3982 has quit IRC (Ping timeout: 480 seconds)
06:19:40 *** NGC3982 has joined #openttd
06:42:03 *** NGC3982 has quit IRC (Ping timeout: 480 seconds)
07:10:44 *** nielsm has joined #openttd
07:26:32 <andythenorth> _glx_: I could just randomise them πŸ˜›
07:27:19 <andythenorth> but I want to learn how station layouts work, i.e. var 40, 41, 46 etc
07:27:50 <andythenorth> the 'select tile' method seems like a bit of a diversion?
07:28:35 <andythenorth> afaict, it's simpler to just switch spritelayout on some varact 2 vars
07:31:15 <andythenorth> hmm no
07:31:21 <andythenorth> there's no graphics chain, that won't work πŸ˜›
07:32:52 <andythenorth> nvm
07:40:35 <andythenorth> wonder what `select_sprite_layout` does
08:37:29 <andythenorth> I think I just fail to understand the station spec πŸ˜„
08:37:55 <andythenorth> I have plastered some nml over it to get some basic results working
08:38:02 <andythenorth> there is no graphics chain?
08:38:19 <andythenorth> spritelayout is an action 0 property, not an action 2 result?
08:49:54 <andythenorth> hmm spritelayout is not a static action 0 property?
08:50:07 <andythenorth> spritelayout list is a static action 0 property, and must contain 8 tiles?
08:50:18 <andythenorth> what is a tile?
08:50:43 <andythenorth> there is no grf entity for a station tile, at least in the specs
08:50:55 <andythenorth> is a tile a spritelayout?
09:12:23 *** nielsm has quit IRC (Ping timeout: 480 seconds)
10:00:33 *** HerzogDeXtEr has joined #openttd
10:25:44 <_glx_> There is graphics chain, same as vehicles
10:28:22 <_glx_> And prepare_layout and layout_registers (auto generated by nml) are inserted at the begin of graphics chain
10:34:01 <_glx_> The 8 tiles thing is related to the type stored in map, but you can have more or less than that as long as it's an odd number
10:36:24 <andythenorth> I'm puzzled where the spritelayout exists
10:36:29 <andythenorth> it's an action 0 prop
10:36:37 <andythenorth> so how can it be selected in the graphics chain?
10:36:51 <andythenorth> it's a static prop, unless there's a callback to over-ride it, and I see no callback
10:37:32 <andythenorth> specifically it's station prop 0x09
10:37:59 <_glx_> select_sprite_layout is CB14
10:39:03 <_glx_> Without CB14 the tile type value is used
10:39:49 <andythenorth> and when is CB 14 called? It can't be in the graphics chain, that has it's own action 3 thing
10:39:57 <andythenorth> is it called once and stored somewhere?
10:40:54 <_glx_> It's called like any other callbacks
10:41:43 <_glx_> Testing var 0C and falling back to graphics chain
10:41:57 <andythenorth> I just can't understand how to return a spritelayout to the graphics chain πŸ™‚
10:42:03 <andythenorth> sorry, this must seem really stupid
10:42:15 <_glx_> You don't return a sprite layout
10:42:19 <andythenorth> but in a normal graphics chain, the spritelayout is returned as the action
10:42:40 <_glx_> That's why the var10 magic exists
10:42:46 <andythenorth> I just can't figure it out πŸ˜›
10:43:05 <andythenorth> I know it's possible, because ISR grf does all the things I want to do
10:47:50 <andythenorth> maybe I should read the decompiled nfo πŸ˜„
10:48:43 <_glx_> For stations you don't return a sprite layout, but you select it with the callback, then prepare_layout is like the chain you would do before return a sprite layout for other features
10:50:05 <andythenorth> what does CB14 return? An index into prop 0x09?
10:50:57 <_glx_> Yes, and bit 0 is ignored (always replaced by orientation)
10:51:36 <_glx_> Well nml uses prop 1A, but it's similar to 09
10:51:54 <_glx_> Just more powerful
10:52:46 <andythenorth> so if I want to select spritelayout based on x,y position (for example), I handle CB 14 as `select_sprite_layout`, indexing into the array defined by `sprite_layouts`? And I can select the spritelayout based on anything in varact 2?
10:53:02 <_glx_> Yes
10:53:10 <andythenorth> and there are 6 spritelayouts?
10:53:25 <_glx_> There are as many as you want
10:53:46 <andythenorth> oh the 6 limit is spritesets?
10:53:50 <_glx_> But they all share 6 different spritesets
10:54:10 <andythenorth> because var10
10:54:35 <_glx_> And a spriteset can be an varact2 chain too via custom
10:56:22 <_glx_> In nml it's as similar as possible with other features with some workarounds (because spec)
10:57:23 <andythenorth> normally I work out what nml is doing by reading the nfo spec πŸ™‚
10:57:31 <andythenorth> but for stations, the nfo spec just makes me confused
10:57:44 <andythenorth> ok I'll try select_spritelayout next
10:58:20 <_glx_> You are used to the chain to spritelayout result
10:58:49 <_glx_> For stations it's split into callback and chain to spriteset
10:59:38 <_glx_> With prepare_layout prepended to the chain
11:00:28 <andythenorth> I’m also writing a compile that pretends it’s just chain to spritelayout, so that adds confusion πŸ™‚
11:01:07 <_glx_> Ah yes it's different
11:03:47 <andythenorth> I have to learn how the β€˜sections’ thing works next
11:04:23 <andythenorth> Never understood it as a player, fancy stations just break a lot and have to be overbuilt to fix them
11:44:06 <andythenorth> ok the orientation thing is ... not right yet πŸ™‚
11:44:16 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160543183005036554/image.png?ex=65350b10&is=65229610&hm=9337b14d0c2dd5f2d24168aba7301d3b9546778ba403735200976c1ba42598ae&
11:44:26 <andythenorth> guess my sprite_layout order needs changed
11:45:15 *** NGC3982 has joined #openttd
11:45:30 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160543491416391771/image.png?ex=65350b5a&is=6522965a&hm=99080ffe278312b6e90758b948ad1d327a92c8f45a1a1f606841fa2b6faf7d03&
11:45:30 <andythenorth> better
11:45:34 <andythenorth> now I just need modulo πŸ˜„
11:45:37 <andythenorth> or random
11:50:30 <pickpacket> How do I remove a server I once added from the server listing?
11:54:02 <_glx_> It's in cfg
11:54:12 <andythenorth> https://github.com/andythenorth/chips/commit/39c837f936768597f5ac5533984b430e483142a2#diff-344455b45fcb9822a2ff89e1a40d7e66bf70ef027de3fc91e015ff3d7697c532R8
11:54:32 <andythenorth> I wonder if I can make a single modulo that works for all cases
11:54:59 <andythenorth> each station has a 'layout' which has a format `[(x, y, spritelayout_1), (x, y, spritelayout_2), (x, y, spritelayout_n)]`
11:55:15 <andythenorth> `sprite_layouts` array is generated from that
11:55:47 <andythenorth> the 'layout' pattern should then just repeat within the same station section
11:56:33 *** NGC3982 has quit IRC (Ping timeout: 480 seconds)
11:56:35 <andythenorth> my current modulo should be failing, because it will index into sprite_layout 1 sometimes
11:56:43 <andythenorth> but it doesn't fail, which is puzzling
11:57:28 <andythenorth> I wonder if the array accessor just doesn't allow overflow
11:57:34 <andythenorth> and defaults to 0?
11:59:41 <andythenorth> (currently the x, y are not used at all by my rail stations)
11:59:46 *** NGC3982 has joined #openttd
12:06:00 <andythenorth> maybe I should use x and y for var checks of platform position and number
12:06:30 <andythenorth> and modulo those
12:09:04 *** NGC3982 has quit IRC (Remote host closed the connection)
12:09:16 *** NGC3982 has joined #openttd
12:18:23 <peter1138> Well
12:19:31 *** NGC3982 has quit IRC (Ping timeout: 480 seconds)
12:22:45 *** NGC3982 has joined #openttd
12:29:44 <truebrain> pickpacket: click on it and hit delete
12:31:26 <andythenorth> hmm animated cost / income display is missing in my build
12:32:11 *** gelignite has joined #openttd
12:32:58 <andythenorth> how did I break that?
12:48:14 <talltyler> You probably just have it transparent, it’s a new feature
12:50:23 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160559820731072593/image.png?ex=65351a8f&is=6522a58f&hm=eb91962117f9ba7e71eb5895a4ef9ce584b73053c726f83f18d655989812ddc9&
12:51:01 <andythenorth> I never understood what that "make trains transparent" icon did
12:54:45 <emperorjake> I suggested better icons before https://cdn.discordapp.com/attachments/337701432230805505/886560813853323264/unknown.png?ex=6534fb19&is=65228619&hm=234a1e6ba8310eadc736a735a887bb15503bdae7afe3170cace6f75a9f15b8fd&
12:54:54 <emperorjake> https://discord.com/channels/142724111502802944/337701432230805505/886560817066168330
12:55:09 <andythenorth> I really don't like the loading indicator display, so I guess I live without cost / income display now
12:55:18 <andythenorth> loading indicator is visual junk
12:55:34 <emperorjake> Putting them together wasn't a great idea, JGR has them as separate settings
12:55:53 <andythenorth> progress is better than making a thing of it though
12:56:31 <emperorjake> I'd still like a button for "show path reservations" in the transparency options
12:56:43 <emperorjake> I use it way too often for it to be buried deep in the settings
12:57:25 <andythenorth> one day a rework
12:57:31 <andythenorth> some sort of info layers
12:57:37 <andythenorth> like a stacked UI
12:58:00 <andythenorth> cargodist overlay, PBS reservations, signs, loading indicators, cost/income
12:58:10 <andythenorth> and ideally cargo waiting or cargo throughput indicators
12:58:39 <Eddi|zuHause> we had all of that individually at some stages
12:58:40 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160561903844733028/image.png?ex=65351c80&is=6522a780&hm=d7442fd897439ab68c9c9cba547bba7cf3158114878476aa56daaef5283674f6&
12:58:40 <andythenorth> but right now I need to make this station not look horrible πŸ™‚
12:58:51 <andythenorth> company colour station, random colour industry
12:58:58 <andythenorth> I guess I make the station grey
13:01:02 <Eddi|zuHause> create a child company with a different colour :p
13:01:34 <andythenorth> if only we had partially owned subsidiaries
13:02:06 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160562765367349360/image.png?ex=65351d4d&is=6522a84d&hm=db94b0183905b2515c771c6d01b0394fd284ed269ef59bd142b1ccc3ee573bd8&
13:02:06 <andythenorth> CHIPS now quite monochrome, I switched it to "CC grey"
13:02:22 <andythenorth> maybe it should be more station classes?
13:02:32 <andythenorth> "Industry stations (asphalt, grey colour)"
13:02:40 <andythenorth> "Industry stations (asphalt, company colour)"
13:02:51 <emperorjake> If only stations could have livery refits
13:03:00 <andythenorth> I could just add more tiles
13:04:12 <emperorjake> I wouldn't mind having both grey and CC options for each tile
13:05:58 <andythenorth> /me working out whether to recolour at the station level, the spritelayout level, or the sprite level πŸ˜›
13:06:12 *** gelignite has quit IRC (Read error: Connection reset by peer)
13:06:33 *** gelignite has joined #openttd
13:07:30 <andythenorth> I can't use the industry / object trick of setting the colour based on town index
13:08:03 <andythenorth> there are multiple sets of colours, and each industry is assigned one of the sets
13:08:09 <andythenorth> station won't know which set to use
13:08:35 <pickpacket> truebrain: thanks!
13:08:51 <andythenorth> I guess all industries in one town could be same colour, but I find that a bit weird
13:09:46 <andythenorth> could divide each town into quadrants relative to the town sign, and figure out which quadrant the industry/object/station is in
13:09:54 <andythenorth> so SE = red, NE = green etc
13:15:24 *** keikoz has quit IRC ()
13:17:57 <andythenorth> maybe stations have a varact 2 var for overbuild
13:18:04 <andythenorth> (counter)
13:19:30 <alfagamma7> andythenorth: That would have been better
13:21:08 *** keikoz has joined #openttd
13:23:17 <andythenorth> nah
13:27:45 <talltyler> Why can’t you use the same seed as FIRS?
13:31:13 <talltyler> Oh, multiple sets of colours, I see πŸ™‚
13:31:25 <talltyler> Reading comprehension:P
13:33:29 <andythenorth> it would work if I grouped station tiles against FIRS industries
13:33:34 <andythenorth> but that's totally impractical πŸ˜›
13:33:49 <andythenorth> there would be frequent version mismatch between the grfs
13:34:14 <andythenorth> I tried 'include stations in FIRS' and it's a step too far
13:40:59 <talltyler> I don't know how the colour seed works (does it use industry index at all, or just towns?) but if it's not that specific, maybe it could be a separate repo, like Polar Fox?
13:45:40 <andythenorth> it's a mapping problem
13:45:40 <andythenorth> FIRS objects map 1:1 to industries
13:45:46 <andythenorth> CHIPS stations can't realistically do that
13:45:54 <andythenorth> so there's no way to know what the player wants
13:50:05 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160574842165264474/image.png?ex=6535288c&is=6522b38c&hm=5b4f075e4da2ed86172499fb5fe6bdfd796ee245750bcbff89055c493dc394b2&
13:50:05 <andythenorth> I think grey will have to be the solution
13:50:20 <andythenorth> or I duplicate all the tiles for all company colours
13:50:54 <peter1138> Stations can just be company coloured. They're owned by the company.
13:50:59 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160575067873357854/image.png?ex=653528c2&is=6522b3c2&hm=0dca41591b648bc5a75e899830d1dccf1ccc244a3086d048e61e9f85fba80ea1&
13:50:59 <andythenorth> if it did match, it would look like
13:52:24 <talltyler> That's so nice looking
13:53:01 <andythenorth> the only thing I can think of is to expose a var for colour of nearest industry
13:53:08 <talltyler> Stupider idea, do industries know which companies serve them? Can they repaint themselves to the company colour of the company serving them? πŸ˜›
13:53:18 <andythenorth> interesting idea
13:53:23 <andythenorth> tricky in multiplayer
13:53:38 <andythenorth> andythenorth: ^ and this would be prone to failure
13:54:06 <talltyler> lol no, industries only know founder ID
13:54:45 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160576016113205279/image.png?ex=653529a4&is=6522b4a4&hm=471a08a782c81fe2e6974b06289c708edb395d8d3801a23dbd00f514b96840c2&
13:54:45 <andythenorth> red with pink? πŸ˜›
13:56:28 <talltyler> It would be nice for industries to use the founder colour if founded by a player, something like
13:56:28 <talltyler> `colour = (founder == FOUNDER_GAME) ? GetRandomColour() : founder_colour1);`
13:56:37 <talltyler> Oh, but then objects wouldn't match, GG
13:56:53 <talltyler> MAKE ALL INDUSTRIES GREY
13:56:58 <talltyler> This is silly
13:57:35 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160576732978499769/image.png?ex=65352a4f&is=6522b54f&hm=2ac750dda39dad4ab701c31b0c38f782293a386d0d8330a19a84a17a8f9fd872&
13:57:35 <andythenorth> I honestly think I just add more classes
13:57:47 <andythenorth> "Industry stations (gravel, pink)"
13:58:02 <andythenorth> "Industry stations (gravel, company colour)"
13:58:11 <talltyler> For every colour?
13:58:22 <andythenorth> well....FIRS doesn't use all CC
13:58:23 <talltyler> Nested station variants when? πŸ˜›
13:58:26 <andythenorth> some look awful
13:58:35 <talltyler> How many colours are we talking?
14:03:15 <_pruple> in earlier versions of PIRS, I used the index of the town to match colours of certain industries which belonged to the same town
14:03:32 <_pruple> and towns are also the parent of stations πŸ™‚
14:04:04 <talltyler> So every town has its own colour, and all industries, stations, and objects in that town have the same colour?
14:05:49 <_pruple> one could do. or just have, eg, mines and mine stations match, or certain other combinations - if one was making both the industries and the stations. πŸ™‚
14:06:13 <andythenorth> one is
14:06:24 <andythenorth> one does not see how the station knows what it's supposed to be though πŸ™‚
14:06:29 <andythenorth> a station is just a station
14:07:06 <talltyler> Yeah, splitting stations by industry type sounds like a good way to get feature requests
14:07:47 <talltyler> Even if they match industry sprites, people will want transfer stations and more variety at big industry stations
14:08:17 <talltyler> I think "everybody in this town has the same favourite colour" is a good approach πŸ˜›
14:08:25 <andythenorth> I like grey
14:08:41 <andythenorth> or just duplicating all the tiles
14:09:10 <andythenorth> meanwhile, in spritesets: `nmlc info: 2398 sprites, 393 cached, 0 orphaned, 2005 duplicates, 0 newly encoded (native)`
14:09:14 <andythenorth> 2005 duplicates πŸ˜›
14:17:29 <andythenorth> wonder if there's a varact 2 var for `count tiles by ID (ID)`
14:17:41 <andythenorth> I could make tiles that set the station colour
14:18:39 <andythenorth> there's base stations var 0xF0, but not clear what it does https://newgrf-specs.tt-wiki.net/wiki/VariationalAction2/BaseStation
14:19:33 <_pruple> not much
14:19:43 <_pruple> 80 B A bit map of station components, bit set = facility present:
14:19:43 <_pruple> bit 0: railway station
14:19:43 <_pruple> bit 1: lorry loading area
14:19:43 <_pruple> bit 2: bus station
14:19:43 <_pruple> bit 3: airport or heliport
14:19:44 <_pruple> bit 4: dock
14:19:52 <andythenorth> thanks
14:20:07 <andythenorth> var 68 can detect some nearby tile info, but not quite the thing
14:27:47 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160584331534794823/image.png?ex=65353163&is=6522bc63&hm=b950777312e682687016919cedb8141bb3a00db1878f3390cacdb7da91024a31&
14:27:47 <andythenorth> hmm
14:28:44 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160584570954068139/image.png?ex=6535319c&is=6522bc9c&hm=1ee6e29e65dd6acd236ebfbf1c8e4b057eaa63fc3814eb628c779d3e2483a8ac&
14:28:49 <andythenorth> might work
14:28:54 <andythenorth> I've fucked my savegame now though πŸ˜›
14:29:02 <andythenorth> bunch of track tiles are non track tiles
14:29:11 <andythenorth> game asserted
14:48:51 <peter1138> Hmm
15:00:25 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
15:25:33 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler opened pull request #11359: Codechange: Don't set vehicle on time if timetable not started https://github.com/OpenTTD/OpenTTD/pull/11359
15:35:05 <peter1138> Hmm, VS Code / CMake has reconfigured itself and lost my bit to disable SDL2 :/
15:40:02 <andythenorth> oof
15:42:45 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #10700: Codechange: Split dates and timers into Economy and Calendar time https://github.com/OpenTTD/OpenTTD/pull/10700
15:46:34 <andythenorth> ok if I send all my trains to depot before reloading the station grf πŸ˜›
15:46:36 <andythenorth> that might work
15:53:47 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160605972054683658/image.png?ex=6535458a&is=6522d08a&hm=b6d669c2c7d8424c5693ecf69fc66c191ed9a2dddd3a7add9c0ae58b59034d68&
15:53:47 <andythenorth> this then?
15:53:51 <andythenorth> or split them into more classes?
15:54:54 <talltyler> Classes would let you use the filter to choose colour
15:55:18 <talltyler> Although we could always extend the filter to also filter tile name
15:55:35 <talltyler> That's one of my pet peeves with objects, I really wish it filtered object name and not just class
15:55:50 <talltyler> (not a complaint, someday I will PR this... πŸ™‚ )
15:56:28 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #11341: Feature: Real-Time Mode https://github.com/OpenTTD/OpenTTD/pull/11341
15:56:46 <andythenorth> classes means all the cranes etc could also pick up the colour
15:57:36 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160606935377248287/image.png?ex=65354670&is=6522d170&hm=a759244be3ff57fe0056ab8ad6cd48ccf5b37582fc85a96c0f97cafa3072db41&
15:57:53 <andythenorth> I'm not prepared to repeat every item 8 times in the same class πŸ˜›
15:58:09 <andythenorth> so I have only repeated the sheds currently
15:59:02 <peter1138> Hmm, why do we initialise the spritefont's unicode map 4 times (* 4, for each font size) on startup...
15:59:09 <peter1138> It's not heavy but.
15:59:35 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #11341: Feature: Real-Time Mode https://github.com/OpenTTD/OpenTTD/pull/11341
16:00:18 <talltyler> Sounds like you answered your own question; I agree that classes sound best
16:00:20 <peter1138> andythenorth, just get the player to change their company colours depending on what station they're looking at.
16:01:09 <talltyler> Also sounds like nested classes similar to engine variants would be helpful for objects and stations
16:03:11 <talltyler> truebrain: At your convenience, #11341 is ready for your review. I particularly need some help with why my window refresh timer isn't working (and why I shouldn't do it that way πŸ˜› )
16:04:51 <andythenorth> peter1138: no but we could really do that by testing which industries are in the viewport
16:05:43 <andythenorth> talltyler: I think a toggle on the construction window would be better "company colour to set at construction time" πŸ˜›
16:05:54 <andythenorth> then cache that in the tile, do we have a spare nibble?
16:09:17 <peter1138> Hmm, do we support unicode outside of the first plane?
16:09:58 <peter1138> (BMP)
16:11:12 <peter1138> I guess we do for non-sprite fonts
16:12:26 <pickpacket> This remains the best game ever
16:13:09 <pickpacket> Love playing it both alone and with others
16:13:41 <talltyler> That sounds suspiciously like a liveries GUI πŸ˜›
16:14:15 <talltyler> andythenorth: This is so nice to look at
16:14:27 <talltyler> I love when the stations look like part of the industry and not something jammed on the side
16:14:34 <andythenorth> not sure I can do it on classnames
16:14:38 <andythenorth> they're only 4 chars
16:14:49 <andythenorth> how will I compress arbitrary meaning into them? πŸ˜›
16:17:18 <andythenorth> "INCO" is "Industry Station Cobble"
16:20:48 <alfagamma7> Hmm
16:21:27 <alfagamma7> I guess I should learn how to put company colour on parts of stations in a newgrf
16:24:23 <andythenorth> I could do numbers: "ICO1" for the first company colour
16:24:32 <andythenorth> but then I could do numbers for the ground tiles as well
16:24:54 <andythenorth> hmm "ICO0" for first company colour, 0 indexed
16:25:05 <andythenorth> and hex, so up to "ICOF"
16:25:15 <andythenorth> but then I can use hex for ground type as well
16:25:33 <andythenorth> and for town/industry split
16:25:52 <andythenorth> so labels could just be "02F_" etc
16:25:54 <andythenorth> fien
16:26:31 <peter1138> Paintbrush tool?
16:26:35 <andythenorth> I can write a parser so the string names make sense
16:26:41 <peter1138> _m[TILE_INDEX].colourmap./
16:28:39 <DorpsGek> [OpenTTD/OpenTTD] glx22 opened pull request #11360: Cleanup: [MacOS] Remove unneeded WITH_SDL checks https://github.com/OpenTTD/OpenTTD/pull/11360
16:29:35 <_glx_> (compile tested in my head only)
16:30:54 <andythenorth> oh peter doesn't see my Discord reactions πŸ˜›
16:31:03 <andythenorth> wasted some animated emoji credits there πŸ˜›
16:35:29 <andythenorth> peter1138: paint tool πŸ˜›
16:35:33 <peter1138> Even if I could... it would still be wasted.
16:41:29 <alfagamma7> andythenorth: Reacting with this to your own message is like Obama giving himself a medal meme ( obv it's edited)
16:43:38 <andythenorth> oh that was just me being bad at discord
16:44:02 <andythenorth> fixed
16:44:09 <alfagamma7> Trust me
16:44:09 <alfagamma7> So am I
16:44:48 <alfagamma7> The IRC bridge was the second best thing to be added in this server really
16:47:08 <peter1138> Beer?
16:47:26 <andythenorth> wine?
16:47:37 <peter1138> Oh, that's an idea.
16:51:38 <_glx_> andythenorth: with useful info in crash dialog ?
16:52:03 <andythenorth> no, macOS crash handling failed
16:52:18 <andythenorth> `libc++abi: terminate_handler unexpectedly threw an exception
16:52:18 <andythenorth> Something went seriously wrong when creating the crash log. Aborting.`
16:53:26 <_glx_> maybe you could try <https://github.com/OpenTTD/OpenTTD/compare/master...glx22:OpenTTD:macos-crash> (totally copied from stackoverflow)
16:55:06 <_glx_> and of course untested
16:58:14 <andythenorth> I should, am in the middle of grf things right now πŸ™‚
16:59:06 <_glx_> oh but you trigger a lot of crashes with your grf things
17:02:07 <andythenorth> I do πŸ˜›
17:03:08 <peter1138> Hmm, wine.
17:14:14 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160626216705998888/image.png?ex=65355865&is=6522e365&hm=ddc7ea4936b44519f4511e6ed93f505aff08f5f1485cfd56e606401cd223aae6&
17:14:14 <andythenorth> talltyler
17:14:19 <andythenorth> this is a bit stupid, but might work
17:14:33 <andythenorth> also it can be a parameter I imagine, and 'simplified' to just CC
17:14:57 <andythenorth> I haven't done all 16 colours though, that would be horrific
17:15:50 <andythenorth> oh the compile has added it for objects and roadstops as well, just needs the recolour cb
17:19:54 <talltyler> Nice πŸ™‚
17:24:29 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160628798774059028/image.png?ex=65355acd&is=6522e5cd&hm=109fbdac35f452928da3a1e56bc9502b074ff2c26ebe991d46a75f4c62787ab7&
17:32:07 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160630718246948965/image.png?ex=65355c96&is=6522e796&hm=71de03a7e6afc0a3f574118eb3cf1f0343c1868d84f247bff284d9f447d971b7&
17:32:07 <andythenorth> I'm sure this is fine?
17:32:12 <andythenorth> (objects)
17:32:19 *** nielsm has joined #openttd
17:32:48 *** Wormnest has joined #openttd
17:40:03 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160632716539207702/chips.grf?ex=65355e73&is=6522e973&hm=62cc39f491a4f087017c52af618c984fc43c6d17d07aa4286d6b8f3fbf584b22&
17:40:05 <andythenorth> ^ try it, it's odd
17:40:21 <andythenorth> lots of the tiles don't have much CC, so it's strange they're repeated so much
17:50:21 <peter1138> Why though
17:52:41 <andythenorth> Why repeat? Or why no CC? Or why bother with this at all? πŸ™‚
18:05:05 *** Wolf01 has joined #openttd
18:11:42 <andythenorth> this is just weird in game, I'm going to rethink
18:11:53 <andythenorth> it makes building stations way too faffy
18:12:06 <andythenorth> even though the model-train building element is improved
18:26:22 <peter1138> I don't see why you want even ground-type selection.
18:29:22 <truebrain> talltyler: won't be any time soon; maybe others can pitch in too πŸ™‚
18:29:34 <truebrain> new job is consuming all my free time 😦
18:30:58 <truebrain> _glx_: is it really going to be that easy? πŸ˜„
18:31:17 <andythenorth> peter1138: because FIRS, with different industry ground tiles
18:31:28 <andythenorth> the only point of CHIPS really is "matches FIRS"
18:32:32 <andythenorth> although FIRS could lose 'cobble', I never liked it much
18:33:40 <andythenorth> right, that's a thing, deleting 'cobble'
18:39:04 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain approved pull request #11360: Cleanup: [MacOS] Remove unneeded WITH_SDL checks https://github.com/OpenTTD/OpenTTD/pull/11360#pullrequestreview-1663515366
18:44:16 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160648878828306453/image.png?ex=65356d80&is=6522f880&hm=b1363d235cc77709d64eb96602099cd6a17a207841c6bd92a94f801056e467b8&
18:44:16 <andythenorth> ok removed all the colours and the 'cobble' ground type
18:46:52 <truebrain> truebrain: _glx_ sadly, seems to make little difference. Still no dialog 😦
18:47:02 <truebrain> (and still a "serious fault")
18:47:43 <truebrain> however, it still writes down a crash.json.log, and shows the assert on the CLI console (if you have that open). But that is only true for a semi-recent nightly πŸ™‚
18:54:35 <truebrain> the issue doesn't seem to be the runModal; but something earlier
18:54:44 <truebrain> it is not really reporting a clear error to me, so it is a bit trial and error
18:57:19 <truebrain> seems the `init` is already giving issues
19:13:56 <truebrain> lol .. so I delegate the whole function to the main thread; now it just hangs πŸ˜„
19:14:10 <truebrain> guess it never switches to the main thread anymore πŸ˜›
19:14:23 <truebrain> (most likely as we keep a lock preventing switching)
19:22:46 <truebrain> yeah, okay, this is a bit more complicated than I am wiling to deal with atm πŸ˜› "it is complicated" πŸ˜„
19:22:52 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160658588654633070/image.png?ex=6535768b&is=6523018b&hm=46e762538a34cb63a91706efa721c429ad0b637e4fc9466bdaec986eddd1c802&
19:22:52 <andythenorth> ok maybe this is fine?
19:23:09 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160658661107048448/image.png?ex=6535769c&is=6523019c&hm=f28e5e54a8d6f4aba558855b00668ed1c281cce883ae02a0fb4ac4bd66fb4064&
19:23:09 <andythenorth> then the 'normal' stations are just
19:24:35 <andythenorth> wonder if I could make the coloured sheds use ground from the nearest station tile
19:26:16 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160659445735493724/image.png?ex=65357757&is=65230257&hm=73b12a6a96569ac995ed8130ac0f4477e6b1c0b8d392f5fe2d2358a295782767&
19:26:16 <andythenorth> not sure the ground matters on the largest sheds anyway
19:27:51 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160659842961256560/image.png?ex=653577b6&is=652302b6&hm=128229f043a023dbe1c4566a82dca45fb132f60f0e72818b15eb659278c2b683&
19:27:51 <andythenorth> really not relevant
19:28:32 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160660014638321796/image.png?ex=653577df&is=652302df&hm=0342a0bbd24abfb2587ed92750b7f9e5c4f07077a8d883b978ca61a3298e4162&
19:28:32 <andythenorth> the ground types are already drawn so they can tile and not look stupid
19:32:03 <_glx_> truebrain: ah yes we use multiple threads but fully synchronised
19:36:56 <_glx_> <https://developer.apple.com/documentation/foundation/nsautoreleasepool/> <-- looks like `@autoreleasepool` could be part of the problem
19:45:51 <truebrain> we are crashing; the mainthread should be suspended like its life depended on it
19:46:39 <truebrain> (I moved all of the dialog code to the mainthread, but it never started to do anything πŸ˜› )
19:47:07 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160664694382665848/chips.grf?ex=65357c3b&is=6523073b&hm=4dffcaed6f7f4eb30b03814f522a895664f957b8b36c0065ac1faa3126ea34d1&
19:47:07 <andythenorth> talltyler: try this? The industry sheds are isolated in their own class, and use only colours FIRS industries use
19:47:23 <andythenorth> they might still want a class per colour, not sure
19:47:35 <andythenorth> going to draw a lot more of them using existing FIRS sprites
19:48:00 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1160664914545873027/image.png?ex=65357c6f&is=6523076f&hm=c1039c1566a6a5c8c3e0037d4ece5fdab07f5dbfc54d4b4f5d723215ec2e5d85&
19:48:19 <truebrain> I keep wondering if there isn't a certain channel dedicated to all this sprite stuff .... πŸ˜›
19:48:34 <_glx_> like the one above this one ?
19:48:40 <truebrain> now you mention it!
19:51:02 <andythenorth> oof busted
19:58:19 <_glx_> hmm maybe a combination of QueueOnMainThread() and GameLoopPause()
20:00:56 <truebrain> pretty sure the main thread is dead dead
20:06:48 *** gelignite has quit IRC (Quit: Stay safe!)
20:24:53 *** nielsm has quit IRC (Ping timeout: 480 seconds)
20:31:36 <_glx_> the biggest issue is we don't have devs for macos πŸ™‚
20:37:20 * peter1138 ponders
20:46:16 *** frosch123 has quit IRC (Quit: User went offline on Discord a while ago)
20:46:32 <andythenorth> oops, forgot to build statues in my game
20:51:00 <peter1138> Hmm, so the yapf nodelist container defaults to 65536 items. Each item is either 48 or 64 bytes.
20:51:26 <peter1138> So 4MB allocated to a structure called "SmallArray" ;D
20:52:08 <peter1138> SmallArray destroyed with 7 (48) items
20:52:08 <peter1138> SmallArray destroyed with 2667 (48) items
20:52:10 <peter1138> SmallArray destroyed with 35 (48) items
20:52:22 <peter1138> Quite a variety of sizes used.
20:53:22 <peter1138> I've seen a 5000, I wonder what's needed to see a larger node list.
20:53:26 <peter1138> Ships... Maybe.
20:54:00 <_glx_> ships in open sea I think
20:54:39 <peter1138> Creating a 4kx4k map... forgot to turn off industries.
20:56:40 <peter1138> 27272 :D
20:56:46 <peter1138> Not the full map.
20:59:14 <peter1138> I'm pretty sure this structure is pointless.
20:59:55 <peter1138> At least with the default pathfinder limits. Hmm.
21:05:10 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:19:17 <peter1138> Eh, OpenTTD is using 100% CPU, even when paused...
21:19:52 <peter1138> I suspect Hardware Acceleration + SDL1.
22:20:26 *** tokai|noir has joined #openttd
22:20:26 *** ChanServ sets mode: +v tokai|noir
22:20:39 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:27:18 *** tokai has quit IRC (Ping timeout: 480 seconds)