IRC logs for #openttd on OFTC at 2024-04-05
            
00:43:55 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
00:48:37 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1225607994906116137/image.png?ex=6621bf64&is=660f4a64&hm=581f573c3233275fe7a7aa2d94e0a491bd7600fd038f3eac90686fd4b131916b&
00:48:50 <peter1138> Should be asleep, of course, but...
00:50:30 *** bertvvvs has quit IRC (Quit: You have a nice day.)
00:53:41 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1225609273648611349/image.png?ex=6621c095&is=660f4b95&hm=0b6273ea04812329302d827b6ded716f2096550ed77b5d0877df43a91011bd72&
00:53:41 <peter1138> Hmm, George seems to have gone for "actual numbers" or something, instead of prototypical models. Do we need some flag so that only one of a kind can be built...
00:54:33 <peter1138> (The stats on these are all the same, just the introduction year increases)
00:56:07 *** emperorjake has joined #openttd
00:56:08 <emperorjake> Limiting how many of a certain vehicle can be built, seems like a "bad feature" to me
00:56:53 <peter1138> Quite. As does making 8 almost identical engines.
01:19:24 *** johnfranklin has joined #openttd
01:19:24 <johnfranklin> I heard something very terrible happened
01:28:47 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12423: Fix #12233: Mini order list overlaps vehicle group name. https://github.com/OpenTTD/OpenTTD/pull/12423#pullrequestreview-1981484993
01:29:13 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12424: Fix #12114: Viewport coords of crashed aircraft not updated when falling. https://github.com/OpenTTD/OpenTTD/pull/12424#pullrequestreview-1981485278
01:56:23 *** Wormnest has quit IRC (Quit: Leaving)
02:56:25 *** D-HUND has joined #openttd
02:59:45 *** debdog has quit IRC (Ping timeout: 480 seconds)
03:03:00 *** gnu_jj_ has joined #openttd
03:06:07 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
03:28:06 <DorpsGek> [OpenTTD/OpenTTD] CI - Nightly workflow was not successful https://github.com/OpenTTD/OpenTTD/actions/runs/8564391217
04:09:41 *** keikoz has joined #openttd
04:43:31 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/df3e5ade11db714d06d2ab1b63b2c565eb5917bd
04:43:32 <DorpsGek> - Update: Translations from eints (by translators)
04:51:12 *** D-HUND is now known as debdog
05:12:01 *** keikoz has quit IRC (Ping timeout: 480 seconds)
05:25:24 <DorpsGek> [OpenTTD/OpenTTD] Release workflow was not successful https://github.com/OpenTTD/OpenTTD/actions/runs/8565289970
06:24:08 <andythenorth> peter1138: yes, then the UK sets can be limited to the number of real class 58s built
06:38:52 <emperorjake> or JP+ Engines can be like, no you only get 1 of these, it's a prototype
06:49:11 <emperorjake> would it be per map or per company?
07:08:43 <peter1138> Ever.
07:13:56 <andythenorth> if you scrap it, you can't get it back
07:14:13 <andythenorth> but we'd have to add vehicles-in-vehicles, so you could low-loader it across the map
07:14:34 <andythenorth> new disaster https://www.youtube.com/watch?v=OvyIrsZ7Zhs
07:17:46 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12424: Fix #12114: Viewport coords of crashed aircraft not updated when falling. https://github.com/OpenTTD/OpenTTD/pull/12424
07:17:49 <DorpsGek> [OpenTTD/OpenTTD] PeterN closed issue #12114: [Bug]: Crashed aircraft texture is flickering https://github.com/OpenTTD/OpenTTD/issues/12114
07:18:15 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12423: Fix #12233: Mini order list overlaps vehicle group name. https://github.com/OpenTTD/OpenTTD/pull/12423
07:18:18 <DorpsGek> [OpenTTD/OpenTTD] PeterN closed issue #12233: [Bug]: Text overlap in company vehicle lists https://github.com/OpenTTD/OpenTTD/issues/12233
07:24:16 <peter1138> One way to solve #12100 is to use a different flag for random flipping, and only (try to) copy the manually flipped flag.
07:24:36 <peter1138> But then there would be 4 different flags related to reversing rail vehicles...
07:30:05 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
07:36:21 <andythenorth> who reported that anyway?
07:37:54 <LordAro> peter1138: re #12233 - what happens if there are 5 orders? looks suspiciously like it would overlap the lower text
07:38:14 <peter1138> It's always limited to 4.
07:38:49 <LordAro> ah good
07:39:21 <peter1138> vehicle_gui.cpp:1625
08:16:32 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
08:16:41 *** Smedles has joined #openttd
08:55:25 *** gelignite has joined #openttd
08:58:56 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1225731387378630727/Unnamed_2000-11-21.png?ex=6622324f&is=660fbd4f&hm=c8c8f7e8224606a2828135217fe0115773bef53254259e6b3419e3de27ff7690&
08:58:56 <xarick> I was aiming at ~9 ms
08:59:05 <xarick> I get 14 ms 😦
08:59:11 <xarick> I fail
09:40:01 *** lemuria0685 has joined #openttd
09:40:01 <lemuria0685> has there been any progress on openttd 14 or are we still being held back
09:40:17 <lemuria0685> (wait, does jgr 0.58.1 already have vanilla 14 features)
09:41:13 <andythenorth> nothing is known to have changed with the upstream issues
09:42:07 <andythenorth> alternatives to waiting have been explored, but not fruitful
09:43:46 *** kamnet has joined #openttd
09:43:46 <kamnet> andythenorth: JGR does have 14 features. You can also just be playing the 14.0-RC3 release right now.
09:44:20 <andythenorth> discord reply strikes again?
09:44:20 <lemuria0685> yeah i think i'm good, i'm a jgr player so won't be affected that much by the xz drama
09:45:05 *** matusguy has joined #openttd
09:46:17 <kamnet> Sorry didn't have my glasses on.
09:46:56 *** bertvvvs has joined #openttd
09:52:32 *** reldred has joined #openttd
09:52:32 <reldred> lemuria0685: It’s probably holding up JGR bumping out any new releases as well depending what his release build chain looks like
09:53:21 *** matusguy_ has joined #openttd
09:59:37 *** matusguy has quit IRC (Ping timeout: 480 seconds)
09:59:37 *** matusguy_ is now known as matusguy
10:04:55 *** _jgr_ has joined #openttd
10:04:55 <_jgr_> I could work around it, but it's not worth the bother as there's no rush from my end
10:39:10 *** Flygon has joined #openttd
10:50:12 <lemuria0685> Yeah I'm not exactly starving for new JGR features, so take your time...
10:51:22 <lemuria0685> ~~I would like to cast a curse on the xz backdoor attacker/s where every mode of transport with a schedule they take will always be severely delayed. Canceled flights, 4 hour late trains, and so much more~~
11:17:08 *** keikoz has joined #openttd
11:27:24 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic updated pull request #12335: Fix #12228, #12231, #12333: Ship pathfinder always considered reversing https://github.com/OpenTTD/OpenTTD/pull/12335
11:28:50 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic commented on pull request #12335: Fix #12228, #12231, #12333: Ship pathfinder always considered reversing https://github.com/OpenTTD/OpenTTD/pull/12335#issuecomment-2039565597
11:29:21 *** kuhnovic has joined #openttd
11:29:21 <kuhnovic> xarick: I'm curious if this fixes the issues you recently saw with ships getting stuck
11:32:41 <peter1138> Will we ever fix line drawing or should I switch to rect drawing... hmm.
11:33:22 *** gelignite has quit IRC (Quit: Stay safe!)
11:36:32 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1225771049480749078/image.png?ex=6622573f&is=660fe23f&hm=4ca3ec888a53908f5f92f1cbe2824feca126338d514f72f4157bf4c9cfb49e18&
11:36:32 <peter1138> And is this acceptable...
11:42:37 <peter1138> Is salad?
11:53:58 <andythenorth> salad is
11:54:11 <peter1138> Failure, I have nothing to salad with.
11:54:29 <andythenorth> my salad was toast
12:00:32 <peter1138> Cheese hot cross bun, and a packet of fridge raiders.
12:06:27 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1225778579581964288/image.png?ex=66225e43&is=660fe943&hm=2f306a3172b58b21f2f777c278343047624503c500bbea54334721e52ea20fb7&
12:06:27 <peter1138> Well, I guess it's better anyway.
12:09:41 <andythenorth> ship it in 14.0
12:12:07 *** nielsm has joined #openttd
12:15:14 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1225780790223306803/image.png?ex=66226052&is=660feb52&hm=c07f9ea3fb467d777d9c1dd1c512a979bf7de3b4c5a050becffd9e4db1916b11&
12:15:14 <peter1138> Also?
12:18:19 <xarick> OKAY LET'S TEST
12:26:29 *** talltyler has joined #openttd
12:26:29 <talltyler> Yes please, groups nested with whitespace only is really hard to read when you have a lot of groups
12:27:44 <peter1138> I came up with a decent enough algorithm to determine which levels continue with only one iteration of the completed list, so I'm happy with that πŸ˜„
12:29:47 <talltyler> Nice, I look forward to reviewing it πŸ™‚
12:33:03 <peter1138> If I could do SetBit/ClrBit concisely, it would be shorter πŸ™‚
12:34:04 <peter1138> Technically `x ? SetBit(mask, bit) : ClrBit(mask, bit);` works, but it's not really in the spirit of ternaries.
12:35:51 <peter1138> `if (x != HasBit(mask, bit)) ToggleBit(mask, bit);` probably too, but then it's not clear what is happening.
12:38:13 <_jgr_> Existing code tends to use SB for this case
12:39:19 <peter1138> Hmm, good point.
12:39:20 <andythenorth> VariantContainers? πŸ˜›
12:41:28 <peter1138> Interesting, SB() (like the others) also returns the value along with changing it in-place, but that feature is not used anywhere.
12:42:53 <peter1138> Given my next line of code is assigning the value to something else, I could do that. But I think that may just be confusing.
12:49:21 *** nielsm has quit IRC (Ping timeout: 480 seconds)
13:34:42 <xarick> kuhnovic: there are still some lost ships
13:36:18 <kuhnovic> xarick: I saw lost ships in my saves too, but not all lost ships are stuck ships. Sometimes the AI blocks its own routes, and the ships are legitimately lost.
13:37:26 <xarick> less frequent I guess, but they still get in that limbo
13:38:22 <kuhnovic> But is it really a limbo? Do you have a save that shows it? (Preferably not 70K ships on a 4K map)
13:41:55 <xarick> eh....
13:42:09 <xarick> i guess im gonna start a new save
13:42:14 <xarick> 1 company only
13:43:48 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1225803079849345105/image.png?ex=66227514&is=66100014&hm=bdaa0d038e31cdc29f523a7660432a707264052f18e3c5de858108027ad55e6b&
13:43:48 <xarick> starting a new game and got a crash
13:43:55 <xarick> wondering if it's a me problem
13:45:45 <xarick> it's a me problem
13:45:59 <xarick> my debug code is not resilient enough when generating rivers
13:48:33 <xarick> rivers have no tracks
13:48:46 <xarick> the pf
13:48:51 <xarick> building rivers, that is
14:03:52 <peter1138> As per #12043, should the tree lijnes have shadows...
14:06:47 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #12425: Fix: Aircraft crash counter was too low to reach ground. https://github.com/OpenTTD/OpenTTD/pull/12425#issuecomment-2039900199
14:16:56 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1225811416884187196/image.png?ex=66227cd8&is=661007d8&hm=13250e2be9c090db26378ca85942c45ecee9df1fea18b5240db8d91a7237ddd4&
14:16:56 <peter1138> Such shadows?
14:18:07 <peter1138> Kinda think it's too prominent.
14:26:30 *** Compu has joined #openttd
14:26:59 *** Compu has quit IRC ()
14:44:35 <_glx_> the "-" looks too flat
14:44:50 <_glx_> with the line shadow
14:45:09 <talltyler> Yeah, the circle is missing its shadow
14:45:57 <peter1138> The circle is separate, that's a sprite and I'm not touching that here.
14:46:51 <LordAro> dynamic shadows when?
14:47:03 <LordAro> implement ray tracing just to display the UI
14:47:08 <peter1138> Depending on the time of day?
14:47:14 <LordAro> absolutely
14:47:49 <LordAro> "-" looks fine to me, fwiw
14:53:39 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #12422: Fix: Viewport signs assume small font is smaller than normal font. https://github.com/OpenTTD/OpenTTD/pull/12422#pullrequestreview-1983420652
14:59:46 *** gelignite has joined #openttd
15:14:38 *** matusguy has quit IRC (Remote host closed the connection)
15:21:01 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1225827541617475624/Screencast_from_2024-04-05_16-20-24.webm?ex=66228bdc&is=661016dc&hm=5d9afe22b259a03408f2dc18d33b531d4e350d3389f5a5c48d0ac0ffa9214554&
15:21:01 <peter1138> Hmm...
15:23:41 <xarick> Can't get any ship lost 😦
15:23:44 <xarick> but why
15:28:26 <xarick> maybe i need more samples
15:40:03 *** j_n has joined #openttd
15:40:03 <j_n> peter1138: what's going on here
15:40:07 <j_n> I don't remember planes falling out of the sky like that
15:48:17 <peter1138> You're just not trying hard enough.
15:48:31 <j_n> I am currently trying
15:48:46 <j_n> I have a 64x[max map size possible in JGRPP] map
15:48:58 <j_n> seeing if a yate haugan can reach the other end
15:49:33 <j_n> it'll probably crash long before it even has a chance of reaching the other end
15:49:40 <j_n> from lack of fuel
15:49:51 <j_n> on an unrelated note, I should probably try playing on a thin map one day
15:50:00 <peter1138> If they had fuel, perhaps.
15:50:16 <j_n> I was pretty sure aircraft would fall out of the sky if they flew for too long
15:52:05 <j_n> I should probably try this with a road vehicle one day
15:54:22 <xarick> should crash the busses
15:54:26 <xarick> while at it
15:54:38 <xarick> or ships or trains and so on
15:55:42 <j_n> reminds me of that pull request for OpenTTD that made hoverboats able to freely traverse land tiles and destroy trains
15:55:49 <j_n> sadly it wasn't accepted
15:56:09 <j_n> would've made for a great April Fools update
15:58:40 *** _zephyris has joined #openttd
15:58:40 <_zephyris> peter1138: I posted the necessary sprites in the bug report πŸ™‚
15:59:05 <peter1138> Sure but I'm not touching the sprites here.
15:59:30 <_zephyris> peter1138: More contrast is better!
16:00:13 <_zephyris> It's not too much visual noise, and it increases contrast. Those are the fundamental rules of good visual readability.
16:00:22 <_zephyris> (thanks for taking a look πŸ™‚ )
16:01:09 <peter1138> The sprites, you can just open a PR to change then if you wish.
16:01:23 <truebrain> Lol, the xz github repo is no longer blocked.. it is removed πŸ˜›
16:01:33 <peter1138> While they're in the same area, the changes are not really related.
16:03:09 <andythenorth> j_n: it was never intended for merge πŸ™‚
16:03:14 <andythenorth> it was a joke for a livestream
16:04:09 <peter1138> Someone poured their soul into that patch, only for the devs to REFUSE it!
16:04:54 <truebrain> Poor frosch, will he ever become a dev to avoid this problem?
16:06:23 <andythenorth> I think not
16:09:18 <FLHerne> I linked all my friends to that gronk video
16:09:45 <FLHerne> every single one of them said something like "...what is this nonsense I don't get it"
16:10:07 <FLHerne> we must all have gone mad
16:12:31 <FLHerne> it's still hilarious but I don't know why
16:23:18 *** HerzogDeXtEr has joined #openttd
16:30:36 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #12425: Fix: Aircraft crash counter was too low to reach ground. https://github.com/OpenTTD/OpenTTD/pull/12425
16:39:48 *** Wormnest has joined #openttd
16:59:57 <peter1138> tt-forums?
17:05:10 <andythenorth> was it?
17:05:15 <andythenorth> it was
17:18:38 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #12425: Fix: Aircraft crash counter was too low to reach ground. https://github.com/OpenTTD/OpenTTD/pull/12425#issuecomment-2040291382
17:19:12 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #12425: Fix: Aircraft crash counter was too low to reach ground. https://github.com/OpenTTD/OpenTTD/pull/12425#pullrequestreview-1983756537
17:20:49 <kamnet> Who is in charge of tt-wiki.net?
17:21:05 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #12425: Fix: Aircraft crash counter was too low to reach ground. https://github.com/OpenTTD/OpenTTD/pull/12425
17:21:26 <peter1138> Well I can't be expected to read all of a single comment...
17:21:27 <peter1138> :S
17:21:53 <peter1138> Probably orudge. tt-forums is down too.
17:31:59 *** Ox7C5 has joined #openttd
17:32:57 <DorpsGek> [OpenTTD/OpenTTD] ladysadie updated pull request #12413: Codechange: Remove per font AA settings. https://github.com/OpenTTD/OpenTTD/pull/12413
17:49:43 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1225864963973976155/image.png?ex=6622aeb6&is=661039b6&hm=5ebfba768613162e2525edb6c320861a535317c22b97bad0b25853654a264fae&
17:49:43 <andythenorth> not sure I'm going to watch this πŸ˜›
17:50:03 <andythenorth> YouTube has put me into a clickbait hole
17:50:07 *** silent_tempest has joined #openttd
17:50:07 <silent_tempest> Huh okay did not know that Github would update that PR automatically.
17:55:10 <_glx_> if you push it updates
17:56:46 <xarick> I can't trigger the ship issue in a new game 😦
17:57:00 <xarick> but it still happens in that 70k save 😦
17:57:53 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #12425: Fix: Aircraft crash counter was too low to reach ground. https://github.com/OpenTTD/OpenTTD/pull/12425#pullrequestreview-1983814390
17:57:53 <xarick> it's rarer, but still happens
18:00:01 <j_n> andythenorth: well there was a real backdoor in .xz
18:00:07 <j_n> but it didn't really wreck anything
18:00:12 <j_n> my distro version wasn't even affected
18:01:31 *** locosage has joined #openttd
18:01:31 <locosage> I just got sent this: <https://pvs-studio.com/en/blog/posts/cpp/1112/>
18:01:52 <locosage> someone ran a static analyzer on openttd and made an article out of it
18:02:18 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1225868132149624933/image.png?ex=6622b1aa&is=66103caa&hm=765e39ae0e296129461cde94a2ff7de81a98eaf3502fbc47eecffcdbdf8c7497&
18:02:42 <xarick> can't reproduce it yet on a new game, kuhnovic
18:02:50 <locosage> well, I guess that someone is related to said analyzer development xD
18:03:01 <xarick> the issue is rare now
18:04:48 <kuhnovic> Good, I might have just fixed it πŸ˜‰
18:05:10 <LordAro> locosage: would've been nice if they actually reported the issur
18:13:06 <LordAro> 479 usages of lengthof in the source
18:13:12 <LordAro> bit of an effort to replace them
18:14:50 <LordAro> maybe just needs s/lengthof/std::size/ and seeing what breaks :D
18:15:13 <locosage> Layers:
18:15:13 <locosage> Shifts:
18:15:23 <locosage> oops
18:15:29 <peter1138> It's not like I've not been doing them slowly...
18:15:38 <locosage> just replace and wait for the next article xD
18:15:41 <peter1138> But usually with more appropriateness than just replacing lengthof with sizeof
18:16:26 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12425: Fix: Aircraft crash counter was too low to reach ground. https://github.com/OpenTTD/OpenTTD/pull/12425
18:19:17 <peter1138> Often it's replacing with iterators, range-for, or a begin/end pair.
18:19:50 <LordAro> mm
18:20:37 <j_n> j_n: he's still at it
18:23:25 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #12426: Codechange: Replace colour_dropdown array with StringID arithmetic. https://github.com/OpenTTD/OpenTTD/pull/12426
18:24:21 <peter1138> That got rid of both a lengthof and an endof...
18:32:33 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #12427: Codechange: Simplify iteration of framerate performance elements. https://github.com/OpenTTD/OpenTTD/pull/12427
18:32:56 <peter1138> Some of these I touched ages ago but they're either long lost in a branch or... a stash.
18:33:05 <peter1138> But easy enough to just redo them.
18:37:43 <xarick> auto everywhere
18:38:40 *** merni has joined #openttd
18:38:40 <merni> Peter "I have two patches for that now" 1138
18:41:52 <xarick> Hog is bad with locks
18:41:55 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1225878100252823562/image.png?ex=6622baf2&is=661045f2&hm=338df48c1604cc173bc3094678a1bf2fee8ba1e276d9525a3bc1f354cdfcfc26&
18:42:05 <xarick> blocks himself
18:42:12 <xarick> not even the opponent
18:42:38 <merni> Sounds like something for Discord channel #add-on-development :p
18:44:27 <xarick> technically not blocked, there's a detour to the north
18:44:34 <xarick> but it looks bad
18:47:39 <merni> well the "blcoked" lock is useless anyway
18:47:46 <merni> doesn't provide a useful route
18:51:28 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #12428: Blitter init c++ https://github.com/OpenTTD/OpenTTD/pull/12428
18:51:38 <peter1138> Oh, title.
18:53:44 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12427: Codechange: Simplify iteration of framerate performance elements. https://github.com/OpenTTD/OpenTTD/pull/12427#pullrequestreview-1983980057
18:53:59 <xarick> vehicle lists still taking lots of cpu time 😦
18:54:33 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12426: Codechange: Replace colour_dropdown array with StringID arithmetic. https://github.com/OpenTTD/OpenTTD/pull/12426#pullrequestreview-1983981130
18:54:53 *** Wolf01 has joined #openttd
18:56:49 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12428: Codechange: Replace C-style code in replacement blitter init. https://github.com/OpenTTD/OpenTTD/pull/12428#pullrequestreview-1983984194
18:57:56 <peter1138> You'll get bored of this...
18:57:57 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #12429: Codechange: Use range-for to iterate keycode-to-name lookups. https://github.com/OpenTTD/OpenTTD/pull/12429
18:58:27 <DorpsGek> [OpenTTD/OpenTTD] github-advanced-security[bot] commented on pull request #12426: Codechange: Replace colour_dropdown array with StringID arithmetic. https://github.com/OpenTTD/OpenTTD/pull/12426#pullrequestreview-1983987388
18:58:54 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12429: Codechange: Use range-for to iterate keycode-to-name lookups. https://github.com/OpenTTD/OpenTTD/pull/12429#pullrequestreview-1983988961
18:59:26 <talltyler> Before or after you get bored of this?
19:01:41 <peter1138> I think the fact I'm doing it again instead of just pulling out my old patches suggests I will not get bored πŸ™‚
19:01:50 <talltyler> CodeQL says I’m a bad reviewer πŸ˜›
19:02:29 <peter1138> Fix one thing, introduce another,sigh.
19:04:55 <peter1138> We have CodeQL because we're all otherwise human. And it's hard to spot things that are slightly outside the code...
19:05:25 <peter1138> I do smirk at the suggestion that we use "lengthof" because we googled how to do it in C++...
19:06:46 *** keikoz has quit IRC (Ping timeout: 480 seconds)
19:18:41 <talltyler> And listened to the AI-generated quick answer
19:24:26 <DorpsGek> [OpenTTD/OpenTTD] PeterN dismissed a review for pull request #12426: Codechange: Replace colour_dropdown array with StringID arithmetic. https://github.com/OpenTTD/OpenTTD/pull/12426#pullrequestreview-1983981130
19:24:29 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #12426: Codechange: Replace colour_dropdown array with StringID arithmetic. https://github.com/OpenTTD/OpenTTD/pull/12426
19:26:58 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1225889438035345518/2024-04-05_20-24-08.mp4?ex=6622c581&is=66105081&hm=36772e240f195400f07f0a513cc1c098a4438dadb4a70494cc6220c7882ab049&
19:26:58 <xarick> kuhnovic: same problem apparently
19:27:42 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12426: Codechange: Replace colour_dropdown array with StringID arithmetic. https://github.com/OpenTTD/OpenTTD/pull/12426#pullrequestreview-1984030229
19:28:27 <xarick> it really is specific
19:28:40 <xarick> needs the right set of conditions to trigger it
19:29:34 <xarick> two path choices once again
19:29:55 <xarick> switching regions
19:32:56 <xarick> I have a weird idea
19:33:06 <xarick> probably worth trying
19:34:31 <xarick> increase NUMBER_OR_WATER_REGIONS_LOOKAHEAD by 1 on reverse... but ehm, nevermind, not going to be easy to implement
19:34:57 <andythenorth> so....articulated ships then? πŸ™‚
19:35:08 <andythenorth> or multiple holds?
19:35:17 <andythenorth> hmm if we had ships-in-ships....
19:35:25 <andythenorth> we could have 'hold' vehicles
19:45:18 *** keikoz has joined #openttd
19:46:04 <xarick> or maybe SHIP_REVERSAL_PENALTY needs to be a bigger number, sufficient enough not to be ambiguous in path choice
19:47:31 <xarick> was thinking about 1 million
19:49:08 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #12430: Codechange: Use intiializer_list and range-for for OpenTTD title. https://github.com/OpenTTD/OpenTTD/pull/12430
19:51:37 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #12431: Codechange: Use std::initializer_list and range-for for credits window. https://github.com/OpenTTD/OpenTTD/pull/12431
19:51:45 <peter1138> Okay, that's enough for the moment...
19:52:23 *** gnu_jj has joined #openttd
19:53:15 <peter1138> So preferences for this hierarchy tree, shadow or no shadow?
19:54:07 <xarick> a big penatly solved this specific case πŸ™‚
19:54:17 *** gnu_jj_ has quit IRC (Ping timeout: 480 seconds)
19:55:18 <locosage> shadow is not a bad idea in principle
19:55:24 <locosage> peter1138: but this looks meh imo
19:55:59 <peter1138> Why?
19:56:57 <locosage> idk, it just does
19:57:04 <locosage> maybe will help if icon has shadow too
19:57:08 <peter1138> Perfect feedback πŸ™‚
19:57:15 <locosage> also maybe less dark shadow
19:57:15 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1225897059689693399/2024-04-05_20-54-36.mp4?ex=6622cc9b&is=6610579b&hm=cc5016173e3ee9ef7c5404caf76646a9ab2f64e2fe1e8ee7ffd791a75898e749&
19:57:15 <xarick> `constexpr int SHIP_REVERSAL_PENALTY = YAPF_TILE_LENGTH * 10000;` solved this case
19:57:22 <locosage> but then it won't be the same as text I guess
19:57:30 <peter1138> If it's just the icon, that's separately solvable, as I mentioned earlier.
19:57:39 <peter1138> Well text does have a shadow.
19:58:31 <peter1138> Oh, except it's mostly black, so doesn't πŸ˜„
19:59:10 <peter1138> My view is that it's visible without a shadow, and it is not really important enough to need to stand out.
20:00:54 <andythenorth> peter1138: no shadows
20:01:05 <andythenorth> rule of "don't add visual effects unless clearly better"
20:01:05 <xarick> question, does yapf have a safeguard for cost overflow?
20:02:19 <xarick> well, it's int
20:02:33 <xarick> maybe an assert doing cost < 0 would be sufficient
20:05:27 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1225899122276696125/image.png?ex=6622ce86&is=66105986&hm=a43a675a999a0e0213b113a3c81584b4ab69a383d2aa7bc25aa160f5b3d6f0ec&
20:05:27 <xarick> no more than 2147 reverses
20:09:29 <peter1138> Not having shadows saves me from having to implement a deferred line drawer (to ensure the "shadows" are drawn first)
20:11:01 <locosage> shadow sorter xD
20:11:29 <peter1138> Not exactly sorter, just creating a list of lines, then drawing them once they're all known.
20:11:38 <locosage> yeah, jk
20:11:48 <peter1138> If there was a z-buffer... πŸ˜„
20:12:00 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12431: Codechange: Use std::initializer_list and range-for for credits window. https://github.com/OpenTTD/OpenTTD/pull/12431#pullrequestreview-1984108542
20:13:22 <talltyler> #12430 has an annotation
20:13:39 <peter1138> And a typo.
20:15:06 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #12430: Codechange: Use intiializer_list and range-for for OpenTTD title. https://github.com/OpenTTD/OpenTTD/pull/12430
20:24:36 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
20:24:47 *** Smedles has joined #openttd
20:26:21 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12430: Codechange: Use initializer_list and range-for for OpenTTD title. https://github.com/OpenTTD/OpenTTD/pull/12430#pullrequestreview-1984129242
20:39:25 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 opened pull request #12432: Fix: do not use lengthof() for non C-style arrays https://github.com/OpenTTD/OpenTTD/pull/12432
20:51:39 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12426: Codechange: Replace colour_dropdown array with StringID arithmetic. https://github.com/OpenTTD/OpenTTD/pull/12426
20:52:53 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12430: Codechange: Use initializer_list and range-for for OpenTTD title. https://github.com/OpenTTD/OpenTTD/pull/12430
20:54:24 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #12422: Fix: Viewport signs assume small font is smaller than normal font. https://github.com/OpenTTD/OpenTTD/pull/12422
20:55:20 <_zephyris> There's an argument that the vehicle purchase/refit trees shouldn't have shadows to match the text, but then they should be solid black, to match the text. While the settings tree should be orange and shadowed, to match the text.
20:57:31 <_zephyris> https://cdn.discordapp.com/attachments/1008473233844097104/1225912224728485989/image.png?ex=6622daba&is=661065ba&hm=989377f810dcb1152bbba5f22264b13376a6459aae729ed05a3bbf09b20efa94&
20:57:31 <_zephyris> The orange lines on the mid gray background is very low contrast, just look at a greyscale screenshot to see the problem.
20:58:20 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1225912433458155540/image.png?ex=6622daec&is=661065ec&hm=b3921a8904dd66283a820ba821f5d345a121bf4aa73ea6ad23d3bf70951ab1fb&
20:58:20 <xarick> peter1138: vehicle number and group name are a bit too close
20:58:29 <_zephyris> https://cdn.discordapp.com/attachments/1008473233844097104/1225912469474639883/image.png?ex=6622daf5&is=661065f5&hm=156d52c99fd648c3c8c9128e15b573e50824d52a16a7357ca1555b25aca22a04&
20:58:29 <_zephyris> This would be more consistent/readable
21:02:44 *** gelignite is now known as Guest198
21:02:48 *** gelignite has joined #openttd
21:03:55 <peter1138> xarick: Make an issue or a PR.
21:05:03 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
21:05:22 <kuhnovic> xarick: Is there a savegame for "this case" πŸ˜‰?
21:05:49 <kuhnovic> I guess it needs further investigation. It's an annoying issue for sure.
21:05:55 <xarick> yes, but 70k
21:06:12 <xarick> I tested 1 million
21:06:22 *** Smedles has joined #openttd
21:06:26 <xarick> in 2 years there was no ships in limbo
21:06:39 <xarick> 1 million for the reverse cost
21:06:41 *** Guest198 has quit IRC (Ping timeout: 480 seconds)
21:06:54 <xarick> but I'm risking an overflow
21:07:42 <xarick> gonna test 100k next
21:07:56 <xarick> should be sufficient enough in most cases
21:09:43 <kuhnovic> I'm afraid this doesn't fix anything. Apparently there are still cases where an equilibrium is found that causes the ship to "ping-pong" .
21:10:15 <kuhnovic> Changing the penalty apperently just result in different cases where such an equilibrium is reached
21:11:13 <kuhnovic> xarick: Well, it's better than nothing. Please make sure the viewport is looking at the location where the problem is, otherwise I'll never find it
21:11:34 <xarick> I think 1000 is a too small penalty
21:11:46 <xarick> that's like 10 tiles~
21:12:19 <xarick> enough tiles to trigger an alternate path in reverse to be cheaper ...
21:12:25 <kuhnovic> Which is roughly what you get if you make the ship turn around without doing any 90 degree turns
21:12:46 <kuhnovic> So in terms of actual penalty it makes sense
21:12:52 <xarick> especially also because the intermediate region on reverse also changes
21:13:15 <kuhnovic> xarick: What do you mean with that?
21:13:49 <xarick> it accounts +1/-1 region, if you seen the video
21:14:08 <xarick> https://discord.com/channels/142724111502802944/1008473233844097104/1225889438920474644
21:15:09 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #12422: Fix: Viewport signs assume small font is smaller than normal font. https://github.com/OpenTTD/OpenTTD/pull/12422#pullrequestreview-1984189150
21:16:41 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:16:42 <kuhnovic> Ah right, yeah that's problematic. And maybe that's where the problem lies. The high level PF doesn't add a penalty to the reverse region. Maybe it should.
21:17:54 <kuhnovic> Ok bedtime now, but I'm going to give this some more thought. Thanks for tortuse testing Xarick, you always manage to find some edge cases!
21:18:30 <xarick> im going to test 100k penalty, then 10k penalty
21:24:14 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
21:31:58 <xarick> i take too much time getting openttd version...
21:32:24 *** Ox7C5 has quit IRC ()
21:37:28 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick opened issue #12433: [Bug]: vehicle number and group name are a bit too close https://github.com/OpenTTD/OpenTTD/issues/12433
22:01:47 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
22:03:18 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #12434: Fix: Draw continuation lines for engine variant hierarchy tree. https://github.com/OpenTTD/OpenTTD/pull/12434
22:06:14 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #12434: Fix: Draw continuation lines for engine variant hierarchy tree. https://github.com/OpenTTD/OpenTTD/pull/12434#issuecomment-2040689946
22:06:58 <peter1138> Our text truncation seems to be a bit weird when drawing LTR text in RTL mode.
22:23:37 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12428: Codechange: Replace C-style code in replacement blitter init. https://github.com/OpenTTD/OpenTTD/pull/12428
22:25:33 <DorpsGek> [OpenTTD/OpenTTD] PeterN approved pull request #12432: Fix: do not use lengthof() for non C-style arrays https://github.com/OpenTTD/OpenTTD/pull/12432#pullrequestreview-1984289035
22:34:00 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1225936507706151012/image.png?ex=6622f158&is=66107c58&hm=cb13da5cdc8eeca9cecf75406488ddb2e61247370e513b20824cba08dcffe338&
22:34:00 <peter1138> Hmm.......
22:34:59 <peter1138> And this highlights a scaling issue...
22:37:15 *** gelignite has quit IRC (Remote host closed the connection)
22:37:24 *** gelignite has joined #openttd
22:44:47 *** Tirili has joined #openttd
22:54:31 *** gelignite has quit IRC (Remote host closed the connection)
23:13:21 *** rau117 has joined #openttd
23:13:21 <rau117> peter1138: This was done to give possibility to buy any old version in replacement of the only locomotive available which changes over time.
23:13:21 <rau117> With the β€œvehicles never expire” setting disabled, only 1-2 current versions should be possible to buy.
23:13:21 <rau117> Although we can add some kind of icon that displays the (im)possibility of buying a locomotive at the current date.
23:13:21 <rau117> An indirect solution would be possibility to hide all obsolete vehicles by ctrl+click on β€œhide” button (when vehicles never expire 1).
23:13:21 <rau117> It will help not only in `xussr` with dozen of variations, but also in `iron horse` with **hundreds **of variations.
23:29:38 <kamnet> Man I wish we had a real iOS developer now 😦