IRC logs for #openttd on OFTC at 2024-01-29
            
00:08:32 <DorpsGek> [OpenTTD/nml] zephyris opened pull request #315: Add: Support for faster ship speed 23 and acceleration 24 (OTTD #10734) https://github.com/OpenTTD/nml/pull/315
00:12:02 <_glx_> CompanyID and OwnerID are compatible but not the same, so a cast is needed
00:15:04 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler opened pull request #11917: Change: Make the unloading button toggle Transfer, not Unload All https://github.com/OpenTTD/OpenTTD/pull/11917
00:22:07 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler opened issue #11918: [Bug]: Roadtype flag NO_HOUSES ignored near stations https://github.com/OpenTTD/OpenTTD/issues/11918
00:22:29 <DorpsGek> [OpenTTD/nml] glx22 commented on pull request #315: Add: Support for faster ship speed 23 and acceleration 24 (OTTD #10734) https://github.com/OpenTTD/nml/pull/315#pullrequestreview-1847671777
00:22:32 <talltyler> I refuse to say how many times I've seen this bug and failed to report it ๐Ÿ˜›
00:24:46 <_glx_> pff of course it warns
00:25:10 <_glx_> but we don't check annotations ๐Ÿ˜‰
00:26:54 <DorpsGek> [OpenTTD/nml] zephyris updated pull request #315: Add: Support for faster ship speed 23 and acceleration 24 (OTTD #10734) https://github.com/OpenTTD/nml/pull/315
00:30:05 <DorpsGek> [OpenTTD/nml] glx22 opened pull request #316: Add: [Dependabot] introduce Dependabot to keep our workflows up-to-date https://github.com/OpenTTD/nml/pull/316
00:30:44 <_glx_> and I'll need a review
00:31:17 <_glx_> (the biggest issue with nml, lack of reviewers)
00:38:06 <DorpsGek> [OpenTTD/nml] glx22 approved pull request #315: Add: Support for faster ship speed 23 and acceleration 24 (OTTD #10734) https://github.com/OpenTTD/nml/pull/315#pullrequestreview-1847676958
00:46:28 <DorpsGek> [OpenTTD/nml] PeterN approved pull request #316: Add: [Dependabot] introduce Dependabot to keep our workflows up-to-date https://github.com/OpenTTD/nml/pull/316#pullrequestreview-1847679613
00:48:51 <DorpsGek> [OpenTTD/nml] glx22 merged pull request #316: Add: [Dependabot] introduce Dependabot to keep our workflows up-to-date https://github.com/OpenTTD/nml/pull/316
00:54:12 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #11919: Fix #11918: Roads should build only next to road stops, not any station type. https://github.com/OpenTTD/OpenTTD/pull/11919
00:54:29 <peter1138[d]> talltyler: please test, I haven't.
00:57:25 <peter1138[d]> Okay, I have tested it now, heh.
00:58:37 <peter1138[d]> (That'll be someone's space bar sure)
00:58:41 <_glx_> Roads or houses
00:58:49 <_glx_> the title is confusing
00:59:24 <peter1138[d]> Heh
00:59:26 <peter1138[d]> Too quick ๐Ÿ˜„
00:59:49 <peter1138[d]> Fixed title, can fix commit in merge ๐Ÿ™‚
01:00:27 <peter1138[d]> At least regression never tests NewGRF so that won't break.
01:01:40 <DorpsGek> [OpenTTD/OpenTTD] glx22 approved pull request #11919: Fix #11918: Houses should build only next to road stops, not any station type. https://github.com/OpenTTD/OpenTTD/pull/11919#pullrequestreview-1847685540
01:07:37 *** tokai|noir has joined #openttd
01:07:38 *** ChanServ sets mode: +v tokai|noir
01:08:51 <DorpsGek> [OpenTTD/nml] dependabot[bot] opened pull request #317: Upgrade: Bump the actions group with 4 updates https://github.com/OpenTTD/nml/pull/317
01:13:37 <peter1138[d]> Lots of nope ๐Ÿ™‚
01:14:20 *** tokai has quit IRC (Ping timeout: 480 seconds)
01:27:38 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #11919: Fix #11918: Houses should build only next to road stops, not any station type. https://github.com/OpenTTD/OpenTTD/pull/11919
01:27:41 <DorpsGek> [OpenTTD/OpenTTD] PeterN closed issue #11918: [Bug]: Roadtype flag NO_HOUSES ignored near stations https://github.com/OpenTTD/OpenTTD/issues/11918
01:42:26 <_glx_> oh nice
01:52:55 <talltyler> Thanks for the quick fix ๐Ÿ™‚
01:53:34 <_glx_> hmm I need to rewrite the workflows ๐Ÿ˜ฆ
02:22:07 <DorpsGek> [OpenTTD/nml] glx22 updated pull request #317: Upgrade: Bump the actions group with 4 updates https://github.com/OpenTTD/nml/pull/317
02:30:25 <DorpsGek> [OpenTTD/nml] glx22 updated pull request #317: Upgrade: Bump the actions group with 4 updates https://github.com/OpenTTD/nml/pull/317
02:32:38 <DorpsGek> [OpenTTD/nml] glx22 updated pull request #317: Upgrade: [Actions] Bump the actions group with 4 updates https://github.com/OpenTTD/nml/pull/317
02:50:43 <DorpsGek> [OpenTTD/nml] glx22 updated pull request #317: Upgrade: [Actions] Bump the actions group with 4 updates https://github.com/OpenTTD/nml/pull/317
02:55:29 <DorpsGek> [OpenTTD/nml] glx22 approved pull request #317: Upgrade: [Actions] Bump the actions group with 4 updates https://github.com/OpenTTD/nml/pull/317#pullrequestreview-1847752842
02:55:39 <DorpsGek> [OpenTTD/nml] glx22 merged pull request #317: Upgrade: [Actions] Bump the actions group with 4 updates https://github.com/OpenTTD/nml/pull/317
03:26:50 *** D-HUND has joined #openttd
03:30:14 *** debdog has quit IRC (Ping timeout: 480 seconds)
03:48:22 *** Flygon has joined #openttd
04:48:18 *** D-HUND is now known as debdog
05:05:49 *** keikoz has joined #openttd
05:15:08 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #11902: Feature: Infinite money mode https://github.com/OpenTTD/OpenTTD/pull/11902#issuecomment-1913977262
05:53:03 <emperorjake> truebrain: I don't have GOG on my Mac but apart from that everything seems to be in order ๐Ÿ™‚
05:53:14 <emperorjake> https://cdn.discordapp.com/attachments/1008473233844097104/1201404671055634492/image.png?ex=65c9b24a&is=65b73d4a&hm=e4d014968e35076bb0edcc25c2cd5a5debd7197d5be155dbafc334f1697fb013&
06:13:50 *** keikoz has quit IRC (Ping timeout: 480 seconds)
06:42:15 <truebrain> emperorjake: Thank you! That looks fine ๐Ÿ˜„
06:42:36 <truebrain> Well, no, GOG should have initialized
06:42:42 <truebrain> Even if you don't have it
06:42:47 <truebrain> What was the error?
06:46:59 <emperorjake> https://cdn.discordapp.com/attachments/1008473233844097104/1201418195387568128/image.png?ex=65c9bee3&is=65b749e3&hm=25a1d7cbcdbdf1820f08351e3873bd846003b0250037756cb6b88fef021ea191&
06:46:59 <emperorjake> Looks like a familiar problem
06:47:29 <truebrain> Odd, it should want to load libGalaxy64.dylib
06:47:37 <truebrain> Where did the 64 go to ...
06:47:51 <truebrain> Mind making that manual change (rename) and see if it works then?
06:51:17 <emperorjake> https://cdn.discordapp.com/attachments/1008473233844097104/1201419277606072370/image.png?ex=65c9bfe5&is=65b74ae5&hm=8f63991f1526ecf66e2244936ae167ff941a2bb81c4ae81fe95dff7fe638c5fa&
06:51:17 <emperorjake> Now it's saying invalid signature
06:52:21 <truebrain> Ah, yes, filenames are validated too
06:52:28 <truebrain> Okay .. interesting issue ..
06:52:48 <truebrain> We link against Galaxy64, but it wants to load Galaxyn..
06:52:54 <truebrain> Mysterious
06:53:43 <truebrain> Guess we rename it after extracting SDK, and see how that goes
06:53:57 <truebrain> Not today! Tnx for testing ๐Ÿ™‚
07:27:20 <DorpsGek> [OpenTTD/team] Finjet-cyber opened issue #482: [fi_FI] Translator access request https://github.com/OpenTTD/team/issues/482
07:45:27 <DorpsGek> [OpenTTD/OpenTTD] DefinitelyNotRau117 commented on pull request #11798: Fix #10118: Cycle through current signal group, not just path signals https://github.com/OpenTTD/OpenTTD/pull/11798#issuecomment-1914132095
08:05:27 <peter1138[d]> Me: turns off alarm to have a little lie-in.
08:05:34 <peter1138[d]> Me: wakes up before alarm anyway.
08:11:10 <locosage> oh, I have 7 open prs... time to remember how to write C++ again...
08:11:27 *** Compu has joined #openttd
08:12:17 *** Compu has quit IRC ()
09:00:19 <_zephyris> https://cdn.discordapp.com/attachments/1008473233844097104/1201451751237242890/image.png?ex=65c9de23&is=65b76923&hm=559d9c52886956db1e46a1247401c02c0787cc5a9b93d3c6f8bc544940216d26&
09:00:19 <_zephyris> Well, that works. Good stuff! ๐Ÿ‘
09:19:15 *** murr4y has quit IRC (Ping timeout: 480 seconds)
09:25:34 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #9637: Invert the effect of Ctrl press when dragging signals https://github.com/OpenTTD/OpenTTD/pull/9637
09:26:38 *** murr4y has joined #openttd
09:27:42 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #9637: Invert the effect of Ctrl press when dragging signals https://github.com/OpenTTD/OpenTTD/pull/9637#issuecomment-1914290415
09:32:10 <peter1138[d]> Anyone want to fix NPF for ships?
09:32:25 <LordAro> define "fix"
09:32:26 <peter1138[d]> ```==3196640== Uninitialised value was created by a stack allocation
09:32:26 <peter1138[d]> ==3196640== at 0x94BCD0: CheckReverseShip(Ship const*, Trackdir*) (src/ship_cmd.cpp:375)```
09:32:42 <LordAro> probably not too difficult?
09:32:47 <peter1138[d]> ```==3196640== Conditional jump or move depends on uninitialised value(s)
09:32:47 <peter1138[d]> ==3196640== at 0x94A30F: TrackDirectionToTrackdir (src/track_func.h:500)
09:32:47 <peter1138[d]> ==3196640== by 0x94A30F: Ship::GetVehicleTrackdir() const (src/ship_cmd.cpp:306)
09:32:47 <peter1138[d]> ==3196640== by 0x6B5F50: NPFShipChooseTrack(Ship const*, bool&) (src/pathfinder/npf/npf.cpp:1194)```
09:32:49 <peter1138[d]> etc ๐Ÿ˜„
09:33:52 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201460193750437908/image.png?ex=65c9e600&is=65b77100&hm=6fd4d671752fe46be62a575d795cc02997d93969ae0b22aece931190221f3dbd&
09:33:55 <peter1138[d]> That was a large commit.
09:38:22 <peter1138[d]> > upstream connect error or disconnect/reset before headers. reset reason: overflow
09:38:26 <peter1138[d]> Guess what that is?
09:50:20 <DorpsGek> [OpenTTD/OpenTTD] ldpl opened pull request #11920: Codechange: Make command constant names consistent with command proc https://github.com/OpenTTD/OpenTTD/pull/11920
09:51:18 <peter1138[d]> Why did you cross out the checklist?
09:52:09 <locosage> coz I checked it and none of it apply
09:52:23 <LordAro> we have this same argument at work
09:52:27 <peter1138[d]> That's the job of reviewers...
09:52:28 <LordAro> it's for the reviewer to check, not you
09:52:48 <locosage> it's for both
09:53:30 <LordAro> with the greatest respect, i don't think you get to make that determination
09:53:38 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201465166810845255/image.png?ex=65c9eaa1&is=65b775a1&hm=a15dad6eb24e03b5f0ee84dde2d687ececdd8f5667ab2deda939f29b1d2f7639&
09:54:23 <LordAro> i perfectly happily agree that most of the time it's completely irrelevant
09:54:26 <peter1138[d]> And it's more work for you to cross it off. So don't bother do it any more please ๐Ÿ™‚
09:54:46 <peter1138[d]> (Anyway the PR itself seems fine)
09:54:49 <xarick> ^_^ hello
09:56:29 <peter1138[d]> I've run out of coffee. Should I put another pot on, or use a lazy packet-cappuccino?
09:56:48 <locosage> considering I've been doing that for ages reviewers sure do that list often ๐Ÿ˜œ
09:57:06 <peter1138[d]> I've noticed other times too, yes.
10:01:21 <Eddi|zuHause> i don't drink coffee, but anything "lazy" i can subscribe to
10:06:11 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10004: Fix: Don't stop growth attempt if house is not allowed https://github.com/OpenTTD/OpenTTD/pull/10004
10:06:14 <DorpsGek> [OpenTTD/OpenTTD] ldpl closed pull request #10004: Fix: Don't stop growth attempt if house is not allowed https://github.com/OpenTTD/OpenTTD/pull/10004
10:06:34 <locosage> eh, what just happened...
10:07:57 <dwfreed> locosage: when you force pushed, the new branch head does not differ from the base branch
10:08:07 <dwfreed> https://github.com/OpenTTD/OpenTTD/pull/10004/commits
10:09:01 <dwfreed> since there's no more commits in the branch that need to be merged, the PR auto-closes
10:10:47 <peter1138[d]> I just remembered I have a cafetiรจre... so coffee it is ๐Ÿ˜„
10:20:19 <locosage> oh, I got lost in diffs...
10:20:41 <locosage> well, that's "helpful", how do I undo it all that now...
10:21:30 <dwfreed> just push your changes to the branch
10:21:38 <dwfreed> then you can re-open the PR
10:24:19 <locosage> yeah, except I messed up and now have divergent master...
10:25:26 <locosage> how do I just pull the branch disregarding all changes?
10:26:14 <LordAro> fetch & reset --hard origin/foo
10:29:38 <locosage> seemed to work, ty
10:29:45 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10004: Fix: Don't stop growth attempt if house is not allowed https://github.com/OpenTTD/OpenTTD/pull/10004
10:29:48 <DorpsGek> [OpenTTD/OpenTTD] ldpl reopened pull request #10004: Fix: Don't stop growth attempt if house is not allowed https://github.com/OpenTTD/OpenTTD/pull/10004
10:38:33 <xarick> #10490 good first issue - good for newcomers
10:38:33 <xarick> ... but it's actually controversial
10:41:55 <peter1138[d]> Are you fixing it then?
10:42:19 <peter1138[d]> (Check for owner and check for loading)
10:42:53 <peter1138[d]> The specific purpose of the check is to avoid lots of pathfinder calls all at once. That might not even be necessary now.
10:44:12 <peter1138[d]> But leaving it in is probably more expected now.
10:46:26 <xarick> I'd like my AIs to work, but that's an extreme bias opinion
10:47:57 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #10490: [Bug]: Ships loading at a dock block ships from leaving a depot on the adjacent tile https://github.com/OpenTTD/OpenTTD/issues/10490
10:55:23 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201480709030805554/image.png?ex=65c9f91b&is=65b7841b&hm=8b24b871fbe7534aaea7420b1dce1dd13184a25ef214b19cab01838430f60451&
10:55:23 <xarick> My issues!
10:58:27 <xarick> 10156 is another controversial one, but there's only me complaining.
11:00:08 <xarick> 10379 - gonna check it out if it's still the case now, without start_date
11:03:36 <peter1138[d]> I can tell you now it is possible.
11:04:08 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #11224: Add: [GS] Allow to set max loan for each company separately https://github.com/OpenTTD/OpenTTD/pull/11224
11:04:40 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #11224: Add: [GS] Allow to set max loan for each company separately https://github.com/OpenTTD/OpenTTD/pull/11224#issuecomment-1914460044
11:06:39 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #11224: Add: [GS] Allow to set max loan for each company separately https://github.com/OpenTTD/OpenTTD/pull/11224
11:07:45 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #11224: Add: [GS] Allow to set max loan for each company separately https://github.com/OpenTTD/OpenTTD/pull/11224
11:13:31 <xarick> seems to be solved
11:13:57 <xarick> OnTick_Companies code is vastly different
11:14:02 <xarick> than what it used tobe
11:19:24 <peter1138[d]> In multiplayer I managed to have 15 AI companies, when the limit was 14.
11:22:18 <xarick> oh ๐Ÿ˜ฆ
11:22:36 <xarick> 15? but how? dont you take 1 company for humans?
11:25:48 <peter1138[d]> I spectated.
11:26:21 <peter1138[d]> Then I wasn't watching, but I assume my company went bust at some point.
11:26:37 <peter1138[d]> Or more likely was autocleaned, it didn't take very long.
11:28:45 <peter1138[d]> Actually it's possible that an AI went bust, and a new AI was started but as company 1.
11:29:21 <peter1138[d]> So that the AIs were from 1 to 15 but one slot in the middle was empty. Possible. I didn't check that well enough.
11:34:26 <merni> rubidium42viaGitHub: Ah, crap. I knew there would be something I hadn't tested
11:39:50 <xarick> I can't seem to reproduce the issue
11:40:08 <xarick> very odd
11:41:44 <xarick> maybe I'm using different defaults...
11:45:13 <xarick> nop, can't reproduce... that's interesting
11:46:27 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201493559111594054/image.png?ex=65ca0513&is=65b79013&hm=d83d973ec1c6d9198fe2e82a98a1613d94d1718eb5b046d517275d5bd3990697&
11:46:27 <xarick> default openttdcfg looks awful
11:46:51 <xarick> oh, it uses hw accel even
11:47:21 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201493787214626816/screenshot27.png?ex=65ca0549&is=65b79049&hm=f8dc03622ff14327ac2652abafb0887a512fa65436a0a95475c8b3e9ca827565&
11:47:21 <xarick> from in-game screenshot
11:48:13 <LordAro> is that your broken HDR again?
11:48:48 <xarick> yes
11:49:10 <peter1138[d]> I think he means OpenTTD Sans at 1.25x scale (or close to) looks bad.
11:49:30 <xarick> yes, looks a bit on the blurry side
11:49:44 <xarick> and those squares around tilesets so big
11:50:05 <peter1138[d]> Well, that's because the images don't scale but the buttons do.
11:50:36 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201494605569458217/image.png?ex=65ca060c&is=65b7910c&hm=8b9a30c822f6b6bc3caa1cae605a8b5af12d93062473f7eeb512085dbc02c001&
11:50:36 <peter1138[d]> I happen to have a patch for this...
11:52:06 <peter1138[d]> OpenTTD Sans would need lots of hinting to make it not blurry at 1.25x, and some truetype renderers may ignore hinting. Maybe it's possible in bulk but I'm not sure.
11:53:23 <peter1138[d]> I do wonder if Auto-detect size should be based on window size rather than Windows' DPI setting.
11:53:36 <peter1138[d]> Pitchforks though.
11:53:59 <xarick> windows dpi is 125%
11:54:30 <peter1138[d]> OpenTTD uses that directly these days, it's not necessarily useful.
11:55:19 <xarick> I tried virtual super resolution and found out I would need a 200% dpi to be able to read anything
11:55:29 <xarick> on a 4k
11:55:42 <xarick> don't have a real 4k monitor
11:55:57 <peter1138[d]> Yes... that's what higher resolutions do...
11:56:10 <peter1138[d]> If you have a 40" 4K screen you might not need it ๐Ÿ˜„
11:56:10 <reldred> windows scaling is disgusting
11:57:52 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201496430871851008/image.png?ex=65ca07bf&is=65b792bf&hm=5cc67cff21b3de35a7470bc68b74df69a85f4f3c41d78cef2e96e6f2a8339ef9&
11:57:52 <peter1138[d]> An SVG version of this would be nice ๐Ÿ˜„
11:59:33 <peter1138[d]> A 4x bitmap version of it might be enough, they scale down to fractional sizes a bit better.
11:59:56 *** maxshpuntozavr has joined #openttd
11:59:56 <maxshpuntozavr> peter1138[d]: miami
12:00:29 <peter1138[d]> Bless you.
12:03:53 <peter1138[d]> Fractional widget sizes... hmm.
12:04:01 <peter1138[d]> Subpixels ๐Ÿ˜„
12:14:21 <xarick> I don't understand why I can't reproduce more than 5 admiral ais in multiplayer, given that it's still queueing multiple start ai commands
12:14:39 <xarick> did you change the network queueing somehow?
12:14:50 <xarick> packet handling
12:14:53 <xarick> or whatever
12:19:03 *** keikoz has joined #openttd
12:21:06 <xarick> looks resolved!
12:21:26 <xarick> for some weird reason unknown to me
12:24:47 <xarick> ah, I see what TrueBrain did
12:25:02 <xarick> he removed the 1 tick delay between commands
12:26:05 <xarick> he indirectly solved #10379 by doing so, and also the removal of start_date helps with that
12:26:18 <peter1138[d]> Yeah I think I must have imagined this.
12:26:51 <xarick> he queues starting of companies one after another, without a tick interval that used to be there
12:27:06 <peter1138[d]> Although AI settings does show "Random AI" for the first slot.
12:27:07 <xarick> that tick was sufficient to have admiralai queue its own commands there
12:28:12 <xarick> but without that waiting tick, it "solves" the problem. And without start_date = 0 in the next set of companies, this should not occur any longer, only at the start of a game
12:28:21 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler dismissed a review for pull request #11902: Feature: Infinite money mode https://github.com/OpenTTD/OpenTTD/pull/11902#pullrequestreview-1847574591
12:33:32 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick closed issue #10379: [Bug]: More than max_no_competitors could be created in network games https://github.com/OpenTTD/OpenTTD/issues/10379
12:33:35 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick commented on issue #10379: [Bug]: More than max_no_competitors could be created in network games https://github.com/OpenTTD/OpenTTD/issues/10379
12:33:42 <talltyler> \o/
12:34:57 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #11920: Codechange: Make command constant names consistent with command proc https://github.com/OpenTTD/OpenTTD/pull/11920#pullrequestreview-1848568114
12:36:51 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #9637: Invert the effect of Ctrl press when dragging signals https://github.com/OpenTTD/OpenTTD/pull/9637#pullrequestreview-1848574083
12:38:12 <locosage> fyi #11920 will create conflicts for #9637 if merged before it
12:38:33 <locosage> nothing I can't solve if I'm around ofc
12:39:07 <_zephyris> peter1138[d]: It is already hinted, but the scaling to 1.25x is going to be pretty terrible no matter what. Plenty of 1x on pixel boundary lines will end up exactly half-way between pixel boundaries, therefore unhintable/uncorrectable. It's an inherent tradeoff, to make it look pixel perfect at 1x it needs to stick strongly to the pixel outlines, which degrades the performance at non-integer
12:39:07 <_zephyris> scaling. Sorry!
12:39:53 <locosage> ah, it'll also conflict the other way around one needs to be fixed anyway
12:41:24 <peter1138[d]> 11920 is obvious, 9637 affects users spacebars.
12:41:40 <DorpsGek> [OpenTTD/OpenTTD] glx22 merged pull request #11920: Codechange: Make command constant names consistent with command proc https://github.com/OpenTTD/OpenTTD/pull/11920
12:42:30 <talltyler> peter1138[d]: It does, but is well-supported in the PR comments, which gives the pitchforks multiple targets ๐Ÿ˜›
12:42:30 <_glx_> Oh didn't see the messages
12:42:52 <locosage> np, I'll update #9637 once I'm done with num hidden
12:47:45 <merni> Okay so `GetAvailableMoneyForCommand` feels like it belongs rather in `company_cmd.cpp` than in `command.cpp`, as the other functions regarding "the amount of money a company has for the command" are in the former
12:48:20 <talltyler> DP: To enforce deity mode, don't you want `EnforceDeityMode(false);` ?
12:48:29 <merni> Wrong person :p
12:49:08 <talltyler> (edited for those on IRC ๐Ÿ˜› )
12:49:28 <locosage> still wrong :p
12:49:43 <talltyler> `false` is deity mode?
12:49:45 <merni> DP is not dP
12:50:05 <locosage> talltyler: maybe,
12:50:06 <locosage> Layers:
12:50:06 <locosage> Shifts:
12:50:31 <locosage> i'll take a look later
12:51:13 <locosage> trying to remember wth was I even doing in #10538 rn xD
12:51:28 <_glx_> `false` is the return value in case of error
12:51:37 <_glx_> IIRC
12:51:55 <talltyler> `@param returnval The value to return on failure.`
12:52:20 <talltyler> Ah, because the function is a bool
12:52:22 <talltyler> Interesting
12:52:46 <_glx_> It also sets error status
12:52:51 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #11224: Add: [GS] Allow to set max loan for each company separately https://github.com/OpenTTD/OpenTTD/pull/11224#pullrequestreview-1848606792
12:54:18 <peter1138[d]> That is quite confusing ๐Ÿ™‚
12:56:12 <_glx_> Similar to `EnforcePrecondition`
12:57:01 <talltyler> I expect those to read like unit tests, where you pass the expected result as a parameter ๐Ÿ™‚
12:57:23 <talltyler> But no, I should read the documentation better ๐Ÿ˜›
12:57:45 <peter1138[d]> Or asserts, yeah.
12:58:38 <merni> Is there any reason for a comment to begin with `/*!` rather than `/**` ? Four of them in `command.cpp` do
12:58:56 <peter1138[d]> Not really, it's just a different doxygen style.
12:59:06 <merni> so it's valid?
12:59:07 <LordAro> poor review
12:59:16 <_glx_> Command.cpp is very old
12:59:27 <peter1138[d]> 2007, so predates review.
12:59:32 <merni> woo
12:59:42 <LordAro> hehe
13:00:06 <talltyler> CODINGSTYLE.md does not include it as an allowed style: https://github.com/OpenTTD/OpenTTD/blob/master/CODINGSTYLE.md#documentation
13:00:14 <peter1138[d]> Hmm, should I separate LRU the viewport and interface sprite caches?
13:00:29 <merni> All right then I will change it in the bit I'm changing to avoid commit checker possibly yelling at me
13:01:08 <peter1138[d]> I don't think it will, but if you fancy doing so you can change them all in one go ๐Ÿ˜‰
13:01:20 <merni> Sure, that's also possible
13:01:47 <talltyler> They also show up in `json.hpp`, which should probably be left alone because it's not ours
13:01:58 <peter1138[d]> I'm always amused by CODINGSTYLE.md using the old widget description stuff ๐Ÿ˜„
13:02:15 <talltyler> (unless that's the point of including it in our repo, so we can maintain our own copy)
13:02:15 <peter1138[d]> Ah yeah, if you do don't touch 3rdparty ๐Ÿ™‚
13:02:22 <_glx_> It only does for ` #if` vs `# if`
13:02:33 <merni> peter1138[d]: I am only changing in command.cpp (for now)
13:05:04 <peter1138[d]> God the old widget list was annoying. Dimensions specified as `left, right, top, bottom` instead of the more logical `left, top, width, height`. Irrelevant now ๐Ÿ˜„
13:05:17 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10538: Show the number of hidden vehicles on the button https://github.com/OpenTTD/OpenTTD/pull/10538
13:08:18 *** cptm1100 has joined #openttd
13:08:18 <cptm1100> hello guys, can you please add a way to build a metro system in openttd?
13:08:59 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10538: Show the number of hidden vehicles on the button https://github.com/OpenTTD/OpenTTD/pull/10538#pullrequestreview-1848637504
13:11:04 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10538: Show the number of hidden vehicles on the button https://github.com/OpenTTD/OpenTTD/pull/10538#pullrequestreview-1848641346
13:14:47 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10538: Show the number of hidden vehicles on the button https://github.com/OpenTTD/OpenTTD/pull/10538#pullrequestreview-1848648428
13:16:22 <merni> cptm1100: That would be extremely difficult due to limitations of the design of this 20-year-old game based on a 30-year-old game :p
13:16:47 <merni> you can do so-called metro systems using some newgrfs though
13:17:09 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #9637: Invert the effect of Ctrl press when dragging signals https://github.com/OpenTTD/OpenTTD/pull/9637
13:30:25 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10538: Show the number of hidden vehicles on the button https://github.com/OpenTTD/OpenTTD/pull/10538#pullrequestreview-1848680330
13:36:35 *** r24309 has quit IRC (Quit: User went offline on Discord a while ago)
13:44:33 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201523279102480404/image.png?ex=65ca20c0&is=65b7abc0&hm=157c1c41811f66358e3b416eb80cc5481889adb02437610d7df3ace73b1343c9&
13:44:33 <xarick> without anti-alias is not ok
13:45:27 <peter1138[d]> Set your scale to 1x and ignore it :p
13:48:49 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201524353540575334/image.png?ex=65ca21c1&is=65b7acc1&hm=4c111742cadff1ce4e1adf1a1024384639c3accb315d4681db9d17eec1b3b414&
13:48:49 <xarick> seriously?
13:49:05 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10538: Show the number of hidden vehicles on the button https://github.com/OpenTTD/OpenTTD/pull/10538
13:49:41 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10538: Show the number of hidden vehicles on the button https://github.com/OpenTTD/OpenTTD/pull/10538#pullrequestreview-1848719067
13:50:06 <locosage> talltyler: I think I addressed everything in #10538 now
13:51:13 <locosage> also #10004 is not waiting on author
13:51:19 <locosage> or, at least author is not aware :p
13:51:31 <xarick> who's the author
13:51:42 <locosage> me ;)
14:07:48 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201529128831168532/image.png?ex=65ca2633&is=65b7b133&hm=0a1e34037810c07b9b0ea0062ee5bb6ed88e88f5bd063f0d4f40d852d7cf6e64&
14:07:48 <xarick> I miss this
14:08:03 <xarick> tried to rebase... baam, 30 conflicts
14:10:27 <xarick> not the start_date, mind you, I actually like that it's gone
14:12:17 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201530259401621566/image.png?ex=65ca2741&is=65b7b241&hm=e10705a761603dbe6fed89132dce8dc65415b10c11a510fc2da9ceef65bf2c35&
14:12:17 <xarick> this is what we have now ๐Ÿ˜ฆ
14:15:09 <xarick> where am I gonna put the start AI button
14:17:54 <xarick> I still don't appreciate the idea of grayed out slots
14:32:20 <xarick> AAAHogEx is on version 60 already ๐Ÿ™‚
14:38:38 *** nielsm has joined #openttd
14:41:33 <peter1138[d]> xarick: Sometimes it's easier to rewrite with the old patch as a reference.
14:42:12 <peter1138[d]> xarick: What's the problem with them?
14:42:45 <xarick> freedom
14:43:02 <peter1138[d]> The problem is freedom? That doesn't make any sense.
14:43:35 <xarick> i can setup scripts
14:43:56 <xarick> without being limited by the max no competitors
14:44:04 <talltyler> Oops, made an infinite while loop ๐Ÿ˜›
14:44:22 <xarick> and then i could just click start ai
14:44:39 <peter1138[d]> Do you mean the problem is you can't configure an AI until you increase the maximum number of AIs?
14:44:40 <xarick> on my version there's a start / stop ai
14:44:55 <peter1138[d]> ^ That is the sort of reason I expect rather than "freedom"
14:45:10 <xarick> and started ais are also grayed out ๐Ÿ˜
14:45:15 <xarick> means i can't stop them
14:45:37 <xarick> i cant check their settings, at least from this window
14:45:58 <peter1138[d]> Well, you know what to do.
14:46:45 <xarick> freedom to start, stop configure move, etc... configs at will
14:47:22 <xarick> there are certain limitations
14:47:29 <xarick> and I'm aware of them
14:47:48 <xarick> I took great care of dealing with such freedom
14:48:27 <peter1138[d]> Obviously not enough because you can't do that in master.
14:50:50 <xarick> i could have all 15 AI parameter windows opened at once
14:51:39 <peter1138[d]> Ok?
14:53:12 <peter1138[d]> Hmm, if you increase the number of AIs, when do they start... starting?
14:53:39 <peter1138[d]> Does interval have to be higher than 0?
14:53:59 <xarick> if it was 0, it would start immediately
14:54:04 <xarick> as soon as you increased
14:54:09 <peter1138[d]> It is 0, but it doesn't.
14:54:25 <xarick> oh
14:54:40 <peter1138[d]> I increased it to 1 and an AI started.
14:54:43 <xarick> maybe there's a countdown yet on the old version
14:55:30 <xarick> when there's no more slots, it used to add 365 days countdown before next try
14:55:46 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201541201896165496/image.png?ex=65ca3172&is=65b7bc72&hm=15630df1e3c6e873f09c08920435e2cc245fb0ce2cfae2c3b5f6c563a6ffaabf&
14:55:46 <peter1138[d]> That might not be the correct viewport location ๐Ÿ˜ฎ
14:57:13 <peter1138[d]> Anyway, improvements welcome to AI settings. Just don't try to do too much in one go, and explain your reasons better than "freedom"...
14:57:45 <xarick> ๐Ÿ™‚
15:03:00 <merni> W. E. Pilkington ๐Ÿ˜†
15:03:10 <merni> Why are the random names so funny
15:03:33 <peter1138[d]> I don't even know what's funny about that one ๐Ÿ˜ฎ
15:03:41 <merni> Idk it just sounds funny to me
15:05:08 <merni> The town names like "Slunfingfield" and "Tondford" (both actual examples I've had) also sound funny to me
15:05:30 <merni> maybe I just find british names funny?
15:08:45 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201544470743756930/image.png?ex=65ca347d&is=65b7bf7d&hm=8fe6d342c3d139552d19e3c1c55f786aa179c1f50e2db13cd9332701c72d55cb&
15:08:45 <xarick> is it just me or random deviation did not occur
15:10:50 <peter1138[d]> Dunno, never heard of it. But this code is terrible.
15:11:06 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201545059460448286/image.png?ex=65ca3509&is=65b7c009&hm=0133d83b861d4864a5a6c5a5ebef2ac68d56fadd36d09108e485ab9a4e4fe392&
15:11:06 <peter1138[d]> Magic numbers all over the place.
15:11:26 <LordAro> nice
15:11:44 <DorpsGek> [OpenTTD/OpenTTD] merni-ns updated pull request #11902: Feature: Infinite money mode https://github.com/OpenTTD/OpenTTD/pull/11902
15:11:49 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201545242327924736/image.png?ex=65ca3535&is=65b7c035&hm=fd929307efe55ceb86f62fbb1ce9fdd207678fc355ebf9e974457d037607c928&
15:11:49 <peter1138[d]> ๐Ÿ™‚
15:12:02 <merni> Hum. Let's see if I added extra whitespace again
15:12:25 <merni> I did not
15:17:23 <xarick> holy moly... randomizer returns 5 3 times in a row
15:17:45 <xarick> it did actually added random deviation, and turned out to be the exact value as default
15:17:51 <xarick> 3 times!
15:18:06 <LordAro> randomness is often unintuative
15:18:42 <DorpsGek> [OpenTTD/OpenTTD] merni-ns commented on pull request #11902: Feature: Infinite money mode https://github.com/OpenTTD/OpenTTD/pull/11902#issuecomment-1914913623
15:20:30 <xarick> there were recent changes to randomizer, I wonder if it's broken
15:20:38 <xarick> guess not
15:20:44 <merni> That codechange just about doubled the size of the PR
15:27:11 *** Wormnest has joined #openttd
15:34:01 <merni> Hm.
15:34:37 <merni> GS directly reads `Company::Get(company)->money`...
15:34:38 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #11902: Feature: Infinite money mode https://github.com/OpenTTD/OpenTTD/pull/11902#pullrequestreview-1848948903
15:36:40 <merni> and it does `EnforcePrecondition(false, (loan - GetLoanAmount() + GetBankBalance(COMPANY_SELF)) >= 0);`
15:37:00 <merni> So, AI/GS will not be able to use this mode at present...?
15:38:27 <merni> xarick: , could you write me a test AI that tries to run itself out of money? say by buying 50 trains
15:44:06 *** keikoz has quit IRC (Ping timeout: 480 seconds)
15:49:57 <merni> Bah, vehicle renewal also checks money directly
15:50:11 <merni> `if (needed_money > c->money) return false;`
15:50:52 <merni> *twice* in the same function, too
15:58:58 <talltyler> That could be refactored to a function call pretty easily, no?
15:59:07 <merni> It already is :)
15:59:17 <merni> Just those location do not use that function for whatever reason
15:59:40 <talltyler> You could probably search `c->money` to find potential issues
15:59:44 <merni> I did yeah
15:59:51 <merni> Those two are the only real issues
16:00:13 <merni> Apart from that there are instances of writing to c->money for various purposes but that doesn't matter here
16:00:59 <merni> Regarding AI I wonder if this feature *should* be extended to AI or not
16:01:25 <merni> Some AI might go crazy and build rails over the entire map or something
16:04:30 <_jgr_> It doesn't really make sense to have AI in a sandbox environment at all
16:04:44 <merni> Yeah, I agree
16:05:13 <merni> But... it is a possibility so has to be handled either one way or the other
16:06:02 <_jgr_> If players can do stuff for "free" then there doesn't seem a reason to exempt AI "players" from that?
16:06:35 <_jgr_> If users choose to enable AIs that build rubbish it's their own problem, after all
16:06:47 <merni> I guess that's true
16:07:50 <_glx_> if money is infinite it's for everything, AI included
16:12:19 <merni> okay
16:15:26 <talltyler> A valid usecase would be town cars, which usually depend on a toy library to avoid bankruptcy already
16:21:12 <xarick> i have a gs that buys 1 million vehicles
16:21:18 <xarick> but he gives money to itself
16:21:33 <peter1138[d]> Quantitive Easing.
16:22:21 <xarick> let me edit
16:23:03 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006
16:24:24 <xarick> should it take loan too?
16:24:39 <xarick> waste money from max loan?
16:26:20 <merni> https://github.com/OpenTTD/OpenTTD/blob/acaceb45bacf076e00a5570ae5a1639ada500b75/src/script/api/script_company.cpp#L209
16:26:20 <merni> Hm, do I need to worry about overflow here? I was thinking of using the other function which returns `INT64_MAX` in case of infinite money, but here there is something added to that and it would probably overflow. (Which it could theoretically do already?) Maybe a clamp is needed...
16:26:20 <merni> Btw, the only place where GS/AI checks the money directly is in `ScriptCompany::SetLoanAmount` (in other places it seems to go through the regular commands/company functions) so that should not actually affect the functionality already.
16:26:58 <merni> xarick: Either way is fine there, I can always set the max loan to a very low value
16:27:54 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006
16:28:53 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006
16:29:20 <_jgr_> merni: The Money type is supposed to handle overflows by saturating, so it should be fine
16:29:31 <merni> Ah, that's nice
16:30:34 <merni> I guess that's why the other function was already safely returning INT64_MAX when called without a valid company
16:31:05 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006#pullrequestreview-1849111798
16:37:28 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201566794964541500/DummyAIGS.zip?ex=65ca4947&is=65b7d447&hm=849c066d8703bf3fd14ffbcc4bb6f7c6a1bcb2822656161e785fe8a183e937a5&
16:37:28 <xarick> should do
16:37:34 <xarick> it's a GS
16:38:51 <merni> I don't know if it would work for GS...do GS spend money?
16:39:14 <merni> they are not companies
16:40:10 <_jgr_> GSs can spend money and do other things on behalf of other companies
16:40:29 <_jgr_> Though in practice this functionality is rarely (if ever) actually used
16:45:54 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006#pullrequestreview-1849161027
16:52:45 <merni> The script crashed
16:52:52 <merni> > dbg: [misc] [squirrel] Failed to compile '/home/user/.local/share/openttd/ai/dummyaigs/info.nut'
16:52:52 <merni> > dbg: [script] [18] [S] Your script made an error: assertion failed
16:52:52 <merni> > dbg: [script] [18] [S]
16:52:52 <merni> > dbg: [script] [18] [S] *FUNCTION [Start()] /home/user/.local/share/openttd/game/dummyaigs/main.nut line [561]
16:52:52 <merni> And then a bunch of stuff
16:54:04 <merni> But it did buy 500 lorries and drove me way into negative money so at least that bit works :)
16:54:08 <merni> That's all I needed really
16:55:23 <merni> so thanks!
16:56:31 <xarick> ah, thats the heliport issue
16:56:45 <xarick> start the game in 1950 or so, before heliports
16:56:58 <merni> No need, the bit that needed to work worked :)
16:57:48 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006#pullrequestreview-1849222096
16:59:49 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006#pullrequestreview-1849232460
17:00:30 <merni> OK, so I need to generalise `GetAvailableMoneyForCommand` so that it works for any company, not just the current one. Is it better to add a required parameter and change all the existing callers (there are only five) or to add a default parameter?
17:00:50 <merni> If the latter, what's a safe value to use as a default for CompanyID?
17:01:08 <merni> INVALID_COMPANY?
17:01:39 <_jgr_> Why does it need to be avialble for companies other than the current one?
17:01:42 <_jgr_> It's for commands
17:02:06 <merni> Well, so I can use it and not duplicate the check in two other places that don't use the current company
17:02:38 <_jgr_> Change GetAvailableMoneyForCommand so that it calls your parameterised function with _current_company as the parameter
17:02:41 <merni> It literally just returns Company::Get(company)->money (or INT64_MAX in case of infinite money or invalid companies)
17:03:46 <merni> _jgr_: Hm. At that point why not just rename it as `GetAvailableMoney` with a required parameter? There is no specific logic that goes on there anyway that wouldn't be applicable in other context... it just accesses the money
17:05:58 <_jgr_> I suppose, probably one for the reviews to issue their decree on
17:11:50 <merni> I guess the question is, is there any context in which "money which can be used to execute a command" is different from "money" in general? Right now, it is not, but is there any point in retaining that distinction?
17:20:00 <_jgr_> The cases where that is necessarily generally just temporarily modify the money value, or have special casing like company bankruptcy
17:20:21 <_jgr_> I was thinking more from the point of GetAvailableMoneyForCommand implicitly ensuring that the correct company ID is used for command scope
17:21:19 <merni> Passing `_current_company` is surely not that hard :)
17:21:25 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006
17:23:16 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006
17:25:27 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006
17:25:49 <merni> _jgr_: I guess this is not that hard... and `SubtractMoneyFromCompany` already follows the same pattern
17:26:53 <_jgr_> It's not a big problem either way really
17:29:56 <merni> Yeah
17:30:02 <merni> mountain from molehill
17:42:49 <merni> the `index` of a `Company` is the same as the `CompanyID`, right?
17:44:19 <frosch123> yes, but if you use GerCompanyIfValid you can also handle spectator and other weirdnesses
17:44:40 <frosch123> i.e. not all companyids are valid companies
17:44:44 <merni> Well, the `Company` is already got from `Company::Get`, I just need to get back the ID
17:44:59 <frosch123> ah yes, then company::index
17:49:14 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006
17:53:36 <merni> Hm
17:53:47 <merni> `error: cannot convert โ€˜ScriptCompany::CompanyIDโ€™ to โ€˜CompanyIDโ€™ {aka โ€˜Ownerโ€™}`
17:54:27 <_glx_> with or without cast ?
17:54:31 <merni> Without
17:54:42 <merni> would it work with a cast?
17:54:55 <_glx_> yeah there are casts everywhere in the API ๐Ÿ™‚
17:57:03 <_glx_> API redefines many enums as it's the easiest way to auto import them into squirrel VM
17:57:32 <_glx_> just needs to parse the headers to generate the imports
18:05:24 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006#issuecomment-1915285929
18:13:01 <DorpsGek> [OpenTTD/OpenTTD] merni-ns updated pull request #11902: Feature: Infinite money mode https://github.com/OpenTTD/OpenTTD/pull/11902
18:13:03 <merni> Phew
18:18:24 <DorpsGek> [OpenTTD/OpenTTD] merni-ns commented on pull request #11902: Feature: Infinite money mode https://github.com/OpenTTD/OpenTTD/pull/11902#issuecomment-1915307280
18:21:27 <xarick> hmm
18:21:35 <peter1138[d]> Well
18:21:54 <xarick> ais with infinite money
18:22:22 <xarick> not sure what will happen with checking for costs
18:22:35 <merni> Since it has to be a separate PR, I'll deal with cleaning up the `/*!` comments if/when this one is merged, because I want to avoid doing another rebase if at all possible :p
18:22:44 <merni> xarick: Costs should be unaffected
18:23:01 <merni> Idk what in the API returns costs but the only change in the script API is `GetBankBalance`
18:23:12 <xarick> ais test the cost of a command
18:23:26 <xarick> then they usually check if they have that money
18:23:38 <xarick> oh, getbankbalance returns a big value now?
18:23:41 <merni> Yes
18:23:48 <xarick> ok will probably work
18:24:47 <xarick> what about repaying loan?
18:24:56 <merni> What about it?
18:25:17 <xarick> i'm not sure what to expect there
18:25:21 <DorpsGek> [OpenTTD/OpenTTD] LC-Zorg commented on pull request #11902: Feature: Infinite money mode https://github.com/OpenTTD/OpenTTD/pull/11902#issuecomment-1915317629
18:25:31 <xarick> if i pay 10000, it doesn't take me 10000? what happens
18:25:40 <merni> I expect that the loan can still be repaid, as the balance is internally still tracked
18:25:56 <merni> Just that the money balance value exposed in the API will still be INT64_MAX
18:26:34 <xarick> eh... okay probably works weirdly
18:26:54 <merni> LC-ZorgviaGitHub: > This doesn't seem like a good solution to me. Someone who wants to build freely and not worry about the lack of cash (sometimes that includes me) rather doesn't want to see constantly increasing debt.
18:26:54 <merni> I think someone has not tried the preview...
18:27:12 <LordAro> that's zorg for you
18:27:29 <LordAro> i could suggest that it means your description needs updating
18:27:36 <LordAro> but zorg gonna zorg
18:27:38 <truebrain> screenshots help ๐Ÿ™‚
18:29:28 <truebrain> today in the game: can I add new depots ...
18:29:30 <merni> Yes, I will add them tomorrow
18:29:39 <truebrain> I cannot
18:29:43 <truebrain> no Steam integration for Steam
18:29:58 <truebrain> /me requeues this task for tomorrow
18:31:26 <merni> Hm, why is interest rate fixed as minimum 2%?
18:31:34 <merni> is there a technical reason?
18:31:56 <truebrain> *childish mode*: because someone programmed it like that; that is the technical reason ๐Ÿ˜„
18:32:11 <xarick> AI competition with infinite money should be interesting
18:32:15 *** gelignite has joined #openttd
18:32:26 <xarick> i can at least use a GS that doesn't feed them money
18:32:50 <_jgr_> merni: Likely because the cost inflation rate is 1% more than the income inflation rate
18:33:59 <_jgr_> Hmm, actually that shouldn't be too much of a problem
18:34:43 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/1d4b10a8b8e98d523824f62f697c61e81b68bded
18:34:44 <DorpsGek> - Update: Translations from eints (by translators)
18:35:23 <DorpsGek> [OpenTTD/OpenTTD] merni-ns commented on pull request #11902: Feature: Infinite money mode https://github.com/OpenTTD/OpenTTD/pull/11902#issuecomment-1915333044
18:36:53 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10006: Make modifier keys configurable and split Ctrl into remove and function. https://github.com/OpenTTD/OpenTTD/pull/10006
18:37:22 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201596967957037096/image.png?ex=65ca6561&is=65b7f061&hm=6cec9cb4ccf2dc122714e87f3a95b1288b4043c67889c88cb6b5a1b12a978ad6&
18:37:22 <xarick> I dunno man
18:37:45 <locosage> merni: because it was like that in the original game most likely
18:40:06 <frosch123> merni: https://github.com/OpenTTD/OpenTTD/blob/master/src/economy.cpp#L927 <- as jgr already said: there are two interest rates for expenses and for income
18:40:32 <frosch123> which is a weird mechanic in itself ๐Ÿ™‚
18:41:06 <merni> Ok, but it already checks for max(0, rate-1), so even if the "interest rate" setting is set to zero that should still work, right?
18:41:08 <peter1138[d]> Higher interest rates are easier.
18:41:43 <talltyler> xarick: The widget is the unloading behavior dropdown.
18:42:03 <locosage> with min 2 and max 4 interest rate is pretty much irrelevant either way
18:42:31 <talltyler> But also what is anyone supposed to do with a random screenshot of code you donโ€™t like? Screenshots in chat are not a code review.
18:43:19 <talltyler> `OUFB_TRANSFER` is the parameter that is passed for toggle behavior if the dropdown isnโ€™t opened.
18:43:20 <frosch123> talltyler: is it "rage bait"?
18:43:41 <talltyler> Itโ€™s working :/
18:43:53 <talltyler> Back to real job
18:44:12 <merni> locosage: I will look at doing another PR to improve the range if possible tomorrow... time for zzzz now
18:44:25 <truebrain> hmm ... `Money / Money` acts a bit odd .. it has a silent 32bit cast ๐Ÿ˜„
18:44:31 <truebrain> I shoulds top looking at this code ๐Ÿ˜„
18:45:19 <truebrain> https://cdn.discordapp.com/attachments/1008473233844097104/1201598969302749184/image.png?ex=65ca673e&is=65b7f23e&hm=81f39fa4493c6533e4dfb098d8b207c257c99da379c83cfb5ba014ee0a1c31b6&
18:45:23 <truebrain> looks better than this large number
18:45:29 <peter1138[d]> payment rates are 1 percentage point below everything else.
18:46:15 <peter1138[d]> If inflation 2%, then payment rate inflation is 1%
18:46:40 <frosch123> truebrain: i like how EU4 adds SI prefixes to all money amounts
18:46:42 <peter1138[d]> if it's 4% then pr inflation is 3%
18:46:49 <merni> sure, but if inflation is 0 then payment rate inflation is -1 which is capped to 0 so neither would change
18:46:54 <truebrain> frosch123: I was mostly annoyed we do `k` and `M`, then stop
18:46:58 <truebrain> like ..... why ?
18:47:05 <peter1138[d]> Well, inflation is never 0 ๐Ÿ™‚
18:47:08 <merni> Oh, is that Tera-credits
18:47:19 <merni> peter1138[d]: Now it isn't... but can it be?
18:47:30 <peter1138[d]> Anyway, inflation is a difficult setting.
18:47:57 <frosch123> truebrain: lol, i did not know we had that option
18:48:04 <truebrain> it isn't an option
18:48:09 <truebrain> it is forced upon you
18:48:11 <peter1138[d]> Going lower than 2% would make profit more and more difficult.
18:48:16 <belajalilija> peter1138[d]: Why not have it so everything gets more expensive but the prices are the same relative
18:48:41 <locosage> peter1138[d]: lol, yeah, you'd think it's economy setting but, no, has nothing to do with economy, it's just difficult to understand what it does xD
18:48:41 <peter1138[d]> Going higher than 4% makes profit track costs closer and closer (but never quite the same)
18:49:03 <peter1138[d]> You can do that, it's called "turn off inflatiohn"
18:49:23 <merni> peter1138[d]: ๐Ÿคท it is for players to decide what they want, the limit of 2-4 % doesn't really make sense to me. We can maybe add a warning to the helptext about that
18:49:50 <merni> we do have other settings that make it hard to make profits as well...
18:49:58 <frosch123> truebrain: it's used in about 3 strings, everything else uses CURRENCY_LONG
18:50:01 <_jgr_> It's there mainly for historical reasons, it's fine to just leave it be
18:50:03 <peter1138[d]> If you go to 1%, then costs will rise, but payment rates will be fixed.
18:50:04 <frosch123> no wonder i never noticed
18:50:20 <locosage> imo just hardcode inflation at 3% or smth and make interest rate only an interest rate, without side effects
18:50:31 <merni> or decople the two?
18:50:57 <locosage> that's pretty much the same thing
18:51:00 <frosch123> merni: i think inflation is disabled by default, because every single player has their own opinion how it should work
18:51:07 <locosage> interest rate doesn't make much difference for the inflation either way
18:51:13 <merni> peter1138[d]: Kind of like Indian Railways with its passenger fares now... they are not raised for many years because the government thinks it will be unpopular :p
18:51:32 <merni> "Political Interference In Transport Tycoon"
18:51:37 <truebrain> frosch123: that still doesn't make it a setting ๐Ÿ˜›
18:51:41 <locosage> 2% is technically slightly "harder" but difference is tiny if you do the math
18:51:54 <peter1138[d]> Most places should use the truncated currency.
18:51:57 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain opened pull request #11921: Add: numbers made compact only did k and M. Add G and T to it. https://github.com/OpenTTD/OpenTTD/pull/11921
18:51:58 <truebrain> there, a fix nobody asked for \o/
18:52:04 <merni> frosch123: lol, fair
18:52:07 <peter1138[d]> Finance window is stupidly wide with CURRENCY_LONG
18:52:10 <frosch123> truebrain: true, i just default to "if i do not know it, it must have been a PR in the past year"
18:52:17 <truebrain> peter1138[d]: same as the toolbar
18:52:22 <peter1138[d]> Yes.
18:52:28 <frosch123> either way, you definitely should add more prefixes than k and M ๐Ÿ™‚
18:52:33 <truebrain> frosch123: this code assumed a 32bit Money, so you can imagine how old it is ๐Ÿ˜›
18:52:43 <truebrain> frosch123: psst, they are postfixes ๐Ÿ˜›
18:52:52 <frosch123> for bytes it goes up to Exa
18:53:06 <frosch123> or Exi
18:53:11 <DorpsGek> [OpenTTD/OpenTTD] LC-Zorg commented on pull request #11902: Feature: Infinite money mode https://github.com/OpenTTD/OpenTTD/pull/11902#issuecomment-1915360213
18:53:12 <merni> How does it work with prefix currencies? Does it show something like โ‚น 400 G?
18:53:16 <truebrain> hmm .. I could go to `P` ...
18:53:17 <frosch123> Ebi?
18:53:22 <frosch123> i don't know this shit
18:53:25 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #11921: Add: numbers made compact only did k and M. Add G and T to it. https://github.com/OpenTTD/OpenTTD/pull/11921#issuecomment-1915360551
18:53:40 <merni> Good point imo
18:54:02 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #11921: Add: numbers made compact only did k and M. Add G and T to it. https://github.com/OpenTTD/OpenTTD/pull/11921#issuecomment-1915361470
18:54:09 <merni> The only context where SI prefixes beyond kilo are commonly used really, is in computing
18:54:18 <xarick> This comment has been minimized. ouch
18:54:25 <truebrain> peter1138[d]: there was already the `k`, so your system failed me
18:54:57 *** gnu_jj has joined #openttd
18:55:03 <merni> > They see because opening the finance window is not difficult. ;) And then the sight of the constantly increasing debt will be quite unpleasant.
18:55:03 <merni> so... we have to prevent players from opening windows to upset themselves?
18:55:10 <_jgr_> merni: They're commonly used with physical quantities
18:55:15 <merni> what is this guy on about
18:55:19 <truebrain> if we do Millions, Billions etc, it needs to be translatable, which is another nightmare ๐Ÿ˜›
18:55:38 <truebrain> (a billion in Dutch is not the same as a billion in English, as example)
18:55:44 <merni> _jgr_: Yes but the average ottd player is not going to be doing the kind of science/engineering type work that uses those
18:55:52 <merni> truebrain: Well, yes...
18:55:58 <frosch123> on corporate slides there exist both patterns. people with science degree use kโ‚ฌ, people with economics degree use Tโ‚ฌ
18:56:01 <merni> Indian languages want lakhs and crores too...
18:56:15 <frosch123> we should go for science
18:56:18 <truebrain> so I just extended that what was there, which was `k` and `M`
18:56:21 <truebrain> which sounds SI to me ๐Ÿ™‚
18:56:34 <merni> I have seek 100k or whatever in general contexts
18:56:48 <peter1138[d]> Yes, k as thousand is normal in money terms.
18:56:49 <merni> beyond that 100m for million (though here it is more likely to be in terms of L and Cr)
18:56:52 <peter1138[d]> M means Million.
18:56:59 <peter1138[d]> It does not mean "mega"
18:57:17 <truebrain> agree to disagree on that ๐Ÿ˜„
18:57:26 <peter1138[d]> Nope.
18:57:31 <peter1138[d]> G is totally wrong for money.
18:57:36 <truebrain> you cannot tell me how I read `M` ๐Ÿ˜›
18:57:54 <locosage> pretty sure I've asked here what's the best way to write 1000 000 000 at some point
18:58:02 <locosage> ended up doing 1000M xD
18:58:08 <frosch123> "G" is the only non-translatable option. otherwise you would need "Mio." and "Mrd."
18:58:18 <_jgr_> locosage: 1e9, obviously ๐Ÿ˜›
18:58:26 <merni> Why is non-translateable good, though?
18:58:32 <locosage> floating point danger :p
18:58:39 <merni> There is a whole elaborate system for translations
18:58:40 <truebrain> anyway, long day peter1138[d] , so I am just having a bit of fun with how confusing some simple letters are ๐Ÿ™‚
18:59:05 <truebrain> I really always assumed they were kilo and mega; I play too many clicker games
18:59:08 <truebrain> where that is very common ๐Ÿ™‚
18:59:35 <merni> locosage: I would write something like 100,00,00,000 (technically 1,00,00,00,000 may be more correct but nobody uses "arab" as meaning 100 crore in practical use)
19:00:20 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #11921: Add: numbers made compact only did k and M. Add G and T to it. https://github.com/OpenTTD/OpenTTD/pull/11921#issuecomment-1915370499
19:00:31 <truebrain> but Billion etc is very problematic for many other languages, and I guess M already was, but .. if you read it as mega, it is fine
19:00:35 <truebrain> so I guess we were just a bit lucky there
19:01:13 <merni> truebrain: You could just make STR_10^9 and STR_10^12 or whatever and languages can translate them as they wish
19:01:59 <xarick> let me check how GS's do it
19:02:01 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #11921: Add: numbers made compact only did k and M. Add G and T to it. https://github.com/OpenTTD/OpenTTD/pull/11921#issuecomment-1915372946
19:02:14 <merni> Also, asking again since there is no preview... how does this work for currencies where the symbol is at the left?
19:02:19 <truebrain> merni: in Dutch there aren't really one letter solutions for these kind of things
19:02:21 <merni> (including the existing k and M)
19:02:28 <_glx_> in french M is for million, can't remember what is used for milliard (billion)
19:02:34 <truebrain> merni: start any OpenTTD, and find out
19:02:39 <truebrain> you can do that without preview, I am sure ๐Ÿ™‚
19:02:46 <merni> truebrain: Write "Mio." or whatever is also not an issue, will still be shorter than 000000
19:02:52 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
19:03:09 <truebrain> but this is how OpenTTD goes .. you make one small change, to find out the current stuff is already .... weird, and BOOM ๐Ÿ˜›
19:03:32 <_glx_> but anyone used to computers should know G and T ๐Ÿ™‚
19:04:06 <merni> Okay so โ‚น 3,960 M. That works as 3,960 million, but โ‚น 3,960 G is just not readable IMO
19:04:15 <peter1138[d]> Anyone used to money should know k, M, B, and T.
19:04:30 <merni> peter1138[d]: Not in India :p
19:04:31 <truebrain> peter1138[d]: Only in English countries ๐Ÿ™‚
19:04:33 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201603809240158218/image.png?ex=65ca6bc0&is=65b7f6c0&hm=3369bcfa90e9a6482aa6a5568a3ef52df22ed877e0b40a807a1a34187f0273be&
19:04:38 <peter1138[d]> (And yes, UK billion used to be 1,000,000,000,000, but we switched to 1,000,000,000.
19:04:56 <merni> Yeah in Europe at least you agree which exponents are named, if not what to name them
19:05:02 <truebrain> meh, `k` and `M` existed in r1, can't even tell which language-of-origin-author wrote it ๐Ÿ™‚
19:05:14 <_jgr_> _glx_: They may not recognise it as that in the wrong context though
19:05:18 <merni> India and China/Japan have completely different systems, though these days westernisation means ottd's target audience can probably get it
19:05:23 <peter1138[d]> Probably Chris Sawyer.
19:05:35 <truebrain> not an unreasonable thought
19:05:39 <frosch123> truebrain: there is an obvious way to find out: we need some hyper inflation so the real world needs to agree on how to call Gโ‚ฌ, when it is needed in daily life
19:05:55 <truebrain> I can't access the language system in this part of the code, so no `STR_` tricks at this level ๐Ÿ˜ฆ
19:06:12 <merni> frosch123: well, they would just denominate 1 new euro = 10000000000000000 euros or whatver :p
19:06:15 <truebrain> frosch123: We all agree! But between each other disagree ๐Ÿ˜›
19:06:45 <truebrain> peter1138[d]: really? So it used to be the same as other Europe contries ... so why change?! ๐Ÿ˜›
19:06:53 <merni> America?
19:07:06 <truebrain> "miljoen" and "miljard" are rather confusing words
19:07:10 <truebrain> so I don't disagree with the move
19:07:13 <merni> UK thinks they are midway between France and America sometimes
19:07:28 <truebrain> I could do `k`, `M`, `kM` and `MM` ๐Ÿ˜›
19:07:34 <peter1138[d]> Because "1,000,000,000,000" was considered ludicrous.
19:07:52 <peter1138[d]> Turns out that 20-30 years later...
19:07:55 <merni> and now we talk about "trillion" dollars :p
19:08:17 <peter1138[d]> Also US was always 1,000,000,000. That's the main reason, convergence.
19:09:11 <DorpsGek> [OpenTTD/OpenTTD] LC-Zorg commented on pull request #11917: Change: Make the unloading button toggle Transfer, not Unload All https://github.com/OpenTTD/OpenTTD/pull/11917#issuecomment-1915384019
19:10:02 <truebrain> but okay, to summarize: we have an interational incorrect mention of `k`/`M`, which can only be considered correct if you consider them SI. We have a (very strong) opinion SI units should not be used for money, so we kinda should make it translatable I guess?
19:11:10 <frosch123> and i cab't figure out how it is done for ยฅ
19:13:08 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201605971018002505/image.png?ex=65ca6dc4&is=65b7f8c4&hm=4476e59834659842ad179f63d75b3815fc91afc44f1fee342106dc1c1de53565&
19:13:08 <peter1138[d]> Possible it is in TTD...
19:13:26 <truebrain> wtf is `PT`? ๐Ÿ˜›
19:13:36 <truebrain> owh, the currency?
19:13:54 <peter1138[d]> Pesetas.
19:14:09 <truebrain> lol
19:14:10 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201606232046313535/image.png?ex=65ca6e02&is=65b7f902&hm=eb5e193bc2a8c26f84275ef7f296f8737d85892365910587a97cd4265831a023&
19:14:10 <peter1138[d]> Not a lot of choice.
19:14:22 <truebrain> so it was added by OpenTTD .. well .. before r1
19:14:49 <peter1138[d]> Or TTD does it makes on ยฃ value and ignores currency conversion ๐Ÿ˜„
19:14:52 <frosch123> ottd 0.1 source only has {CURRENCY}, and every currency option has its own formatting function
19:15:16 <peter1138[d]> I don't have any big TTD games.
19:15:38 <truebrain> owh, I can access the string-system, just with temporary parameters
19:15:39 <peter1138[d]> frosch123: Sounds about right ๐Ÿ˜„
19:15:40 <frosch123> ah, found your reason for "why only k and M" :p money used to be int32
19:15:48 <truebrain> okay, so this is solvable in a proper way
19:15:58 <truebrain> frosch123: I said that, it is in the PR, and I mentioned that
19:16:06 <truebrain> I feel ignored now ๐Ÿ˜›
19:16:57 <frosch123> bodies often ignore their brain
19:17:11 <truebrain> it is pinky, pinky, pinky and the brain brain brain
19:21:08 <frosch123> ISO4217 specifies to put a NBSP between number and currency, but no prefixes so far :/
19:22:23 <truebrain> are there languages that would put the multiplier before the number
19:22:29 <truebrain> so "mega 1,000,313"
19:23:19 <frosch123> ISO4217 says that languages decide whether to write "EUR{NBSP}500" or "500{NBSP}EUR", and that the order is not a property of the currency
19:23:43 <truebrain> and how did we implement it? As property of the currency! ๐Ÿ˜›
19:23:46 <frosch123> i am still looking for k and M
19:24:33 <truebrain> the tricky part with prefix vs postfix, is where in our code the `-` is added
19:25:28 <truebrain> owh, code calls it suffix, not postfix
19:26:25 <peter1138[d]> > Abbreviating โ€˜millionโ€™ and โ€˜billionโ€™. Do not use abbreviations like mio, bio, k, mill. The letters โ€˜mโ€™ and โ€˜bnโ€™ can be used for sums of money to avoid frequent repetitions of million, billion; this applies particularly in tables where space is limited. The abbreviation is preceded by a hard space:
19:26:25 <peter1138[d]> > โ‚ฌ230 000 m, $370 000 bn, ยฃ490 bn
19:26:26 <peter1138[d]> Hmm
19:26:36 <frosch123> apparently people write "-$ 10"
19:26:41 <peter1138[d]> > Billion. โ€˜Billionโ€™ is used to designate a thousand million (and not a million million) and โ€˜trillionโ€™ a million million. Note that the words โ€˜millionโ€™, โ€˜billionโ€™ and โ€˜trillionโ€™ can be combined with figures: 3 000 million.
19:26:57 <truebrain> so it is `bn`, not `B`?
19:27:07 <truebrain> (for `english.txt`)
19:27:50 <peter1138[d]> This is just a style guideline used by EU publications.
19:28:05 <peter1138[d]> But yes, I'd be happy with bn.
19:28:38 <truebrain> it is funny, all this because Giga and Billion don't have the same starting letter ๐Ÿ˜›
19:28:56 <frosch123> https://cdn.discordapp.com/attachments/1008473233844097104/1201609948044476556/image.png?ex=65ca7178&is=65b7fc78&hm=0dc15bd8b64aaee90208efd94b3ee9c7357c9950a857700b2eb04aedc3f2baf9&
19:28:56 <frosch123> internet says UK vs US:
19:29:02 <truebrain> https://cdn.discordapp.com/attachments/1008473233844097104/1201609971817775215/image.png?ex=65ca717e&is=65b7fc7e&hm=9d0c7048e4f005e3621b1d95834bade2609f924339496b2b4644d5ecda0614d6&
19:29:02 <truebrain> I solved the issue
19:29:25 <frosch123> so apparently UK uses a lowercase "m"
19:29:26 <peter1138[d]> Perfect
19:29:28 <truebrain> well, `english_US.txt` can do their thing ๐Ÿ˜›
19:30:38 <frosch123> hah, so ottd does use SI :p it uses lowercase "k" and uppercase "M", which matches SI, but neither UK nor US
19:30:53 <truebrain> /me makes a MWHAHAHAHA sound in silent ๐Ÿ™‚
19:32:48 <frosch123> https://publications.europa.eu/code/en/en-370303.htm <- finally something official looking
19:33:59 <frosch123> the NBSP usage is even more complicated. it's "EUR 30", "30 EUR" and "30 โ‚ฌ", but "โ‚ฌ30" without space
19:34:00 <peter1138[d]> <https://publications.europa.eu/code/en/en-4100500en.htm> was the one I read earlier.
19:34:24 <peter1138[d]> Which mentions the abbreviations.
19:35:18 <truebrain> I was like: WTF, WHY DID MY CODE BREAK?! But I removed the the other fix commits
19:35:24 <truebrain> (as they are their own PR)
19:35:29 <truebrain> fml .. took longer than I want to admit
19:36:41 <frosch123> https://publications.europa.eu/code/de/de-370303.htm <- ah crap, the german page explicitly lists "MEUR" as invalid
19:37:04 <truebrain> but can I assume it is a suffix? ๐Ÿ˜„
19:37:12 <_zephyris> peter1138[d]: Any reason OTTD doesn't display currency symbol previews? Might be a bit nicer than the three letter ISO codes.
19:37:49 <truebrain> https://cdn.discordapp.com/attachments/1008473233844097104/1201612184438976752/image.png?ex=65ca738d&is=65b7fe8d&hm=508b4cb81176b9012bbb40c958a66f0bdd7b8730076b84798fb896db086c80d9&
19:38:08 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain updated pull request #11921: Add: numbers made compact only did k and M. Add G and T to it. https://github.com/OpenTTD/OpenTTD/pull/11921
19:38:48 <frosch123> truebrain: yes, peters page gives examples: โ‚ฌ230 000 m, $370 000 bn, ยฃ490 bn
19:38:50 *** dojando has joined #openttd
19:38:50 <dojando> LC-ZorgviaGitHub: I DO use unload all a lot too. Mostly for asthetic / realism purposes for my passenger trains who have a scheduled depot order for maintanance. Then the train will go to "Station-X" with empty all -> Depot maintain -> "Station-X" with loading and then continue on the regular line again. Because there would never be passangers transported while maintaining a train.
19:39:24 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #11921: Add: numbers made compact only did k and M. Add G and T to it. https://github.com/OpenTTD/OpenTTD/pull/11921#issuecomment-1915429977
19:39:33 <truebrain> frosch123: doesn't mean all languages do that ๐Ÿ™‚
19:40:22 <peter1138[d]> It's also only some document style guidelines...
19:41:15 <truebrain> well, codewise it is really tricky to make the prefix/suffix a choice, so I went with suffix
19:41:16 <frosch123> well, the other page lists "10 m EUR" and "10 bn GBP", but no examples with โ‚ฌ or ยฃ
19:41:21 <truebrain> first language that complains, we can take it from there ๐Ÿ™‚
19:41:37 <frosch123> so, basically the m and bn are always suffix
19:41:38 <truebrain> it is at least an improvement from the current situation no matter what ๐Ÿ˜„
19:41:45 <frosch123> but i am not sure about the space after
19:42:15 <peter1138[d]> _zephyris: It used to be mixed, some currencies by code, some by symbol. And it was consistent by language either. And of course, some of those symbols prevented lots of truetype fonts from being usable because they were quite obscure.
19:44:25 <truebrain> frosch123: space is part of the translation
19:44:31 <frosch123> truebrain: can i excite you for c++14: "Optional single quotes (') may be inserted between the digits as a separator; they are ignored when determining the value of the literal. "
19:44:37 <truebrain> as long as there isn't a language like Hindi or Chinese or whatever that does weird stuff with the location ๐Ÿ˜„
19:44:56 <truebrain> frosch123: sure
19:44:58 <frosch123> i don't want to review "1000000000"
19:45:34 <peter1138[d]> There is at least one language that does 1'00'00'000...
19:45:44 <truebrain> trust me, it doesn't get better with `'`
19:46:47 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain updated pull request #11921: Add: numbers made compact only did k and M. Add G and T to it. https://github.com/OpenTTD/OpenTTD/pull/11921
19:48:21 <_zephyris> peter1138[d]: Hmm, but (most) are covered by the sprite font and ttf fonts now... Would be nicer to use `โ‚บ` and fall back to `TL` for Turkish Lira etc.
19:48:55 <frosch123> hmm, large integer literals used to require a "ull" postfix, is that no longer the case?
19:49:02 <peter1138[d]> But it still might prevent someone using the font they want to. We don't fallback individual glyphs.
19:49:38 <truebrain> frosch123: I was as surprised as you, but I double checked .. clang at least reports it really is a long
19:49:49 <truebrain> so I assumed that was a C++20 thingy, or any before
19:51:23 <frosch123> it's c++11
19:51:34 <frosch123> such old habbits ๐Ÿ™‚
19:51:36 <_zephyris> peter1138[d]: Yeah, but. Why bother providing nice sprite font glyphs then not use them? The default sprite and ttf both support it, so use it! (this argument works for latin languages for the sprite, and all european for the ttf, languages which we know _require_ a fallback font would be a more logical exception)
19:51:50 <peter1138[d]> You still see it when you select the currency.
19:51:59 <truebrain> frosch123: wuth? LOL! Okay .... that is much older than I expected ๐Ÿ˜›
19:52:40 <frosch123> apparently "ull" is even c++, so it was non-standard before
19:54:09 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201616293435015168/image.png?ex=65ca7761&is=65b80261&hm=9c36aa672a3cae386e8ccc24724c140236bea2129bc00f7ecc4874dd96a8b1c9&
19:54:09 <peter1138[d]> Well
19:54:18 <peter1138[d]> I guess it's doable now.
19:54:23 <truebrain> peter1138[d]: ieuw
19:54:39 <peter1138[d]> The main thing is it is NOT in the string files, so the glyph searcher doesn't find a problem even if they don't exist...
19:54:44 *** keikoz has joined #openttd
19:55:27 <_zephyris> peter1138[d]: Ah OK. But a few don't use the right symbols... I think that's what threw me off. eg. French Franc `โ‚ฃ` -> `FF`
19:56:28 <truebrain> would it actually help anyone to see those icons in that list? I mean .. it is just a blob of pixels at this point ๐Ÿ˜„
19:57:30 <_zephyris> truebrain: Oi. Lovingly handcrafted blobs of pixels ๐Ÿ˜œ
19:57:51 <_zephyris> Ah, it's just a few, just a shame I jumped on franc and ruble for testing. Maybe just โ‚ฃ โ‚ฝ โ‚พ
19:57:52 <truebrain> it worked for TTD as the list is small
19:57:59 <truebrain> but for a list this long, it is just ..... blobby
19:58:36 <truebrain> in other words ... `Remove: language XXX` ๐Ÿ˜›
19:58:47 <truebrain> language.. currency ... tomato tomato
19:59:42 <_zephyris> Yeah, fair. I'm not too fussed about the list actually.
19:59:54 <peter1138[d]> "โ‚ฃ" was never used.
19:59:55 <_zephyris> I was a bit mixed up and not using symbols in the list and some currencies not using their unicode/correct symbols.
19:59:57 <DorpsGek> [OpenTTD/OpenTTD] frosch123 approved pull request #11921: Add: {CURRENCY_SHORT} only did k / m suffix. Add bn / tn and make translatable. https://github.com/OpenTTD/OpenTTD/pull/11921#pullrequestreview-1849649875
20:00:20 <peter1138[d]> > An F-with-bar or Fr ligature (โ‚ฃ) is available as a Unicode currency symbol character but was never adopted and has never been officially used.
20:00:36 <peter1138[d]> It should just be F.
20:00:41 <truebrain> did I brake DorpsGek with my title? ๐Ÿ˜„
20:00:47 <peter1138[d]> "Fr" is fine too.
20:01:03 <truebrain> ah, no, just slow
20:01:06 <_zephyris> Yeah. I'd just picked up that `FF` looked wrong.
20:03:03 <_zephyris> Hmm. `โ‚ฝ` `โ‚พ` and `โ‚บ` all look like (more) recent unicode additions, I guess they're not in the sprite font.
20:05:24 <truebrain> Simplified Chinese seems to do `USD 1,000 ็ฑณ` for `1,000 m`
20:05:57 <DorpsGek> [OpenTTD/team] frosch123 commented on issue #482: [fi_FI] Translator access request https://github.com/OpenTTD/team/issues/482
20:06:15 <truebrain> which translates back to `rice`
20:06:16 <truebrain> haha
20:06:21 <wensimehrp> nah
20:06:22 <truebrain> owh, translators, you are briliant ๐Ÿ˜„
20:06:44 <wensimehrp> ็ฑณ does means rice
20:07:30 <truebrain> funny how the translators do translate it sometimes with a single letter, but most of the time you see a very long strong coming back ๐Ÿ˜„
20:07:37 <truebrain> I am very curious how translators are going to translate these entries ๐Ÿ™‚
20:07:51 <wensimehrp> But "metre" is a new word and (not like Japanese haha) we need a character to represent the unit
20:07:56 <truebrain> (and whether they take less space than the original)
20:08:36 <frosch123> pretty sure they take less space, otherwise they would not be used in real life
20:08:50 <truebrain> I assume as much too ๐Ÿ™‚
20:09:10 <wensimehrp> well, when it comes to m3 it is a different story
20:09:16 <truebrain> https://cdn.discordapp.com/attachments/1008473233844097104/1201620098776043530/image.png?ex=65ca7aec&is=65b805ec&hm=021bff5719dc99b30a416495439eff24361b67cbde8d9758363b255f6aeaa556&
20:09:16 <truebrain> Seems DuckDuckGo is English UK ๐Ÿ™‚
20:09:40 <wensimehrp> Chinese translation for m3 is ็ซ‹ๆ–น็ฑณ, which takes more space than the original
20:09:52 <truebrain> we talk about currency here wensimehrp ๐Ÿ™‚
20:10:21 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201620367643521086/image.png?ex=65ca7b2c&is=65b8062c&hm=02400bf07f654af80a520b272d288611a8a24c3d2abe8390793959f8f28506aa&
20:10:21 <peter1138[d]> Soooo.... left or right?
20:10:24 <truebrain> `โ‚ฌ 1,000 biliwn` <- Welsh ๐Ÿ˜„
20:10:54 <truebrain> peter1138[d]: that questionmark ... but I guess that is not the part you wanted an opinion about?
20:11:01 <_zephyris> peter1138[d]: Left ๐Ÿ™‚
20:11:15 <_zephyris> No 1.75x `X` icon yet?
20:11:17 <peter1138[d]> Nope. That's "I didn't bother removing the incompatible NewGRF"
20:11:34 <peter1138[d]> It's svg in the left image.
20:11:37 <truebrain> Left bottom is touching the border, which annoys me greatly
20:11:46 <peter1138[d]> It's... svg in the right image too, but master doesn't know about svg ๐Ÿ™‚
20:12:09 <truebrain> but yeah, scale EVERYTHING
20:12:11 <peter1138[d]> They all touch the border.
20:12:30 <peter1138[d]> They don't overlap the border though.
20:13:02 <truebrain> just a pixel-line of grey would be more suiting for the eye, but ..... not the question here, I assume ๐Ÿ˜„
20:13:13 <_zephyris> IMO if a user wants a larger GUI then they want all GUI elements larger - they want it larger for a reason, and could use 2x if they're pixel purists.
20:13:28 <rau117> peter1138[d]: It looks completely like the initial problem with cargo icons โ€“ currency symbol is too far from its name, maybe, just like cargo icons, move it to the left?
20:13:29 <frosch123> peter1138[d]: can you also scale the padding?
20:13:40 <frosch123> the left side looks weird, if the icon touches the button bevel
20:13:50 <peter1138[d]> frosch123: It is, but we can't draw 1.75x wide pixels.
20:14:10 <_zephyris> https://cdn.discordapp.com/attachments/1008473233844097104/1201621325224095754/image.png?ex=65ca7c10&is=65b80710&hm=ff9b48bedc0babff885974fd09bcab2bfa00e45245e0746e7a19826d10df3d60&
20:14:10 <_zephyris> Touching the bottom border is 1x vanilla
20:14:22 <truebrain> it also annoys me there, no worries ๐Ÿ™‚
20:15:02 <locosage> rau117: except in this case symbols don't really matter
20:15:13 <peter1138[d]> Actually TTD itself is one-scaled-pixel UP from the bottom.
20:15:19 <peter1138[d]> But left & right touch.
20:15:39 <peter1138[d]> Either way, that's kinda separate to scaling the sprites ๐Ÿ™‚
20:15:59 <peter1138[d]> rau117: It was just a quick test to show the symbols in game.
20:17:49 <_zephyris> truebrain: And presumably annoys you in station and waypoint buttons too. Interestingly there is a border for object buttons...
20:17:58 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201622284776001628/image.png?ex=65ca7cf5&is=65b807f5&hm=14c8eefe8cf6f679b988b05cf968367b50cde297033dcdcf74b3d04ce230b201&
20:17:58 <peter1138[d]> NewGRFs can do all sorts of weird things too.
20:18:09 <truebrain> _zephyris: I complained about it a few times, but nobody listened ๐Ÿ˜›
20:18:15 <peter1138[d]> _zephyris: Yeah, objects are fubar...
20:19:09 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201622585092341860/image.png?ex=65ca7d3d&is=65b8083d&hm=a9828108bfd734bbcf8824f30cf64e2ca959aa00833d2d80c374f3d6206e87f0&
20:19:09 <peter1138[d]> Totally vanilla though.
20:19:32 <locosage> two ruble currencies are just lolz
20:19:32 <peter1138[d]> We made it higher for some reason, I probably broke it at some point ๐Ÿ™‚
20:19:45 <locosage> there is russian ruble that is called "new russian ruble"
20:20:04 <locosage> and old russian ruble that is called "russian ruble" with the exchange rate of a new russian ruble xD
20:20:17 <truebrain> LordAro: in other news, today I killed my (work) laptop by plugging in an USB-C cable to charge it. Turns out, there is a short in the cable, and these laptops are not protected against that. RIP laptop. And mostly: RIP data on laptop ๐Ÿ˜ฆ
20:20:39 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain merged pull request #11921: Add: {CURRENCY_SHORT} only did k / m suffix. Add bn / tn and make translatable. https://github.com/OpenTTD/OpenTTD/pull/11921
20:21:09 <peter1138[d]> _zephyris: In my WIP patch that unifies the picker windows, all that object spacing is gone.
20:24:59 <_zephyris> peter1138[d]: But, I do agree that a 1px padding would be nice...
20:31:25 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201625669226995822/image.png?ex=65ca801c&is=65b80b1c&hm=d95e033c35a1fd08c05c76aba0349333c6b3db0cbeb47bfcf5c1fc81f246f120&
20:31:25 <xarick> this is unfair... crashes 3 days into
20:34:08 *** Wolf01 has joined #openttd
20:34:46 <xarick> no crash in 13.4
20:34:53 <xarick> i mean cpu valuator
20:36:59 *** Compu has joined #openttd
20:37:27 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #11263: Feature: Procedural tree growth https://github.com/OpenTTD/OpenTTD/pull/11263
20:38:21 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #11263: Feature: Procedural tree growth https://github.com/OpenTTD/OpenTTD/pull/11263#pullrequestreview-1849717953
20:39:24 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain updated pull request #11916: Change: only open story-book in center when a GS does it https://github.com/OpenTTD/OpenTTD/pull/11916
20:39:51 <peter1138[d]> Story-book popping up on a new game is a pain when testing things...
20:40:04 <truebrain> what GS does that? I tried to find one, failed ๐Ÿ˜›
20:40:13 <peter1138[d]> Open toolbar, select tool, BLAM, big popup and your tool is removed.
20:40:36 <peter1138[d]> Renewed Village Growth at least
20:41:13 <truebrain> yippie, tnx; means I actually tested if the GS flow was working. I was adding nots to the `centered` to test it ๐Ÿ˜„
20:42:12 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201628386557165609/image.png?ex=65ca82a4&is=65b80da4&hm=c556248de6b4d00d381cf9a2ceeebec4e2a2dc74f72b03760045a48787ae7007&
20:42:12 <peter1138[d]> Oh dear.
20:42:37 <peter1138[d]> I need a viewport GetBounds and GUI GetBounds ๐Ÿ˜ฎ
20:43:42 <truebrain> owh, I thought error messages tried to find a free space to pop up
20:43:45 <truebrain> but they are always in a corner?
20:44:06 <truebrain> now I find it even more annoying
20:47:11 <truebrain> `AddressSanitizer: stack-buffer-overflow on address`
20:47:13 <truebrain> it happaned again!
20:47:21 <truebrain> `CopyOutDParam`
20:48:09 <peter1138[d]> Yes
20:48:22 <truebrain> `const char *`
20:48:46 <peter1138[d]> We should switch to std::variant<> there, but apparently we told Rubidium not to.
20:48:57 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #11263: Feature: Procedural tree growth https://github.com/OpenTTD/OpenTTD/pull/11263#pullrequestreview-1849734218
20:49:12 <truebrain> we also say we don't like the mix of h / hpp ๐Ÿ˜›
20:49:45 <truebrain> but `CopyOutDParam` makes a copy of the string
20:49:48 <truebrain> so I wonder why this breaks
20:49:56 <truebrain> more importantly, can I reproduce it
20:50:18 *** gelignite has quit IRC (Quit: Stay safe!)
20:51:34 <peter1138[d]> Because it's not always a string.
20:51:44 <_glx_> it fails during the copy of invalid parameters
20:51:46 <peter1138[d]> It depends one what SetDParam() have been used before.
20:51:55 <peter1138[d]> I have some patches... somewhere.
20:52:54 <truebrain> but why do I have such a hard time reproducing it ๐Ÿ˜›
20:53:19 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #11263: Feature: Procedural tree growth https://github.com/OpenTTD/OpenTTD/pull/11263#pullrequestreview-1849741933
20:53:22 <_glx_> it depends on the previous string
20:53:35 <truebrain> annoying
20:54:05 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1201631373002293390/image.png?ex=65ca856c&is=65b8106c&hm=0f3790ebe2af0e9de810ef585cad0c6aa37fc79daf3c36ab83ee509b5b557828&
20:54:05 <peter1138[d]> Something went wrong here ๐Ÿ™‚
20:54:17 <_glx_> and the previous string must have used SetDParamStr
20:54:46 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #11263: Feature: Procedural tree growth https://github.com/OpenTTD/OpenTTD/pull/11263#pullrequestreview-1849745132
20:54:46 <peter1138[d]> Yeah, that was it, a SetDParamStr where the pointed-to-string no longer exists.
20:55:53 <peter1138[d]> I had a few ideas on it, but then got sidetracked again.
20:55:54 <_glx_> and as CopyOut copies all params
20:56:15 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #11263: Feature: Procedural tree growth https://github.com/OpenTTD/OpenTTD/pull/11263
20:56:19 <_glx_> even the ones it won't use
20:56:25 <peter1138[d]> Most robust was using their own parameters instead of copying to/from the global parameters.
20:56:45 <_jgr_> Even easier to just remove the non-owning string mode
20:56:50 <peter1138[d]> Otherwise you can work around it but it relies on all callers doing it.
20:57:06 <_glx_> something similar to ScriptText
20:57:21 <truebrain> it makes testing errors really annoying, as it randomly crashes ๐Ÿ˜„
20:57:24 <_glx_> it has the string id and it's params
20:59:56 <truebrain> I cannot reproduce it reliably, but I have it often enough to not be able to test my current work ๐Ÿ˜„
21:00:44 <_glx_> when I looked to SetDParamStr, newgrf errors where the most probable cause
21:02:04 <_glx_> (for the bug report we had)
21:02:22 <truebrain> but okay .. I don't understand this code, so I will leave it alone
21:02:27 <truebrain> might make a bug report in a bit ๐Ÿ™‚
21:06:06 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain opened issue #11922: [Crash]: CopyDParam causes stack-buffer-overflow https://github.com/OpenTTD/OpenTTD/issues/11922
21:08:02 <truebrain> If you can leave your analysis in that ticket _glx_ , that would be appreciated ๐Ÿ˜„
21:10:58 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #11922: [Crash]: CopyDParam causes stack-buffer-overflow https://github.com/OpenTTD/OpenTTD/issues/11922
21:11:04 <_glx_> like that ?
21:11:23 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #11922: [Crash]: CopyDParam causes stack-buffer-overflow https://github.com/OpenTTD/OpenTTD/issues/11922
21:11:39 <truebrain> peter1138[d]: you do know you just added an empty reply, right? *trolololol* ๐Ÿ˜›
21:11:41 <truebrain> โค๏ธ
21:15:38 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain opened pull request #11923: Change: position error window closer to cursor on large screens https://github.com/OpenTTD/OpenTTD/pull/11923
21:16:14 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #11924: Fix: Sandbox window does not reduce height when interface scale is reduced. https://github.com/OpenTTD/OpenTTD/pull/11924
21:16:33 <_glx_> so looking at <https://github.com/OpenTTD/OpenTTD/commit/48b6b1844a79c3c03a03526b2f53615690dcf0cc> and <https://github.com/OpenTTD/OpenTTD/commit/28efa65e0c1b50c16554d0de4ada17c749de28d2>, it seems Valuate limit is now lower than it was
21:16:52 <truebrain> peter1138[d]: did I introduce that bug? Or was it old? ๐Ÿ˜„
21:17:13 <peter1138[d]> Oh, maybe.
21:17:14 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain approved pull request #11924: Fix: Sandbox window does not reduce height when interface scale is reduced. https://github.com/OpenTTD/OpenTTD/pull/11924#pullrequestreview-1849789426
21:17:24 <truebrain> just curious; not that is matters ๐Ÿ˜›
21:17:42 <peter1138[d]> this->line_height = std::max(this->box.height, this->icon.height);
21:17:46 <peter1138[d]> Yeah, you broke it ๐Ÿ™‚
21:18:05 <truebrain> ha; too much removing of code ๐Ÿ˜„ Nice!
21:18:13 <peter1138[d]> Hmm, in fact, this->icon.height should probably be there still, really.
21:18:23 <truebrain> I removed the `icon`, not?
21:18:34 <peter1138[d]> Nope.
21:18:44 <peter1138[d]> That's the company-colour blob.
21:18:52 <truebrain> ah .... "oops"?
21:19:26 <truebrain> okay, simple fix from your PR; guess you are already pusing that ๐Ÿ™‚
21:19:51 <truebrain> hmmm ... 11923 tells me it cancelled one task, and it is not telling me which
21:20:12 <truebrain> ah, MacOS job got cancelled
21:20:30 <peter1138[d]> Yeah, I'm just compiling 478 files again cos I switched branches ๐Ÿ˜„
21:21:25 <peter1138[d]> Still, at least everything is centred within the giant line height ๐Ÿ˜„
21:21:40 <_glx_> I'm happy with fast compilation now, it used to be very slow ๐Ÿ™‚
21:22:16 <peter1138[d]> I never thought I'd consider by 4.4GHz six-core CPU slow...
21:22:20 <_glx_> not so happy by the cost ๐Ÿ™‚
21:22:21 <peter1138[d]> Oh well ๐Ÿ˜ฆ
21:22:30 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain opened pull request #11925: Fix: use economy timer for dmp_cmds files https://github.com/OpenTTD/OpenTTD/pull/11925
21:22:51 <_glx_> (I was on FX-6100 before)
21:23:19 <DorpsGek> [OpenTTD/OpenTTD] PeterN dismissed a review for pull request #11924: Fix: Sandbox window does not reduce height when interface scale is reduced. https://github.com/OpenTTD/OpenTTD/pull/11924#pullrequestreview-1849789426
21:23:22 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #11924: Fix: Sandbox window does not reduce height when interface scale is reduced. https://github.com/OpenTTD/OpenTTD/pull/11924
21:23:25 <xarick> someone pls convince me I need to buy a ryzen 9 5950x
21:23:34 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain approved pull request #11924: Fix: Sandbox window does not reduce height when interface scale is reduced. https://github.com/OpenTTD/OpenTTD/pull/11924#pullrequestreview-1849798529
21:24:54 <truebrain> for some reason talltyler also made a PR that claims to fix #11910, but does something totally different? ๐Ÿ˜„
21:25:01 <_glx_> xarick: going to ryzen 5 7600X was expensive enough for me
21:25:55 <_glx_> and not a planned change
21:26:17 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #11925: Fix: use economy timer for dmp_cmds files https://github.com/OpenTTD/OpenTTD/pull/11925#pullrequestreview-1849803419
21:27:33 <peter1138[d]> Possibly misunderstand the task
21:28:05 <truebrain> even the first bullet in the PR says it fixes what I fixed in #11925
21:28:08 <_glx_> hehe #11912 fixes the content ๐Ÿ™‚
21:28:09 <truebrain> it doesn't even look like it ๐Ÿ˜„
21:28:14 <talltyler> Found the wrong `dump_cmds`
21:28:19 <truebrain> ๐Ÿ˜„
21:28:26 <truebrain> this confuses me greatly ๐Ÿ˜›
21:28:37 <truebrain> but, it is a good fix
21:28:40 <truebrain> so .. we have that going for us
21:29:09 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201640200951050370/image.png?ex=65ca8da5&is=65b818a5&hm=940efdffbad4ddb948c78c7c37ebb001b3f12e9ec28bae75f11e701ecc7aae32&
21:29:09 <xarick> hmm.... approaching my budget
21:29:34 <_glx_> I hope you already have a compatible MB
21:29:38 <xarick> I do
21:29:48 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain approved pull request #11912: Fix #11910: Use alternate timekeeping units in savegame title https://github.com/OpenTTD/OpenTTD/pull/11912#pullrequestreview-1849808389
21:29:50 <peter1138[d]> AM5 is the current socket isn't it?
21:29:51 <_glx_> don't forget to update BIOS
21:30:09 <_glx_> AM5 is current yes
21:30:20 <_glx_> but AM5 is expensive too
21:30:23 <peter1138[d]> Hmm, I guess I can delete my scale-on-the-fly fractional scaling patch.
21:30:33 <truebrain> talltyler: and it is just funny, how I was bitching about the desync stuff, and still we missed more than a few cases ๐Ÿ˜„
21:30:37 <truebrain> silly grep ... I suck at it ๐Ÿ˜›
21:31:03 <_glx_> MB+DDR5+CPU is a lot more than AM4 CPU only if you already have AM5 MB
21:31:27 <xarick> i am undecided on my next upgrade, it's either cpu or gpu
21:31:50 <xarick> already upgraded from 16 gb ram to 32
21:32:19 <xarick> depends on how good of a game poe 2 will be
21:32:25 <truebrain> talltyler: I really like the 2h 0m solution for savegames; it looks nice ๐Ÿ™‚
21:32:42 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #11912: Fix #11910: Use alternate timekeeping units in savegame title https://github.com/OpenTTD/OpenTTD/pull/11912
21:33:24 <talltyler> Edited to remove mention of an issue that doesnโ€™t fix (but I pushed before editing PR title)
21:33:45 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #11263: Feature: Procedural tree growth https://github.com/OpenTTD/OpenTTD/pull/11263#pullrequestreview-1849814624
21:33:57 <talltyler> It doesnโ€™t dismiss your review, but still needs to run CI? Laaame
21:34:59 <truebrain> funny, I just fix that by changing the squash title of the commit ๐Ÿ˜„
21:36:01 <talltyler> Then itโ€™s wrong in the PR thoughโ€ฆ thought I could be sneaky and do it right
21:36:47 <truebrain> huh? I just change the title of the PR, and click squash and remove those letters ..
21:37:09 <truebrain> the commit messages in the PR itself are not really relevant, if that is what you worry about ๐Ÿ˜›
21:37:28 <truebrain> but as I find it really annoying that every commit you push is also mentioned in the PR, I never put PR numbers in my commits, and fix them in via Squash ๐Ÿ˜›
21:37:34 <peter1138[d]> Hmm, in the surveys, we have map_x and map_y separately, is there a total map size too?
21:37:39 <truebrain> as I push a lot of times .........
21:37:49 <peter1138[d]> i.e. area
21:38:01 <truebrain> peter1138[d]: not currently; can be fixed, ofc
21:39:14 <DorpsGek> [OpenTTD/nml] glx22 merged pull request #315: Add: Support for faster ship speed 23 and acceleration 24 (OTTD #10734) https://github.com/OpenTTD/nml/pull/315
21:39:40 <peter1138[d]> JGRPP uses play... smaller maps???
21:39:52 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #11263: Feature: Procedural tree growth https://github.com/OpenTTD/OpenTTD/pull/11263
21:39:58 <peter1138[d]> 10x9 vs 11x10
21:40:25 <truebrain> in general what I would like to do btw, is allow for correlations to be found
21:40:31 <truebrain> and I guess this is one of those correlations more than a new field
21:40:45 <truebrain> I also want to know: do players on an NxM map also have setting X enabled, for example
21:41:46 <_jgr_> https://cdn.discordapp.com/attachments/1008473233844097104/1201643377461047296/Trindtown_Transport_1990-01-01.png?ex=65ca909a&is=65b81b9a&hm=edd45a438e63f6ae1daec4eaadf620dc1e3cc95270199d0d595e6a1472140230&
21:41:46 <_jgr_> peter1138[d]: I did a WIP patch for that ๐Ÿ˜›
21:41:57 <truebrain> lol
21:41:58 <truebrain> why?
21:42:02 <peter1138[d]> The stats are weird.
21:42:07 <_zephyris> Yes. Love it. Really fun challenge!
21:42:13 <peter1138[d]> 29.9% players have map_y = 10
21:42:22 <peter1138[d]> 2.0% players have map_x = 10
21:42:34 <peter1138[d]> Micromap
21:43:00 <_jgr_> truebrain: It was in the context of some joke at the time, I forget now
21:43:12 <truebrain> lol
21:43:29 <xarick> ```/** Maximum number of operations allowed for valuating a list. */
21:43:29 <xarick> static const SQInteger MAX_VALUATE_OPS = INT64_MAX;```
21:43:32 <xarick> FIXED!
21:44:12 <_glx_> that's too much
21:44:22 <truebrain> by some definition of "fix"
21:45:02 <_glx_> but if you change the `500000` with `1000000` it should be similar to what it was before
21:45:02 <truebrain> "the alarm get going off, so I removed the batteries" kinda "fixed"
21:45:11 <_jgr_> xarick: Now you'll just get some godawful integer overflow bug instead
21:45:28 <peter1138[d]> _glx_: Is there some extra overhead it in now?
21:45:38 <peter1138[d]> Or just counted differently more likely...
21:48:35 <_glx_> now it counts inside the VM, while before it was just a check inside the loop after the call
21:48:49 <_glx_> was `if (ScriptController::GetOpsTillSuspend() < -1000000) {`
21:49:13 <xarick> Hog survived 3 days
21:49:16 <xarick> with 1000000
21:49:20 <xarick> guess it's fine
21:49:21 <_glx_> so between 1000000 and 1000000+allowed opcodes
21:49:53 <_glx_> depending on when the Valuate happened
21:49:57 <xarick> it's august now, 8 months survival
21:51:30 <xarick> i should test more than just hog
21:52:05 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:56:15 <xarick> League table auto-resizes too often ๐Ÿ˜
21:58:27 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain closed issue #11910: [Bug]: `dmp_cmds_SEED_DATE.sav` fills the date part with the calendar date, not economy date. https://github.com/OpenTTD/OpenTTD/issues/11910
21:58:30 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain merged pull request #11925: Fix: use economy timer for dmp_cmds files https://github.com/OpenTTD/OpenTTD/pull/11925
21:58:51 <xarick> guess I'm not using it the expected way
22:00:59 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201648211106988072/2024-01-29_22-00-07.mp4?ex=65ca951b&is=65b8201b&hm=130d7cac91d0e23c3f202de2b261167d65a2dad169b5b141f5827abc3f72308f&
22:01:09 <truebrain> owh, right, gog-galaxy was acting up .. hmm
22:01:26 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #11924: Fix: Sandbox window does not reduce height when interface scale is reduced. https://github.com/OpenTTD/OpenTTD/pull/11924
22:02:29 <truebrain> so I compile against `libGalaxy64.dylib`, but when opening, it looks for `libGalaxy.dylib`
22:02:32 <truebrain> how does that make sense?
22:02:48 <_glx_> maybe it does in macos world ๐Ÿ™‚
22:03:38 <truebrain> and ofc no Mac access, so .... let's try some things?
22:04:05 <_glx_> could it be universal build weird stuff ?
22:04:09 <truebrain> I think so
22:04:36 <truebrain> @rpath/libGalaxy64.dylib
22:04:36 <truebrain> @rpath/libGalaxy.dylib
22:04:36 <truebrain> libGalaxy.dylib
22:04:44 <truebrain> is inside the dylib
22:05:14 <_glx_> the idea of universal build is nice, but the usage from dev POV is not
22:05:37 <truebrain> not without a Mac to anaylize the files ๐Ÿ˜„
22:07:24 <DorpsGek> [OpenTTD/gog-galaxy-social] TrueBrain opened pull request #5: Fix: [MacOS] name libGalaxy.dylib as it is internally called https://github.com/OpenTTD/gog-galaxy-social/pull/5
22:07:40 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201649895396876364/image.png?ex=65ca96ac&is=65b821ac&hm=0082308ba5fe3a44520c5cc710a75b73828b5afdec229d81a5e1acc8e8bfe1c7&
22:07:40 <xarick> that's a weird company name
22:07:46 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:09:14 <DorpsGek> [OpenTTD/gog-galaxy-social] TrueBrain updated pull request #5: Fix: [MacOS] name libGalaxy.dylib as it is internally called https://github.com/OpenTTD/gog-galaxy-social/pull/5
22:10:03 <truebrain> no actual way to test this without setting up all the secrets again on my fork, which is a very annoying job ..
22:10:24 <truebrain> guess I just have to ask mister MacOS to test my PR, checking if that works ๐Ÿ™‚
22:11:02 <truebrain> at least it compiles ๐Ÿ˜›
22:11:03 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler merged pull request #11912: Fix: Use alternate timekeeping units in savegame title https://github.com/OpenTTD/OpenTTD/pull/11912
22:12:17 <xarick> AICompany.SetName("Failed " + this.name);
22:12:23 <_glx_> truebrain: if only it was enough for macos stuff
22:12:25 <xarick> what is this.name
22:12:41 <_glx_> a variable in this
22:13:21 <_glx_> something in the AI code
22:14:32 <truebrain> https://github.com/TrueBrain/OpenTTD-gog-galaxy-social/actions/runs/7703130684/job/20992919658 : guess one of my secrets ๐Ÿ˜„
22:14:40 <xarick> name = null
22:15:01 <xarick> I don't remember the whole null 0x000 being printed before
22:15:35 <xarick> it's MpAI that does this when failing to build 2 airports
22:19:45 <truebrain> emperorjake: a request for you that takes a bit more effort .. so only if you have time, and are willing. Would you be willing to build your own OpenTTD with `-DOPTION_ALLOW_INVALID_SIGNATURE=ON`, and after that, see if the plugin from below works. It will also give a MacOS warning, as these are neither signed with a valid key for OpenTTD nor signed with a valid key for MacOS.
22:19:45 <truebrain> https://github.com/TrueBrain/OpenTTD-gog-galaxy-social/releases/tag/test5
22:19:45 <truebrain> I think that it might work; if so, it is finally the last of this series to test ๐Ÿ™‚
22:19:57 <truebrain> Also: `CP***ck: - p***ck***ge: bundles/gog-g***l***xy-soci***l-test5-m***cos-univers***l.dmg gener***ted.` .. best string EVAH ๐Ÿ˜„
22:24:03 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1201654015239127070/image.png?ex=65ca9a82&is=65b82582&hm=52c0e3cf655f975931c1ae424bedab8f8e0f29a04dd522aa13b5ed39a950de7c&
22:24:03 <xarick> the name in 13.4
22:24:49 <xarick> seems that AICompany.SetName("Failed " + this.name); fails to set the name in 13.4
22:24:57 <xarick> but not in current master
22:25:37 <xarick> it keeps the other name which is set before
22:26:06 <xarick> ``` /* Rename the company.*/
22:26:06 <xarick> if (!AICompany.SetName("mpAI")) {
22:26:06 <xarick> local i = 2;
22:26:06 <xarick> while (!AICompany.SetName("mpAI #" + i)) {
22:26:06 <xarick> i++;
22:26:08 <xarick> }
22:26:08 <xarick> }```
22:32:15 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10003: Fix #9903: Don't build houses around half-tile roads https://github.com/OpenTTD/OpenTTD/pull/10003
22:34:47 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10003: Fix #9903: Don't build houses around half-tile roads https://github.com/OpenTTD/OpenTTD/pull/10003#issuecomment-1915693779
22:35:55 <DorpsGek> [OpenTTD/OpenTTD] JGRennison closed issue #11291: [Bug]: Windows IME: Length unit mismatch using result of ImmGetCompositionString for GCS_CURSORPOS https://github.com/OpenTTD/OpenTTD/issues/11291
22:35:58 <DorpsGek> [OpenTTD/OpenTTD] JGRennison commented on issue #11291: [Bug]: Windows IME: Length unit mismatch using result of ImmGetCompositionString for GCS_CURSORPOS https://github.com/OpenTTD/OpenTTD/issues/11291
22:39:36 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10003: Fix #9903: Don't build houses around half-tile roads https://github.com/OpenTTD/OpenTTD/pull/10003
22:43:04 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #10003: Fix #9903: Don't build houses around half-tile roads after a bridge or tunnel https://github.com/OpenTTD/OpenTTD/pull/10003#issuecomment-1915703803
22:45:08 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #10003: Fix #9903: Don't build houses around half-tile roads after a bridge or tunnel https://github.com/OpenTTD/OpenTTD/pull/10003
22:50:42 <DorpsGek> [OpenTTD/OpenTTD] LC-Zorg commented on pull request #11923: Change: position error window closer to cursor on large screens https://github.com/OpenTTD/OpenTTD/pull/11923#issuecomment-1915712364
22:52:08 <peter1138[d]> "nobody knows what I'm talking about" probably means your description is lacking.
22:54:00 <truebrain> _jgr_: / Rubidium: https://github.com/LoupVaillant/Monocypher/issues/270
22:54:19 <truebrain> So yeah, the interface is extremely easy ๐Ÿ™‚
22:54:54 <locosage> peter1138[d]: if you mean 10003 whole description is in 9903, 10003 is just a tiny fix
22:55:16 <_jgr_> truebrain: Sounds great ๐Ÿ™‚
22:55:25 <truebrain> Wait, my ticket didn't get zorged by zorg? \o/ quick, merge!
22:56:46 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
23:00:47 <peter1138[d]> > Maybe it's even better than before.
23:01:12 <peter1138[d]> Implies that the default assumption is that is isn't better than before...
23:03:22 <xarick> 10152 and 8895 are both ... terrible merges ๐Ÿ˜ฆ
23:03:59 <xarick> oh well, sorry...
23:04:20 <truebrain> Marvin entered the chat again
23:04:37 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
23:06:13 <xarick> I could agree with making the settings editable from the scenario editor
23:06:19 <xarick> but not during a game
23:07:20 *** tokai has joined #openttd
23:07:20 *** ChanServ sets mode: +v tokai
23:08:17 <xarick> it wasn't tested properly, there are more places in code that would need handling to make the settings actually editable
23:09:38 <xarick> and it risks breaking scripts foremost
23:11:14 <xarick> it feels like a punch in the stomach for those who designed that functionality before them
23:11:31 <xarick> oh well, I'm off to bed
23:13:46 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
23:28:40 *** tokai|noir has joined #openttd
23:28:40 *** ChanServ sets mode: +v tokai|noir
23:35:25 *** tokai has quit IRC (Ping timeout: 480 seconds)
23:39:05 *** Wormnest has joined #openttd
23:43:55 <emperorjake> I think it would be a good idea if towns did build houses around road endings if towns can build roads is disabled
23:57:03 <Eddi|zuHause> i disagree
23:57:20 <Eddi|zuHause> because then players trying to connect to the town must dismantle buildings first