IRC logs for #openttd on OFTC at 2024-03-20
            
00:01:52 <xarick> omg, how many trains/wagons exist in iron horse 3.14.0 ?
00:04:01 <peter1138> Some would say ... enough.
00:04:11 <xarick> my poor AI
00:04:43 <xarick> is experimenting all train/wagon compatibility of all available engines
00:04:55 <xarick> attachment testing
00:05:01 <_glx_> oh there are many variants
00:06:06 <xarick> never imagined the cause of my AI apparent slowdown was due to the insane amount of engines being tested
00:06:26 <_glx_> maybe API needs to know about variants
00:06:50 <xarick> there really should be a way to check if a train can pull a wagon
00:07:03 <xarick> without buying to test it
00:07:42 <_glx_> it's impossible, newgrf needs a real vehicle for callbacks
00:09:10 <_glx_> and in iron horse many wagons are just duplicates (variants with same data but different colours)
00:10:57 <Eddi|zuHause> maybe it's time to revive the AI callback?
00:11:01 <xarick> testing attachments since 1935, it's 1943 now
00:11:45 <xarick> it's a one time thing, but gee...
00:11:46 <Eddi|zuHause> given an engine and a cargo, and a usage pattern, the AI callback will return a fitting wagon
00:12:51 <_glx_> but newgrf rarely implement it
00:13:09 <Eddi|zuHause> yes, because OpenTTD never used it
00:18:38 <peter1138> Chicken & egg.
00:19:18 <Eddi|zuHause> back when noai was introduced, i was told off for suggesting to implement it...
00:21:34 <_glx_> if you want some fun, try dbset where some engines require a specific amount of passenger cars
00:21:51 <_glx_> or old UKRS and the mandatory caboose
00:21:59 <peter1138> And that's from 2004 or something :p
00:23:49 <_glx_> it might be simpler to use <https://docs.openttd.org/ai-api/classAINewGRF> and have predetermined consists hardcoded in the AI source
00:24:42 <_glx_> and fallback to your expensive method for unknown newgrf
00:25:05 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1219803866275647558/image.png?ex=660ca1e0&is=65fa2ce0&hm=cb3638c6d1b2dd932af2eb3eac1b5a13ba56ff891af3573f7a5034d120217e2d&
00:25:19 <_glx_> that's just a lot of combinations ๐Ÿ™‚
00:25:29 <peter1138> Implementing the callback to allow AIs to use it doesn't mean AIs need to use it.
00:25:46 <peter1138> But, uh, difficult to test without much source material ๐Ÿ™‚
00:26:15 <_glx_> I think dbset had the AI callback
00:27:16 <peter1138> IIRC the callback is able to return special AI-only vehicles which allow the AI to cheat. So that'll have to be filtered out.
00:28:02 <Eddi|zuHause> well, the command to actually purchase the returned vehicle should take care of that
00:28:29 <_glx_> oh and nml doesn't implement CB18 ๐Ÿ™‚
00:28:49 <Eddi|zuHause> that's a different problem :p
00:29:31 <_glx_> many newgrf are written with nml, so without nml support it's not very useful
00:30:21 <_glx_> ah and the CB doesn't support railtypes or NRT
00:33:36 <peter1138> Or multiple NewGRFs.
00:34:08 <_glx_> "This makes it possible to leave certain decisions to the previous handler and allows some cooperation between several .grf files. "
00:34:20 <_glx_> it's supposed to support multiple grf
00:34:24 <peter1138> Oh so it does ๐Ÿ™‚
00:35:06 <_glx_> but "For trains, the track types (0=regular, 1=electric, 2=monorail, 3=maglev) are automatically mapped as appropriate depending on the electrifiedrailways/unifiedmaglev switches."
00:35:14 <_glx_> that's quite limiting
00:36:46 <peter1138> Almost like it wasn't implemented for a reason ๐Ÿ˜„
00:38:14 <_glx_> I really think it's simpler to check for newgrf presence and provide working association directly in the AI code
00:40:29 <_glx_> or introduce variants support in the API so it's possible to filter them out
01:42:03 *** Wormnest has quit IRC (Quit: Leaving)
01:48:17 *** tokai|noir has joined #openttd
01:48:17 *** ChanServ sets mode: +v tokai|noir
01:55:11 *** tokai has quit IRC (Ping timeout: 480 seconds)
02:01:39 *** wallabra has quit IRC (Read error: No route to host)
02:02:20 *** wallabra has joined #openttd
02:02:51 *** herms has quit IRC (Quit: bye)
02:03:42 *** herms has joined #openttd
02:36:31 <merni> _glx_: Or xussr which requires specific arrangements of head, motor and trailer cars
03:00:01 *** herms has quit IRC (Ping timeout: 480 seconds)
03:27:17 *** D-HUND has joined #openttd
03:30:46 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:40:36 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/00a09af1fda7a00bc9a88a53c02638f1a2ce4526
04:40:37 <DorpsGek> - Update: Translations from eints (by translators)
04:48:20 *** herms has joined #openttd
05:12:21 *** keikoz has joined #openttd
06:01:35 *** Ox7C5 has joined #openttd
06:21:26 *** keikoz has quit IRC (Ping timeout: 480 seconds)
07:07:29 <andythenorth> Funny thing: all Horse wagons are compatible with all engines, assuming same track type ๐Ÿ˜›
07:07:48 <andythenorth> Because attach checks are completely stupid
07:09:57 <andythenorth> _glx_: Literally just recolour sprites in many cases ๐Ÿ™‚
07:21:21 <ahyangyi> andythenorth: And one can even use Horse wagons with engines from other mods
07:21:52 <ahyangyi> I think Horse even has a parameter to support this use case?
07:26:54 <andythenorth> ahyangyi: Yup
07:29:22 <DorpsGek> [OpenTTD/OpenTTD] MML96 opened issue #12340: [Crash]: Crash during launch from Steam on macOS Catalina https://github.com/OpenTTD/OpenTTD/issues/12340
07:42:26 <emperorjake> ahyangyi: Assuming those other mods don't have coupling restrictions on their wagons
07:43:09 <emperorjake> and also the fact that Horse has a slightly different alignment to most other trainsets
07:45:48 *** SigHunter has quit IRC ()
07:48:28 *** SigHunter has joined #openttd
08:05:18 <DorpsGek> [OpenTTD/OpenSFX] matthijskooijman updated pull request #52: Fix: Remove generated .sfo file on clean https://github.com/OpenTTD/OpenSFX/pull/52
08:05:30 <DorpsGek> [OpenTTD/OpenSFX] matthijskooijman commented on pull request #52: Fix: Remove generated .sfo file on clean https://github.com/OpenTTD/OpenSFX/pull/52#pullrequestreview-1948182916
08:11:02 <DorpsGek> [OpenTTD/OpenSFX] LordAro approved pull request #52: Fix: Remove generated .sfo file on clean https://github.com/OpenTTD/OpenSFX/pull/52#pullrequestreview-1948191593
08:16:49 <DorpsGek> [OpenTTD/OpenSFX] matthijskooijman approved pull request #54: Change: [CI] Update workflows https://github.com/OpenTTD/OpenSFX/pull/54#pullrequestreview-1948200888
08:28:42 <DorpsGek> [OpenTTD/OpenSFX] LordAro approved pull request #54: Change: [CI] Update workflows https://github.com/OpenTTD/OpenSFX/pull/54#pullrequestreview-1948222074
08:28:50 <DorpsGek> [OpenTTD/OpenSFX] LordAro merged pull request #54: Change: [CI] Update workflows https://github.com/OpenTTD/OpenSFX/pull/54
08:29:07 <LordAro> there you go, can rebase now :)
08:31:17 <kamnet> Hey everyone, I'm thinking of putting together a promotional video for OpenTTD 14, and setting up a multiplayer server to show off some of the new features. Would any devs who worked on the new features be interested in participating in a live broadcast and interview to personally talk about the features and improvements?
08:43:47 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
09:06:51 <DorpsGek> [OpenTTD/OpenSFX] matthijskooijman updated pull request #52: Fix: Remove generated .sfo file on clean https://github.com/OpenTTD/OpenSFX/pull/52
09:07:55 <DorpsGek> [OpenTTD/OpenSFX] matthijskooijman commented on pull request #52: Fix: Remove generated .sfo file on clean https://github.com/OpenTTD/OpenSFX/pull/52#issuecomment-2009081235
09:18:23 <DorpsGek> [OpenTTD/OpenSFX] LordAro merged pull request #52: Fix: Remove generated .sfo file on clean https://github.com/OpenTTD/OpenSFX/pull/52
09:23:57 <orudge> Nightlies look to be signed fine with the new certificate
09:33:38 *** Leopold_ has quit IRC (Ping timeout: 480 seconds)
09:35:53 *** Leopold_ has joined #openttd
10:20:45 <peter1138> Well.
10:58:26 *** D-HUND is now known as debdog
11:20:32 *** tokai has joined #openttd
11:20:32 *** ChanServ sets mode: +v tokai
11:20:35 *** Eddi|zuHause2 has joined #openttd
11:20:40 *** wallaby2 has joined #openttd
11:20:55 *** azubieta6082266638 has joined #openttd
11:21:01 *** pickpacket7 has joined #openttd
11:24:51 *** wallabra has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:51 *** tokai|noir has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:51 *** kale91 has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:51 *** drludde has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:51 *** charlieatlas_ff03k64 has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:51 *** xertov has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:51 *** kamnet has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:51 *** talltyler has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:51 *** _glx_ has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:51 *** pickpacket has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** Eddi|zuHause has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** jeeg[m] has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** azubieta608226663 has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** giords[m] has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** emilyd[m] has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** Farrokh[m] has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** cjmonagle[m] has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** einar[m] has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** patricia[m]1 has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** audunm[m] has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** temeo[m] has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** rain[m]1 has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** karl[m]12 has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** playback2396[m] has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** yubvin[m] has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** KenjiE20 has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** calbasi[m]1 has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** peter1139 has quit IRC (reticulum.oftc.net helix.oftc.net)
11:24:52 *** pickpacket7 is now known as pickpacket
11:25:17 <truebrain> orudge: Nice!
11:29:48 *** peter1139 has joined #openttd
11:35:46 *** KenjiE20 has joined #openttd
11:35:47 *** charlieatlas_ff03k64 has joined #openttd
11:35:48 *** talltyler has joined #openttd
11:36:13 *** drludde has joined #openttd
11:36:49 *** kamnet has joined #openttd
11:37:24 *** xertov has joined #openttd
11:37:24 *** kale91 has joined #openttd
11:37:24 *** _glx_ has joined #openttd
11:37:58 <peter1138> Oh hey
11:39:38 <DorpsGek> [OpenTTD/OpenTTD] PeterN closed pull request #11566: Add: Support sound effects in MP3 format in basesets and NewGRF. https://github.com/OpenTTD/OpenTTD/pull/11566
12:00:44 *** Ox7C5 has quit IRC ()
12:11:58 *** calbasi[m]1 has joined #openttd
12:25:34 *** SigHunter_ has joined #openttd
12:27:02 *** SigHunter has quit IRC (Ping timeout: 480 seconds)
12:32:18 <xarick> wormnest: hey, still alive?
12:32:51 *** SigHunter has joined #openttd
12:32:56 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1219987037999071283/image.png?ex=660d4c78&is=65fad778&hm=5f29f9db2ebd9b80806c213a9e36e928747570ab5056a0762d81ae7ecd40b1c4&
12:32:56 <xarick> I notice NoNoCAB underperforming vs NoCAB...
12:33:23 *** emilyd[m] has joined #openttd
12:35:37 *** SigHunter_ has quit IRC (Ping timeout: 480 seconds)
12:43:51 <peter1138> Hmm, I've no idea how SlCopy works.
12:53:06 <kuhnovic> Ah xarick is here. I wonder what you think of this PR, and if you are able to break it ๐Ÿ˜› https://github.com/OpenTTD/OpenTTD/pull/12335
12:59:05 <_glx_> peter1138: Copies bytes from/to savegame ?
13:00:56 <peter1138> I found a better way ๐Ÿ™‚
13:03:33 <frosch123> truebrain: how large is the json overhead? i assumed name, description text and tags are long enough to make the []",: and keys "name", "desc", "tags" irrelevant
13:03:42 *** giords[m] has joined #openttd
13:03:53 *** Farrokh[m] has joined #openttd
13:04:44 <_jgr_> Is you're using HTTP or something derived from it, then gzip compression makes JSON not such a big issue
13:06:14 <xarick> oh, ok let's see
13:08:46 *** jeeg[m] has joined #openttd
13:10:24 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1219996468740620359/image.png?ex=660d5540&is=65fae040&hm=f88957d845638caed1eeb9ba8a831ac5db14d23e4277aec5e16070091176dc3d&
13:10:24 <peter1138> All those 256 slots get used a lot ๐Ÿ˜‰
13:18:33 *** wormnest has joined #openttd
13:18:33 <wormnest> xarick: Sure, I've noticed that too sometimes, but it's not always easy to pinpoint where exactly the problem is. Could be that some of the extra safety checks have negative side effects.
13:18:48 <__karma> https://cdn.discordapp.com/attachments/1008473233844097104/1219998581143109722/CleanShot_2024-03-20_at_13.13.38.png?ex=660d5738&is=65fae238&hm=f6cda3d1e649de422c302fcd30c04191bf36408b18354bcc474eeec3cd107d5d&
13:18:48 <__karma> Hey, I got a question regarding issue #11345 I believe my last commit fixes the issue, but also changed the text so that each mode shows only its units, should this be included in the same PR or not?
13:18:48 <__karma> Issue link: <https://github.com/OpenTTD/OpenTTD/issues/11345>
13:22:25 *** keikoz has joined #openttd
13:26:42 <xarick> oh I like the new CheckShipReverse
13:26:47 <xarick> it's so simpler
13:31:29 <xarick> kuhnovic: while (node->m_parent != nullptr) {
13:33:17 <kuhnovic> ?
13:33:49 *** cjmonagle[m] has joined #openttd
13:34:03 *** playback2396[m] has joined #openttd
13:35:03 <xarick> you always forget the != nullptr
13:35:30 <kuhnovic> Oh ๐Ÿ˜› yeah that's a habit of mine
13:36:13 <talltyler> __karma: Yes, I think so. It could be a separate commit within the same PR if thatโ€™s easy, it makes reviewing nicer ๐Ÿ™‚
13:38:29 <kuhnovic> xarick: Indeed, but more importantly, it means that all the special logic such as the restrict-on-second-attempt stuff doesn't need to be duplicated ๐Ÿ™‚
13:47:42 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1220005854242144266/image.png?ex=660d5dfe&is=65fae8fe&hm=d08a7a8715b824cd0f44ee018aa730bc910af231f48728d1bdfccf0eec3faac7&
13:47:42 <peter1138> such saving in savegame size :p
13:47:52 *** nielsm has joined #openttd
13:51:19 <andythenorth> Faster
13:53:37 *** marchnex has joined #openttd
13:54:01 <peter1138> If only vectors could use less than 24 bytes on 64-bit ๐Ÿ˜ฆ
13:56:39 <xarick> is (void) necessary?
13:56:45 *** marchnex has quit IRC (Remote host closed the connection)
13:56:53 <xarick> could be omitted
13:57:38 <LordAro> PR reviews in the PR
13:57:43 <kuhnovic> Not necessary, but a nice way to explicitly say that you want to omit a return value. It also makes sure compilers don't throw any warnings.
13:58:15 <xarick> i see
13:58:51 <xarick> nobody else seems to do that way from the cases I found
14:01:15 <xarick> a slowdown is expected on my 70k ships save
14:01:33 <xarick> reverse now doing the 2 attemps
14:01:37 <xarick> up to
14:02:53 <peter1138> Compilers don't usually warn if you ignore the result. That's why we use `[[nodiscard]]` when we want to make sure it's not ignored.
14:04:29 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1220010079655563354/image.png?ex=660d61ed&is=65faeced&hm=60b417312faed53c3ee745b1707f9626560138e67d5f39c11216a390dbbf91df&
14:04:29 <xarick> hmm it's actually faster, that's odd
14:04:49 <xarick> either something broke
14:04:55 <xarick> or... too good to be true
14:05:46 <peter1138> Good before and after co,parison there....
14:06:07 <xarick> I vaguely remember it was in the 50s
14:06:18 <xarick> but ok let's try
14:09:34 <kuhnovic> Reverse will only do the 2nd attempt if the 1st one wasn't succesful. That does happen, but not often.
14:10:32 <xarick> funny, it's even faster on master
14:10:39 <xarick> what the heck happened
14:11:40 <xarick> goes as low as 37 ms
14:16:14 <peter1138> Someone upgraded your CPU.
14:16:31 <xarick> i just tried single core affinity for openttd, and video output is laggy as hell
14:16:38 *** asymptotically2 has quit IRC (Remote host closed the connection)
14:16:48 <peter1138> That's because OpenTTD uses two threads.
14:16:50 <xarick> mouse pointer struggles to move even on windfows
14:17:09 <xarick> in the OS
14:17:13 *** asymptotically2 has joined #openttd
14:17:55 <xarick> so openttd now requires a dual thread system
14:19:43 <xarick> it's about time!
14:19:44 <xarick> ๐Ÿ™‚
14:20:35 <xarick> select sorting criteria should have a "vehicle is lost" filter
14:22:43 <xarick> I had an idea
14:23:22 <xarick> instead of discarding the path cache when testing reverse, it should keep it
14:23:51 <xarick> this way it wouldn't need to ChooseShipTrack again
14:24:09 <xarick> possibly
14:26:59 <peter1138> Not required, but if you deliberately force it onto one core it'll perform worse...
14:32:21 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1220017087519395850/image.png?ex=660d6874&is=65faf374&hm=1741ad1b7e6655fd5fe6413b4a4a90c51fff3f6946b976d2d43f0aaf31ebaf4b&
14:32:54 <xarick> master is faster
14:33:03 <xarick> so yeah, there is a slowdown
14:33:10 <xarick> expected
14:33:46 <xarick> waiting for new year to check for lost ships, if any
14:33:54 *** Wormnest_ has joined #openttd
14:35:11 *** Ox7C5 has joined #openttd
14:36:03 <xarick> locks are like a mini breakdowns
14:36:12 <xarick> they actually slow down a lot
14:38:55 <xarick> 160 days in transit when I targeted 65
14:39:01 <xarick> due to locks
14:40:37 <xarick> makes me wonder if i should use the ferry instead of hovercraft
14:40:49 <xarick> would profits improve
14:41:34 *** yubvin[m] has joined #openttd
14:44:00 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1220020021124796427/image.png?ex=660d6b2f&is=65faf62f&hm=2d74004ad5bdf6e885ff1b857830b9077014d014ad69e41284ca96378f661e3b&
14:44:00 <xarick> kuhnovic: this seems like a regression
14:44:12 <xarick> those ships there are acting weird
14:44:45 *** karl[m]12 has joined #openttd
14:44:52 <kuhnovic> I can't really tell anything from that screenshot
14:44:55 <xarick> if profit is -ยฃ3117, they're lost
14:45:14 <xarick> they're going back and forth, reversing non stop
14:45:32 <kuhnovic> That ain't good
14:45:33 <ahyangyi> https://cdn.discordapp.com/attachments/1008473233844097104/1220020409500434472/image.png?ex=660d6b8c&is=65faf68c&hm=ac628e486b4f701d8a9fb4899876240fd698eaed5662648a32cc8f0d9ae90ac9&
14:45:45 <ahyangyi> Are these boats all stacking in the same position?
14:45:58 <xarick> yes, seem to be stuck at doing reverse
14:46:07 <kuhnovic> Hmm, can you send me a savegame?
14:46:08 <xarick> master doesn't have this problem
14:46:25 <xarick> uh, yeah, it's a big save 70k ships
14:46:35 <kuhnovic> That's what I was afraid of :p
14:47:30 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1220020904604467280/70000_ships_no_buoys_lzma9.sav?ex=660d6c02&is=65faf702&hm=db09d93c9b52dd92cca343c7c18815c5b41177c2e2fd8c1617b444be611dcf29&
14:47:49 <xarick> give it some time
14:47:57 <xarick> and they will start accumulating there
14:48:40 <kuhnovic> Can't run it now, but will look into it soon
14:48:48 <kuhnovic> Thanks
14:50:25 <__karma> talltyler: Btw what tag should I use in the commit message? Does this message look ok?
14:50:25 <__karma> Tag: Display correct default value and unit for vehicle service interval
14:51:24 <peter1138> Either Fix: or Change: here, depending on how wrong you feel it is before ๐Ÿ™‚
14:56:41 <__karma> Alright Change: fits better ig, since nothing was broken before lol
15:14:43 *** einar[m] has joined #openttd
15:15:03 <__karma> Another question, do you require unit tests to show that an issue has been fixed, in the commit/pr?
15:18:17 <merni> No
15:18:27 <merni> But attaching a savegame or such would probably help
15:18:34 <merni> And screenshots if applicable
15:23:00 <__karma> Alright thx :)
15:23:27 <xarick> pathfinder is being dumb for some reason
15:23:47 <xarick> the cost for reversing should be 100000 or something
15:23:57 <xarick> kinda like rail pathfinder does it
15:24:19 <merni> the rail pathfinder allows reversing?
15:24:44 <merni> I don't think it can find a route that require a train to reverse
15:25:00 <xarick> yes, when departing from stations
15:25:12 <merni> oh
15:26:06 <xarick> rails are a bit different, an entire segment of tracks until it finds a crossing or a signal is 1 node
15:26:29 <xarick> water tracks, a segment is every tile
15:26:58 <xarick> so they can check for reversing every tile (on this PR though), unlike trains
15:28:15 <kuhnovic> Yeah and currently I added no reversal penalty to the ship pathfinder. Maybe that's the fix, but it feels more like a bandaid than a fix. Need to dig into Xarick's save first.
15:28:52 <LordAro> __karma: if adding unit tests is easy, then by all means add some :p
15:28:59 <LordAro> but not required
15:30:05 *** Eddi|zuHause2 is now known as Eddi|zuHause
15:53:03 <xarick> wow, it's not a rare occurence at all
15:53:08 <xarick> all companies are affected
15:58:20 <kuhnovic> The ships-going-back-and-forth-thing?
15:58:25 <xarick> 22+22+49+94+22+40+53+
15:58:27 <xarick> yes
15:58:51 <kuhnovic> Oh crap
15:59:23 <xarick> ~8.6% ships affected
16:01:05 <xarick> wondering if it's because they're bordering
16:01:13 <xarick> the edges
16:01:22 <kuhnovic> Of the region?
16:01:45 <xarick> sim
16:03:31 <xarick> seems that on one direction, they get one region as start, and on the reverse they get another
16:04:26 <kuhnovic> That's indeed what I suspect at well. Could be the region pathfinder, but it could also be the low level PF.
16:05:04 <kuhnovic> It' similar to #12176. But the fix for that issue doesn't fix this, because you can't cache a path with a reversal in it, it won't work.
16:06:15 <kuhnovic> Reversal penalties might be the solution here. Or "only reverse if all else fails".
16:06:38 <LordAro> which can be achieved with a suitably high penalty
16:06:59 <LordAro> adding a special case for reversing seems hacky
16:10:02 <kuhnovic> Depends on whether you see reversal as "the only way out in case of utter failure" or "just an option, but not the preferred one". But in this case it's most likely the latter.
16:11:40 <kuhnovic> xarick: Did see this happening in the code, or is it just a suspicion?
16:13:37 <xarick> the 'tile' you pass on is the tile the ship is about to enter, but the ship isn't yet on that tile, so on reverse, you can get different regions as start
16:14:09 <xarick> seems to be a design choice that is now bitting back at you
16:16:09 <xarick> maybe don't let reverse be a choice in YapfShipChooseTrack
16:16:32 <xarick> unless that's something you intend to happen
16:18:43 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1220043860160282744/2024-03-20_16-17-42.mkv?ex=660d8163&is=65fb0c63&hm=161f013bd4f806504de90deb0463c4db122fbde4bf72cb00bfa4fff412d3f89d&
16:18:55 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1220043907283419246/2024-03-20_16-17-42.mp4?ex=660d816e&is=65fb0c6e&hm=ef8793899398558c7ad1598f440677c5dec94846c6298aaba29a178c0174645a&
16:19:03 <xarick> discord doesn't like .mkv
16:20:41 <xarick> I still don't quite get why the pf prefers to move northwest, the dock is at the bottom side
16:23:01 <xarick> i need to see it print the tracks, this debug is failing me
16:30:34 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1220046838791536730/image.png?ex=660d8429&is=65fb0f29&hm=aafa4c442f59d16e9cd9e8542347b904ec11c1ed3b224e7936433fced1373a9f&
16:33:20 <peter1138> "Edge cases won't happen very often"
16:33:26 <peter1138> > always happen
16:41:23 <kuhnovic> xarick: The region pf now takes both the reverse region (the current ship tile) and the forward region into account.
16:42:50 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1220049926290014299/image.png?ex=660d8709&is=65fb1209&hm=436383519ff1af601d64552803d05d40d6c0a2d0dd01b7e8600f04ce12c14e34&
16:42:50 <peter1138> I misread that...
16:44:45 *** patricia[m]1 has joined #openttd
16:44:55 *** temeo[m] has joined #openttd
16:46:30 *** D-HUND has joined #openttd
16:47:40 <Eddi|zuHause> dunno what there's to misread :p
16:54:58 <peter1138> $exception ๐Ÿ˜ฎ
17:05:46 <Eddi|zuHause> i was being ironic :)
17:06:04 <xarick> seems to be again the case of intermediate regions
17:07:50 <xarick> one sets the intermediate region at 51,26, the other on 50,26
17:08:19 *** Wormnest_ has quit IRC (Ping timeout: 480 seconds)
17:12:22 <truebrain> kuhnovic: please don't forget to take a look at https://github.com/OpenTTD/OpenTTD/pull/12278 ๐Ÿ™‚ should really be part of 14.0 ๐Ÿ™‚
17:26:25 <xarick> hmm what should I do there? test speed?
17:34:33 *** Wormnest_ has joined #openttd
17:35:46 <xarick> waiting 1 year to check if there's lost ships
17:35:55 <xarick> just in case
17:41:06 <xarick> openttd must be very memory sensitive
17:41:12 <xarick> latency
17:41:27 <xarick> 1 openttd, ship ticks ~39 ms
17:41:41 <xarick> 2 openttds, ship ticks ~46 ms
17:42:05 <xarick> I've been testing this the wrong way ๐Ÿ™‚
17:43:43 <xarick> peter1138: can you test this savegame on your CPU, https://discord.com/channels/142724111502802944/1008473233844097104/1220020905078689813
17:43:53 <xarick> is it the 5800x3d?
17:45:04 <LordAro> it's almost self evident that you want to be doing as little else as possible when benchmarking
17:45:09 <LordAro> i'm sure we've told you that before
17:45:32 <LordAro> games are more sensitive than most
17:46:06 <LordAro> OTTD isn't the most multi-threaded game out there, but it'll be just as sensitive to memory & storage resource usages
17:48:08 <xarick> not even thread affinity helps ๐Ÿ˜ฆ
17:48:23 <LordAro> why would it?
17:48:50 <LordAro> the only thing that could is if you could limit memory bandwidth, and i'm not aware of any platform that you can do that on
17:48:54 <LordAro> especially not Windows
17:50:24 <xarick> actually... wow
17:50:28 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1220066945529806888/image.png?ex=660d96e3&is=65fb21e3&hm=15b4abc1037757410955da9336a73a35b8434bd5a885157ea35ece15ce45f6c1&
17:50:58 <xarick> there is a way after all
17:51:48 <LordAro> i'm 90% certain this will not do what you want it to
17:53:10 <xarick> why not, seems to be improving
17:53:48 <LordAro> because OTTD isn't (generally) bottlenecked on the number of cores that are available
17:58:03 *** HerzogDeXtEr has joined #openttd
17:59:28 *** Ox7C5 has quit IRC ()
18:07:38 *** xertov has quit IRC (Quit: User went offline on Discord a while ago)
18:33:15 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1220077713478647898/image.png?ex=660da0ea&is=65fb2bea&hm=f36c0051a586dc09d7ec899adff9740f0a3ec73881cd6ae9b9f4afb36b6b5e4c&
18:33:15 <andythenorth> from the 'nobody asked for this' reddit suggestions wishlist, a nugget of silver
18:33:24 <andythenorth> buildable tile fences
18:33:37 <andythenorth> so many objects, stations and industries faff about with fencing
18:38:11 <xarick> I see no lost ships
18:38:34 <xarick> 12278 is fine
18:39:01 <xarick> what I see however is the extreme slow down effect of locks
18:40:50 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1220079624227262484/image.png?ex=660da2b2&is=65fb2db2&hm=f15bf144b14bb14e52a4346d4ff59adeefb692ae442097c5c1c1dd9c442e1f46&
18:41:08 <xarick> 600 days to complete a journey
18:41:21 *** rain[m]1 has joined #openttd
18:42:38 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1220080074737582131/image.png?ex=660da31d&is=65fb2e1d&hm=96f401d06cbd0cd2b57c807a1e05e46b65ab93e7f7e57e92ede2b34f09f02206&
18:44:33 <xarick> 643
18:45:54 <xarick> turbo locks when?
18:50:01 <DorpsGek> [OpenTTD/OpenTTD] Kuhnovic approved pull request #12278: Codechange: Reduce size of class WaterRegion https://github.com/OpenTTD/OpenTTD/pull/12278#pullrequestreview-1949782215
18:54:38 <DorpsGek> [OpenTTD/OpenTTD] pasantoro opened pull request #12341: Fix: inconsistent punctuation in English https://github.com/OpenTTD/OpenTTD/pull/12341
18:57:52 <DorpsGek> [OpenTTD/OpenTTD] LordAro closed pull request #12341: Fix: inconsistent punctuation in English https://github.com/OpenTTD/OpenTTD/pull/12341
18:57:55 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #12341: Fix: inconsistent punctuation in English https://github.com/OpenTTD/OpenTTD/pull/12341#issuecomment-2010375214
18:58:44 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on discussion #12339: Script API and Wallclock time https://github.com/OpenTTD/OpenTTD/discussions/12339
19:07:19 *** gelignite has joined #openttd
19:08:16 *** audunm[m] has joined #openttd
19:17:01 <DorpsGek> [OpenTTD/OpenTTD] frosch123 commented on discussion #12339: Script API and Wallclock time https://github.com/OpenTTD/OpenTTD/discussions/12339
19:17:40 <DorpsGek> [OpenTTD/OpenTTD] frosch123 commented on discussion #12339: Script API and Wallclock time https://github.com/OpenTTD/OpenTTD/discussions/12339
19:20:28 *** Flygon has joined #openttd
19:37:23 <DorpsGek> [OpenTTD/OpenTTD] andythenorth commented on discussion #12339: Script API and Wallclock time https://github.com/OpenTTD/OpenTTD/discussions/12339
19:42:16 <DorpsGek> [OpenTTD/OpenTTD] pasantoro opened issue #12342: [Bug]: Fix inconsistent punctuation in English https://github.com/OpenTTD/OpenTTD/issues/12342
19:47:43 <DorpsGek> [OpenTTD/OpenTTD] frosch123 commented on issue #12342: [Bug]: Fix inconsistent punctuation in English https://github.com/OpenTTD/OpenTTD/issues/12342
19:57:42 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler opened pull request #12343: Fix #12342: Add missing ellipsis to town generation error string https://github.com/OpenTTD/OpenTTD/pull/12343
20:09:41 *** Wolf01 has joined #openttd
20:13:16 <DorpsGek> [OpenTTD/OpenTTD] glx22 approved pull request #12343: Fix #12342: Add missing ellipsis to town generation error string https://github.com/OpenTTD/OpenTTD/pull/12343#pullrequestreview-1950050534
20:15:46 *** nielsm has quit IRC (Ping timeout: 480 seconds)
20:19:15 <truebrain> Fix: Add ๐Ÿ˜„
20:19:19 <truebrain> you got to love commit messages ๐Ÿ™‚
20:21:54 <talltyler> It fixes #12342
20:22:02 <talltyler> Should it be marked for backporting?
20:22:16 <truebrain> nah
20:22:24 <truebrain> or maybe
20:22:25 <truebrain> yes
20:22:26 <truebrain> who knows ๐Ÿ˜„
20:22:32 <truebrain> (don't expect serious answer from me tonight ๐Ÿ˜› )
20:23:19 <andythenorth> fair warning ๐Ÿ˜›
20:28:23 *** gelignite has quit IRC (Quit: Stay safe!)
20:30:49 <Rubidium> and I just wanted to get a serious answer from you :( For python you suggested to use cryptography, but that does not have the encryption routine we need (chacha with a 24 byte nonce) so you need some other library like pycryptodome. That made me think, why not use some bindings for monocypher but found already existing ones. Would using pymonocypher be a worse solution than using two (more common)
20:30:55 <Rubidium> libraries?
20:31:24 <truebrain> pymonocypher would be a good idea, if the license is nice, and it is up-to-date-ish
20:32:05 <truebrain> I believe the latter was a bit of an issue
20:32:42 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler merged pull request #12343: Fix #12342: Add missing ellipsis to town generation error string https://github.com/OpenTTD/OpenTTD/pull/12343
20:32:45 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler closed issue #12342: [Bug]: Fix inconsistent punctuation in English https://github.com/OpenTTD/OpenTTD/issues/12342
20:32:51 <Rubidium> it's CC0 or BSD-2. Only caveat is the up-to-dateness, that's about about one-and-a-half year
20:33:06 <truebrain> and more: v3 vs v4
20:33:11 <truebrain> I don't know if that has any impact
20:39:16 <talltyler> We backport translator commits, so I marked this one too
21:09:10 *** godbed has joined #openttd
21:11:21 *** D-HUND has quit IRC (Ping timeout: 480 seconds)
21:18:36 <truebrain> Rubidium: you can btw always make a bug report in the pymonocypher's repo, see if that author is willing to upgrade to v4
21:19:20 <andythenorth> hmm recolour-only special variants? ๐Ÿ˜›
21:19:35 <andythenorth> just an ID, and a recolour sprite? ๐Ÿ˜›
21:19:43 <Rubidium> truebrain: monocypher v4 renamed a lot of things, and we do not need everything from v4... but 3.1.3 misses some bits in blake so it's going to be a bit of pain :(
21:19:49 <andythenorth> (as a static action 0 prop)
21:19:55 <truebrain> so ask the author ๐Ÿ™‚
21:19:56 <truebrain> who knows!
22:04:41 <andythenorth> wallclock, such a better game pace
22:07:07 *** reldred has quit IRC (Quit: User went offline on Discord a while ago)
22:13:43 <peter1138> Yes
22:14:10 <peter1138> Big coop iron horse firs game?
22:14:41 <peter1138> Or maybe that 7 year challenge but 7 years being stretched out ๐Ÿ™‚
22:20:27 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:33:55 <DorpsGek> [OpenTTD/OpenTTD] pasantoro commented on issue #12342: [Bug]: Fix inconsistent punctuation in English https://github.com/OpenTTD/OpenTTD/issues/12342
22:37:30 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on issue #12342: [Bug]: Fix inconsistent punctuation in English https://github.com/OpenTTD/OpenTTD/issues/12342
22:41:12 <peter1138> 205 wtf
22:55:13 <rau117> andythenorth: Hmm... on the other hand, being able to place a fence (or some other object) on top of another tile would be nice.
22:55:13 <rau117> This will cause problems, but it will create a lot of new decorating opportunities
22:58:34 <peter1138> Remember when tile-edge signals was the meme...
23:09:57 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
23:27:05 <DorpsGek> [OpenTTD/OpenTTD] MontyMontana opened issue #12344: [Bug]: Root directory has changed since previous versions and can not be changed. https://github.com/OpenTTD/OpenTTD/issues/12344