IRC logs for #openttd on OFTC at 2025-09-13
            
01:13:47 *** dh1 has joined #openttd
01:15:56 *** WormnestAndroid has quit IRC (Remote host closed the connection)
01:16:17 *** WormnestAndroid has joined #openttd
01:37:18 *** Wormnest has joined #openttd
01:38:29 *** Wormnest has quit IRC ()
01:40:06 *** dh1 has quit IRC (Quit: My Mac has gone to sleep. ZZZzzzโ€ฆ)
03:55:13 *** Zathras_11 has joined #openttd
03:58:45 *** Zathras has quit IRC (Ping timeout: 480 seconds)
03:59:44 *** dh1 has joined #openttd
04:06:55 <andythenorth> peter1138: And people choose Comic Sans willingly, canโ€™t legislate for lack of taste ๐Ÿ™‚
04:08:34 <jfkuayue> comic sans good bad?
04:08:52 <jfkuayue> "children textbook font"
04:36:46 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/96b59af4d160887273270e871d9aa5d1c118047c
04:36:47 <DorpsGek> - Update: Translations from eints (by translators)
05:37:26 *** keikoz has quit IRC ()
05:51:22 *** keikoz has joined #openttd
06:25:51 *** dh1 has quit IRC (Quit: My Mac has gone to sleep. ZZZzzzโ€ฆ)
06:58:24 <DorpsGek> [OpenTTD/OpenTTD] Rito13 opened pull request #14614: Add: Height difference in bridge is too low error message. https://github.com/OpenTTD/OpenTTD/pull/14614
07:27:41 <DorpsGek> [OpenTTD/OpenTTD] Rito13 opened pull request #14615: Feature: Tiles units for height. https://github.com/OpenTTD/OpenTTD/pull/14615
07:46:12 *** Flygon has quit IRC (Read error: Connection reset by peer)
08:01:56 *** dh1 has joined #openttd
08:51:15 <truebrain> Unuts ๐Ÿ˜„ (I am here just for the "making fun" part ๐Ÿ˜› Sorry ๐Ÿ˜„ )
09:03:57 <andythenorth> younuts ๐Ÿ˜›
09:05:44 <truebrain> That is a nice size of units ๐Ÿ™‚
09:08:32 *** Wolf01 has joined #openttd
09:12:01 <DorpsGek> [OpenTTD/OpenTTD] ahyangyi commented on pull request #14615: Feature: Tiles units for height. https://github.com/OpenTTD/OpenTTD/pull/14615#issuecomment-3287881541
09:59:11 *** dh1 has quit IRC (Quit: My Mac has gone to sleep. ZZZzzzโ€ฆ)
10:19:38 *** gelignite has joined #openttd
10:55:45 *** Hobbyboy has quit IRC (Quit: The BNC has broken!)
11:05:02 *** Hobbyboy has joined #openttd
11:05:34 *** Hobbyboy is now known as Guest26439
11:06:21 *** Guest26439 has quit IRC ()
11:13:37 *** Hobbyboy|BNC has joined #openttd
11:31:11 <peter1138> Yes, now I remember.
11:31:43 <peter1138> I did try it with the height in the error (although it was in the main message, not a sub message) but "1050 ft" is pretty meaningless.
11:32:43 <peter1138> I decided it could be done later, which #14616 is :)
11:33:08 <peter1138> But also, it might be that only unconverted levels is the most useful metric.
11:33:32 <peter1138> I apparently don't have any coffee.
11:35:00 <peter1138> Oh yes, I need to solve this performance issue :o
11:36:10 <peter1138> Map-scanning for an empty slot when trying to find a slot is too slow on large maps.
11:36:47 <peter1138> Especially when drag & dropping a long line of track, becuase it is checking for each tile in test mdoe :o
11:45:45 <_glx_> Might need a new cache
11:48:25 <peter1138> I'm hoping I can use infrastructure statistics along with an extra one for unowned roads.
11:48:31 <peter1138> Trams always have an owner don't they?
11:48:40 <peter1138> Actually that doesn't matter, they're combined.
11:59:04 <peter1138> Ok, 1ยตs instead of 40ms is a bit better.
12:00:46 <peter1138> Fast enough to not care about drag & drop checking for each tile.
12:02:38 <rito12_51026> peter1138: 14616?
12:03:10 <peter1138> I mean 14614 :)
12:03:29 <jessicathegunlady> peter1138: Vehicles or tracks?
12:03:38 <_glx_> indeed, just need an extra `CompanyInfrastructure` for `nullptr` company
12:04:04 <jessicathegunlady> I'm not sure if GameScripts can create owner-less tram tracks, but even if they can, I'm not aware of one that does.
12:04:46 <peter1138> It won't matter, because road and tram types stored in the same structure they're handled the same at this point.
12:05:31 <_glx_> `Building a piece of road as deity (GSCompanyMode::IsDeity()) results in a piece of road owned by towns. `
12:05:34 <peter1138> _glx_, the code is shorter too, without a map scan :)
12:05:48 <_glx_> so yeah GS can build town owned tram
12:05:51 <jessicathegunlady> peter1138: Ah, right, makes sense.
12:06:07 <peter1138> [2025-09-13 13:00:06] dbg: [misc:0] [DrawTick] [FindUnusedMapType] 1 calls in 1 us [avg: 1.0 us]
12:06:08 <jessicathegunlady> _glx_: Interesting. Good to know.
12:06:10 <peter1138> [2025-09-13 13:00:09] dbg: [misc:0] [DrawTick] [FindUnusedMapType] 10 calls in 1 us [avg: 0.1 us]
12:06:14 <peter1138> (Not sure why it's DrawTick, but hey)
12:06:26 <peter1138> I think that's sufficiently fast.
12:06:33 <_glx_> will still need map scan on load, but it's a one time
12:06:59 <peter1138> That already happens.
12:07:08 <_glx_> true
12:10:04 <_glx_> IIRC it's DrawTick because input handling is during video loop
12:22:10 <DorpsGek> [OpenTTD/OpenTTD] Rito13 commented on pull request #14615: Feature: Tiles units for height. https://github.com/OpenTTD/OpenTTD/pull/14615#issuecomment-3288265251
12:26:12 <DorpsGek> [OpenTTD/OpenTTD] Rito13 updated pull request #14615: Feature: Game units for height. https://github.com/OpenTTD/OpenTTD/pull/14615
12:38:48 <peter1138> Raa
13:01:56 <reldred> ra ra rasputin
13:09:10 <peter1138> Works \o/
13:09:58 <peter1138> Now I can put the limits back to 64/63 instead of 4 ;D
13:15:13 <peter1138> Remove 255 limit now?
13:19:10 <peter1138> Also it probably needs an error message to explain.
13:19:18 <peter1138> > Can't build railway track here...
13:19:52 <peter1138> > ... you tried to use too many at once you silly sausage
13:32:18 *** longtom_jr has quit IRC (Quit: User went offline on Discord a while ago)
13:33:45 <kuhnovic> Approved
13:41:30 <andythenorth> 65k limit? ๐Ÿ‘ป
13:46:57 *** toktik has quit IRC (Remote host closed the connection)
13:47:26 *** toktik has joined #openttd
14:51:58 <peter1138> Error: Assertion failed at line 315 of /home/petern/src/openttd/src/road_cmd.cpp: pieces != ROAD_NONE
14:52:01 <peter1138> Urgh :s
15:20:21 *** gelignite has quit IRC ()
16:08:38 *** Wormnest has joined #openttd
16:26:54 *** gelignite has joined #openttd
16:38:44 *** Flygon has joined #openttd
16:49:50 *** Tirili has joined #openttd
16:54:20 *** Tirili has quit IRC (Remote host closed the connection)
16:59:29 <DorpsGek> [OpenTTD/OpenTTD] nielsmh commented on pull request #14615: Feature: Game units for height. https://github.com/OpenTTD/OpenTTD/pull/14615#issuecomment-3288635686
17:07:00 <peter1138> Oh damn.
17:07:15 <peter1138> With a debug build the bug doesn't occur :o
17:30:54 *** Flygon has quit IRC (Remote host closed the connection)
17:32:20 *** Flygon has joined #openttd
18:10:51 <peter1138> Hmm, is it still happening or is my savegame bad.
19:28:53 <kuhnovic> So the river generator runs breadth first searches to find an end point for a river (start is known), and then uses A* to find a path between them. Seems like a rather roundabout way of doing things, A* could do it in one go.
19:34:00 <truebrain> But why do things right the first time?
19:34:01 <truebrain> overrated!
19:35:13 <kuhnovic> Hence the use of AyStar ๐Ÿ˜‰
19:35:21 <kuhnovic> j/k
19:37:12 <truebrain> And to split hears, I don't think you want A* here. A* implies you have a heuristic to base your work on, but finding the sea doesn't really give you a valid H-function. So it is more a Dijkstra at best, or just easier: a flooding. Which can use the same approach (and even code) as A*. Still ๐Ÿ˜›
19:37:15 <truebrain> (hihi, sorry ๐Ÿ˜„ )
19:37:19 <truebrain> hears?
19:37:20 <truebrain> hairs!
19:37:21 <truebrain> ffs ๐Ÿ˜›
19:40:55 <kuhnovic> Yes, Dijkstra is the way to go here, so a heuristic of 0. Flooding works too but dijkstra allows for adding some random costs to incentivise the river to meander a bit more.
19:41:23 <truebrain> Just poking fun of "everything is A*" ๐Ÿ˜›
19:41:33 <truebrain> There is no actual value in my comment ๐Ÿ™‚
19:41:40 <andythenorth> If we found the end point firstโ€ฆ
19:41:57 <andythenorth> All rivers would reach the sea
19:42:24 <truebrain> not if you don't have any sea to start with!
19:42:28 <truebrain> Owh, I should stop talking ๐Ÿ˜›
19:52:16 <andythenorth> True though
20:01:51 <DorpsGek> [OpenTTD/OpenTTD] JGRennison opened pull request #14616: Fix #14604: Clearing tiles to build objects did not update town ratings https://github.com/OpenTTD/OpenTTD/pull/14616
20:18:39 *** dh1 has joined #openttd
20:49:12 *** gelignite has quit IRC (Read error: Connection reset by peer)
20:56:17 *** mindlesstux has quit IRC (Quit: The Lounge - https://thelounge.chat)
21:00:38 *** gelignite has joined #openttd
21:05:25 *** tokai has joined #openttd
21:05:25 *** ChanServ sets mode: +v tokai
21:12:31 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
21:31:05 *** ryandtw has quit IRC (Quit: User went offline on Discord a while ago)
21:58:53 *** king has joined #openttd
21:59:50 *** king has quit IRC (Remote host closed the connection)
22:36:00 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:46:14 *** jan_pelina has joined #openttd
23:01:45 *** keikoz has quit IRC (Ping timeout: 480 seconds)
23:27:16 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #14616: Fix #14604: Clearing tiles to build objects did not update town ratings https://github.com/OpenTTD/OpenTTD/pull/14616#pullrequestreview-3221511799
23:46:59 *** jan_pelina2 has joined #openttd
23:47:47 *** gelignite has quit IRC ()
23:49:41 *** jan_pelina has quit IRC (Ping timeout: 480 seconds)
23:53:07 *** jan_pelina2 has quit IRC (Quit: WeeChat 4.7.0)