IRC logs for #openttd on OFTC at 2025-06-15
            
00:55:36 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
00:56:08 *** WormnestAndroid has joined #openttd
01:16:45 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP commented on pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365#issuecomment-2973411651
01:22:12 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP commented on issue #14360: [Bug]: `difficulty.construction_cost` is using `STR_SEA_LEVEL_LOW` https://github.com/OpenTTD/OpenTTD/issues/14360
01:23:11 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP closed issue #14058: [Bug]: font is blurry under wayland https://github.com/OpenTTD/OpenTTD/issues/14058
01:23:14 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP commented on issue #14058: [Bug]: font is blurry under wayland https://github.com/OpenTTD/OpenTTD/issues/14058
01:23:44 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP closed issue #13970: [Bug]: Settings search filter not working for CJK text https://github.com/OpenTTD/OpenTTD/issues/13970
01:23:47 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP commented on issue #13970: [Bug]: Settings search filter not working for CJK text https://github.com/OpenTTD/OpenTTD/issues/13970
01:24:57 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
01:24:58 *** WormnestAndroid has joined #openttd
01:25:04 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
01:25:09 *** WormnestAndroid has joined #openttd
01:47:05 *** Flygon has joined #openttd
02:23:47 *** Wormnest has quit IRC (Quit: Leaving)
02:34:26 *** gnu_jj_ has joined #openttd
02:37:46 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
04:10:56 *** keikoz has joined #openttd
04:31:49 *** ipravd has joined #openttd
04:34:13 *** ipravd has quit IRC ()
04:35:34 *** ipravd has joined #openttd
04:42:36 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/98b488f3668b49b27537e56010d60d2c919f1184
04:42:37 <DorpsGek> - Update: Translations from eints (by translators)
04:48:00 *** ipravd has quit IRC (Quit: WeeChat 4.3.1)
05:06:02 <DorpsGek> [OpenTTD/OpenTTD] janisozaur commented on pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365#issuecomment-2973498950
05:16:02 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP commented on pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365#issuecomment-2973502517
05:38:21 <DorpsGek> [OpenTTD/OpenTTD] Release workflow was not successful https://github.com/OpenTTD/OpenTTD/actions/runs/15659747647
06:17:31 <peter1138[d]> CF again?
06:18:14 *** truebrain has joined #openttd
06:18:14 <truebrain> Again being the proper word yes
06:53:48 <andythenorth> lol it's now time for my biannual confusion about BODMAS
06:53:59 <andythenorth> what is `1/2x` evaluated as ?
06:54:16 <andythenorth> confusion / lolz
06:54:56 <andythenorth> BODMAS says it's `0.5x`
06:55:11 <andythenorth> whereas if we wrote out the equation it's clear why BODMAS is so stupid
06:55:13 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1383701363380457623/image.png?ex=684fbfd0&is=684e6e50&hm=fb4bf6f2bddb82969d3be177ccbe17a1eb778d0cebd242f16605f995028c4058&
06:58:44 *** keoz has joined #openttd
07:01:39 *** keikoz has quit IRC (Ping timeout: 480 seconds)
07:11:54 *** Wolf01 has joined #openttd
08:02:18 <andythenorth> woah I just found some sources that basically explain BODMAS as a rule for evaluating expressions *as though the brackets were there*
08:02:22 <andythenorth> mind blown
08:05:16 <LordAro> andythenorth: i would treat 1/2x differently to 1/2*x
08:06:05 <LordAro> not that it matters because mul & div are associative
08:06:43 <LordAro> (in actual maths that is, there are of course differences with modular integer types)
08:07:50 <LordAro> and of course, the actual answer to all these questions "that's ambigious, write it more clearly"
08:08:13 <andythenorth> ^
08:08:16 <andythenorth> that
08:12:24 <DorpsGek> [OpenTTD/OpenTTD] MartenM commented on issue #14364: [Bug]: Stuck in tutorial in plane information screen https://github.com/OpenTTD/OpenTTD/issues/14364
08:37:28 <wensimehrp> https://cdn.discordapp.com/attachments/1008473233844097104/1383727094697164861/image.png?ex=684fd7c7&is=684e8647&hm=bfaa80a0b65c9f8e9e5a463954ab02f24bc433f43a6c1e8ee1e9fc19e38befbf&
09:02:11 <DorpsGek> [OpenTTD/OpenTTD] nielsmh commented on pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365#issuecomment-2973603729
09:34:38 <DorpsGek> [OpenTTD/OpenTTD] janisozaur commented on pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365#issuecomment-2973618477
09:51:53 <DorpsGek> [OpenTTD/OpenTTD] janisozaur updated pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365
09:52:23 <DorpsGek> [OpenTTD/OpenTTD] janisozaur commented on pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365#issuecomment-2973625999
10:01:09 *** SpComb has quit IRC (Ping timeout: 480 seconds)
10:41:20 <DorpsGek> [OpenTTD/OpenTTD] michicc commented on pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365#pullrequestreview-2929080399
10:42:51 <DorpsGek> [OpenTTD/OpenTTD] janisozaur commented on pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365#issuecomment-2973649292
11:20:12 <peter1138[d]> Oops.
12:25:55 *** keikoz has joined #openttd
12:28:49 *** keoz has quit IRC (Ping timeout: 480 seconds)
12:49:07 <michi_cc> _jgr_: Given that you've propbably looked at the railtype compatiblity train crash things more than me, what do you think about https://github.com/michicc/OpenTTD/commit/c49e454cf9b45b32d0cfd0859e33e0d4a574e970 ?
12:49:07 <michi_cc> This is different to your commit in that I don't want to prevent ending the reservation at the railtype transition in any case, just when it would produce a touching reservation. If there isn't any existing reservation that should be fine as a new reservations will just fail with an already reserved track in the way.
13:01:21 <_jgr_> michi_cc: I think that this is only a partial solution, because what is considered a touching reservation from the other side is a function of the railtype of the other vehicle, not only the railtype of the tile on the other side of the rail type transition. In principle the two tile rail types can be mutually incompatible, but one or both can be compatible with the other vehicle's railtype.
13:04:05 <_jgr_> In practice this makes it difficult to reason about, both in the code and for the player. So I don't think that it's too unreasonable to consider compatibility for the purpose of reservations to be if there is any direct or indeirect overlap at all in compatibility.
13:07:13 <_jgr_> With the multi railtype proposal PR, the other vehicle could also be compatible with both sides of the transition even if no individual railtype is.
13:10:14 <michi_cc> Hmm, yeah, so maybe just disallow any touching reservations whatsoever, no matter the railtype.
13:14:01 <brickblock19280> Why not have the train not collide when not inside each other
13:37:41 <michi_cc> Hmm, it kinda feels too easy to just mark any waiting position that has a reachable reserved track of any track type as blocked: <https://github.com/michicc/OpenTTD/commit/b5e348c82f5fe00c5a9e6fc4c95bfbf324dc5031> 🙂 So what am I missing?
13:55:19 <peter1138[d]> KISS?
14:00:08 <andythenorth> RailDuckTypes
14:00:16 <andythenorth> “Quack”
14:17:14 <DorpsGek> [OpenTTD/OpenTTD] janisozaur commented on pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365#pullrequestreview-2929622201
14:22:41 <DorpsGek> [OpenTTD/OpenTTD] michicc opened pull request #14366: Fix: Train path reservations on different railtypes could join leading to train crashes. https://github.com/OpenTTD/OpenTTD/pull/14366
14:25:22 <DorpsGek> [OpenTTD/OpenTTD] michicc commented on pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365#pullrequestreview-2929641460
14:34:37 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1383816976996241499/a-reasonably-decent-resolution-pixly-i-managed-to-find-of-v0-8qi84vxas27f1.png?ex=68502b7d&is=684ed9fd&hm=c16ba65ca7230c0ce6db33e5ada4f3ef0906085aa9c6e4e3c796d4c85318897b&
14:34:37 <peter1138[d]> When people say my flat junctions are unrealistic...
14:40:27 <DorpsGek> [OpenTTD/OpenTTD] cmcaine commented on pull request #14358: Codechange: use default OnHotkey handler for focusing editboxes https://github.com/OpenTTD/OpenTTD/pull/14358#issuecomment-2973980653
14:52:27 <DorpsGek> [OpenTTD/OpenTTD] janisozaur commented on pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365#pullrequestreview-2929710934
15:02:13 <mnhebi> peter1138[d]: theres plenty of junction types people consider "unrealistic" even tho they exist all over the place in real life.
15:03:15 <mnhebi> personally I prefer flat junctions, unless speed or throughput really require something more complicated..
15:08:39 <michi_cc> https://cdn.discordapp.com/attachments/1008473233844097104/1383825541697638420/1024px-CTA_loop_junction.png?ex=68503377&is=684ee1f7&hm=802574326bf35d778fec311c7250d700f592ceabba9ee5b94114c869cf7be051&
15:15:02 <peter1138[d]> "But that's a metro railtype not a non-metro railtype..."
15:15:43 <peter1138[d]> Hmm, how can I build for Mac OS and test builds for Mac OS...
15:15:58 <peter1138[d]> I have a suspicion...
15:20:55 <DorpsGek> [OpenTTD/OpenTTD] janisozaur updated pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365
15:28:00 <DorpsGek> [OpenTTD/OpenTTD] janisozaur commented on pull request #14365: Gamepad scrolling https://github.com/OpenTTD/OpenTTD/pull/14365#issuecomment-2974078898
15:30:04 <peter1138[d]> Hmm, second-hand via CEX is barely any cheaper.
15:30:11 <peter1138[d]> Well for a current model.
15:38:23 <michi_cc> So what *is* your suspicion?
15:38:43 <michi_cc> I think the usual macOS testing involves bothering andy 🙂
15:50:40 <peter1138[d]> I find that... unreliable.
15:50:53 <peter1138[d]> My suspicion is that the way to build and test is to buy one.
15:51:27 <DorpsGek> [OpenTTD/OpenTTD] cmcaine updated pull request #14358: Codechange: use default OnHotkey handler for focusing editboxes https://github.com/OpenTTD/OpenTTD/pull/14358
15:55:18 *** Wormnest has joined #openttd
16:24:38 <_glx_> peter1138[d]: the build part is easy (CI can do it), the test part is harder
16:29:56 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
16:52:21 <cmcaine> NWidgetCore *nw = this->GetWidget<NWidgetCore>(WID_TN_PAUSE);
16:52:21 <cmcaine> DrawString(nw->GetCurrentRect(), "F1"sv, TC_FROMSTRING, SA_LEFT, false, FS_NORMAL);
16:52:21 <cmcaine> This puts the string "F1" in the top left of the whole screen, what should I do to make it draw it on top of the widget?
16:55:29 <michi_cc> Widget positions are relativ the the window origin I think
16:55:42 <michi_cc> So you'd need to add the window origin to the rect.
16:55:49 <peter1138[d]> I would add generic drawing code to NWidgetLeaf::Draw()
16:57:01 <peter1138[d]> Those functions are passed the `Window *`, so you should be able to look up the hotkeys to and find a hotkey for the widget currently being drawn.
16:57:43 <peter1138[d]> It's then automatically drawn in the correct place with the correct widget cropping, and you don't need to add lots per-widget calls to draw things.
16:58:54 <peter1138[d]> "I would add" meaning... I would strongly recommend you should add it generically in a central place 🙂
17:01:59 <peter1138[d]> Something along the lines of `w->window_desc.hotkeys.FindByIndex(this->index)`
17:14:07 <_glx_> finding the right place usually makes things easier to implement
17:16:46 <peter1138[d]> Can make it easier than mocking it up 🙂
18:15:53 <andythenorth> peter1138[d]: I have spare the MBP that was running out infra
18:16:18 <andythenorth> I need to blank it and sell it to Music Magpie or something though 😐
18:19:44 <peter1138[d]> Base-spec Mac Mini is... "not too bad" but...
18:22:58 <peter1138[d]> Hmm, why did I add this parameter which is always set to true?
18:23:48 <andythenorth> Apple tax
18:24:09 <andythenorth> price-per-day is the better number 😛
18:24:25 <peter1138[d]> ?
18:25:31 <Rubidium> peter1138: obviously because you've got a branch where it's set to false
18:25:59 <peter1138[d]> Hmm, actually I probably did, buried under a load of refactors...
18:28:05 <andythenorth> https://www.apple.com/uk/shop/product/FU9D3B/A/Refurbished-Mac-mini-Apple-M4-Chip-with-10-Core-CPU-and-10-Core-GPU-Gigabit-Ethernet-?fnode=cd949791574c7ffd6c78aeabcd88ffc52de12b62ce4d4636075a27e6351ea2e27367446cc1f64cf54c2e6df75fc4b909af07f7edfb094493d8684c2144dd0ec0ce538962ec37535fe80318b30d34916e
18:28:10 <andythenorth> £509
18:29:16 <peter1138[d]> lol, cheaper than CEX.
18:29:20 <andythenorth> Old M2 with equivalent spec is selling for around £300 on eBay
18:29:28 <andythenorth> so own it for 2 years, sell it, costs £200
18:29:38 <andythenorth> 27p per day
18:29:55 <peter1138[d]> I don't sell computers.
18:30:18 <peter1138[d]> By the time I'm finished with them they are long obsolete and starting to die.
18:44:26 <peter1138[d]> This commit says it's from 1 year ago 😮
18:45:46 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
18:45:48 *** WormnestAndroid has joined #openttd
18:54:08 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #14366: Fix: Train path reservations on different railtypes could join leading to train crashes. https://github.com/OpenTTD/OpenTTD/pull/14366#pullrequestreview-2930255958
18:57:45 <andythenorth> `make -j 10 497.78s user 57.75s system 876% cpu 1:03.35 total`
18:57:56 <andythenorth> mine is 14 core, and 48GB, but eh
18:58:04 <andythenorth> RAM use seemed to peak around 800MB
18:59:11 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #14336: Codechange: Remove manual memory management from CountArticulatedParts https://github.com/OpenTTD/OpenTTD/pull/14336#pullrequestreview-2930269538
19:17:40 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #13303: Change: Implement side-by-side font cache, allowing use of multiple fonts. https://github.com/OpenTTD/OpenTTD/pull/13303
19:21:23 <DorpsGek> [OpenTTD/team] yamashita77 opened issue #645: [ja_JP] Translator access request https://github.com/OpenTTD/team/issues/645
19:26:23 <andythenorth> naptime?
19:28:34 <andythenorth> hmm we missed a whole dimension of railtypes: "manufacturer" https://www.rmweb.co.uk/forums/topic/192907-tt120-track-types/
19:28:53 <andythenorth> and whether it includes foam ballast or not
19:40:45 <Rubidium> andythenorth: what about the rail hardness?
19:41:10 <andythenorth> what about CWR vs 20m lengths?
19:41:40 <andythenorth> I was going to say superelevation, but we have that
19:41:45 <peter1138[d]> Heh
19:43:26 <Rubidium> and ofcourse the rail profiles :D
19:45:29 <Rubidium> and where I said hardness I probably should've used 'grade'
19:48:55 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #14332: Codechange: Use vector with unique_ptr instead of linked-list for base set lists. https://github.com/OpenTTD/OpenTTD/pull/14332
19:49:13 <andythenorth> what about whether it's been reprofiled recently?
19:49:28 <andythenorth> also the state of the roadbed affects vehicle speed
19:49:55 <andythenorth> https://www.youtube.com/watch?v=9X2A2f6E5DI
19:55:03 <brickblock19280> andythenorth: That's speed and axle loads
19:56:49 <DorpsGek> [OpenTTD/OpenTTD] github-advanced-security[bot] commented on pull request #13303: Change: Implement side-by-side font cache, allowing use of multiple fonts. https://github.com/OpenTTD/OpenTTD/pull/13303#pullrequestreview-2930319424
19:57:30 <DorpsGek> [OpenTTD/OpenTTD] github-advanced-security[bot] commented on pull request #13303: Change: Implement side-by-side font cache, allowing use of multiple fonts. https://github.com/OpenTTD/OpenTTD/pull/13303#pullrequestreview-2930319545
19:58:02 *** pitagoras991_44893 has joined #openttd
19:58:02 <pitagoras991_44893> I wonder if it would be possible to add an function to save and load presets of hidden vehicles
19:58:02 <pitagoras991_44893> To eg. hide the vehicles one does not use in extra big sets like 2cc train set?
19:58:02 <pitagoras991_44893> That would definitly be an good addition to OTTD
20:09:07 <DorpsGek> [OpenTTD/OpenTTD] michicc merged pull request #14366: Fix: Train path reservations on different railtypes could join leading to train crashes. https://github.com/OpenTTD/OpenTTD/pull/14366
20:10:43 <andythenorth> \o/
20:14:05 <DorpsGek> [OpenTTD/OpenTTD] michicc updated pull request #14357: Draft feature: Support for multi-railtype rail vehicles https://github.com/OpenTTD/OpenTTD/pull/14357
20:14:19 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #14332: Codechange: Use vector with unique_ptr instead of linked-list for base set lists. https://github.com/OpenTTD/OpenTTD/pull/14332#pullrequestreview-2930323068
20:32:32 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #14332: Codechange: Use vector with unique_ptr instead of linked-list for base set lists. https://github.com/OpenTTD/OpenTTD/pull/14332
20:37:40 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #14339: Codechange: Use unique_ptr instead of raw pointers in ScriptInstance. https://github.com/OpenTTD/OpenTTD/pull/14339
20:38:04 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #14336: Codechange: Remove manual memory management from CountArticulatedParts https://github.com/OpenTTD/OpenTTD/pull/14336
21:05:11 <peter1138[d]> Hmm, I guess storing a string that mostly isn't needed isn't the worst thing.
21:18:07 <andythenorth> oops
21:18:12 <andythenorth> sat here in the dark
21:18:15 <andythenorth> probably bedtime then
21:31:31 <peter1138[d]> Have you considered turning your monitor on so that it lights up enough of what's needed?
21:40:20 <andythenorth> well I only need to see what's on the screen right?
21:40:36 <peter1138[d]> Exactly.
21:41:59 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:01:47 *** tokai has joined #openttd
22:01:47 *** ChanServ sets mode: +v tokai
22:05:12 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:08:54 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
23:21:46 *** reldred has quit IRC (Quit: User went offline on Discord a while ago)