IRC logs for #openttd on OFTC at 2024-10-01
            
00:17:40 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
00:35:23 <wensimehrp> belajalilija: general suggestions? idk what JF is doing there
00:36:37 <wensimehrp> maybe he can fetch the member list of this discord server and dump it into a csv file and add it to the repo
00:37:46 <wensimehrp> 😎 maybe it's just because you're cool
01:03:38 *** Wormnest has joined #openttd
01:38:34 <DorpsGek> [OpenTTD/team] wolfgangdata opened issue #589: [de_DE] Translator access request https://github.com/OpenTTD/team/issues/589
02:11:33 *** gnu_jj_ has joined #openttd
02:14:44 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
02:19:18 *** Wormnest has quit IRC (Quit: Leaving)
02:22:11 *** D-HUND has joined #openttd
02:25:44 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:18:10 *** keikoz has joined #openttd
04:24:05 *** felix has quit IRC ()
04:24:40 *** felix has joined #openttd
04:59:20 *** keoz has joined #openttd
05:01:11 *** nielsm has joined #openttd
05:02:14 *** keikoz has quit IRC (Ping timeout: 480 seconds)
05:09:23 *** keoz has quit IRC (Ping timeout: 480 seconds)
07:41:23 <johnfranklin> Suggestions
07:45:35 <kuhnovic> Coffee
07:56:24 <peter1138> Please
07:58:41 <wensimehrp> wah aa
07:59:07 <johnfranklin> Lunch?
07:59:31 <wensimehrp> https://cdn.discordapp.com/attachments/1008473233844097104/1290583864606982194/image.png?ex=66fcfd63&is=66fbabe3&hm=77b75652c4ef569b9762d8e95618ec2f99f34f53383ef4f21594bdc51e173917&
07:59:31 <wensimehrp> certainly not a good time for lunch
08:04:22 <kuhnovic> Somewhere in the world people are having lunch right now
08:04:44 <peter1138> Usually me.
08:15:57 <DorpsGek> [OpenTTD/OpenTTD] rendomnet opened issue #12971: [Bug]: Mac Cursor is not moving https://github.com/OpenTTD/OpenTTD/issues/12971
08:20:22 *** SigHunter has quit IRC ()
08:25:50 *** SigHunter has joined #openttd
08:33:44 <xarick> hi
08:50:23 <xarick> testing```
08:50:23 <xarick> if (path_cache.empty()) {
08:50:23 <xarick> if (!empty_path && node->GetTrackdir() != INVALID_TRACKDIR) return node->GetTrackdir();
08:50:23 <xarick> /* A empty path means we are already at the destination. The pathfinder shouldn't have been called at all.
08:50:23 <xarick> * Return a random reachable trackdir to hopefully nudge the ship out of this strange situation. */
08:50:24 <xarick> return CreateRandomPath(v, path_cache, 1);
08:50:24 <xarick> }
09:31:59 <peter1138> "My phone has gone into DOS"
09:32:02 <peter1138> Argh :S
09:32:25 <peter1138> 1) your phone is probably bricked, 2) just because it's text on a black background doesn't mean it's DOS...
09:38:42 *** Flygon has joined #openttd
09:46:29 *** nielsm has quit IRC (Ping timeout: 480 seconds)
10:05:59 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1290615691585781852/image.png?ex=66fd1b07&is=66fbc987&hm=fba7cac63134b137a34440fba4653b233172c52b014f297ce25776b89bf279c4&
10:05:59 <xarick> oops
10:06:56 <xarick> i need track2 to match track in this specific case
10:07:53 <xarick> the tile that comes after trackdir_upper_e is trackdir_lower_e, glx was right
10:08:11 <peter1138> Hmm.
10:08:16 <peter1138> "What spacing does TTD use?"
10:08:28 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1290616316834746421/image.png?ex=66fd1b9c&is=66fbca1c&hm=2558c3f079a9eb7bc736ac37ad99070be581efc4536008368224c2af45dd4abb&
10:08:31 <peter1138> "Oh, that's nasty"
10:08:54 <xarick> ^_^
10:14:24 <peter1138> "Compact-mode"?
10:24:40 *** nielsm has joined #openttd
10:32:24 <belajalilija> johnfranklin: i did?
10:52:39 <DorpsGek> [OpenTTD/team] glx22 commented on issue #589: [de_DE] Translator access request https://github.com/OpenTTD/team/issues/589
10:57:32 <peter1138> <https://github.com/microsoft/vcpkg-tool/pull/1501> got applied at least.
11:02:00 <LordAro> yay
11:02:52 <peter1138> vcpkg updated too, just needs a release I guess.
11:03:22 <peter1138> Microsoft is evil -> entire build chain depends on it. Ah well πŸ˜‰
11:03:41 <peter1138> Quotes added πŸ˜‰
11:14:11 <LordAro> hehe
11:51:59 <kuhnovic> Do we always use the latest vcpkg?
11:54:15 <_glx_> We use whatever is bootstrapped
11:55:57 <_glx_> <https://github.com/OpenTTD/OpenTTD/blob/master/.github/workflows/ci-windows.yml#L37>
12:01:27 <kuhnovic> We could choose to clone a specific release. But then we'll forget to update πŸ˜›
12:01:48 <truebrain> Glad you ask and answer it yourself πŸ˜‰
12:03:38 <kuhnovic> I'm just narrating my own thoughts here
12:04:00 <kuhnovic> It's what people do πŸ˜‰
12:04:53 <andythenorth> wait, what?
12:04:57 <andythenorth> GPT? πŸ˜›
12:08:54 <truebrain> kuhnovic: Please don't make it a trend. One is plenty. We really don't need more. Please. No. Nooooo πŸ˜›
12:11:54 <peter1138> Oh, I'm sorry.
12:11:58 *** reldred has joined #openttd
12:11:58 <reldred> I try and solve that problem by not thinking
12:12:32 <andythenorth> I have paid a bot
12:12:36 <andythenorth> it listens better
12:12:45 <andythenorth> although it types WAY too much back
12:45:43 <peter1138> <https://x.com/bshlgrs/status/1840577720465645960>
12:52:57 <andythenorth> internet -> pastes stack overflow commands for 15 years without understanding
12:53:06 <andythenorth> LLMs -> trained on internet
12:58:31 <_glx_> restarted some failed CI runs for a test, I can confirm vcpkg is working
13:00:39 <peter1138> Hmm, so it doesn't track (github-tagged) releases then.
13:02:31 <_glx_> https://github.com/microsoft/vcpkg/commit/511d74f695bd45959d12b50b00f1b68f69e8f0b0
13:02:46 <_glx_> they updated in vcpkg repo πŸ™‚
13:03:15 <_glx_> and we always clone master
13:10:44 <LordAro> peter1138: screaming noises
13:11:29 <peter1138> Hmm?
13:11:38 <LordAro> the link
13:12:22 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12966: Codefix: First format argument of IConsolePrint not passed by reference https://github.com/OpenTTD/OpenTTD/pull/12966
13:12:29 <peter1138> Ahhh πŸ™‚
13:17:16 <LordAro> the log is really something
13:17:40 <truebrain> peter1138: I just suspect someone fucked up their laptop, and used ChatGPT to write a fake story about how an LLM caused it; I just refuse to believe that actual story πŸ˜›
13:18:13 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on issue #12968: [Bug]: #9833 removed the ability for newgrfs to create unremovable houses https://github.com/OpenTTD/OpenTTD/issues/12968
13:18:37 <LordAro> truebrain: i did wonder about apparently having homebrew on a ubuntu install
13:18:44 <LordAro> i suppose it's possible
13:20:55 <truebrain> We used to say: the dog ate my homework
13:21:03 <truebrain> Now it is: the LLM agent deleted my homework!
13:22:29 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #12968: [Bug]: #9833 removed the ability for newgrfs to create unremovable houses https://github.com/OpenTTD/OpenTTD/issues/12968
13:28:21 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12964: Codechange: Mark some water region functions static. https://github.com/OpenTTD/OpenTTD/pull/12964
13:28:44 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12965: Codefix: Debug fmt strings in ItemizeBidi (ICU layout) https://github.com/OpenTTD/OpenTTD/pull/12965
13:29:11 <peter1138> Quick before they break it again πŸ˜‰
13:42:51 <xarick> In ChooseShipTrack, I need a way to distinguish ship entering new tile vs ship not entering new tile
13:44:01 <xarick> ` static Trackdir ChooseShipTrack(const Ship *v, TileIndex &tile, TrackdirBits forward_dirs, TrackdirBits reverse_dirs, const std::span<TileIndex> dest_tiles, int max_penalty,
13:44:01 <xarick> bool &path_found, ShipPathCache &path_cache, Trackdir &best_origin_dir, bool simulate_depot_order = false)`
13:49:46 <xarick> simulate_depot_order is temporary, for debugging
13:49:58 <xarick> will be removed in the finalized version
13:51:22 *** HerzogDeXtEr has joined #openttd
14:20:39 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1290679778663333909/image.png?ex=66fd56b6&is=66fc0536&hm=8c196cec4326a263e35950678a81d3c91228a76861cf2e39033fd864fd9efdfc&
14:20:39 <andythenorth> wonder if getting rid of these will make git st faster? πŸ˜›
14:21:16 <andythenorth> they're junk pngs, generated by accident, my script has found them all and moved them to tmp
14:28:54 <LordAro> depends if they're suitably ignored
14:30:08 <andythenorth> I'm pruning them from history
14:32:17 <LordAro> ah, that sort of junk
15:02:02 <DorpsGek> [OpenTTD/OpenTTD] AndyLandy opened issue #12972: [Bug]: Vehicle windows opening as 'sticky' by default. https://github.com/OpenTTD/OpenTTD/issues/12972
15:08:04 *** keikoz has joined #openttd
15:14:38 <DorpsGek> [OpenTTD/OpenTTD] AndyLandy commented on issue #12972: [Bug]: Vehicle windows opening as 'sticky' by default. https://github.com/OpenTTD/OpenTTD/issues/12972
15:25:20 <xarick> gettinh unhandled exception at thread ottd::game or something
15:28:32 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on issue #12972: [Bug]: Vehicle windows opening as 'sticky' by default. https://github.com/OpenTTD/OpenTTD/issues/12972
15:30:03 <_glx_> and first part might be an accidental ctrl-clic
15:31:37 <_glx_> xarick: generic catch all, good luck to trace it πŸ™‚
15:32:31 <xarick> seems to happen after failing to write savegame on crash?
15:32:46 <xarick> i'll post screenshots again when it happens
15:33:33 <_glx_> this unhandled exception stuff is almost impossible to trace without knowing the actions leading to it
16:04:31 <xarick> experimented removing SaveRandomSeeds
16:04:59 <xarick> and BinaryHeap without tie-breaker
16:05:02 <xarick> and i get crash
16:05:07 <xarick> one of them is at fault
16:07:28 <xarick> I feel I'm reaching somewhere
16:09:28 <xarick> oh, i also removed the may_reverse code
16:09:36 <xarick> hmm
16:10:31 <xarick> got it
16:10:42 <xarick> it was the BinaryHeap
16:11:38 <xarick> now let's see if this can live without SaveRandomSeeds and may_reverse
16:13:58 <_jgr_> _glx_: Arguably it'd be better to not have the try/catch at all
16:14:32 <_jgr_> That way you ought to get a proper stack trace from the crash logger
16:16:15 *** gelignite has joined #openttd
16:27:17 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1290711649799508159/image.png?ex=66fd7465&is=66fc22e5&hm=17aa0df2d068b6494c4c64bcba2eebb0a4939f09428b0d54277c246939ff5f4c&
16:27:17 <xarick> strange stuff
16:27:40 <xarick> game loop total has a spike that should belong to ship ticks
16:28:15 <xarick> at least I think
16:30:33 <xarick> really strange
16:31:07 *** guru3_ has joined #openttd
16:31:31 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:31:45 *** Smedles has joined #openttd
16:32:25 <xarick> Who's metering CheckIfShipNeedsService?
16:33:46 *** guru3 has quit IRC (Read error: Connection reset by peer)
16:35:01 *** Wolf01 has joined #openttd
16:46:24 <xarick> looks like feeding ~500 depots for each pathfinder call which is called each day per ship that needs servicing is a bad idea
16:46:58 <xarick> automatic service ruining my day πŸ™‚
16:48:41 <xarick> but at least I got it into a state it's no longer asserting
16:55:00 <xarick> I need to approach the hlpf in a different manner...
16:58:02 <kuhnovic> Who would have though πŸ˜†
16:59:15 <xarick> I'm reviewing your method again
17:00:34 <xarick> I'm particularly interested in Step 1
17:02:21 <xarick> <https://github.com/OpenTTD/OpenTTD/blob/master/src/ship_cmd.cpp#L160-L184>
17:07:23 <xarick> let me think... getting 500 depot_tiles isn't exactly expensive, the actual pathfinding with 500 origins isn't expensive, it's the act of adding up to 500 water patches that is expensive 😦
17:08:15 <xarick> need to optimize this step, and your step 1 seems to be the way
17:09:27 <DorpsGek> [OpenTTD/OpenTTD] PikkaBird commented on issue #12968: [Bug]: #9833 removed the ability for newgrfs to create unremovable houses https://github.com/OpenTTD/OpenTTD/issues/12968
17:11:14 <xarick> how to quickly check each of the 500 depot_tiles whether they're within this "max_penalty"
17:11:41 <xarick> and only add origins of those that are
17:11:52 <xarick> so that we won't have 500 origins
17:19:16 <peter1138> I just can't help myself... <https://www.tt-forums.net/viewtopic.php?t=91934>
17:22:45 <xarick> `if (find_closest_depot && high_level_max_penalty != 0 && DistanceMax(start_tile, tile) > high_level_max_penalty / YAPF_TILE_LENGTH) continue;`
17:30:40 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1290727599978578022/image.png?ex=66fd8340&is=66fc31c0&hm=2ae3bde309dd18caa96729f2fe72429da773c2793253e74ea6ab9080622642ad&
17:30:40 <xarick> better, but not much
17:38:32 <DorpsGek> [OpenTTD/OpenTTD] AndyLandy closed issue #12972: [Bug]: Vehicle windows opening as 'sticky' by default. https://github.com/OpenTTD/OpenTTD/issues/12972
17:38:35 <DorpsGek> [OpenTTD/OpenTTD] AndyLandy commented on issue #12972: [Bug]: Vehicle windows opening as 'sticky' by default. https://github.com/OpenTTD/OpenTTD/issues/12972
17:45:50 <xarick> L-Infinity-Norm
18:00:17 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1290735050312126505/image.png?ex=66fd8a30&is=66fc38b0&hm=1059ebf098b55ceb7ec8db06ba5f216743b7df0f73b72ba276144b7ac2b29e6d&
18:00:17 <xarick> success!
18:00:42 <xarick> i no longer feed 500 depot_tiles
18:02:07 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1290735512050729042/image.png?ex=66fd8a9e&is=66fc391e&hm=a9db357daa49583ba3b2d65f0796047bcfeeeaf07834d124a9c299f8a1fc97d8&
18:02:07 <xarick> max_distance is max_penalty / YAPF_TILE_LENGTH
18:02:47 <xarick> the list is forwarded to hlpf and llpf
18:47:43 <andythenorth> peter1138: but you did?
18:48:04 <peter1138> I was paraphrasing the poster.
18:49:04 <andythenorth> lol
18:49:46 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1290747506006818959/image.png?ex=66fd95ca&is=66fc444a&hm=d58238fa93530cabd6c815191484f5cee63d0c56b9f23c8a65c9367ba1d6ee6f&
18:49:46 <xarick> Fail...
18:50:25 <xarick> I failed! I'm disappointed
18:53:09 *** Etua has joined #openttd
19:04:17 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1290751158935355455/image.png?ex=66fd9931&is=66fc47b1&hm=4a664ae76737a3e6b27433c62a8757790539a7b691f182b056038130193f7056&
19:04:17 <andythenorth> lol this is so slow to do
19:04:24 <andythenorth> git is achingly slow
19:04:37 <andythenorth> git st takes 7 seconds πŸ˜›
19:04:55 <andythenorth> traversing paths and selective git rm is super slow
19:07:27 *** Wormnest has joined #openttd
19:15:18 <ahyangyi> Is that your `.git` directory?
19:15:21 <xarick> 1.9 GB = 3.57GB? is it compressing?
19:15:31 <ahyangyi> Or the whole repo?
19:15:36 <andythenorth> running a script with git rm
19:15:39 <andythenorth> selectively
19:15:44 <ahyangyi> hmm
19:15:59 <ahyangyi> That's a lot of files
19:16:49 <_glx_> xarick: cluster size, smaller files use lot of real space
19:16:52 <andythenorth> "mistakes were mad"
19:17:01 <ahyangyi> https://cdn.discordapp.com/attachments/1008473233844097104/1290754364331524159/image.png?ex=66fd9c2d&is=66fc4aad&hm=df812ba0742a1b23b5d44bc88834957f72ca780efc78603752e5f79ed99294de&
19:17:16 <ahyangyi> "Only" 116k files
19:21:46 *** jijiji has joined #openttd
19:23:26 *** jijiji has quit IRC (Remote host closed the connection)
19:31:37 <andythenorth> hmm `git st` is getting faster now
19:32:21 *** gelignite has quit IRC (Quit: Stay safe!)
19:38:46 <_glx_> you had ton of untracked files ?
19:39:33 <_glx_> or too many tracked ones
19:43:14 *** tokai|noir has joined #openttd
19:43:14 *** ChanServ sets mode: +v tokai|noir
19:43:35 <andythenorth> way too many tracked
19:43:57 <andythenorth> my docs image generator was generating 10k unnecessary images per Horse release
19:44:20 <andythenorth> funny thing is, PIL was quite fast to do that, so I didn't notice during the compile πŸ˜›
19:45:04 <LordAro> lol
19:45:38 *** Etua has quit IRC (Quit: Etua)
19:45:50 *** Etua has joined #openttd
19:45:53 *** Etua has quit IRC (Remote host closed the connection)
19:47:34 <xarick> xarick: problem solved! automatic service can't search backwards. Now the ships happily don't service :p
19:48:55 <LordAro> andythenorth: https://www.git-tower.com/blog/git-performance/ there's a few things in here if you haven't tried them
19:49:45 <andythenorth> `git config feature.manyFiles true` might be worth a try
19:49:58 *** tokai has quit IRC (Ping timeout: 480 seconds)
19:50:05 <andythenorth> I have been using `git config core.fsmonitor true` so far
20:09:38 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1290767603568218245/image.png?ex=66fda881&is=66fc5701&hm=e3f94d4bf8275ff00df139bb258653408aecc5d6515d3085d86351d671993183&
20:09:38 <xarick> checking for asserts + bad behaviour
20:11:45 <xarick> i dont understand why there's a ? in one of them... they're the same executable
20:13:34 <andythenorth> hmm not sure github loves my commit with 30k files in it πŸ˜›
20:17:13 <_pruple> wow
20:17:32 <_pruple> there is no idea, no matter how inane, that cannot get zorged D:
20:18:57 <andythenorth> orly?
20:19:21 <_pruple> seemingly
20:20:52 <_pruple> a setting that prevents you changing any other settings until you change that setting, what a concept mark. πŸ˜„
20:24:31 <andythenorth> that would need a setting also
20:24:36 <andythenorth> can I see the setting setting
21:09:29 <andythenorth> have deleted 110k files so far πŸ˜›
21:09:34 <andythenorth> that's about 20%
21:24:41 <andythenorth> much faster now it's 370k files
21:24:47 <johnfranklin> peter1138: It did some sudo rm -rf *?
21:25:39 <johnfranklin> _pruple: Such β€œdon’t play with your phone” apps on a phone
21:27:02 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
21:31:38 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:33:09 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:36:54 <xarick> xarick: lol, i had an error in this code
21:37:14 <xarick> nobody else noticed either
21:38:25 <xarick> `if (max_distance == 0 || DistanceMax(depot_tile, tile) <= max_distance) depot_tiles.push_back(depot_tile);` this is what it should have been
21:40:35 *** Wolf01 is now known as Guest5141
21:40:36 *** Wolf01 has joined #openttd
21:46:04 *** Guest5141 has quit IRC (Ping timeout: 480 seconds)
21:46:32 <xarick> alright, testing asserts overnight
21:46:36 <xarick> leaving system on
21:46:39 <xarick> cyas goodnight
21:51:38 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:41:24 <peter1138> > nobody else noticed
22:41:28 <peter1138> more like
22:41:32 <peter1138> > nobody else looked
23:17:14 <DorpsGek> [OpenTTD/OpenTTD] LC-Zorg opened issue #12973: [Bug]: Sandbox Options - despite the name change, the game still treats the player as a cheater for using these options https://github.com/OpenTTD/OpenTTD/issues/12973
23:36:18 <_pruple> is it time to set "scoring end year" to "never" by default?