Config
Log for #openttd on 13th November 2022:
Times are UTC Toggle Colours
10:20:43  <petern> I get a few compile warnings on this.
10:35:01  <DorpsGek> [OpenTTD/OpenTTD] michicc commented on issue #10165: [Detail]: Finance Window - The financial summary can be confusing (5/6) https://github.com/OpenTTD/OpenTTD/issues/10165
10:38:21  <DorpsGek> [OpenTTD/OpenTTD] michicc commented on issue #10162: [Detail]: Finance window - Too large offset of the yellow text (3/6) https://github.com/OpenTTD/OpenTTD/issues/10162
10:40:10  <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #10162: [Detail]: Finance window - Too large offset of the yellow text (3/6) https://github.com/OpenTTD/OpenTTD/issues/10162
10:45:45  <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #10161: [Bug]: The texts are out of place with true type fonts https://github.com/OpenTTD/OpenTTD/issues/10161
10:59:12  <petern> I guess I should try fixing the indentation on the frame rate window.
10:59:47  <petern> It uses spaces in the strings to do it, instead of drawing in a different position.
11:00:03  <petern> Maybe I could add a string code that indents by the same width.
11:00:28  <petern> Might get tricky with layouters though.
11:26:03  <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #10161: [Bug]: The texts are out of place with true type fonts https://github.com/OpenTTD/OpenTTD/issues/10161
11:37:42  <andythenorth> string code for tab stops πŸ˜›
11:37:45  <andythenorth> or ems
11:40:34  <petern> Heh, actually {TAB} isn't a bad call :p
11:40:37  <petern> \t
11:40:51  <petern> But just for this one place... hmm, no :/
11:41:20  <petern> Hm, re #10161, I could bake the extra offset into the sprite, but that has to be done at the spriteloader level.
11:41:24  <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1041316850077794415/image.png
11:41:24  <andythenorth> we're not very consistent on indentation πŸ˜›
11:41:56  <petern> Requires is indented the same amount
11:42:00  <petern> Production just... isn't.
11:42:20  <petern> I thought I'd broken it tbh, but I checked and it's not indented before my changes either.
11:43:43  <petern> If i bake the offset into the spriteloader level, then it's 1) a global var, ew 2) i need to clear the sprite cache on any interface size change, not just changes between 1/2/4 levels.
11:43:57  <glx[d]> LordAro: But the actions ran fine
11:44:50  <andythenorth> petern: nah been like that forever πŸ™‚
11:44:52  <glx[d]> And it's on the cdn
11:44:53  <petern> (Or somehow traverse the sprite cache and tweak the offsets for ST_FONT)
11:45:06  <petern> andythenorth: Check TTD πŸ˜„
11:46:10  <petern> https://cdn.discordapp.com/attachments/1008473233844097104/1041318049258684456/image.png
11:46:23  <petern> Okay, so Requires is all on one line, and Production IS offset a little.
11:47:24  <petern> That bit is also broken for RTL, which I could fix as well...
11:58:37  <petern> https://cdn.discordapp.com/attachments/1008473233844097104/1041321186228969532/image.png
11:58:37  <petern> Maybe?
12:11:22  <petern> When you instinctively click on the right button in the close game window, but you've got RTL on...
12:26:41  *** WormnestAndroid has joined #openttd
13:30:33  *** wallabra has quit IRC
14:12:36  <TallTyler> Oh dear, seems I've been Zorged yesterday
14:16:52  <petern> πŸ™‚
14:18:28  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on issue #10162: [Detail]: Finance window - Too large offset of the yellow text (3/6) https://github.com/OpenTTD/OpenTTD/issues/10162
14:18:31  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler closed issue #10162: [Detail]: Finance window - Too large offset of the yellow text (3/6) https://github.com/OpenTTD/OpenTTD/issues/10162
14:19:16  <petern> Hah, I increased it because I thought it was better, didn't know about any other discussion πŸ˜‰
14:19:45  <TallTyler> I thought it was better too (and still think so)
14:19:47  <TrueBrain> it feels I got thrown under a bus there, dunno πŸ˜›
14:19:54  <TrueBrain> and yes, it is by far better πŸ™‚
14:20:06  <petern> It's okay though, it's a "we all agree with you" bus πŸ˜„
14:20:13  <TrueBrain> πŸ˜„ πŸ˜„
14:21:32  <TrueBrain> btw, we should remove those `:` from the infra window
14:21:34  <TrueBrain> that looks weird
14:21:44  <michi_cc[d]> TallTyler: Side note for the infrastructure window: Since the increased number of rail and road types, it really needs both scrolling and maybe expanding/collapsing.
14:21:44  <petern> Yup
14:21:45  <TrueBrain> shall I make a 1/9 ticket for that?
14:21:56  <petern> Hah
14:22:08  <TallTyler> The main point of the branch was to add a scrollbar, actually
14:22:28  <petern> Do you want to wait for my scroll-panel branch?
14:22:28  <TallTyler> Then I decided I'd make the formatting consistent while I was there
14:22:46  <TallTyler> I'd love to have you do more work for me πŸ˜‰
14:23:01  <TallTyler> How long until you PR it?
14:23:07  <petern> Scroll-panel is intended to be very generic
14:23:09  <petern> Well..
14:23:24  <TallTyler> The scrollbar is implemented on my branch so waiting would actually save you more work than me
14:23:28  <petern> I've rebased it and need to make it work again πŸ˜„
14:23:55  <petern> Not really as the scroll bar is built in to the scroll-panel
14:25:02  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on issue #10166: [Detail]: Finance window - Information about the interest rate is redundant now (6/6) https://github.com/OpenTTD/OpenTTD/issues/10166
14:25:05  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler closed issue #10166: [Detail]: Finance window - Information about the interest rate is redundant now (6/6) https://github.com/OpenTTD/OpenTTD/issues/10166
14:27:19  <petern> IMHO, that isn't pointless info just because it doesn't change... and it's not taking up space. So yes, closed πŸ˜„
14:30:24  <TallTyler> OpenTTD doesn't have dividends, right?
14:31:11  <TallTyler> I guess Villages Is Villages GS pays dividends though...how does the finance window account for money taken away by GS? Other?
14:31:38  *** supermop_Home has joined #openttd
14:48:45  <petern> What were you going to say?
14:50:38  <TallTyler> I was going to say that if dividends don't exist, not accounting for them can't possibly be a bug
14:50:53  <TallTyler> But I guess I'll change the string...
14:50:58  <petern> Right
14:51:00  <TallTyler> `MONEY GO UP BY THIS MUCH`
14:51:16  <TallTyler> `IF MONEY WENT DOWN BUILD COAL TRAINS`
14:51:18  <petern> But should it?
14:51:28  <TallTyler> `Delta` πŸ˜›
14:51:34  <petern> Potentially that "should be" a GS thing, however shares are so broken by default...
14:53:43  <TallTyler> I have a draft proposal (text, not a branch) for adding player wealth and a real ownership system, but it would require #8420 to keep track of your wealth when the client is offline
14:56:17  <TallTyler> Or I guess more accurately to recognize you when you log in and unlock your personal bank account
14:59:25  <andythenorth> can we link it to twitter?
14:59:27  <andythenorth> tell Elon
14:59:38  <andythenorth> how about we do an alt-bank via the game?
15:04:17  <TallTyler> Our own crypto-currency, which can only be spent in-game? Money will be even more worthless if you can carry it over between games
15:26:54  <petern> Gah, didn't mean to link 😦
15:47:20  <petern> Laptop STILL compiling it 😦
15:47:43  *** sla_ro|master has quit IRC
15:49:08  <dP> `Dimension icon;     ///< Dimenion of the company icon.`
15:49:08  <dP> feels wrong to call dimension "icon"
15:49:33  <dP> icon_size?
15:55:54  <LordAro> so... beta2 when?
15:56:11  <LordAro> after petern scrollbar thingy?
15:56:17  <LordAro> & other fixes
15:56:32  <petern> Scrollbar is not that progressed sorry.
15:56:38  <LordAro> :(
15:56:45  <petern> But I am working on a fix for the FreeType font issue.
15:56:55  <LordAro> πŸ‘
15:57:11  <LordAro> was there a quick fix for the scrollbars being 1px too wide?
15:57:15  <LordAro> in the meantime
15:57:29  <petern> They aren't?
15:57:42  <petern> It's the resize box, and that resize box has been 1px too wide since FOREVER...
15:57:48  <LordAro> ah
15:57:50  <petern> Although yes, there is ;D
16:01:59  <TallTyler> https://cdn.discordapp.com/attachments/1008473233844097104/1041382428817760296/truck.png
16:01:59  <TallTyler> Truck is too high?
16:02:10  <TallTyler> (TTD base set)
16:03:24  <petern> Yes, it's because the sprite is now centred in a different way. It was centred before, just differently, so it was less noticeable.
16:04:48  <petern> Basically there's no information stored in the GRF files that all those sprites are 20x20.
16:05:21  <petern> I could force it in the code, perhaps.
16:05:39  <petern> (That Big GUI NewGRF would then break, but who cares about that)
16:12:57  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler opened pull request #10168: Change: Requested changes to the Finance GUI https://github.com/OpenTTD/OpenTTD/pull/10168
16:14:46  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on issue #10163: [Detail]: Finance window - The location of total of revenues or expense seems not entirely legible and confusing (4/6) https://github.com/OpenTTD/OpenTTD/issues/10163
16:20:43  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #10157: Fix #10154: Don't inconsistently set random company face in network games https://github.com/OpenTTD/OpenTTD/pull/10157#issuecomment-1312768465
16:25:04  *** Flygon has quit IRC
16:27:52  <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #10169: Fix #10161: Ignore ascender in FallbackLayouter for non-built-in fonts. https://github.com/OpenTTD/OpenTTD/pull/10169
16:28:23  <petern> Dunno then, on 10157
16:29:04  <DorpsGek> [OpenTTD/OpenTTD] michicc approved pull request #10168: Change: Requested changes to the Finance GUI https://github.com/OpenTTD/OpenTTD/pull/10168#pullrequestreview-1178268052
16:29:16  <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #10168: Change: Requested changes to the Finance GUI https://github.com/OpenTTD/OpenTTD/pull/10168#issuecomment-1312770089
16:29:41  <DorpsGek> [OpenTTD/OpenTTD] michicc approved pull request #10157: Fix #10154: Don't inconsistently set random company face in network games https://github.com/OpenTTD/OpenTTD/pull/10157#pullrequestreview-1178268118
16:30:49  <petern> > The financial result is the difference between earnings before interest and taxes and earnings before taxes.
16:30:50  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler merged pull request #10157: Fix #10154: Don't inconsistently set random company face in network games https://github.com/OpenTTD/OpenTTD/pull/10157
16:30:52  <petern> Huh
16:30:54  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler closed issue #10154: [Bug]: PR #9895 can cause multiplayer desync on new company creation https://github.com/OpenTTD/OpenTTD/issues/10154
16:31:00  <dP> https://cdn.discordapp.com/attachments/1008473233844097104/1041389731528835202/Screenshot_from_2022-11-13_19-27-45.png
16:31:00  <dP> hm, master doesn't look right at all...
16:31:27  <petern> dP: Try with #10169
16:32:37  <dP> I'll try a bit later
16:33:10  <petern> It works-for-me but would be nice to have more eyes and get in before the nightly.
16:33:55  <dP> Wanted to test League tables after rebase but couldn't even get past main menuπŸ˜…
16:34:18  <petern> Pfft, you read the labels? Muscle memory is where it's at!
16:34:47  <DorpsGek> [OpenTTD/OpenTTD] michicc commented on pull request #10169: Fix #10161: Ignore ascender in FallbackLayouter for non-built-in fonts. https://github.com/OpenTTD/OpenTTD/pull/10169#pullrequestreview-1178268677
16:36:09  <dP> petern: GS UI also changed xD
16:36:45  <dP> More buttons now
16:36:59  <dP> Muscle memory failed
16:38:19  <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #10169: Fix #10161: Ignore ascender in FallbackLayouter for non-built-in fonts. https://github.com/OpenTTD/OpenTTD/pull/10169#pullrequestreview-1178269092
16:38:32  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #8304: Feature: Show the cargoes the vehicles can carry in the list window. https://github.com/OpenTTD/OpenTTD/pull/8304#pullrequestreview-1178269121
16:39:51  <DorpsGek> [OpenTTD/OpenTTD] michicc approved pull request #10169: Fix #10161: Ignore ascender in FallbackLayouter for non-built-in fonts. https://github.com/OpenTTD/OpenTTD/pull/10169#pullrequestreview-1178269299
16:40:48  <petern> Re that lLayout thing, it would be nice if the layouter
16:41:30  <petern> Re the layouter thing, it would nice if the layouter would point to the real font cache instance instead of the top-level, and broke the run up where necessary.
16:41:54  <petern> But that's a bit bigger in scope
16:42:53  <petern> Especially when I build with my svg font renderer it gets a bit messy  πŸ™‚
16:43:00  <michi_cc[d]> You mean like proper font fallback for the more exotic characters? 🀯
16:43:05  <petern> Basically, yes.
16:44:04  <petern> I installed the Debian build of OpenTTD on my laptop to check someone, and... it's 1.8. Oops.
16:44:13  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler opened issue #10170: Options GUI has no scrollbar https://github.com/OpenTTD/OpenTTD/issues/10170
16:45:22  <petern> msys2 is possibly even slower than my laptop.
16:46:14  <petern> TallTyler: of course if you want it to match TTD, then none of the button contents should shift when the button is pressed either.
16:46:43  <petern> I tried to strike a balance when referring back to how TTD lays things out πŸ™‚
16:46:58  <TallTyler> Are we talking about a scrollbar or something else...?
16:47:11  <TallTyler> Which button am I pressing to shift stuff?
16:47:25  <petern> The position of the truck on the toolbar menu.
16:47:54  <TallTyler> Oh gotcha
16:48:17  <TallTyler> That wasn't a complaint, just a "is this on purpose?" notification in case it wasn't πŸ™‚
16:48:38  <petern> Sure. It definitely bugged me when I was first making this, 18 months ago ;l)
16:49:04  <TallTyler> The truck needs smoke to match the train πŸ˜›
16:50:51  <petern> I'm sure LC-Zorg will have an essay to write about it πŸ™‚
16:57:46  <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #10168: Change: Requested changes to the Finance GUI https://github.com/OpenTTD/OpenTTD/pull/10168#issuecomment-1312775442
16:58:35  <TallTyler> Oh I misread your comment 🀦
16:59:32  *** sla_ro|master has joined #openttd
17:04:05  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler dismissed a review for pull request #10168: Change: Requested changes to the Finance GUI https://github.com/OpenTTD/OpenTTD/pull/10168#pullrequestreview-1178268052
17:04:08  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #10168: Change: Requested changes to the Finance GUI https://github.com/OpenTTD/OpenTTD/pull/10168
17:04:38  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #10168: Change: Requested changes to the Finance GUI https://github.com/OpenTTD/OpenTTD/pull/10168#issuecomment-1312777145
17:06:18  <TallTyler> Also a screenshot now exists, somehow I took one before but forgot to include it
17:06:24  <TallTyler> https://cdn.discordapp.com/attachments/1008473233844097104/1041398642445127821/changed.png
17:06:35  *** nielsm has joined #openttd
17:07:24  <petern> Oops, left my vinyl preamp on, dead battery 😦
17:10:38  <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #10169: Fix #10161: Ignore ascender in FallbackLayouter for non-built-in fonts. https://github.com/OpenTTD/OpenTTD/pull/10169
17:10:41  <DorpsGek> [OpenTTD/OpenTTD] PeterN closed issue #10161: [Bug]: The texts are out of place with true type fonts https://github.com/OpenTTD/OpenTTD/issues/10161
17:17:04  <petern> Phew, battery came in a two-pack, found the spare πŸ˜„
17:22:09  *** Wormnest has joined #openttd
17:24:12  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #8425: Feature: Contextual actions for vehicles grouped by shared orders https://github.com/OpenTTD/OpenTTD/pull/8425#pullrequestreview-1178274120
18:02:28  <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #10168: Change: Requested changes to the Finance GUI https://github.com/OpenTTD/OpenTTD/pull/10168#issuecomment-1312787417
18:08:58  <petern> Oh that's annoying, just found a group of dead pixels :/
18:44:47  <DorpsGek> [OpenTTD/OpenTTD] stormcone updated pull request #8304: Feature: Show the cargoes the vehicles can carry in the list window. https://github.com/OpenTTD/OpenTTD/pull/8304
18:48:35  <dP> petern: checked (master now), lgtm
18:50:29  <DorpsGek> [OpenTTD/OpenTTD] DorpsGek pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/553e5e6bbeff9dba694e4888786a9cf45f0cf0d8
18:50:30  <DorpsGek>   - Update: Translations from eints (by translators)
19:06:09  *** Wormnest has quit IRC
19:07:28  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #8304: Feature: Show the cargoes the vehicles can carry in the list window. https://github.com/OpenTTD/OpenTTD/pull/8304#pullrequestreview-1178284966
19:08:11  <andythenorth> liveries next
19:08:19  <petern> We have liveries
19:09:28  <andythenorth> chunky ones?
19:12:45  <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10001: Feature: [GS] Scriptable league tables https://github.com/OpenTTD/OpenTTD/pull/10001
19:12:53  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #10168: Change: Requested changes to the Finance GUI https://github.com/OpenTTD/OpenTTD/pull/10168
19:13:11  <dP> made it compile... now to understand how new gui methods actually work πŸ˜…
19:17:07  *** Wormnest_ has joined #openttd
19:17:18  <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10001: Feature: [GS] Scriptable league tables https://github.com/OpenTTD/OpenTTD/pull/10001#pullrequestreview-1178286008
19:18:17  <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10001: Feature: [GS] Scriptable league tables https://github.com/OpenTTD/OpenTTD/pull/10001#pullrequestreview-1178286114
19:19:27  <petern> Rect::Shrink is pretty simple, and is the most common case.
19:19:59  <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10001: Feature: [GS] Scriptable league tables https://github.com/OpenTTD/OpenTTD/pull/10001#pullrequestreview-1178286274
19:21:49  <dP> petern: I'm trying to figure out what's the proper way to do this now: <https://github.com/OpenTTD/OpenTTD/blob/18331b218769f47af32a9ca993e0e6ad4dd16f58/src/league_gui.cpp#L335>
19:24:06  <petern> I'll comment on the PR πŸ™‚
19:25:42  <DorpsGek> [OpenTTD/OpenTTD] michicc approved pull request #10168: Change: Requested changes to the Finance GUI https://github.com/OpenTTD/OpenTTD/pull/10168#pullrequestreview-1178286836
19:30:35  <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #10001: Feature: [GS] Scriptable league tables https://github.com/OpenTTD/OpenTTD/pull/10001#pullrequestreview-1178287324
19:30:58  <petern> ^ untested ofc
19:31:08  <nielsm> wow, so much going on
19:31:17  <nielsm> (I've been away for a week)
19:31:54  <dP> petern: I'll try it, ty
19:33:05  <petern> TBH I would like a way to be able to pass an array of widths and have a bunch of Rects spat out, but I've not done that πŸ™‚
19:34:24  <pickpacket> is there an Industry property that controls the probability of an industry closing down?
19:35:04  <pickpacket> https://newgrf-specs.tt-wiki.net/wiki/NML:Industries Looking at this there's the probability of generating new instance at map gen and in game
19:36:07  <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #10001: Feature: [GS] Scriptable league tables https://github.com/OpenTTD/OpenTTD/pull/10001#pullrequestreview-1178287923
19:36:29  <pickpacket> https://newgrf-specs.tt-wiki.net/wiki/IndustryDefaultProps#Appearance_Chances with these examples I set the probability of a tea tree farm appearing in game at 2, but at that value the farms close down at a higher rate than they spawn, subsequently becoming fewer and fewer over time
19:37:11  <pickpacket> I'm testing with a value of 5 now, and so far it looks like that gives a decent balance of closures and openings
19:38:09  <pickpacket> but then if I were to add another industry the chances of new farms being spawned would be reduced again... I would really like to control the probability of closures
19:39:23  <pickpacket> I've set the industry type to ORGANIC, which apparently has an effect. It just doesn't say anywhere what that effect is
19:40:32  <dP> hm, don't think I like that interface slider scales font...
19:40:32  <dP> I have preferred font size I want in the config already, I just want to scale buttons.
19:42:43  <dP> so if I want larger buttons now it seems I need to calculate downscaled font size
19:43:44  <pickpacket> actually 5 isn't even high enough...
19:43:59  <dP> or is button size still tied to font size? if I make it smaller will it shrink buttons?
19:47:41  <andythenorth> oof
19:47:44  * andythenorth sick
19:47:45  <andythenorth> boring
19:48:03  <pickpacket> andythenorth: aw, shucks. I hope you feel better soon :(
19:48:18  <andythenorth> pickpacket if you want to control industry closure you have to write your own code for it
19:48:27  <pickpacket> :(
19:48:28  <andythenorth> the available implementations so far are all shit
19:48:35  <andythenorth> the recommended route is to use a GS
19:48:38  <andythenorth> but eh
19:49:11  <pickpacket> I just want to find some sort of balance between spawning and de-spawning of instances
19:49:29  <JGR> The easy solution is to have both spawning and closure turned off
19:49:54  <pickpacket> JGR: I don't want that... I want my NewGRF to work with standard settings
19:50:06  <petern> In general the separate font scale was a problem as some things were scaled by one dropdown, and other things were scaled by the other.
19:50:18  <JGR> You don't need to change the settings to disable those from your GRF
19:50:31  <andythenorth> yes, just leave everything default for closure in that case
19:50:42  <petern> What would be useful would be the ability to change font-size in-game.
19:51:21  <pickpacket> JGR: would that only impact the industries in my own NewGRF then?
19:53:41  <TallTyler> Yes
19:59:13  <JGR> It seems to be callback 22 for whether an industry is allowed to be built, and callback 20 for production changes and closure
20:00:45  <JGR> Callback 29 that is
20:09:23  <pickpacket> I don't know how to use callbacks, and I've already sunk so much time into this... Not really in a mood to have to learn that :/ I was hoping to solve everything I need with configuration rather than programming
20:15:35  <TallTyler> All you need is ```
20:15:35  <TallTyler> graphics {
20:15:35  <TallTyler> /* Don't allow any production changes */
20:15:35  <TallTyler> build_prod_change: 16; // 100% production
20:15:35  <TallTyler> monthly_prod_change: CB_RESULT_IND_PROD_NO_CHANGE;
20:15:37  <TallTyler> random_prod_change: CB_RESULT_IND_PROD_NO_CHANGE;
20:15:37  <TallTyler> }
20:16:07  <TallTyler> In the industry item
20:16:20  <pickpacket> wait... is it the production change that controls de-spawning?
20:18:08  <nielsm> yes
20:18:25  <TallTyler> Yes, when primary industries reach the lowest level of production they close after a period of time. Secondary industries close if they haven't had any production in five years, but are also prevented from closing with this code
20:18:27  <TallTyler> https://www.youtube.com/watch?v=oesqMKv11hI
20:18:49  <TallTyler> ^ Explains very well how production works
20:20:20  <TallTyler> I should note that the code I posted also makes industry production never change based on service
20:21:04  <TallTyler> Both FIRS and my industry sets use boost cargos to increase production but that's all callback code and it gets a bit involved
20:21:23  <THEONEPIECEISREAL> XIS momento:
20:21:44  <THEONEPIECEISREAL> Insane industry
20:26:23  *** nielsm has quit IRC
20:33:05  <glx[d]> petern: and the font itself
20:33:30  <glx[d]> but complicated due to multi OS support required
20:34:20  <petern> That too, I was going to too look into it but decided the scope was already massive πŸ˜„
20:35:44  *** HerzogDeXtEr has quit IRC
20:35:57  <petern> Main issue is how font selectors are represented is different across platforms.
20:36:17  <petern> "main" πŸ˜„
20:42:15  <dP> https://cdn.discordapp.com/attachments/1008473233844097104/1041452956685439046/Screenshot_from_2022-11-13_23-41-07.png
20:42:15  <dP> hm, I shink by framerect but on some scaling there is no padding on the right
20:42:45  <dP> maybe some rounding issue or so
20:44:34  <petern> Probably not accounting for all spacing when you determine the width necessary
20:46:11  <dP> oh, right, I had wrong padding constants there
21:01:06  *** wallabra has joined #openttd
21:07:34  *** wallabra has quit IRC
21:08:46  *** wallabra has joined #openttd
21:11:04  *** wallabra has quit IRC
21:17:15  <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10001: Feature: [GS] Scriptable league tables https://github.com/OpenTTD/OpenTTD/pull/10001
21:18:32  *** wallabra has joined #openttd
22:42:31  *** Wolf01 has quit IRC
22:45:30  <petern> Well.
22:46:57  *** sla_ro|master has quit IRC
23:17:18  *** Tirili has quit IRC

Powered by YARRSTE version: svn-trunk