IRC logs for #openttd on OFTC at 2024-02-17
            
00:25:07 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
00:48:21 *** Flygon has joined #openttd
02:10:33 *** _pruple has quit IRC (Quit: User went offline on Discord a while ago)
02:33:32 *** flabanged has joined #openttd
02:47:19 *** Wormnest has quit IRC (Quit: Leaving)
02:56:22 *** flabanged has quit IRC (Quit: Page closed)
03:05:41 *** D-HUND has joined #openttd
03:09:05 *** debdog has quit IRC (Ping timeout: 480 seconds)
03:12:00 *** gnu_jj_ has joined #openttd
03:15:10 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
03:18:53 *** greeter has quit IRC (resistance.oftc.net synthon.oftc.net)
03:19:46 *** greeter has joined #openttd
03:27:46 *** greeter has quit IRC (resistance.oftc.net synthon.oftc.net)
03:28:29 *** greeter has joined #openttd
04:02:51 *** debdog has joined #openttd
04:06:35 *** D-HUND has quit IRC (Ping timeout: 480 seconds)
04:17:07 *** greeter has quit IRC (coherence.oftc.net synthon.oftc.net)
04:21:21 *** greeter has joined #openttd
05:02:08 *** ChanServ sets mode: +v Rubidium
05:02:08 *** ChanServ sets mode: +o orudge
05:02:34 *** keikoz has joined #openttd
05:04:21 *** misterbungus has joined #openttd
06:18:56 *** keikoz has quit IRC ()
06:26:13 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12099: Fix 0ca4b4e: Ctrl+Click style inconsistency in base language https://github.com/OpenTTD/OpenTTD/pull/12099
06:38:32 *** keikoz has joined #openttd
07:57:04 *** HerzogDeXtEr has joined #openttd
08:05:54 *** nielsm has joined #openttd
08:11:30 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #12055: Change: Improve performance of finding free pool slots. https://github.com/OpenTTD/OpenTTD/pull/12055#pullrequestreview-1886502258
08:34:53 <locosage> O(log(n)) is a kinda weird argument when bitmap is O(n) :p
08:35:44 <locosage> though bitmap can be implemented in O(log(n)) too I guess
08:58:07 <_zephyris> So, anything I need to do for the dev diary?
08:59:09 <truebrain> change to date to today, and let's publish it!
08:59:16 <Rubidium> locosage: it's about the priority queue being penalised for the number of free pool elements. For the bitmap there is no performance hit to push/pop on the number of elements that are free. For the priority queue there is a O(log(size-of-free-elements)) behaviour for push/pop
08:59:24 <truebrain> did you assign who is going to be next _zephyris ? (didn't read your latest)
09:00:30 <locosage> Rubidium: but bitmap is penalized for the number of elements in the queue which is arguably even worse
09:00:56 <locosage> *in the pool
09:01:21 <_zephyris> truebrain: Yup! "Next week, weโ€™ll see how pathfinding has been improved for one of the transport types. And, oh buoy, is it a big improvement"
09:01:28 <truebrain> hahaha
09:01:32 <truebrain> okay, that is a good one ๐Ÿ˜„
09:03:14 <_zephyris> Well, it's good in EN-GB ๐Ÿ™‚
09:08:31 <Rubidium> locosage: it's the penalised for the length of allocated elements, not the complete pool size. And I'm not saying the priority queue is worse there, I've said that the bitmap is significantly better there. It was purely about weighing the options, their strengths and weaknesses. In the end it's more about the actual performance stats than the theoretical "what is this algorithm going to do with a
09:08:37 <Rubidium> quadrillion elements".
09:11:37 <locosage> that's why I said theoretical complexity argument is kinda weird there as it's even worse for bitmap
09:11:48 <locosage> bitmap is a pure technical solution with the same complexity as before
09:12:26 <locosage> also, I do wonder how you measured that performance to realiably see a difference between two ;)
09:12:51 <DorpsGek> [OpenTTD/website] zephyris updated pull request #295: Add: Blog post about OpenTTD TrueType fonts https://github.com/OpenTTD/website/pull/295
09:20:38 <DorpsGek> [OpenTTD/website] TrueBrain commented on pull request #295: Add: Blog post about OpenTTD TrueType fonts https://github.com/OpenTTD/website/pull/295#pullrequestreview-1886518710
09:21:13 <truebrain> minor nitpick, sorry about that ๐Ÿ˜„
09:22:13 <DorpsGek> [OpenTTD/website] rubidium42 commented on pull request #295: Add: Blog post about OpenTTD TrueType fonts https://github.com/OpenTTD/website/pull/295#pullrequestreview-1886518870
09:22:21 <Rubidium> another minor? nitpick
09:23:08 <DorpsGek> [OpenTTD/website] zephyris updated pull request #295: Add: Blog post about OpenTTD TrueType fonts https://github.com/OpenTTD/website/pull/295
09:23:25 *** Wolf01 has joined #openttd
09:27:14 <DorpsGek> [OpenTTD/website] zephyris commented on pull request #295: Add: Blog post about OpenTTD TrueType fonts https://github.com/OpenTTD/website/pull/295#pullrequestreview-1886519626
09:28:46 *** misterbungus has quit IRC (Quit: Logging off...)
09:29:07 *** misterbungus has joined #openttd
09:36:08 <DorpsGek> [OpenTTD/website] zephyris updated pull request #295: Add: Blog post about OpenTTD TrueType fonts https://github.com/OpenTTD/website/pull/295
09:36:58 <DorpsGek> [OpenTTD/website] zephyris commented on pull request #295: Add: Blog post about OpenTTD TrueType fonts https://github.com/OpenTTD/website/pull/295#pullrequestreview-1886520727
09:37:32 <DorpsGek> [OpenTTD/website] TrueBrain opened pull request #300: Fix: name the image-folder the same as the post https://github.com/OpenTTD/website/pull/300
09:38:00 <DorpsGek> [OpenTTD/website] TrueBrain approved pull request #295: Add: Blog post about OpenTTD TrueType fonts https://github.com/OpenTTD/website/pull/295#pullrequestreview-1886520823
09:39:30 <DorpsGek> [OpenTTD/website] TrueBrain merged pull request #300: Fix: name the image-folder the same as the post https://github.com/OpenTTD/website/pull/300
09:39:35 <DorpsGek> [OpenTTD/website] rubidium42 approved pull request #300: Fix: name the image-folder the same as the post https://github.com/OpenTTD/website/pull/300#pullrequestreview-1886520990
09:41:46 <DorpsGek> [OpenTTD/website] TrueBrain merged pull request #295: Add: Blog post about OpenTTD TrueType fonts https://github.com/OpenTTD/website/pull/295
09:43:06 <truebrain> published on website
09:43:08 <truebrain> published on Steam
09:44:38 <andythenorth> so....what's the hardest problem in computer science these days?
09:44:43 <truebrain> done Discord; I leave the other platforms for others
09:44:43 <andythenorth> is it still "naming things"?
09:47:06 <locosage> P ?= NP begs to differ
09:48:27 <andythenorth> it's probably either "naming things" or "organising src directory"
09:48:34 <andythenorth> one being related to the other ๐Ÿ˜›
09:49:54 *** Ox7C5 has joined #openttd
09:54:45 <emperorjake> I'm enjoying these dev blogs just as much as the Factorio ones, keep up the good work ๐Ÿ™‚
10:03:25 <andythenorth> they are great ๐Ÿ™‚
10:04:50 <andythenorth> "when the docs act as automated tests for the grf"
10:05:00 <andythenorth> _busy busy refactoring Horse compile"
10:05:31 <andythenorth> if the docs are correct, the grf is _probably_ correct
10:16:13 <locosage> not sure what happened here but this ternary looks fishy <https://github.com/OpenTTD/OpenTTD/blob/master/src/blitter/40bpp_anim.cpp#L191>
10:16:21 <locosage> as well as one a dozen lines below
10:18:30 <locosage> ah, nvm, it's double case
10:19:37 <locosage> trying to remember c++ again xD
10:29:30 <georgevb> https://discord.com/channels/142724111502802944/142724982101901312/1208348236935335977
10:29:35 <georgevb> https://cdn.discordapp.com/attachments/1008473233844097104/1208359585170329610/image.png?ex=65e2ff8f&is=65d08a8f&hm=15955693603c710fbebe250a468295b5ed57daa86144cb41c33ff19ba7798048&
10:29:58 <georgevb> Whom can I ask for more synbols?
10:30:25 <brickblock19280> _zephyris: but I thought they would all have been made
10:40:37 <DorpsGek> [OpenTTD/website] TrueBrain opened pull request #301: Add: Blog post about Social Integration https://github.com/OpenTTD/website/pull/301
10:42:02 <reldred> OK, so, Iโ€™ve mentioned this before in passing, but given two back to back blog posts have gone out showing OpenGFX2 it should probably be made the default base set in new steam installs.
10:42:15 <_zephyris> brickblock19280: They should be,what characters are missing?
10:44:07 <_zephyris> reldred: It needs more beta testing really... I haven't had time to organise a real testing push.
10:44:54 <reldred> _zephyris: Nah itโ€™s fine donโ€™t worry about it ๐Ÿ˜Ž
10:45:54 <reldred> (and other things said moments before disaster)
10:53:56 <michi_cc[d]> Made a reddit dev diary post.
10:57:55 <Rubidium> _zephyris: it looks like some of those characters are from https://en.wiktionary.org/wiki/Appendix:Unicode/Phonetic_Extensions
10:59:24 <Rubidium> _zephyris: https://github.com/George-VB/xussrset/blob/main/lang/english.lng#L580-L603 has the actual strings being passed into OpenTTD
11:11:03 <_zephyris> michi_cc[d]: Tt forums done!
11:11:04 <_zephyris> georgevb: I can add more, but I need to know what they are!
11:16:05 <_zephyris> Rubidium: Oh, missed this, thanks!
11:23:18 <andythenorth> hmmm
11:23:30 <andythenorth> I still need to manually manage action 2 IDs for nml?
11:23:38 <andythenorth> we found no way to raise the limit? ๐Ÿ™‚
11:24:08 <andythenorth> going to run out again soon, 231 / 256 used ๐Ÿ˜›
11:25:12 <andythenorth> alternately, I could call Horse "done" and stop adding ever more...stuff
11:25:56 <andythenorth> the upside of varact2 procedures is that the compile is much faster; I suspect the downside is that they rapidly consume concurrent action 2 IDs?
11:26:30 <xarick> hi
11:26:30 <_jgr_> Increasing the limit means changing the bitstream format, which is awkward form a compatibility point of view
11:33:10 <DorpsGek> [OpenTTD/website] nielsmh commented on pull request #301: Add: Blog post about Social Integration https://github.com/OpenTTD/website/pull/301#pullrequestreview-1886545130
12:20:14 <locosage> Precision of conversion to palette depending on number of bits cut off from components (2-8): 0.062 0.063 0.064 0.068 0.082 0.127 0.234
12:20:20 <locosage> unless I screwed my math somewhere xD
12:22:42 <locosage> so, basically, cutting off 4 bits hardly makes any difference
12:23:14 <locosage> 5 is also under 10%
12:33:19 <locosage> need hex experts
12:33:55 <locosage> how to remove lower 4 bits from every byte of a value in a few operations?
12:34:02 <locosage> i.e 0xf5a0b1 -> 0xfab
12:35:37 <locosage> aside from the obvious way ofc
12:49:53 <_glx_> andythenorth: Yup, they block an ID for their lifetime
12:50:59 <andythenorth> I think it's a sign that Iron Horse grf might be done soon
12:51:18 <andythenorth> only 25 concurrent IDs left
12:51:50 <andythenorth> couple more randomised wagon types, couple more procedures, IDs are all consumed
12:52:16 <jfs> locosage: in native code or in GRF?
12:53:26 <_glx_> 3 and+shift and an or
12:53:59 <_jgr_> andythenorth: You've got procedures which only contain only a single instruction in your GRFs
12:54:01 <jfs> tmp = x & 0xf0f0f0f0
12:54:01 <jfs> tmp = (tmp >> 4) | tmp
12:54:01 <jfs> res = ((tmp >> 4) & 0xff) | ((tmp >> 12) & 0xff00)
12:54:05 <jfs> I think should work
12:54:28 <andythenorth> _jgr_: do you have a way to find them?
12:54:30 <Rubidium> though isn't that the obvious way?
12:54:32 <andythenorth> other than reading src? ๐Ÿ™‚
12:54:40 <jfs> but if you are on native code, SIMD instructions will tend to have ways to shuffle bits around like that in a single instruction
12:56:09 <_jgr_> andythenorth: Not in a systematic way, I just notice these things when looking at GRF performance issues
12:56:43 <locosage> jfs: yeah, already figured that, and I only need 24bit so it's even simpler
12:57:50 <DorpsGek> [OpenTTD/team] frosch123 commented on issue #508: [pl_PL] Translator access request https://github.com/OpenTTD/team/issues/508
12:57:52 <andythenorth> _jgr_: Thereโ€™s probably a reasonโ€ฆor not ๐Ÿ™‚
12:58:00 <locosage> also found _pext_u32 which is kinda overkill here
12:58:28 <_jgr_> andythenorth: The really obvious one is STORE_PERM_ALT which is all over FIRS
12:58:39 <Rubidium> jfs: godbolt says it doesn't, even with -O3 -march=x86-64-v4
13:02:16 <Rubidium> locosage: it's the fewest instructions, though I would've hoped the compiler would come up with such an optimisation
13:04:47 <_jgr_> Relatively fancy instructions are not necessarily any faster than a short linear sequence of simple instructions
13:22:41 <DorpsGek> [OpenTTD/OpenTTD] frosch123 approved pull request #11993: Feature: Support more number formats than just the 'Western' one https://github.com/OpenTTD/OpenTTD/pull/11993#pullrequestreview-1886573091
13:23:03 <andythenorth> _jgr_: Ha think that one is possibly just because I donโ€™t like the nml syntax for STORE_PERM ๐Ÿ™‚
13:32:03 <Rubidium> _pext_u32 is ~2.5 times faster than the short linear sequence of simple instructions: https://quick-bench.com/q/V49BVUa3tqEboiJMzBzL7vKq9Us
13:33:20 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #11993: Feature: Support more number formats than just the 'Western' one https://github.com/OpenTTD/OpenTTD/pull/11993
13:33:23 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 closed issue #11953: [Bug(?)]: Regional Currency/Number Format (Localization) https://github.com/OpenTTD/OpenTTD/issues/11953
13:35:54 <_jgr_> Nice result, that's an instruction I'd never come across before
13:40:11 <locosage> I tried to arrange them with multiplication but failed to figure out constant
13:41:04 <locosage> smth like <https://graphics.stanford.edu/~seander/bithacks.html#Interleave64bitOps>
13:41:43 <frosch123> 2 of 10 commenters on steam want to keep the sprite font. i did not expect so many old people on steam
13:42:36 <truebrain> some comments are just hilarious too .. `Make it more SteamDeck friendly` .. we never asked it to be on SteamDeck in the first place!
13:42:44 <Rubidium> though I think the benchmark does not use Zen1/2, as those use 18/19 instructions instead of 1 due to the way they are implemented in which case pext will likely be slower... which might be the reason compilers are not injecting them by default
13:52:16 <locosage> Rubidium: and pext itself is less than 20% of total time
14:06:05 <DorpsGek> [OpenTTD/website] TrueBrain commented on pull request #301: Add: Blog post about Social Integration https://github.com/OpenTTD/website/pull/301#pullrequestreview-1886577868
14:07:17 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 opened pull request #12101: Doc: Prepare for 14.0-RC1 release https://github.com/OpenTTD/OpenTTD/pull/12101
14:16:14 <DorpsGek> [OpenTTD/website] TrueBrain updated pull request #301: Add: Blog post about Social Integration https://github.com/OpenTTD/website/pull/301
14:18:10 <DorpsGek> [OpenTTD/website] nielsmh commented on pull request #301: Add: Blog post about Social Integration https://github.com/OpenTTD/website/pull/301#pullrequestreview-1886579326
14:19:20 <DorpsGek> [OpenTTD/website] TrueBrain commented on pull request #301: Add: Blog post about Social Integration https://github.com/OpenTTD/website/pull/301#pullrequestreview-1886579485
14:27:34 <DorpsGek> [OpenTTD/scripts] TrueBrain merged pull request #10: Add: [DorpsGek] announce this repository to DorpsGek https://github.com/OpenTTD/scripts/pull/10
14:27:49 <DorpsGek> [OpenTTD/scripts] TrueBrain updated pull request #8: Add: script to automatically produce changelogs based on the commits https://github.com/OpenTTD/scripts/pull/8
14:28:01 <truebrain> out of the dark, into the light!
14:28:51 <DorpsGek> [OpenTTD/scripts] TrueBrain updated pull request #8: Add: script to automatically produce changelogs based on the commits https://github.com/OpenTTD/scripts/pull/8
14:29:35 <DorpsGek> [OpenTTD/scripts] TrueBrain updated pull request #8: Add: script to automatically produce changelogs based on the commits https://github.com/OpenTTD/scripts/pull/8
14:29:45 <truebrain> and that should fix the CI too ..
14:29:50 <truebrain> so productive!
14:30:09 <truebrain> going to merge it now, so it is easier for others to improve ๐Ÿ™‚
14:32:47 <xarick> hi
14:33:53 <xarick> How do I test all cases of OrderFlags?
14:34:58 <xarick> <https://docs.openttd.org/ai-api/classAIOrder#aca4eab6320c32ec982461231f14d1c6e>
14:46:55 <DorpsGek> [OpenTTD/scripts] TrueBrain merged pull request #8: Add: script to automatically produce changelogs based on the commits https://github.com/OpenTTD/scripts/pull/8
14:51:35 *** keikoz has quit IRC (Ping timeout: 480 seconds)
14:52:40 <DorpsGek> [OpenTTD/website] frosch123 updated pull request #301: Add: Blog post about Social Integration https://github.com/OpenTTD/website/pull/301
14:52:58 <truebrain> tnx ๐Ÿ™‚
14:53:16 <truebrain> you did misunderstood one sentence, and now made it even weirder; but I can fix that ๐Ÿ™‚
14:53:41 <frosch123> lol, sorry ๐Ÿ™‚
14:53:49 <truebrain> no, it shows my sentence was already crappy ๐Ÿ˜„
14:55:59 <DorpsGek> [OpenTTD/website] TrueBrain updated pull request #301: Add: Blog post about Social Integration https://github.com/OpenTTD/website/pull/301
14:56:36 <DorpsGek> [OpenTTD/website] TrueBrain updated pull request #301: Add: Blog post about Social Integration https://github.com/OpenTTD/website/pull/301
14:57:08 <truebrain> it is not about Steam etc being installed; it is about whether it is running ๐Ÿ™‚
14:57:26 <truebrain> (their restrictions btw; not ours)
15:17:01 <locosage> https://cdn.discordapp.com/attachments/1008473233844097104/1208431919704969266/Screenshot_from_2024-02-17_20-46-40.png?ex=65e342ed&is=65d0cded&hm=237691916aba0c11ccc1267f1f566ae3222d93c28c844af43e14bae871682d82&
15:17:01 <locosage> accidentally crashed an industry xD
15:19:03 <andythenorth> Achievement unlocked
15:21:04 <frosch123> new hovercraft upgrade available?
15:22:50 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1208433381801467934/image.png?ex=65e34449&is=65d0cf49&hm=341a9dd55683fa5143c45555a0c6d9a3c3628021875e6d8c61e44116356e4395&
15:22:50 <_glx_> so after more testing, `sq_setparamscheck` with negative nparamscheck doesn't work very well for default params (using a very basic implementation)
15:23:01 <_glx_> guess it should be possible with more work
15:28:04 <andythenorth> frosch123: Hover Industrie?
15:28:31 <_glx_> but too much work, we only have one function using default param
15:30:19 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1208435268567171154/image.png?ex=65e3460b&is=65d0d10b&hm=27302dd9d10c8029301c949e4e3ccbe071b20e4cbca4d97447041abde2a9b3a2&
15:30:19 <xarick> redundant code, says visual studio
15:32:25 <_glx_> yes 2 identical lines
15:38:39 <nanapipirara> https://cdn.discordapp.com/attachments/1008473233844097104/1208437364339245056/image.png?ex=65e347ff&is=65d0d2ff&hm=bf337e89ae0427a02e55d7054dfc4e9a7530e9c952fd3f5b1daa95fd18f165bf&
15:41:40 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on pull request #12083: Add: [Script] Hangar index parameter to ScriptAirport::GetHangarOfAirport https://github.com/OpenTTD/OpenTTD/pull/12083#issuecomment-1950239255
15:44:55 <kuhnovic> truebrain: Nice blog post, I really enjoyed reading it. Shall I add a teaser to the end of my post?
15:45:06 <kuhnovic> Assuming your post goes next
15:45:10 <truebrain> up to you who you pick next ๐Ÿ™‚
15:45:14 <truebrain> and tnx ๐Ÿ™‚
15:45:36 <kuhnovic> I choose you (not pikachu)
15:48:31 <DorpsGek> [OpenTTD/website] TrueBrain opened pull request #302: Add: Blog posts about Survey, HTTPS, and Infrastructure https://github.com/OpenTTD/website/pull/302
15:48:36 <truebrain> and there is the other post I promised
15:48:57 <truebrain> I am expecting two more, one from michi_cc[d] and one from talltyler
15:49:19 <truebrain> and I think that is all we can expect?
15:49:26 <truebrain> maybe someone surprises us ๐Ÿ™‚
15:54:00 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1208441228509843456/image.png?ex=65e34b98&is=65d0d698&hm=eb59912c8cfb2652f7923d58b1c1d170decf6195ad33fd51bfb18691658bf6b6&
15:54:00 <xarick> talltyler: did you forgot DA_SERVICE, or was it fixed later?
15:54:22 <DorpsGek> [OpenTTD/website] James103 commented on pull request #302: Add: Blog posts about Survey, HTTPS, and Infrastructure https://github.com/OpenTTD/website/pull/302#pullrequestreview-1886599882
15:55:03 <DorpsGek> [OpenTTD/website] TrueBrain updated pull request #302: Add: Blog posts about Survey, HTTPS, and Infrastructure https://github.com/OpenTTD/website/pull/302
15:59:11 <DorpsGek> [OpenTTD/website] James103 commented on pull request #301: Add: Blog post about Social Integration https://github.com/OpenTTD/website/pull/301#pullrequestreview-1886600855
16:00:45 <_glx_> xarick: it's already fixed
16:01:57 <DorpsGek> [OpenTTD/website] James103 commented on pull request #289: Add: Release announcement for 14.0 https://github.com/OpenTTD/website/pull/289#pullrequestreview-1886601465
16:02:16 <_glx_> fixed 11 days ago
16:02:41 <DorpsGek> [OpenTTD/website] TrueBrain updated pull request #301: Add: Blog post about Social Integration https://github.com/OpenTTD/website/pull/301
16:03:47 <xarick> I disagree with `ResetDepotUnbunching`in `Vehicle::HandlePathfindingResult`
16:03:55 <xarick> ships on canals
16:04:05 <xarick> are notorious in triggering ship is lost
16:04:16 <xarick> momentaneously
16:08:06 <DorpsGek> [OpenTTD/website] rubidium42 commented on pull request #302: Add: Blog posts about Survey, HTTPS, and Infrastructure https://github.com/OpenTTD/website/pull/302#pullrequestreview-1886602517
16:10:08 <DorpsGek> [OpenTTD/website] James103 commented on pull request #296: Add: post about the new ship pathfinder https://github.com/OpenTTD/website/pull/296#pullrequestreview-1886602318
16:10:25 <DorpsGek> [OpenTTD/website] TrueBrain commented on pull request #302: Add: Blog posts about Survey, HTTPS, and Infrastructure https://github.com/OpenTTD/website/pull/302#pullrequestreview-1886603274
16:14:22 <xarick> okay, I got a general feeling about the inyards of unbunch feature
16:14:53 <xarick> those hyper managing AIs might not benefit much from unbunching
16:15:21 <xarick> constantly adding vehicles, removing vehicles, etc...
16:15:46 <xarick> but some less active AIs might do well with it
16:18:36 *** keikoz has joined #openttd
16:22:30 <DorpsGek> [OpenTTD/website] frosch123 commented on pull request #302: Add: Blog posts about Survey, HTTPS, and Infrastructure https://github.com/OpenTTD/website/pull/302#pullrequestreview-1886604850
16:24:55 <_glx_> Unbunch support for AI is not done anyway
16:29:25 <jfs> unbunching is basically just a robot helper for the player that will stop vehicles in depot and start them again after a period, so an AI player could do the same thing on its own too
16:31:47 <frosch123> i guess rondje kind of did ๐Ÿ™‚
16:35:18 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1208451621600886794/image.png?ex=65e35546&is=65d0e046&hm=33237ea77405ad790683503c61d6d569b6db31539a746973a2903346c1ab2d8b&
16:35:18 <xarick> 5 new errors for AIs
16:35:41 <xarick> I'm gonna try implement the feature
16:37:01 <xarick> oh, right... vehicle status
16:37:08 <xarick> was anything added there?
16:39:10 <xarick> nop ๐Ÿ™‚
16:45:17 *** Wormnest has joined #openttd
17:00:58 <DorpsGek> [OpenTTD/team] Gorynychz opened issue #509: [ru_RU] Translator access request https://github.com/OpenTTD/team/issues/509
17:03:59 <DorpsGek> [OpenTTD/team] Gorynychz commented on issue #509: [ru_RU] Translator access request https://github.com/OpenTTD/team/issues/509
17:08:51 *** Flygon has quit IRC (Remote host closed the connection)
17:09:38 *** Wormnest has quit IRC (Quit: Leaving)
17:09:46 *** Wormnest has joined #openttd
17:10:28 <wensimehrp> ๐Ÿ˜’
17:11:36 <_glx_> another translator failed the test
17:24:59 <DorpsGek> [OpenTTD/OpenTTD] JGRennison opened issue #12102: [Bug]: No longer possible to add tram to road bridges/tunnels or vice versa since #11606 https://github.com/OpenTTD/OpenTTD/issues/12102
18:03:07 <peter1138[d]> ๐Ÿ˜ฎ
18:06:10 <xarick> I can add both Full load and full load any as an AI
18:06:16 <xarick> interesting
18:08:39 <xarick> oh it's fine in the end, it becomes full load any
18:09:37 <xarick> 2 | 3 = 3
18:19:39 <xarick> intermediate orders with shared orders is a mess
18:22:12 <xarick> one bus goes from A, C, the other goes from C, A. An intermediate order is added for first bus at B between A and C, but for the other bus, B is added as D between C and A. The order list displays 2, 3, 4 orders, depending on who last arrived at the intermediate station
18:22:48 <xarick> it's not a fixed list, is what I say, it's constantly changing
18:23:20 <xarick> sometimes it's A C, sometimes A B C, sometimes A C D, sometimes A B C D
18:25:37 <xarick> funny, sometimes the order can spawn before A
18:26:34 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1208479621503258715/image.png?ex=65e36f5a&is=65d0fa5a&hm=dc51d374b91ad920d938ff165f4745628be14de2904e217e744c2d51e36f863d&
18:27:09 <_zephyris> That's when it's after B
18:28:48 <xarick> does unbunch work for implicit orders? gonna check
18:29:24 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #12055: Change: Improve performance of finding free pool slots. https://github.com/OpenTTD/OpenTTD/pull/12055
18:29:29 <DorpsGek> [OpenTTD/team] donzov opened issue #510: [ru_RU] Translator access request https://github.com/OpenTTD/team/issues/510
18:31:22 <xarick> probably works, but it's gonna skew the averages
18:32:46 <DorpsGek> [OpenTTD/website] Kuhnovic commented on pull request #296: Add: post about the new ship pathfinder https://github.com/OpenTTD/website/pull/296#pullrequestreview-1886800169
18:33:02 <xarick> poor thought out feature
18:34:24 <DorpsGek> [OpenTTD/website] Kuhnovic updated pull request #296: Add: post about the new ship pathfinder https://github.com/OpenTTD/website/pull/296
18:35:11 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/03e355323051d3da824cad697ad41976de878bb5
18:35:12 <DorpsGek> - Update: Translations from eints (by translators)
18:36:11 <peter1138[d]> xarick: Implicit orders? yes.
18:36:31 <LordAro> peter1138[d]: nice
18:37:19 <peter1138[d]> Very head wind on the south-bound legs.
18:37:41 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1208482419313737738/image.png?ex=65e371f5&is=65d0fcf5&hm=651624aebd71e3bd236ab899aa75ddfdcd415ed719281bc673ece9720563502e&
18:37:50 <xarick> okay it works, it might as well not work
18:37:54 <peter1138[d]> Felt more than 9.6km/h for sure.
18:37:56 <xarick> so... broken
18:38:15 <xarick> deleting implicit order triggers reset unbunching
18:38:35 <peter1138[d]> It isn't intended to work for all possible combinations of orders.
18:40:24 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #12101: Doc: Prepare for 14.0-RC1 release https://github.com/OpenTTD/OpenTTD/pull/12101
18:40:48 <xarick> I was hoping that it could at least try to get an average, but oh well
18:40:59 <xarick> doesn't even get the chance
18:41:15 <peter1138[d]> An average is no use.
18:43:05 <xarick> just added a fast bus to make it even more broken
18:43:08 <xarick> heh
18:43:37 <xarick> alright, so this feature only catters a few specific game style
18:44:28 <_jgr_> It caters to players building sensible routes?
18:44:58 <_jgr_> If your vehicles or their orders don't make any sense there is not a lot that the game can do for you
18:45:59 <_glx_> always use "non-stop" for orders
18:46:09 <_glx_> implicit orders are just broken
18:46:28 <peter1138[d]> One potential way to make mix-speed vehicles work is to limit the speed of vehicles to the slowest.
18:47:05 <peter1138[d]> Not ideal, but who knows
18:49:56 <xarick> it implies the route doesn't change
18:50:09 <andythenorth> what shall we change today?
18:50:16 <andythenorth> in OpenTTD?
18:50:18 <peter1138[d]> Xarick's routes, apparently.
18:52:13 <frosch123> andythenorth: there are two slots left for the weekly blog. maybe you want to write about the micro transactions?
18:52:16 <peter1138[d]> andythenorth: More cargo icons?
18:52:23 <peter1138[d]> Heh
18:56:57 <DorpsGek> [OpenTTD/website] Kuhnovic updated pull request #296: Add: post about the new ship pathfinder https://github.com/OpenTTD/website/pull/296
18:58:13 <andythenorth> frosch123: saving myself for the coin miner
19:00:05 <xarick> lol, changing near end of platform, start of platform, triggers unbunch reset
19:00:17 <xarick> for trains
19:12:29 <peter1138[d]> That does, technically, affect the round trip time.
19:12:41 <peter1138[d]> Just not much ๐Ÿ™‚
19:20:23 <_zephyris> ... cursor support for rail/roadtypes is a nightmare.
19:23:07 <peter1138[d]> "auto cursor composition"
19:23:13 <_zephyris> Yeah
19:23:14 <peter1138[d]> (is not a thing)
19:25:32 <_zephyris> A simple cursor + track/depot/tunnel icon would get you quite a long way there
19:25:44 <_zephyris> eccentric original graphics cursors aside
19:27:33 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic opened pull request #12103: Codechange: Skip non-water water region patches in neigbor search https://github.com/OpenTTD/OpenTTD/pull/12103
19:31:49 *** michi_cc has quit IRC ()
19:40:41 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12103: Codechange: Skip non-water water region patches in neigbor search https://github.com/OpenTTD/OpenTTD/pull/12103#pullrequestreview-1886901985
19:46:13 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic dismissed a review for pull request #12103: Codechange: Skip non-water water region patches in neigbor search https://github.com/OpenTTD/OpenTTD/pull/12103#pullrequestreview-1886901985
19:46:16 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic updated pull request #12103: Codechange: Skip non-water water region patches in neigbor search https://github.com/OpenTTD/OpenTTD/pull/12103
19:47:00 <kuhnovic> Sorry Tyler, you have to review it again ๐Ÿ˜‡
19:48:15 <xarick> a no-fix ๐Ÿ™‚
19:48:33 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #12103: Codechange: Skip non-water water region patches in neigbor search https://github.com/OpenTTD/OpenTTD/pull/12103#pullrequestreview-1886913364
19:49:06 <xarick> maybe add a debug message
19:49:17 <xarick> in the form of yapf
19:49:22 <kuhnovic> Ah no-fix-but-still-made-it-better
19:50:00 <kuhnovic> What would the debug message add?
19:50:35 <xarick> unexpected patch with no water as origin, I think
19:51:08 *** michi_cc has joined #openttd
19:51:08 *** ChanServ sets mode: +v michi_cc
19:51:27 <xarick> or unhandled case of patch with no water
19:51:31 <kuhnovic> That part has been fixed, it will no longer add those as origins. And the neigbor search will bail out when it gets an invalid region.
19:52:04 <kuhnovic> So the part that you wanted fixed is fixed actually. But that particular savegame is still acting strange, but it turns out that the issue is somewhere else.
19:52:42 <kuhnovic> So maybe I did fix the issue ๐Ÿค” ? Oh well, details!
19:53:22 <xarick> for me it's that darned DestinationID
19:54:21 <xarick> there would be a solution if we could deduce the type of order that assigned that DestinationID
19:55:01 <kuhnovic> https://cdn.discordapp.com/attachments/1008473233844097104/1208501881828286604/image.png?ex=65e38415&is=65d10f15&hm=ff67d5e28db4321715398f0b2e760e8a46ddcbe2a1a09ebef96220133366c831&
19:55:01 <kuhnovic> I'm quite certain that it's the conditional order
19:56:06 <xarick> DestinationID should be a std::pair
19:56:45 <xarick> paired with order type, one couldn't live without the other
19:57:45 <xarick> so when the ship processes orders, (OT_LEAVING), and don't update the destination, it is still possible to know which type of order has assigned that destination.
20:01:11 <kuhnovic> Changing that is probably going to be hell. The ship controller code is so convoluted...
20:03:35 <xarick> conditional order, what it did was to point back to order 1
20:04:03 <xarick> it's the OT_LEAVING that's doing the mess
20:04:19 <xarick> it's leaving the dock to return to it again
20:05:02 <kuhnovic> Exactly. And I put back the old YAPF ship pathfinder code (before regions), and it does the exact same thing
20:05:17 <xarick> ship lost?
20:08:33 <xarick> i actually think the destination was updated, now that I think about it
20:08:42 <xarick> it updated to the same
20:09:23 <xarick> I wonder if it's possible to remove the OT_LEAVING step
20:09:53 <xarick> what comes after it, is hopefully OT_GOTO_STATION
20:10:30 <xarick> or lookahead
20:12:27 <xarick> A GetEffectiveOrderType for yapf
20:12:34 <xarick> which translates it
20:13:11 <_glx_> pathfinder doesn't care about the order
20:13:16 <_glx_> it's not its job
20:13:41 <kuhnovic> The ship pathfinder does actually care
20:13:46 <xarick> it cares, how else would it get docking tiles
20:14:30 <_glx_> docking tiles are infered from destination
20:14:34 <kuhnovic> It's either "go to this single tile" or "add all the docking tiles as potential destinations"
20:15:11 <_glx_> but it's not really the order itself
20:15:15 <kuhnovic> https://cdn.discordapp.com/attachments/1008473233844097104/1208506973490782228/image.png?ex=65e388d3&is=65d113d3&hm=81958984ac1129aca2d4722e0f05d3e6dbf4d806f622e73422985da878ca25ad&
20:15:35 <_glx_> yeah only current order
20:15:46 <_glx_> not what order can be next
20:16:49 <kuhnovic> That's true
20:17:48 <debdog> can't believe that was four years ago https://github.com/OpenTTD/OpenTTD/issues/8001
20:17:53 <kuhnovic> But this specific edge case calls the PF with OT_LEAVING as the current order type, but it's destination is actually a dock. So the wrong part of the if is executed.
20:18:18 <debdog> missed it's birthday for three days
20:18:27 <_glx_> blame the controller then ๐Ÿ™‚
20:18:51 <kuhnovic> _glx_: I do ๐Ÿ˜›
20:19:08 <xarick> well, that's how I use orders on my AI
20:19:16 <xarick> prevents vehicles going empty
20:19:55 <_glx_> controller is responsible for PF calls, and it should not call it here
20:20:11 <_glx_> as it leaves for the same exact location
20:22:12 <xarick> but every vehicle does that, they leave only to return to it
20:22:32 <xarick> maybe except trains, which can reverse at the station and stop immediately
20:23:09 <_jgr_> OT_LEAVESTATION has the ID of the station which is being left, not the next destination
20:23:18 <andythenorth> my macOS zip worked on bananas ๐Ÿ˜›
20:23:32 <andythenorth> going to switch my makefile from tar to zip
20:23:44 <xarick> ow...
20:24:18 <_jgr_> It's not useful to pathfind to the station which is being left
20:24:35 <andythenorth> seems the Horse makefile already had some zip support from somewhere ๐Ÿ˜›
20:24:42 <andythenorth> flags are `-9rq`, wonder what that does
20:24:49 <andythenorth> r is recursive
20:24:56 <xarick> sounds like JGR found a solution
20:24:58 <andythenorth> zip manual is huge ๐Ÿ˜›
20:25:07 <_jgr_> Not really
20:25:32 <kuhnovic> JGR only provided a clue. But he's right.
20:26:01 <andythenorth> GPT says -9rq is max compression, recursive, quiet
20:26:12 <xarick> it's OT_LEAVING btw
20:26:31 <_jgr_> The source suggests otherwise
20:26:33 <xarick> or not
20:26:35 <xarick> oh my bad
20:27:06 <wensimehrp> rubidium42viaGitHub: ๐ŸŽ‰
20:27:15 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic opened pull request #12104: Change: Show tile index as decimal number in land info window https://github.com/OpenTTD/OpenTTD/pull/12104
20:28:01 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1208510186835415191/image.png?ex=65e38bd1&is=65d116d1&hm=e4fc614a164ca7b39260447f1a60f49aeaee2d570a752fa65c9bfc86201341b9&
20:28:09 <xarick> kek
20:29:14 <peter1138[d]> Hmm
20:29:29 <peter1138[d]> Now what else did I need to do to fix bankruptcy taking ages...
20:32:46 <_glx_> road ownership ?
20:33:08 <_glx_> I guess it's a full map loop
20:33:45 <_glx_> with stat updated for each tile
20:34:21 <_jgr_> I'm guessing it's more the very long delay while each company is offered a chance to buy the company
20:34:35 <_jgr_> Even if the company has no attached client
20:35:03 <_glx_> I think he's talking about stop_ai command (same effect as bankruptcy)
20:35:31 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic commented on pull request #12104: Change: Show tile index as decimal number in land info window https://github.com/OpenTTD/OpenTTD/pull/12104#pullrequestreview-1886981841
20:35:51 <_glx_> it's the final step of bankruptcy, the actual removal of things
20:36:18 <xarick> it's when removing stations it looks over all vehicles per removed station
20:36:25 <xarick> i think
20:36:38 <xarick> sometimes I came across when I was working with GroupVehicleList
20:36:48 <_glx_> but vehicles are removed before the stations I hope
20:36:59 <xarick> they are, but 14 other companies exist
20:38:32 <_jgr_> As in RemoveOrderFromAllVehicles?
20:38:38 <_jgr_> That does look expensive
20:40:14 <_glx_> yeah a full vehicle loop per station seems too much
20:40:20 <peter1138[d]> Yes, I've already replaced that with a call to the newer vehiclelist function that lists vehicles by orders ๐Ÿ™‚
20:40:43 <_glx_> makes more sense to uses orders indeed
20:41:00 <wensimehrp> whoops... openttd just crashed
20:41:27 <_glx_> openttd crashes are bad
20:46:01 <wensimehrp> seems like to be something related to AI
20:47:35 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP opened issue #12105: [Crash]: Crash after running AI companies for a certain time https://github.com/OpenTTD/OpenTTD/issues/12105
20:48:01 <_glx_> it's missing the .dmp
20:48:02 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1208515221522620476/image.png?ex=65e39081&is=65d11b81&hm=b3658bc6858bb5a5bae487e87ca5649228cb9cf387ffd10242d5b0397d48bc90&
20:48:02 <peter1138[d]> Integer divide byu
20:49:12 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP commented on issue #12105: [Crash]: Crash after running AI companies for a certain time https://github.com/OpenTTD/OpenTTD/issues/12105
20:50:34 <_glx_> crashed inside IME it seems
20:50:45 <_glx_> but can't get any info from the dump
20:51:05 <wensimehrp> ๐Ÿค”
20:51:36 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #12105: [Crash]: Crash after running AI companies for a certain time https://github.com/OpenTTD/OpenTTD/issues/12105
20:52:34 <wensimehrp> https://cdn.discordapp.com/attachments/1008473233844097104/1208516362155073657/image.png?ex=65e39191&is=65d11c91&hm=8d4f581be225b6b8f7708605a8ceadeb40490b73c29b57451b7ead9d7190c797&
20:52:34 <wensimehrp> crashed again...
20:53:00 <peter1138[d]> There is no useful information in that screenshot ๐Ÿ™‚
20:53:42 <wensimehrp> just to show that this is reproducible?๐Ÿค”
20:54:07 <peter1138[d]> That doesn't need a screenshot ๐Ÿ™‚
20:57:08 <xarick> "id": 3221225620,
20:57:08 <xarick> "reason": "EXCEPTION_INT_DIVIDE_BY_ZERO"
20:57:44 <xarick> AAAHog.Ex tried to divide by zero?
20:59:56 <_glx_> dump says the crash was in sogouPY.ime
21:00:20 <_glx_> AIs can't crash the game
21:00:22 <xarick> no idea what that is
21:00:35 <wensimehrp> quite popular Chinese ime
21:01:32 <_glx_> crash screenshot looks weird
21:01:51 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1208518697824682074/crash20240217204546.png?ex=65e393be&is=65d11ebe&hm=1aa0baef24b104a9eddbcdd74aa5a9b2291fcf6b47fbc142f3b745edaa59dc5a&
21:03:23 <wensimehrp> I was testing the new currency format with Small Man
21:04:40 <_glx_> ah so https://discordapp.com/channels/142724111502802944/1008473233844097104/1208515221786730496 seems related ๐Ÿ™‚
21:08:32 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 opened pull request #12106: Fix a253205: division by zero when attempting to format some short currencies https://github.com/OpenTTD/OpenTTD/pull/12106
21:09:39 <DorpsGek> [OpenTTD/OpenTTD] PeterN approved pull request #12106: Fix a253205: division by zero when attempting to format some short currencies https://github.com/OpenTTD/OpenTTD/pull/12106#pullrequestreview-1887029047
21:09:54 <Rubidium> I must've messed up in one of the many many refactors :(
21:10:07 <peter1138[d]> You were just testing us ๐Ÿ™‚
21:10:45 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1208520937302003772/image.png?ex=65e395d4&is=65d120d4&hm=4286757e68e34b5e0850ec51de88edebc88e3f5d9829e4ce37fa2e6840fcde1e&
21:10:45 <_glx_> it's a 64x64 map and the AI just started
21:10:46 * Rubidium is happy nobody approved #12101 yet
21:11:23 <peter1138[d]> _glx_: What's your opcode limit?
21:11:41 <_glx_> 10000
21:11:58 <_glx_> it's the default
21:12:05 <peter1138[d]> Hm
21:12:08 <xarick> my AI :p
21:12:20 <xarick> what is the log saying?
21:12:29 <_glx_> mind it's a debug build, but still
21:13:35 <_glx_> and it's V20
21:13:49 <_glx_> so might be outdated
21:14:11 <xarick> v20 is still solid
21:14:25 <xarick> but does it say what's doing?
21:14:26 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1208521868055937044/image.png?ex=65e396b2&is=65d121b2&hm=3e20f986595fbbe0c5173db76874d00683b9d19042461c0595d4aa96d5ea7275&
21:14:26 <peter1138[d]> Hmm, that's a bit better in Xarick's 4kx4k save.
21:15:03 <xarick> I only have 1 Sleep
21:15:09 <xarick> in the entire script
21:15:45 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1208522195165511720/image.png?ex=65e39700&is=65d12200&hm=cc1664e2f9468abc7af145edbc2f17a8f5ff37402c0bf990300364c0ab0f0a94&
21:15:48 <xarick> those road veh ticks are great!
21:15:58 <_glx_> 1 sleep is not enough
21:16:06 <_glx_> you should sleep more
21:16:32 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1208522392578560102/image.png?ex=65e3972f&is=65d1222f&hm=5c6b180fc23873b40b50152b6719c274e8be5f61c2386f56dd4b5379aaf7702f&
21:16:32 <peter1138[d]> master
21:16:55 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1208522493418274846/image.png?ex=65e39747&is=65d12247&hm=6c4045c3ca62bddb4ce04019abce399a5ffb0860d929e356665592ca00a33951&
21:17:00 <peter1138[d]> It got worse :p
21:17:22 <xarick> Used ops means savegame was issued
21:17:35 <xarick> the rest seems normal, i don't think that code is that expensive
21:17:37 <_glx_> my guess is the new list constructors
21:18:00 <peter1138[d]> slow pool bitmap? :p
21:18:45 <_glx_> constructors with optional filters use Pool::Iterate
21:18:45 <xarick> it's searching for towns, then it's comparing tiles in a town to find a spot with best cargo production, and acceptance
21:19:12 <_glx_> but they were using Iterate before too
21:19:31 <peter1138[d]> Yeah, I was joking, sorry ๐Ÿ™‚
21:19:47 <_glx_> but it's a 64x64 map, it shouldn't be that CPU consuming
21:19:50 <peter1138[d]> Btw, to "fix" Xarick's save I made a single character change.
21:19:55 <_glx_> even in debug build
21:20:01 <peter1138[d]> 10 points if you can guess what.
21:20:35 <_glx_> changed the 12 to 14 ?
21:20:39 <peter1138[d]> _glx_: just 1 AI?
21:20:44 <_glx_> yeah just one
21:20:47 <_glx_> and no GS
21:20:55 <peter1138[d]> Which 12? ๐Ÿ˜„
21:21:04 <_glx_> API version
21:21:17 <peter1138[d]> Ah. Nope.
21:21:34 <wensimehrp> found an issue with the new number format... Units aren't used correctly.
21:21:34 <wensimehrp> I think I can fix that
21:22:12 <peter1138[d]> `const int HASH_BITS = 7;` to `const int HASH_BITS = 8;`
21:22:35 <xarick> whatever that is, nice
21:22:36 <peter1138[d]> So 128x128 tile hash to 256x256 tile hash. But that means it uses 512KB instead of 128KB.
21:23:06 <peter1138[d]> It's the hash for looking up vehicles on a tile.
21:23:23 <peter1138[d]> With a 4kx4k map there can be a lot of overlaps in the hash.
21:23:26 <peter1138[d]> collisions.
21:24:15 <xarick> 200 ms to 9 ms, worth it
21:24:20 <peter1138[d]> JGR's strategy of splitting the tile hash by vehicle tile would also help here, because it's about 80 rail vehicles and 5 road vehicles. And we're only looking for road vehicles.
21:24:35 <_glx_> the only time ms goes lower than 10 I think it's when it's issuing commands
21:24:43 <_glx_> forcing it to sleep
21:24:44 <peter1138[d]> I think the 7 was chosen before 4kx4k maps existed.
21:25:17 <peter1138[d]> _glx_: make a release build and compare. debug is not very useful for performance issues.
21:25:18 *** daredemo has quit IRC (Quit: User went offline on Discord a while ago)
21:25:25 <_glx_> yeah I know
21:25:38 <DorpsGek> [OpenTTD/website] frosch123 updated pull request #302: Add: Blog posts about Survey, HTTPS, and Infrastructure https://github.com/OpenTTD/website/pull/302
21:25:42 <xarick> let me find Sleep
21:26:45 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1208524965570285668/image.png?ex=65e39995&is=65d12495&hm=b75397caffda46394c534630e1263bb53fc8c88e31d754cd701d61bd5bb32002&
21:26:50 <xarick> oh, i have more than 1 sleep it seems
21:27:28 <_glx_> anyway it's not mandatory to do things every tick
21:28:39 <_glx_> some of your sleeps could be longer than 1 tick (depending on what actions were just finished)
21:29:15 <DorpsGek> [OpenTTD/website] frosch123 commented on pull request #302: Add: Blog posts about Survey, HTTPS, and Infrastructure https://github.com/OpenTTD/website/pull/302#pullrequestreview-1887030816
21:29:22 <xarick> eh, I find myself limited by opcodes all the time
21:29:40 <_glx_> means you try to do too much ๐Ÿ™‚
21:29:59 <xarick> with many vehicles, i just can't manage to check them all in 1 year
21:30:12 <peter1138[d]> What needs to be checked?
21:30:40 <xarick> profits, age, expand stations, replace, renew
21:30:59 <xarick> also checking many vehicles, etc...
21:31:02 <peter1138[d]> Hmm, renew is automatic.
21:31:16 <peter1138[d]> Replace only need to work on engine types, not vehicles.
21:31:25 <xarick> checking whether i get too many vehicles in a route, they end up stalling
21:31:44 <_glx_> ok release build is better ๐Ÿ™‚
21:31:48 <peter1138[d]> Calculate route capacity better :p
21:31:54 <xarick> it's a poor AI
21:31:56 <xarick> ๐Ÿ™‚
21:32:01 <xarick> in terms of optimizations
21:32:07 <_glx_> 0.58ms avg
21:32:22 <peter1138[d]> Somewhat better, yes.
21:32:55 <_glx_> but usually debug builds are "usable"
21:33:03 <_glx_> just not with this AI
21:33:26 <_glx_> oh no I know, I had a conditional breakpoint
21:33:36 <_glx_> let's retry debug without it
21:33:53 <xarick> can you check the cpu profile thingy? I wanna see what functions the AI calling
21:34:41 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1208526963480731699/image.png?ex=65e39b71&is=65d12671&hm=95795e01f75bbadf1a2aa95bae594c89bfb8bde609bf827b6db5240d5b449497&
21:34:47 <wensimehrp> > I want to change the language definition (plural form, genders, cases) of a translation.
21:34:47 <wensimehrp> > Please create an issue for this.
21:34:47 <wensimehrp> Shall I create a PR for this?
21:34:50 <_glx_> it was the conditional breakpoint
21:35:03 <xarick> ^_^
21:36:05 <_glx_> I forgot I had it
21:36:57 <_glx_> conditional breakpoints are so expensive
21:37:24 *** rau117 has quit IRC (Quit: User went offline on Discord a while ago)
21:40:49 <wensimehrp> wensimehrp: Nah I'll just go for it
21:43:04 <peter1138[d]> _glx_: Nice.
21:44:22 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP opened pull request #12107: Fix: Incorrect charactor used in zh_TW number and currency formats https://github.com/OpenTTD/OpenTTD/pull/12107
21:45:17 <peter1138[d]> wensimehrp: please don't cross out the checklist items, that's for reviewers to follow.
21:45:49 <wensimehrp> I thought this PR only touches the translation
21:45:52 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #12106: Fix a253205: division by zero when attempting to format some short currencies https://github.com/OpenTTD/OpenTTD/pull/12106
21:49:35 *** APTX has quit IRC (Remote host closed the connection)
21:51:36 <_glx_> #12105 might be fixed by #12106 (it was a div/0 too with inexploitable trace)
21:51:37 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP commented on pull request #12107: Fix: Incorrect charactor used in zh_TW number and currency formats https://github.com/OpenTTD/OpenTTD/pull/12107#pullrequestreview-1887034010
21:52:25 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP updated pull request #12107: Fix: Incorrect charactor used in zh_TW number and currency formats https://github.com/OpenTTD/OpenTTD/pull/12107
21:52:31 <peter1138[d]> wensimehrp: Doesn't matter what the PR is, the checklist is for us ๐Ÿ™‚
21:52:59 <wensimehrp> Ah... I messed up everything
21:54:03 <_glx_> wensimehrp: does it still crash easily in new master ?
21:55:56 <wensimehrp> hold on...
21:55:56 <wensimehrp> the problem is that I cannot build it on windows, I can only build it on linux for some reasons... and I don't have that sogou thingy installed on linux
21:55:56 <wensimehrp> I guess the only way to check out is to wait until tomorrow for the nightly version
21:56:13 <peter1138[d]> /* When not converting rail <-> el. rail, any vehicle cannot be in tunnel/bridge */
21:56:13 <_glx_> np
21:56:14 <peter1138[d]> Nice.
21:56:28 <peter1138[d]> This is CmdConvertRoad() ๐Ÿ™‚
21:56:49 <_glx_> too much copy paste for NRT ?
21:56:53 <peter1138[d]> Yeah
21:58:36 <peter1138[d]> Hmm, is there a proper way to convert TransportType to VehicleType...
21:59:10 <peter1138[d]> I see `static_cast<VehicleType>(this->transport_type)` used at least once.
22:03:41 *** nielsm has quit IRC (Ping timeout: 480 seconds)
22:04:42 <peter1138[d]> Hmm, splitting the tile hash per vehicle type has the same memory effect as increasing the tile hash size one bit.
22:04:56 <peter1138[d]> Performance wise... not sure, probably not as beneficial.
22:05:22 <peter1138[d]> (hash collisions will still be high for a particular vehicle type)
22:05:52 <frosch123> TransportType is rarely used, maybe it could be replaced with VehicleType
22:06:06 <frosch123> i don't think there is a way to derive enums ๐Ÿ™‚
22:06:13 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP closed pull request #12107: Fix: Incorrect charactor used in zh_TW number and currency formats https://github.com/OpenTTD/OpenTTD/pull/12107
22:06:16 <DorpsGek> [OpenTTD/OpenTTD] WenSimEHRP commented on pull request #12107: Fix: Incorrect charactor used in zh_TW number and currency formats https://github.com/OpenTTD/OpenTTD/pull/12107#issuecomment-1950420611
22:06:21 <frosch123> `enum VehicleType : TransportType` does not work
22:06:52 <wensimehrp> WenSimEHRPviaGitHub: I'll figure it out
22:07:06 <peter1138[d]> Nope.
22:10:20 <frosch123> https://github.com/OpenTTD/OpenTTD/blob/master/src/ground_vehicle.cpp#L194 <- we have some static assertions ๐Ÿ™‚
22:13:19 <_glx_> TransportType is mostly used by PF I think
22:13:24 <_glx_> (didn't check)
22:14:45 <frosch123> it's used by map accessors and functions
22:15:04 <frosch123> the rest of the game cares more about vehicles
22:15:41 <_glx_> PF, bridge and tunnels it seems
22:15:59 <_glx_> depot also
22:16:10 <frosch123> we need depots for ufos
22:16:46 <_glx_> ` if (IsDepotTypeTile(tile, (TransportType)(uint)v->type) && IsTileOwner(tile, _local_company)) {` orders just go lazy ๐Ÿ™‚
22:17:50 <xarick> _local_company ? wow isn't that cheating
22:18:04 <xarick> very nice shortcut
22:18:04 <_glx_> no it's a command
22:18:33 <xarick> is that from yapf or npf?
22:19:23 <peter1138[d]> Hmm, what transport type can an industry be built on...
22:19:35 <peter1138[d]> I'm thinking only water./
22:19:56 <_glx_> it's from the GUI when you use "go to" button
22:20:21 <xarick> oh, I'm wrong then
22:20:32 <xarick> not a shortcut to getting the owner of vehicle
22:26:37 <peter1138[d]> Can industries build over rail or road tiles? I wouldn't think so but I'm not sure.
22:28:17 <andythenorth> I've never seen it happen ๐Ÿ˜›
22:28:35 <andythenorth> I tend to have magic bulldozer enabled a lot also
22:28:53 <andythenorth> so that _probably_ doesn't cause it either
22:29:23 <wensimehrp> https://cdn.discordapp.com/attachments/1008473233844097104/1208540727307407421/image.png?ex=65e3a842&is=65d13342&hm=597bf2c560f73ce0f61d4a9f5110b171036adb0bfd9194ab862e4f8a72d886d0&
22:29:23 <wensimehrp> This... looks so werid
22:29:58 <peter1138[d]> "This"
22:30:03 <peter1138[d]> The sprite, or the number?
22:30:13 <wensimehrp> number format changed in sprite window
22:30:24 <peter1138[d]> number format changed
22:30:30 <frosch123> peter1138[d]: they can probably DC_AUTO remove half roads, why do you ask?
22:31:39 <peter1138[d]> Trying to naively split tile hash by vehicle type, and that means EnsureNoVehicleOnGround requires a vehicle type passing to it.
22:31:55 <peter1138[d]> CheckIfIndustryTilesAreFree() checks for no vehicle on the ground.
22:32:05 <peter1138[d]> Which implies it can clear transport types.
22:32:13 <peter1138[d]> Half-tile roads maybe be feasible here.
22:32:30 <peter1138[d]> I can just check all vehicle types though, just inc ase.
22:33:23 <frosch123> crashed aircraft after running out of fuel due to no airports existing ๐Ÿ™‚
22:33:35 <frosch123> landed ufos
22:33:38 <peter1138[d]> Is that a thing... ๐Ÿ˜ฎ
22:33:45 <peter1138[d]> Hmmm
22:33:57 <frosch123> you can launch aircraft into air, and then remove all airports
22:34:06 <frosch123> watch them fly for a while, and then crash
22:34:32 <frosch123> i guess the submarine diaster also blocks water tiles, but is no ship
22:35:12 <andythenorth> hover submarine?
22:37:18 <xarick> I tried to add a full load order to a vehicle with unbunch in the order list. I'd like the GetLastError to be something more intelligble
22:37:24 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1208542744730013737/image.png?ex=65e3aa23&is=65d13523&hm=1a8d715dc2374172102b3ee12ae0493197f8d5ff6cd896a32e28782ce7c9b268&
22:38:35 <xarick> ERR_UNKNOWN should be... STR_ERROR_UNBUNCHING_NO_FULL_LOAD translated to script api language
22:38:44 <xarick> how do I proceed?
22:40:04 <xarick> there's also error category, which I have absolutely no idea it was a thing
22:43:04 <peter1138[d]> Hmm, seems like just increasing the hash size is simpler, less error prone and more effective.
22:43:12 <frosch123> the alternative may be to add disaster vehicles to all vehicle-type hashes
22:43:35 <frosch123> though crashed aircraft remain weird
22:43:56 <peter1138[d]> Can crashed aircraft "land" on rail or road tiles...
22:44:27 <xarick> don't they remain in the virtual tile xy?
22:44:43 <frosch123> let's try
22:47:28 <frosch123> hmm, they actually do not fall onto the ground properly
22:48:11 <_glx_> xarick: just look at ScriptOrder::ErrorMessages
22:48:31 <_glx_> the comments format is important
22:50:20 <_glx_> there's space for 256 errors per category
22:50:29 <frosch123> https://cdn.discordapp.com/attachments/1008473233844097104/1208546039192359022/image.png?ex=65e3ad35&is=65d13835&hm=a1bd23da7a622019bb76a39e9facfaeb6aaf2cad94f7cb65b04418872cdad05d&
22:50:29 <frosch123> they just hover above the ground
22:50:39 <frosch123> they do not block building/removing rails
22:50:44 <frosch123> and trains can pass through the plane
22:52:13 <_glx_> crashed planes still flying ?
22:52:17 <_glx_> funny
22:53:04 <frosch123> it jumps around a bit in the crash animation
22:53:11 <frosch123> so probably broken for years ๐Ÿ™‚
22:53:34 <_glx_> guess it would be hard to mark plane presence on the 4 affected tiles (based on the shadow)
22:54:24 <_glx_> most likely never touched since r1
22:55:40 <frosch123> there is even a distinct news message ๐Ÿ™‚
22:56:21 <frosch123> i wonder how many players know it compared to how many know there is a distinct endgame screen when reaching 1000 points
22:58:09 <xarick> is * @exception required?
22:58:16 <xarick> * @exception ScriptError::ERR_OWNED_BY_ANOTHER_COMPANY
22:58:23 <xarick> in the function description
22:59:54 <xarick> is there actual code running behind that, or is it just a comment
23:00:29 <_glx_> it's just a comment so you now which error you might receive
23:00:29 <peter1138[d]> It's called "documentation"
23:00:41 <xarick> ๐Ÿ™‚ okay
23:03:30 <_glx_> <https://github.com/OpenTTD/OpenTTD/commit/2543158c8e0d105148bc38522fba43aa3428d76a> this code is so old
23:04:26 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1208549548998533120/image.png?ex=65e3b07a&is=65d13b7a&hm=831d6fc1845cc3146768a3f99c67168e87d3d30479cfd8954d775b3796eba282&
23:04:26 <xarick> nice, I like it!
23:04:31 <xarick> it's taking form
23:06:30 <frosch123> oh, wow, it's actually not in original TTD?
23:07:38 <_glx_> I guess it all comes from the original crash on the too short airport runway
23:07:38 <frosch123> sf bug numbers...
23:07:50 <peter1138[d]> heh
23:07:57 <_glx_> where aircraft is actually already on ground
23:08:16 <_glx_> but for the fuel crash there's nothing moving it to ground
23:08:49 <frosch123> isn't that at line 930 in the diff?
23:09:11 <_glx_> oh indeed
23:11:00 <peter1138[d]> So I accidentally unearthed an old bug...
23:11:37 <frosch123> the code still exists, no idea why it does not work
23:11:44 <_glx_> ` v->crashed_counter += 3;` and later in the function ` if (v->crashed_counter < 500 && st == nullptr && ((v->crashed_counter % 3) == 0) ) {`
23:11:53 <DorpsGek> [OpenTTD/OpenTTD] jcteotonio opened pull request #12108: Add: Portuguese Escudo currency https://github.com/OpenTTD/OpenTTD/pull/12108
23:12:40 <xarick> wow!
23:12:43 <xarick> .=)
23:12:46 <frosch123> oh, that limits how deep it can fall
23:13:07 <frosch123> at most 166px
23:13:14 <frosch123> if it is flying higher, it won't reach ground
23:13:28 <_glx_> that's not much with the 255 height
23:13:31 <xarick> 1โ‚ฌ = 200$482 is all I remember
23:13:49 <_glx_> 6,55957
23:14:01 <frosch123> i guess flying altitude was changed a few times
23:14:12 <frosch123> even for different flying speeds
23:14:59 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #12104: Change: Show tile index as decimal number in land info window https://github.com/OpenTTD/OpenTTD/pull/12104#issuecomment-1950522048
23:15:04 <_glx_> altitude changes with ground height, but I don't remember the differential
23:16:52 <frosch123> https://github.com/OpenTTD/OpenTTD/blob/master/src/aircraft.h#L20 <- well, more than 166px
23:16:58 <xarick> how much was 1โ‚ฌ in ยฃ in the year the euro was introduced, 2000?
23:17:08 <xarick> 2002 in Portugal
23:17:55 <xarick> dang, I got distracted again
23:18:12 <_glx_> they kept ยฃ so it doesn't matter ๐Ÿ™‚
23:20:39 <xarick> $00, and $50 was typical at the time
23:21:25 <xarick> openttd doesn't support fractional currency?
23:21:54 <xarick> like 1 dollar 30 cents
23:22:25 <xarick> I thought Money had something about fraction
23:22:46 <xarick> anyway, I digress
23:23:26 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1208554331004215406/image.png?ex=65e3b4ee&is=65d13fee&hm=3e7e8c594cf8a3cbb8b0d4a38684e9a86d311dd979cdb44a2d3e19754106d3b5&
23:23:26 <_glx_> EURGBP average exchange rates
23:23:59 <_glx_> so 2โ‚ฌ for 1ยฃ feels correct due to the game limitations
23:24:21 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
23:26:19 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1208555056572665936/image.png?ex=65e3b59b&is=65d1409b&hm=f9292d489f1fad4a10a15b8d80454902638dc291f83f2221e97f33694554a8c7&
23:26:28 <peter1138[d]> โ‚ฌ1 for ยฃ1 is closer these days ๐Ÿ˜ฎ
23:27:57 <xarick> his 400 figure is way off imo but ok
23:32:35 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1208556634750853220/image.png?ex=65e3b713&is=65d14213&hm=1f4b78b1fdebe4f1b12f802034c9557c953e8ada05a153123a065516c3cf1d70&
23:32:35 <peter1138[d]> such cheating
23:33:24 <peter1138[d]> That Game loop total is missing something...
23:34:08 <peter1138[d]> Possibly unaccounted wagon aging.
23:36:07 <peter1138[d]> Oh, it's not aging that's unaccounted. Hmm.
23:36:26 <peter1138[d]> tick_counter++
23:37:02 <xarick> world ticks?
23:37:05 <xarick> so low?
23:37:19 <peter1138[d]> vehicle ticks.
23:37:34 <xarick> it's amazing
23:37:43 <xarick> road veh ticks so low
23:38:11 *** Ox7C5 has quit IRC ()
23:38:35 <xarick> does that still have disaster and effect vehicles enabled?
23:39:58 *** jcteotonio has joined #openttd
23:39:58 <jcteotonio> xarick: I picked the value so that the conversion is correct during game-play (when the players enter 2002), not really the pound rate at the time. That was the mindset.
23:41:34 <_glx_> similar to the 2โ‚ฌ for 1ยฃ
23:42:45 <_glx_> so 400 for 1ยฃ (200 * 2 for 1ยฃ) feels right
23:43:20 <xarick> how did the other currencies make the conversion?
23:44:13 *** tokai has joined #openttd
23:44:13 *** ChanServ sets mode: +v tokai
23:50:05 <xarick> well, the game would transit escudo to euro in 2002, but still... the currency conversion should derive from the pound. Are there guidelines about how to do this conversion?
23:50:13 <xarick> when introducing new currencies?
23:51:05 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
23:59:24 <peter1138[d]> The usual way is "just use a custom currency" :p