IRC logs for #openttd on OFTC at 2022-09-11
            
00:22:58 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
00:41:54 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
00:42:26 *** WormnestAndroid has joined #openttd
01:16:11 *** gelignite has quit IRC (Quit: Stay safe!)
01:46:14 *** Tirili has quit IRC (Remote host closed the connection)
02:16:03 *** Wormnest has quit IRC (Quit: Leaving)
03:02:33 *** D-HUND has joined #openttd
03:05:55 *** debdog has quit IRC (Ping timeout: 480 seconds)
03:19:27 *** D-HUND is now known as debdog
06:28:09 <andythenorth> moin
07:08:20 <DorpsGek> [OpenTTD/OpenTTD] andythenorth opened pull request #10019: Feature: add sticky pin to Object Selection UI panel https://github.com/OpenTTD/OpenTTD/pull/10019
07:09:45 <DorpsGek> [OpenTTD/OpenTTD] andythenorth opened pull request #10020: Feature: add shade widget to Object Selection UI panel https://github.com/OpenTTD/OpenTTD/pull/10020
07:14:21 <LordAro> andythenorth: you realise because you've made it separate PRs one of them will conflict and it'll need rebasing :p
07:14:26 <andythenorth> yes
07:15:11 <andythenorth> it took about 4 years and two patches to get shade added to the station UI
07:15:17 <andythenorth> so I have split them
07:15:34 <andythenorth> we had to debate like 'do authors add too many grfs' and 'stop using 2x UI zoom' and so on
07:16:12 <andythenorth> obviously I've cp-ed them both into a local branch that I have built ๐Ÿ˜›
07:18:12 <andythenorth> did I forget tabs vs spaces yet? ๐Ÿ˜›
07:18:14 <andythenorth> usually I do
07:18:44 <dP> I shading even useful?
07:18:51 <dP> I don't think I even use that button
07:19:24 <LordAro> i have occasionally used it
07:20:00 <andythenorth> constantly
07:20:08 <andythenorth> scroll shades
07:20:14 <andythenorth> ^^ this is what happened last time
07:20:18 <andythenorth> same debate ๐Ÿ˜›
07:20:38 <andythenorth> like...we already have a UI convention, inconsistently applied, but let's debate it...again ๐Ÿ˜›
07:20:47 <andythenorth> I like a trip down memory lane
07:21:04 <DorpsGek> [OpenTTD/OpenTTD] LordAro approved pull request #10020: Feature: add shade widget to Object Selection UI panel https://github.com/OpenTTD/OpenTTD/pull/10020#pullrequestreview-1103252168
07:21:13 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018420936678064129/unknown.png
07:21:13 <andythenorth> the case is this ๐Ÿ™‚
07:21:18 <DorpsGek> [OpenTTD/OpenTTD] LordAro approved pull request #10019: Feature: add sticky pin to Object Selection UI panel https://github.com/OpenTTD/OpenTTD/pull/10019#pullrequestreview-1103252190
07:21:18 <andythenorth> how do I place objects?
07:22:25 *** sla_ro|master has joined #openttd
07:22:52 *** Wolf01 has joined #openttd
07:23:34 <andythenorth> I think the first patch I made, it was concluded the following:
07:23:34 <andythenorth> - I should stop using station grfs
07:23:34 <andythenorth> - I should stop using 2x UI zoom
07:23:34 <andythenorth> - I should stop using a laptop and get a large monitor
07:23:34 <andythenorth> ๐Ÿ˜›
07:24:01 <andythenorth> I imagine someone said "don't try to implement technical solutions to social problems" at some point
07:24:08 <andythenorth> second patch, Peter just approved it ๐Ÿ˜›
07:30:28 <andythenorth> wonder if we can figure out why the Object Selection window resizes when switching between objects ๐Ÿ˜„
07:31:25 <andythenorth> I suspect it's in UpdateWidgetSize
07:32:15 <andythenorth> L 250 might give clues
07:32:27 <andythenorth> `/* We do not want the window to resize when selecting objects; better clip texts */`
07:37:08 <andythenorth> I supposed I could try to learn how to use break points
07:37:27 <andythenorth> I've managed 25 years of low-quality programming without that ๐Ÿ˜›
07:39:48 *** arikover has joined #openttd
08:01:19 *** nielsm has joined #openttd
08:09:08 <frosch> ah, object window in an independent window
08:09:31 <frosch> you can't sticky station window, because it is a picker attached to the construction toolbar
08:13:45 <andythenorth> hmm
08:14:05 <andythenorth> aren't both station and object selection similar? ๐Ÿ˜ฎ
08:14:16 <andythenorth> the sticky wasn't essential ๐Ÿ™‚
08:15:30 <andythenorth> ` nmlc info: Object items: 199/256`
08:15:34 <andythenorth> about to cross a rubicon ๐Ÿ™‚
08:19:26 <frosch> for the object window "sticky" seems to work, the window remains open when switching construction tools
08:19:37 <frosch> but the station window closes when switching construction tools, so sticky is pointless
08:19:45 <frosch> luckily it does not seem to have sticky
08:20:22 <andythenorth> the consistency of sticky is best not looked at too hard ๐Ÿ™‚
08:22:29 <andythenorth> ha ha
08:22:36 <andythenorth> just got smacked by python lexical sorting
08:22:56 <andythenorth> I'm sorting on `industry_cabbage_1` and `industry_cabbage_10`
08:23:02 <andythenorth> first time I've reach 10
08:23:21 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
08:23:23 *** WormnestAndroid has joined #openttd
08:24:46 <dP> I get the convention but I still don't know a single usecase for sticky button in any window
08:24:52 <dP> may have missed the last debate :p
08:25:04 <andythenorth> it's not hard
08:25:07 <andythenorth> backspace
08:25:41 <frosch> dP: we are now on sticky, no longer shade
08:25:42 <dP> oh, sorry, shade button, not sticky
08:25:59 <dP> sticky I get xD
08:26:19 <frosch> i think shade was meant for vehicle window
08:26:35 <frosch> if for some reason you want to look at 20 vehicles in 1 year again or something
08:26:47 <andythenorth> zfill is my new favourite thing ๐Ÿ˜›
08:26:48 <andythenorth> self.id = industry.id + "_object_" + str(object_group_num).zfill(2)
08:26:55 <andythenorth> yolo lexical sort fixed
08:27:38 <frosch> do you like zfill so much that you avoid format and f-strings?
08:27:54 <andythenorth> those require skill
08:28:03 <dwfreed> zfill can be used in an f-string
08:28:27 <dwfreed> (but also you could just make the format do the same work)
08:28:30 <andythenorth> I am open to alternative solutions
08:28:36 <andythenorth> I was about to write a horrific lambda
08:28:49 <frosch> i think zfill requires more skill than self.id = f"{industry.id} object {object_group_num:02}"
08:29:00 <dP> f`{industry.id}object{object_group_num:02}`
08:29:16 <dwfreed> dP missed the underscores :)
08:29:31 <dwfreed> frosch put spaces instead :D
08:29:43 <frosch> i blame the bridge
08:29:55 <dwfreed> yeah, discord probably made object italic
08:30:13 *** Flygon has joined #openttd
08:30:44 <frosch> yep
08:30:57 <dP> discord can edit :p
08:31:16 <dwfreed> IRC cannot :P
08:31:41 <andythenorth> swapped it
08:31:49 <andythenorth> I used a f-string somewhere last week
08:32:08 <andythenorth> didn't know about the : format
08:33:55 <dP> btw, it's probably not the kind of lexical sort you want:
08:33:55 <dP> ```>>> '2object99' < '11object00'
08:33:55 <dP> False
08:34:02 <andythenorth> does this .mov work for the rest of you? https://discord.com/channels/142724111502802944/1008473233844097104/1018268437967016028
08:34:26 * andythenorth might need to mp4 it or something
08:34:43 <dP> works for me
08:34:44 <frosch> it works for me
08:35:10 <andythenorth> I have not the first clue how to debug that, other than guessing at things in object_gui.cpp
08:35:12 <andythenorth> like UpdateWidgetSize
08:35:19 <dwfreed> the IRC link does not work, surprisingly
08:35:28 <frosch> look for ReInit, and start commenting it out
08:35:38 <dwfreed> normally it goes to the cdn, this time it did not
08:35:42 <dwfreed> I blame TrueBrain
08:36:06 <TrueBrain> I would too
08:36:57 <TrueBrain> and the .mov worked; the reference to an older message did not ๐Ÿ˜›
08:37:01 <andythenorth> lol
08:37:18 * andythenorth watches slow macOS linker link
08:37:26 <TrueBrain> if it would be worth my time, I would replace it with a link to the IRC weblogs ๐Ÿ˜›
08:37:30 <TrueBrain> but I am way too lazy for that today ๐Ÿ™‚
08:37:50 <dwfreed> converting would not be simple, likely
08:38:10 <dwfreed> you'd probably better off doing inline quoting
08:39:00 <andythenorth> ok, commenting out the ReInit() on L455 prevents the window resizing when different object is selected
08:39:19 <andythenorth> it also prevents the correct number of views for the object being shown ๐Ÿ™‚
08:39:26 <TrueBrain> dwfreed: not any easier (or more difficult) tbh .. as on Discord it is just a link, not an actual reference to an object .. so you need to look that up too ๐Ÿ˜›
08:39:33 <dP> are there any irc logs that still work reliably?
08:44:34 <FLHerne> dP: the official one does https://weblogs.openttd.org/openttd/2022/09/11.html
08:44:37 <FLHerne> usually
08:45:38 <dP> oh, that one I didn't know, ty
08:47:41 <dwfreed> the anchors for the lines have sequence numbers; that's unfortunate
09:02:35 <DorpsGek> [OpenTTD/OpenTTD] andythenorth opened issue #10021: [Bug]: Object Selection UI - resizing when switching between certain types of objects https://github.com/OpenTTD/OpenTTD/issues/10021
09:34:10 *** gelignite has joined #openttd
09:34:38 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018454515000823858/unknown.png
09:34:38 <andythenorth> the convention seems to be to put grf name into object classnames
09:34:48 <andythenorth> but that's noisy, entropic etc
09:35:12 <andythenorth> seems that the classnames are rendered **per grf**?
09:35:19 <andythenorth> so there's no risk of interleaving?
09:41:45 <Brickblock1> they can use the same class and some sets use abbreviations in the class name
09:42:14 <andythenorth> do we think it orders by class identifier then?
09:42:23 <reldred> Yeah similar to stations if they use the same class they overwrite
09:42:40 <reldred> First grf sets the order iirc, or is it last? I dunno
09:42:43 <andythenorth> unrelated: how do I edit OpenTTD strings in en-gb?
09:43:04 <andythenorth> I have edited src/lang/english.txt, but that doesn't show up changes on a normal `make`
09:43:08 <andythenorth> do I need to re-run cmake?
09:43:21 <JGR> andythenorth: No it's just the order you load the GRFs in
09:43:31 <andythenorth> so no interleaving...
09:43:40 <frosch> i am surprised the list is not sorted alphabetical
09:43:49 <frosch> i don't think the sort-by-load-order is intentional
09:44:00 <reldred> Adding alphabetical sort made A Lot Of People Unhappy
09:44:06 <andythenorth> lol
09:44:09 <frosch> oh, it was tried :p
09:44:10 <andythenorth> those people ๐Ÿ™‚
09:44:20 <reldred> Yup, didnโ€™t work well in practice
09:44:24 <andythenorth> we added alphabetical sort *many* other places ๐Ÿ™‚
09:44:35 <andythenorth> oh there was complaining about that I remember
09:45:06 <reldred> Because of categories and sub categories in fridaemons stuff and garrygโ€™s stuff it turned into an absolute dogs breakfast incredibly quickly.
09:46:25 * andythenorth figured out compiling
09:47:09 <reldred> Is their way of arranging their grfโ€™s optimum in the grand scheme of things? Probably not. Is it the best idea they can muster with the tools available to them right now? Probably yes.
09:47:28 <andythenorth> if the filter actually worked it might help some ๐Ÿ˜›
09:49:22 <reldred> Hmm, I think sometimes people forget that a lot of people navigate computers by building up a muscle memory of the layout, like, yes a filter sounds like a better idea, but if I intrinsically know and remember that something I want is three quarters down the list Iโ€™ll automatically do that instead of typing it in, I wonโ€™t even think about it.
09:50:10 <reldred> I had similar issues before in other computer user interfaces.
09:50:58 <frosch> yes, but memory can be retrained
09:51:04 <frosch> take the cargo lists
09:51:15 <frosch> cargos also used to be in definition order
09:51:32 <frosch> and people had memorized that livestock is in position 8
09:51:48 <frosch> but with adding more cargos, that was increasingly useless
09:52:08 <frosch> so now, cargos are sorted alphabetical, with maybe an exception for passengers
09:52:35 <DorpsGek> [OpenTTD/OpenTTD] andythenorth opened pull request #10022: Change: 'string' is spurious in 'Filter string:' https://github.com/OpenTTD/OpenTTD/pull/10022
09:52:39 <frosch> for 32/64 cargos in unknown mods that is way better, for the original 12 cargos you have to retrain your muscle memory
09:53:24 <DorpsGek> [OpenTTD/OpenTTD] andythenorth commented on pull request #10022: Change: 'string' is spurious in 'Filter string:' https://github.com/OpenTTD/OpenTTD/pull/10022#issuecomment-1242929144
09:54:43 <reldred> Sure people can relearn it, but often thatโ€™s more palatable to relearn the list order than using a filter.
09:54:58 <andythenorth> let's try a filter that works first and then see ๐Ÿ˜›
09:55:01 <reldred> I mean the loading order of grfโ€™s makes the list order change
09:55:01 <andythenorth> this one doesn't work
09:55:11 <andythenorth> one step at a time ๐Ÿ™‚
09:55:29 <reldred> Well yes, I think making what we already have work moar betterer is still a net positive
09:56:47 <DorpsGek> [OpenTTD/OpenTTD] andythenorth commented on pull request #10022: Change: 'string' is spurious in 'Filter string:' https://github.com/OpenTTD/OpenTTD/pull/10022#issuecomment-1242929568
09:57:13 <andythenorth> reldred: you in a place with FIRS yet? ๐Ÿ˜›
09:57:49 <reldred> Am I in a what with a where?
09:58:07 <andythenorth> not much FIRS in the bush
09:58:08 <reldred> Oh yes Iโ€™m home now. Iโ€™m no longer shooting idiots with toy guns.
09:58:16 <andythenorth> I am about to do a 4.11.0
09:59:03 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018460657697427476/unknown.png
09:59:18 <reldred> Firs version 4.20 to finally add cannabis chain to in a hot country.
09:59:34 <andythenorth> Do we transport it by train?
10:00:08 <reldred> Dunno, i know here medical MJ is basically treated like an armoured cargo class.
10:00:15 <reldred> Very heavily guarded.
10:00:39 <reldred> Tobacco is also very tightly controlled but not quite as severely.
10:01:06 <andythenorth> is it all a bit Road Warrior when transported?
10:03:44 <reldred> Not sure, I think itโ€™s mostly just armoured trucks.
10:21:56 *** HerzogDeXtEr has joined #openttd
10:49:50 <frosch> https://cdn.discordapp.com/attachments/1008473233844097104/1018473437624275074/station_gfx.dot.png
10:49:50 <frosch> i am not sure all the extra details make it better
10:50:16 <frosch> originally i only wanted to illustrate select_sprite_layout, prepare_sprite_layout and default
10:51:09 <andythenorth> do I make FIRS generate stations next? ๐Ÿ˜›
10:51:33 <frosch> does the graph encourage or discourage you to do so?
10:52:26 <andythenorth> yes
10:53:06 <andythenorth> it's nice to have a graph
10:53:16 <andythenorth> the contents of the grf disturb me very
10:53:50 <frosch> all your spritesets are belong to us
10:54:27 <andythenorth> one day I will figure out what to do with stations
10:54:35 <andythenorth> it's very contextual
10:54:48 <andythenorth> when I am watching the trains go by, I want stations to show cargo for 'everything is ok'
10:55:10 <andythenorth> when I am trying to monitor whether my network sucks, I want stations to show cargo for 'everything is not ok'
10:55:25 <andythenorth> these are not orthogonal goals ๐Ÿ˜›
10:55:35 <andythenorth> hmm
10:55:38 <andythenorth> ` nmlc info: Object items: 225/256`
10:55:39 <andythenorth> well
10:55:59 <andythenorth> I am not adding any more currently, as there are cases I can't support, like water, and terrain-aware tiles
11:01:21 <andythenorth> the number per FIRS economy is somewhat lower, so I might be able to shard ID
11:01:42 <andythenorth> but my first attempt at that was prevented by nml trying to guard me against myself
11:13:13 <andythenorth> python nogo?
11:17:18 <FLHerne> Javascript
11:18:07 <FLHerne> fwiw, 0ad does have Javascript AIs and 'gamescripts', as well as in some content scripting, and it seems to work
11:18:36 <FLHerne> spidermonkey is a huge and annoying dep though
11:18:38 <andythenorth> oof pls no
11:18:50 <andythenorth> my career contains 'avoiding javascript'
11:18:54 <andythenorth> both for fun or money
11:20:11 <FLHerne> hm
11:20:19 <FLHerne> C
11:20:38 <FLHerne> build a C compiler into ottd so it can be compiled and executed at runtime
11:20:52 <FLHerne> maximum perf
11:20:57 <andythenorth> what about bytecode?
11:21:16 <FLHerne> TrueBrain would complain about having to serve for all different archs
11:21:37 <dwfreed> yeah, just write your own VM
11:21:50 <dwfreed> cross-compile to whitespace
11:21:52 * dwfreed ducks
11:21:56 <FLHerne> and the people playing on a Z80 or whatever would complain about it not being supported at all
11:27:33 <DorpsGek> [OpenTTD/team] glx22 commented on issue #347: [zh_CN] Translator access request https://github.com/OpenTTD/team/issues/347
11:33:01 <andythenorth> does colour cb work for objects? ๐Ÿ˜›
11:33:18 <andythenorth> `colour :palette_1cc(COLOUR_GREY);` compiles, but has no effect
11:39:58 <andythenorth> hmm
11:40:03 <andythenorth> colour doesn't apply in purchase
11:40:06 <andythenorth> and it's wrong
11:47:01 <frosch> result is just 0..255
11:47:13 <frosch> so "colour: return COLOUR_GREY;"
11:48:02 <andythenorth> thanks
11:48:11 <frosch> gui seems to use company colour always
11:48:41 <andythenorth> hmm
11:51:03 <frosch> it's sunny today, we could have had a ottd party today. yesterday it was raining
11:52:03 <andythenorth> "in OpenTTD world, there is no weather"
11:53:13 <frosch> the sun is always shining in OpenTTD ๐ŸŽถ
11:54:01 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018489592090996846/unknown.png
11:54:01 <andythenorth> such objects in grey
11:54:40 <frosch> did you have good reasons to not just use player's cc?
11:54:46 <frosch> then it is at least known who built it
11:55:12 <andythenorth> just that it looks quite loud
11:57:16 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018490410143846511/unknown.png
11:57:27 <andythenorth> it's not the worst thing ever
11:58:49 <andythenorth> maybe I select colour using map xy ๐Ÿ˜›
11:59:00 <andythenorth> so one region is all red, etc
12:01:20 <frosch> haha, if you use the same algorithm in industries, it works out :p
12:01:31 <frosch> both industries and objects have access to nearest town
12:01:42 <frosch> so they could agree on an industry colour per town
12:01:49 <frosch> possibly per industry type
12:02:29 <frosch> so many BAD FEATURES
12:02:32 <andythenorth> so many
12:02:38 <andythenorth> changing colour by time
12:02:43 <andythenorth> to reflect the weather
12:02:53 <frosch> moon cycle
12:03:14 <frosch> day cycle is too fast, so you have to use moon cycle
12:03:59 <frosch> maybe industries could charge up blue -> green -> yellow -> red, before they release cargo to stations
12:03:59 <andythenorth> I could mod(16) the town index ๐Ÿ˜›
12:06:45 <andythenorth> hmm is town parent for objects?
12:09:28 <andythenorth> oh that actually works
12:09:32 <andythenorth> it was intended as trolling
12:12:29 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018494239111381143/unknown.png
12:13:58 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018494610806407248/unknown.png
12:13:58 <andythenorth> could be confusing
12:19:23 <Brickblock1> it is fine
12:20:39 <reldred> I think itโ€™s a suitable compromise, maybe each industry can take the town index and then apply a fixed offset, which the matching object can also match?
12:21:01 <andythenorth> that's an interesting idea
12:21:09 <andythenorth> pseudo random
12:21:24 <reldred> So industries will still have different colours but yeah still computable for the objects
12:21:44 <reldred> And multiple of the same industry per town if funded match colour too
12:21:45 <andythenorth> the purchase won't match, but eh
12:21:48 <reldred> Ooooooo
12:21:54 <reldred> Meh who cares about that
12:21:58 <reldred> Trifling matter
12:22:00 <andythenorth> I will try this in a bit
12:22:10 <reldred> Verigud
12:26:14 *** Compu has joined #openttd
12:27:38 *** Compu has quit IRC ()
12:35:50 <andythenorth> uuuf
12:35:54 <andythenorth> how do I spin the result
12:36:06 <andythenorth> 16 choices, town_index % 16
12:36:21 <andythenorth> then rotate using an offset from the industry
12:40:04 <andythenorth> I can do it with a big stack of generated switches ๐Ÿ˜›
12:40:24 <andythenorth> but one line of nml in an expression, I am not smart enough ๐Ÿ˜›
12:41:40 <dP> rotate like `(town_index + offset) % 16` ?
12:42:01 <andythenorth> something like that yes
12:42:34 <andythenorth> that might work
12:42:34 <dwfreed> offset could just be the industry's type ID ?
12:42:41 <andythenorth> yes that's what I was going to use
12:46:48 <reldred> ๐Ÿ‘€
12:46:57 <reldred> I like what is happening here
12:52:14 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018504243377872946/unknown.png
12:52:14 <andythenorth> works great, until it hits a town border ๐Ÿ˜„
12:54:09 <andythenorth> think we can live with that ๐Ÿ˜›
12:54:28 <andythenorth> does this need a parameter? Or is it just The Best?
12:54:41 <reldred> Itโ€™s dope as fuck. Ship it.
12:56:35 <frosch> look, now you can redraw industries using 2CC
12:56:49 <frosch> first CC depending on town, second random or player-funded
12:57:14 <frosch> we are tried of hearing about 3CC for vehicles, start with 2CC for industries :p
12:58:55 <dP> โˆžCC
12:59:59 <andythenorth> I could do 2CC industries with graphics processing
13:00:08 <andythenorth> or recolour sprites
13:00:42 <andythenorth> I banned about half of the actual company colours by remapping them to better colours
13:00:54 <andythenorth> which means there's 50% spare randomness for 2cc ๐Ÿ˜›
13:03:43 <frosch> "better company colours" could be a newgrf ๐Ÿ™‚
13:03:50 <frosch> it probably is
13:04:38 <andythenorth> it is
13:05:08 <Brickblock1> there are almost 2
13:06:42 <dP> which one is better?
13:11:05 <andythenorth> ok so if players want objects matching their station
13:11:17 <andythenorth> that can be in a different category ๐Ÿ˜›
13:15:23 <reldred> Colour picker in the UI would be nice
13:18:38 <petern> Stop. Salad time!
13:18:59 <dP> spray can tool
13:19:01 <andythenorth> had a salad
13:20:46 <andythenorth> colour pickers everywhere
13:20:50 <petern> andythenorth: Flooded roads disaster? Washed out tracks?
13:21:23 <petern> Aren't objects company owned? Therefore company colour...
13:21:44 <andythenorth> but model railways....
13:25:09 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018512526515896340/unknown.png
13:25:09 <andythenorth> dunno about all industries in a town being same colour
13:25:16 <andythenorth> very convenient when I want to test though
13:25:18 <frosch> petern: the company colour is copied from the company to the object on construction
13:25:35 <frosch> objects do not repaint, if you change your CC
13:26:00 <frosch> the object gui "could" offer a colour selection, which just replaced the CC for the next object built
13:26:21 <reldred> ๐Ÿ‘€
13:26:24 <dP> except when that cc is taken
13:26:41 <frosch> andythenorth: it's probably fine, if different industry types still have different color
13:26:50 <Brickblock1> andythenorth: this would never happen without funding
13:26:55 <andythenorth> yup
13:26:56 <frosch> same industries nearby are rare, though if they are it's bad if you cannot distinguish them :p
13:26:56 <andythenorth> hmm this might be worth a parameter
13:27:28 <andythenorth> pseudo-random colour would be so helpful when making the docs images
13:27:31 <andythenorth> but maybe not for players
13:27:35 <petern> Have I eaten enough? Hmm.
13:29:07 <andythenorth> maybe I just yolo 'colour from town'
13:29:22 <petern> Towns have colours?
13:29:30 <andythenorth> towns have town_index ๐Ÿ˜›
13:29:33 <andythenorth> % 16
13:29:36 <andythenorth> there's no case for building 4 steel plants next to each other
13:29:41 <andythenorth> so this won't come up often
13:30:22 <reldred> The only times it would happen the player would probably enjoy having them the same colour anyway (large complex)
13:30:47 <frosch> andythenorth: play more silicon valley :p
13:31:03 <andythenorth> this is a true
13:31:13 <andythenorth> well this isn't a dead end if it needs changed
13:31:16 <frosch> but i agree with reldred, same colour may not be a bad thing
13:32:03 * andythenorth committed it
13:33:08 <andythenorth> 4.11.1 then
13:35:03 <andythenorth> 4.12.0
13:38:31 * andythenorth wonders how multi-tile objects work
13:38:35 <andythenorth> probably magic
14:04:46 <andythenorth> objects up to 15x15 ๐Ÿ˜ฎ
14:04:51 <andythenorth> I thought they were 2x2 ๐Ÿ˜›
14:08:02 <Brickblock1> are you going to have fully industries?
14:09:49 <andythenorth> no
14:09:51 <frosch> houses are 2x2 :p
14:09:53 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018523783528722442/unknown.png
14:09:53 <andythenorth> case is
14:10:01 <frosch> please don't add firs industries as houses :p
14:10:09 <andythenorth> that could be funny
14:10:19 <andythenorth> then 'industries' would be towns
14:10:24 <andythenorth> I could do a town name grf
14:10:31 <andythenorth> variations on 'Steel Complex'
14:10:34 <andythenorth> 'Coal Town'
14:10:41 <andythenorth> and they could all communicate via town
14:10:49 <andythenorth> this might be quite a good idea
14:10:53 <frosch> would you still generate your townnameset from firs source, or use truegrf?
14:11:11 <andythenorth> I would probably try and make calls to truegrf with curl
14:11:36 <frosch> i expected no less of you ๐Ÿ™‚
14:11:46 <TallTyler> Houses have a production callback so they actually work as primary production, but there's no way to know how much cargo they received so you couldn't do secondary industries
14:11:47 <petern> Cargo type "pollution", produced by buildings and accepted by waste processing industry...
14:12:00 <andythenorth> TallTyler: but the GS knows
14:12:03 <TallTyler> ITI has houses produce Waste which then gets recycled...
14:12:09 <andythenorth> petern: there's a test FIRS with 'pollution' in grf
14:12:13 <andythenorth> via the town registers
14:12:23 <TallTyler> The current version just steals the Mail ID but I previously used the production callback
14:12:26 <petern> Okay well that's me out of "original" ideas
14:12:53 <TallTyler> It gets pretty stupid with airplanes which are coded to carry cargo ID 1 and not "MAIL"
14:13:01 <TallTyler> But ๐Ÿคทโ€โ™‚๏ธ
14:13:09 <andythenorth> FIRS pollution it doesn't work very well
14:13:19 <andythenorth> writing a monthly 'town' callback was hard
14:13:21 <TallTyler> Pollution spawns biters?
14:13:25 <TallTyler> Wrong game ๐Ÿ˜›
14:13:35 <frosch> TallTyler: ECS experimented with industries as houses (gas stations etc). the problem is that houses are regulary demolished and rebuild, so you have no stable acceptance
14:13:56 <andythenorth> GS ๐Ÿ˜›
14:14:04 <TallTyler> ITL Houses blocks most demolition and rebuild of signature buildings
14:14:23 <TallTyler> Using either the Protected flag or the equivalent callback
14:14:49 <petern> Bah, my tea ran out.
14:14:49 <TallTyler> I even wrote a Historic Preservation function
14:16:15 <TallTyler> GS should be able to cause disasters
14:16:20 <TallTyler> PR demanded
14:19:53 <petern> Yeah, create one.
14:20:15 <petern> Disaster Labels?
14:23:59 *** MaverickFischer has quit IRC (Quit: Due to budget cuts, the light at the end of the tunnel has been turned off.)
14:24:27 <andythenorth> can't GS just demolish player stuff?
14:24:34 <andythenorth> done
14:26:23 *** MaverickFischer has joined #openttd
14:32:18 <frosch> disaster: all player property destroyed, please restart
14:32:40 <frosch> though i guess even GS cannot destroy infrastructures with vehicles on it
14:32:48 <frosch> gs first has to send vehicles to depot :p
14:32:57 <petern> EMP destroys all your modern electrics, go back to steam...
14:33:01 <frosch> ah, disaster: strike, all vehicles send to depot to stop
14:53:35 <petern> SetPadding(uint8 top, uint8 right, uint8 bottom, uint8 left)
14:53:50 <petern> Someone copied madness from css ๐Ÿ™‚
14:54:22 <frosch> ah, i always wondered where that order came from
15:01:24 *** sla_ro|master has quit IRC ()
15:05:10 *** Wormnest has joined #openttd
15:26:28 <DorpsGek> [OpenTTD/OpenTTD] James103 opened issue #10023: [Bug]: "Autorenew when vehicle is X months after max age" text input does not accept negative numbers https://github.com/OpenTTD/OpenTTD/issues/10023
16:56:00 <FLHerne> is that a bug?
16:56:14 <FLHerne> sounds useful though, "getting old" is annoying
16:56:39 <LordAro> "This is because the setting's range ([-12, 12]) includes negative numbers"
16:56:48 <petern> Yes, autorenew allows renewing before max age.
16:56:58 <LordAro> presumably easy fix
17:00:06 <andythenorth> anyone poked the object selection UI bug yet?
17:00:11 <andythenorth> it's lolz when you encounter it
17:00:22 <petern> I couldn't reproduce it.
17:00:30 <andythenorth> maybe it's the way I click
17:00:35 <andythenorth> mousedown vs. mouseup
17:01:01 <andythenorth> it's quite a specific condition
17:01:03 <andythenorth> ๐Ÿ˜›
17:03:06 <LordAro> :q
17:03:09 <LordAro> hmm.
17:03:22 <petern> Such vim
17:04:09 <andythenorth> more Sweeney?
17:04:19 <petern> Do I want to switch from font-awesome to Google's Material symbols?
17:04:28 <andythenorth> dunno
17:04:39 <andythenorth> I like FA
17:04:47 <petern> If they made a compatibility wrapper they'd be on to something.
17:13:38 *** wallabra_ has joined #openttd
17:15:04 <petern> Just make everything scaled and dynamic, he though. Easy, he thought.
17:16:19 <andythenorth> "add objects to FIRS, Friday night, done in an hour"
17:16:28 <andythenorth> 3 OpenTTD PRs later...
17:18:35 *** wallabra has quit IRC (Ping timeout: 480 seconds)
17:19:12 *** wallabra has joined #openttd
17:23:01 *** wallabra_ has quit IRC (Ping timeout: 480 seconds)
17:23:35 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018572529033564170/unknown.png
17:23:35 <andythenorth> multi-tile works
17:23:46 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018572575724548166/unknown.png
17:23:46 <andythenorth> selection menu though...
17:23:58 <andythenorth> do I have to do a big purchase sprite or something?
17:24:09 <frosch> yes
17:24:23 <andythenorth> 'oof'
17:25:28 <frosch> though you can probably combine the single sprites into a single layout
17:25:40 <andythenorth> oh just overlap and shift?
17:25:42 <andythenorth> hmm
17:26:21 <frosch> gui draws sprites in the order they appear in the layout
17:26:28 <frosch> there is no magic sprite sorting or clipping
17:26:42 <andythenorth> might try a purchase layout then
17:28:00 <andythenorth> or just paint the sprites
17:28:25 <andythenorth> this is only 7 industries currently
17:41:58 <petern> Strava KOMs that get stolen by runners forgetting to turn off when driving home...
17:45:10 <LordAro> i have a KOM that semi-regularly gets stolen that way
17:45:17 <LordAro> the report button gets used very quickly
17:45:59 *** wallabra_ has joined #openttd
17:46:36 <petern> Yeah, I ... just haven't noticed because it's not something I really care about, but...
17:47:20 <petern> There's doubtless loads of other random segments that I'm nowhere near KOM on that are also "bugged"
17:47:44 <LordAro> oh absolutely
17:47:52 <petern> It's a bit silly really, Strava could easily detect such problems on upload.
17:47:57 *** wallabra has quit IRC (Ping timeout: 480 seconds)
17:47:57 *** wallabra_ is now known as wallabra
17:48:22 <LordAro> i only have maybe 2 "actual" KOMs, the rest are just too short and under trees and so forth, so very limited by GPS weirdnesses
17:48:36 <petern> Yeah, those still count IMHO ๐Ÿ˜„
17:48:43 <petern> (Mainly cos I have sone...)
17:51:55 <petern> I've got a 4.22km "KOM" that is unlikely to be beaten as it's 1) flat and 2) relies on no traffic in a couple of spots.
17:52:18 * LordAro flags segment as dangerous
17:52:38 <petern> It's country lanes, you can hear if there is traffic, but if there is, it's going to slow you ๐Ÿ™‚
17:53:59 <petern> There's an off-road loop I made which I'm KOM at ๐Ÿ˜„
17:54:14 <petern> Possibly because only 8 other riders have done it.
17:55:24 <petern> 11 km off road so you gotta take the trails in the right order I guess ๐Ÿ˜„
17:55:34 <petern> At least it does actually have climbs (and descents) in it
17:56:14 <petern> Hmm, most of mine at from 3-5 years ago, sad.
17:57:00 <petern> Downward spiral now...
18:01:53 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018582168143925379/unknown.png
18:01:53 <andythenorth> this extends my understanding of 'build anywhere' ๐Ÿ˜›
18:01:59 <andythenorth> I guess airports do that
18:02:01 <andythenorth> much foundations
18:05:01 <petern> Oh it's 7pm.
18:05:06 <petern> Is it dinner?
18:06:31 <andythenorth> yup
18:06:33 <andythenorth> or later
18:09:32 <petern> God I hate warning C4838: conversion from 'uint' to 'int' requires a narrowing conversion
18:11:17 <petern> Good ol' kudos... given just for getting out ๐Ÿ˜„
18:34:58 *** sla_ro|master has joined #openttd
18:58:12 <petern> andythenorth: I like this comment in the object GUI...
18:58:16 <petern> /* We do not want the window to resize when selecting objects; better clip texts */
18:59:00 <andythenorth> I enjoyed it
18:59:10 <andythenorth> we tried
18:59:12 <andythenorth> we didn't win
19:00:12 <petern> It probably works fine at 1x zoom
19:00:33 <petern> But I am wrangling zoom already so
19:02:46 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018597488787198144/unknown.png
19:02:46 <andythenorth> I guess the object view selector is very large to accommodate large objects? ๐Ÿ˜›
19:11:17 <petern> Oops
19:11:21 <petern> Fish & chips
19:11:35 <petern> Good job I cycled today
19:15:43 <DorpsGek> [OpenTTD/BaNaNaS] frosch123 opened pull request #120: Change: migrate OpenTTD user NSR to GitHub user DonTheHorse https://github.com/OpenTTD/BaNaNaS/pull/120
19:16:55 <andythenorth> such Horse
19:19:33 <DorpsGek> [OpenTTD/BaNaNaS] TrueBrain approved pull request #120: Change: migrate OpenTTD user NSR to GitHub user DonTheHorse https://github.com/OpenTTD/BaNaNaS/pull/120#pullrequestreview-1103344373
19:19:39 <DorpsGek> [OpenTTD/BaNaNaS] TrueBrain merged pull request #120: Change: migrate OpenTTD user NSR to GitHub user DonTheHorse https://github.com/OpenTTD/BaNaNaS/pull/120
19:20:10 <DorpsGek> [OpenTTD/nml] frosch123 approved pull request #268: Change: allow any expression for station (purchase_)prepare_layout https://github.com/OpenTTD/nml/pull/268#pullrequestreview-1103344399
19:22:09 <DorpsGek> [OpenTTD/OpenTTD] frosch123 merged pull request #10020: Feature: add shade widget to Object Selection UI panel https://github.com/OpenTTD/OpenTTD/pull/10020
19:26:10 <DorpsGek> [OpenTTD/OpenTTD] frosch123 merged pull request #10017: Fix weirdness of new stations. https://github.com/OpenTTD/OpenTTD/pull/10017
19:26:18 <petern> LordAro, I need new road tyres, should I go tubeless?
19:27:29 <andythenorth> nmlc info: Object items: 222/256
19:27:32 <andythenorth> hmm
19:28:50 <LordAro> petern: nah
19:28:58 <LordAro> or, only if you put tubes inside them
19:29:38 <DorpsGek> [OpenTTD/OpenTTD] frosch123 updated pull request #10019: Feature: add sticky pin to Object Selection UI panel https://github.com/OpenTTD/OpenTTD/pull/10019
19:29:41 <LordAro> my (2nd hand) experience with them is always "they're great until you have a problem, in which case your ride is ruined"
19:30:21 <LordAro> also you've got to carry spare tubes with you regardless
19:30:52 <andythenorth> thanks ^^ ๐Ÿ™‚
19:31:00 <LordAro> so if y9u're actually in a position where you're getting a real benefit from the reduced rolling resistance, you've probably got a car with spare wheels behind you
19:31:17 <petern> Heh
19:31:28 <petern> Marathon Plus should do ๐Ÿ˜‰
19:32:08 <petern> "Out of Stock", god damn it
19:32:21 <FLHerne> I swear by my Michelin Pro4s, they're just as indestructible as Marathons but less resistance
19:32:27 <FLHerne> the grip kind of sucks though
19:32:42 <petern> Nah, I have Marathons on the tourer, not on the summer bike.
19:33:10 <petern> Got Schwalbe One on at the moment, but I spotted a big gash today.
19:33:24 <FLHerne> I just have a bike for all purposes :p
19:33:38 <petern> I just have a bike for each purpose
19:34:01 <FLHerne> one bike hanging off the back of my little boat is enough of a pain
19:34:08 <FLHerne> I can't really start stacking them
19:35:43 <Wolf01> Hmmm, is it too soon to sleep?
19:36:18 <petern> 23mm, DO NOT WANT
19:36:30 <petern> Wolf01, only if you can't sleep.
19:39:11 <FLHerne> yeah, my next bike will definitely have clearance for larger tyres
19:39:19 <FLHerne> I'm almost tempted to go 650B or something
19:39:24 <FLHerne> in the meantime
19:39:28 <DorpsGek> [OpenTTD/nml] glx22 commented on pull request #268: Change: allow any expression for station (purchase_)prepare_layout https://github.com/OpenTTD/nml/pull/268#pullrequestreview-1103346202
19:41:16 <petern> Continental Pair Grand Prix 5000 Folding Tires 700x28c Black Cream Road Race - ยฃ213.51
19:41:19 <petern> HOW MUCH
19:41:35 <LordAro> lol
19:41:53 <LordAro> GP 4season do perfectly well on my commuter
19:42:15 <LordAro> they're not quite as bulletproof as marathons, but i've had very few issues in several years
19:42:17 <FLHerne> :o
19:43:18 <petern> Okay, ยฃ106 for a pair of GP5000 28c from CRC. Still a lot.
19:44:57 <petern> Tan wall seems to be making a comeback.
19:50:09 <DorpsGek> [OpenTTD/OpenTTD] frosch123 approved pull request #10022: Change: 'string' is spurious in 'Filter string:' https://github.com/OpenTTD/OpenTTD/pull/10022#pullrequestreview-1103347177
20:00:19 <petern> Ah LifeLine Essential, ยฃ9.99
20:04:53 <andythenorth> oops
20:05:03 <andythenorth> releasing FIRS requires actually shipping it ๐Ÿ˜›
20:07:08 *** arikover has quit IRC (Quit: ERC 5.4 (IRC client for GNU Emacs 28.1))
20:15:06 <DorpsGek> [OpenTTD/OpenTTD] frosch123 merged pull request #10019: Feature: add sticky pin to Object Selection UI panel https://github.com/OpenTTD/OpenTTD/pull/10019
20:24:29 <andythenorth> ok more TV?
20:24:30 <petern> With objects?
20:24:34 <andythenorth> or animate some objects
20:24:38 <andythenorth> with objects ๐Ÿ˜›
20:35:48 <DorpsGek> [OpenTTD/nml] frosch123 commented on pull request #268: Change: allow any expression for station (purchase_)prepare_layout https://github.com/OpenTTD/nml/pull/268#pullrequestreview-1103351479
20:45:47 <DorpsGek> [OpenTTD/nml] glx22 dismissed a review for pull request #268: Change: allow any expression for station (purchase_)prepare_layout https://github.com/OpenTTD/nml/pull/268#pullrequestreview-1103344399
20:45:50 <DorpsGek> [OpenTTD/nml] glx22 updated pull request #268: Change: allow any expression for station (purchase_)prepare_layout https://github.com/OpenTTD/nml/pull/268
20:45:53 *** nielsm has quit IRC (Ping timeout: 480 seconds)
20:46:46 <DorpsGek> [OpenTTD/nml] frosch123 approved pull request #268: Change: allow any expression for station (purchase_)prepare_layout https://github.com/OpenTTD/nml/pull/268#pullrequestreview-1103352204
20:49:55 <glx[d]> pff I forgot to run black
20:50:15 <andythenorth> I defined a FIRS parameter twice
20:50:24 <andythenorth> gung-ho level was 812% not 300% ๐Ÿ˜›
20:50:31 <andythenorth> over-lapping bits
20:51:16 <glx[d]> hmm not a fan of black decision here
20:51:35 <glx[d]> let's try to put the comment somewhere else
20:53:10 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
20:54:49 *** WormnestAndroid has joined #openttd
20:55:24 <andythenorth> black will black
20:56:37 <DorpsGek> [OpenTTD/nml] glx22 dismissed a review for pull request #268: Change: allow any expression for station (purchase_)prepare_layout https://github.com/OpenTTD/nml/pull/268#pullrequestreview-1103352204
20:56:40 <DorpsGek> [OpenTTD/nml] glx22 updated pull request #268: Change: allow any expression for station (purchase_)prepare_layout https://github.com/OpenTTD/nml/pull/268
20:57:18 <glx[d]> yeah black was ``` # Always copy values from "prepare_layout" into new registers, to prevent "default" from modifying them.
20:57:18 <glx[d]> self.feature != 0x04
20:57:18 <glx[d]> and isinstance(value, expression.StorageOp)
20:57:33 <DorpsGek> [OpenTTD/nml] frosch123 approved pull request #268: Change: allow any expression for station (purchase_)prepare_layout https://github.com/OpenTTD/nml/pull/268#pullrequestreview-1103353336
20:58:45 *** sla_ro|master has quit IRC ()
20:59:01 <andythenorth> ah the inlining comment thing ๐Ÿ˜„
21:00:59 <andythenorth> hmm
21:01:15 <andythenorth> using these FIRS objects in my games is not really a thing ๐Ÿ™‚
21:01:28 <andythenorth> the slightest little change shifts all the IDs for all the objects on the map
21:15:49 *** gelignite has quit IRC (Quit: Stay safe!)
21:16:22 <DorpsGek> [OpenTTD/nml] glx22 merged pull request #268: Change: allow any expression for station (purchase_)prepare_layout https://github.com/OpenTTD/nml/pull/268
21:45:48 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
22:03:28 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:28:35 <petern> https://cdn.discordapp.com/attachments/1008473233844097104/1018649285971161108/unknown.png
22:28:35 <petern> Oops ๐Ÿ˜„
22:38:30 *** WormnestAndroid has quit IRC (Remote host closed the connection)
23:19:06 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)