IRC logs for #openttd on OFTC at 2026-02-13
            
00:02:35 *** lobstarooo has joined #openttd
00:08:50 *** lobster has quit IRC (Ping timeout: 480 seconds)
00:13:54 <xarick> @PeterN https://github.com/OpenTTD/OpenTTD/pull/15268#issuecomment-3893625132
00:23:32 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #15268: Fix: [Script] Narrow cast, over and underflow in ScriptCargo::GetCargoIncome https://github.com/OpenTTD/OpenTTD/pull/15268#issuecomment-3894126475
00:24:43 *** Flygon has quit IRC (Remote host closed the connection)
00:24:49 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
00:25:13 *** MinchinWeb[m] has joined #openttd
01:19:03 <peter1138> Hmm, is it intended that you can replace your own one-way roads with drive-through stops?
02:58:35 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
03:01:16 *** WormnestAndroid has joined #openttd
03:06:55 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
03:07:23 *** WormnestAndroid has joined #openttd
03:12:36 *** Wormnest has joined #openttd
03:13:06 *** Wormnest has quit IRC ()
03:26:31 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #15270: Fix #15269: crash when building drive-through stop on unowned one-way road https://github.com/OpenTTD/OpenTTD/pull/15270
04:16:34 *** bryjen has joined #openttd
04:22:34 *** Zathras_7 has joined #openttd
04:22:54 *** Zathras_1 has joined #openttd
04:26:10 *** Zathras_11 has quit IRC (Ping timeout: 480 seconds)
04:26:15 *** Zathras_4 has quit IRC (Ping timeout: 480 seconds)
05:07:13 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/7b88c518cf713d3f769f00f7e0e884b28e23a424
05:07:14 <DorpsGek> - Update: Translations from eints (by translators)
05:07:58 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
05:07:59 *** WormnestAndroid has joined #openttd
05:08:04 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
05:08:45 *** WormnestAndroid has joined #openttd
05:21:31 *** bryjen has quit IRC (Quit: Leaving)
06:22:40 *** MinchinWeb[m] has quit IRC (Remote host closed the connection)
06:22:56 *** MinchinWeb[m] has joined #openttd
07:46:56 *** mmtunligit has joined #openttd
07:46:56 <mmtunligit> peter1138: i dont see any reason why you shouldnt be able to have drive throughs on one ways
07:55:36 *** reldred has joined #openttd
07:55:36 <reldred> if anything they're quite popular in jgrpp
07:56:10 <reldred> overtaking articulated vehicles in jgrpp though makes them a bit more useful
07:57:10 <LordAro> mm, me neither
07:57:18 <LordAro> adding the string also makes backporting difficult
09:27:36 *** Flygon has joined #openttd
09:47:36 <xarick> hi
09:48:37 <peter1138> You seem to be answering a different question.
09:49:38 <peter1138> LordAro, there is an existing string that could be used, but it's called `STR_ERROR_CROSSING_ON_ONEWAY_ROAD`, and isn't formatted correctly.
09:52:35 <peter1138> But that could be used to simplify backporting.
10:00:40 <mmtunligit> Why is it an issue to have a roadstop on a one way
10:01:12 <peter1138> Putting a drive-through roadstop on a one-way road replaces the road. Completely. It's no longer one-way.
10:03:10 <mmtunligit> Can you not then put the one way back on the roadstop?
10:04:25 <peter1138> No, roadstops don't have one-way state.
10:06:59 <mmtunligit> Huh
10:07:34 <mmtunligit> I guess it’s fine then but that seems to me like something that should exist
10:09:05 <peter1138> Your beliefs on whether something should exist don't really mean anything when it comes to backporting a bugfix.
10:09:39 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
10:10:06 <mmtunligit> yeah i know, thats why i said its fine
10:10:52 <mmtunligit> i raised objection initally because i thought you might have been removing functionality that did exist without realizing it
10:11:20 *** MinchinWeb[m] has joined #openttd
10:17:12 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #15270: Fix #15269: crash when building drive-through stop on unowned one-way road https://github.com/OpenTTD/OpenTTD/pull/15270
10:20:58 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #15270: Fix #15269: crash when building drive-through stop on unowned one-way road https://github.com/OpenTTD/OpenTTD/pull/15270#issuecomment-3896329834
10:45:00 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #15270: Fix #15269: crash when building drive-through stop on unowned one-way road https://github.com/OpenTTD/OpenTTD/pull/15270#issuecomment-3896491075
10:48:59 <DorpsGek> [OpenTTD/OpenTTD] mmtunligit commented on pull request #15270: Fix #15269: crash when building drive-through stop on unowned one-way road https://github.com/OpenTTD/OpenTTD/pull/15270#issuecomment-3896508130
10:50:59 <LordAro> mmtunligit: you seem to still be talking at cross-purposes
10:51:06 <LordAro> i've (hopefully) clarified my comment
10:51:20 <mmtunligit> ah i see
11:13:45 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick opened pull request #15271: Doc: [Script] Update ScriptCargo::GetCargoIncome https://github.com/OpenTTD/OpenTTD/pull/15271
11:16:49 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #15270: Fix #15269: crash when building drive-through stop on unowned one-way road https://github.com/OpenTTD/OpenTTD/pull/15270#issuecomment-3896636364
11:33:55 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #15270: Fix #15269: crash when building drive-through stop on unowned one-way road https://github.com/OpenTTD/OpenTTD/pull/15270#issuecomment-3896704476
11:49:12 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #15270: Fix #15269: crash when building drive-through stop on unowned one-way road https://github.com/OpenTTD/OpenTTD/pull/15270
12:03:07 <DorpsGek> [OpenTTD/OpenTTD] LordAro approved pull request #15270: Fix #15269: crash when building drive-through stop on unowned one-way road https://github.com/OpenTTD/OpenTTD/pull/15270#pullrequestreview-3796883654
12:08:58 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1471840570400833749/2026-02-13_12-08-00.mp4?ex=699065d9&is=698f1459&hm=cf0882d93e1aca800bf969f3a4972398ede3ccf8777aeb5e6e1d8f3922c7e215&
12:08:58 <xarick> performance degradation when viewing aircraft list
12:09:45 <xarick> OpenTTD 15.1
12:18:22 <andythenorth> does it also affect other vehicle lists?
12:23:06 <xarick> not sure, gonna check
12:56:22 <xarick> yes
12:57:24 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1471852760667525130/Unnamed_1946-01-17.png?ex=69907133&is=698f1fb3&hm=a01da1a247290340f46420aaf1e97303bfaf8e47cb19fd3b2528dc90cdfd7d93&
13:01:15 <peter1138> Does it affect the non-group vehicle window?
13:01:44 <peter1138> (Set "Use groups in vehicle list: Off")
13:05:23 <andythenorth> see how much worse it is with Iron Horse
13:05:56 <andythenorth> and try windowshade, because there's an older version of this degradation that (1) was worse with complex grfs (2) used to stop if the window was shaded
13:06:36 <andythenorth> I have a video somewhere in my well organised filing system
13:06:50 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1471855136690274475/image.png?ex=6990736a&is=698f21ea&hm=183a5be64ef044fe14ee3509958eca3c9c929ba63702a237e3101bfe651b8a4f&
13:11:14 *** _glx_ has joined #openttd
13:11:14 <_glx_> What does profiler say? Is it GetString, GetSprite or something else?
13:16:07 <peter1138> Probably it's "there's 15 companies, each with 2000 trains, road vehicles, ships and aircraft, and we're adding more causing rebuilds and resorts"
13:49:52 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1471865964474667058/image.png?ex=69907d7f&is=698f2bff&hm=b961e48bfa3ca0a5df2b1a99496fdb05b7ffed07ad65a7056aab5a7f3b02a544&
13:52:14 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1471866557691985991/image.png?ex=69907e0d&is=698f2c8d&hm=9428878262f262781bbe98b404df2cfe442deb3d2432435538aa52f3fc79d5a3&
13:52:44 <_glx_> indeed it's the sorting
13:53:06 <_glx_> constant calls to GetString
13:53:09 <xarick> 1925 trains in this company
13:53:30 <_glx_> and GetString is known to be not super fast
13:55:05 <_glx_> and there's already some caching in the sorter, it would be worse without it
13:55:28 <xarick> let me try load a dummyAI in its place, i suspect ... it might improve
13:58:27 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1471868123035599051/2026-02-13_13-57-46.mp4?ex=69907f82&is=698f2e02&hm=5d7fa6a2410356b8e244451114246814103f946b6cd96bc6f66f131fb3ffcb95&
13:58:27 <xarick> ya, so it's some action that's triggering some redraw?
13:59:42 <xarick> how do i know which functions are setting stuff dirty?
14:07:23 <xarick> CmdBuildVehicle and CmdMoveRailVehicle
14:10:51 <peter1138> Some pool items have cached_name, but not groups.
14:11:19 <_glx_> and the group name caching in sorter is super limited
14:18:04 <xarick> it's a plethora of Cmdfunctions not just those 2
14:18:24 <xarick> the AI is doing groups, engines, renaming group, etc
14:19:32 <xarick> OnInvalidateData: ```this->vehgroups.ForceRebuild();
14:19:32 <xarick> this->groups.ForceRebuild();```
14:31:29 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
14:31:53 *** MinchinWeb[m] has joined #openttd
14:32:09 *** _jgr_ has joined #openttd
14:32:09 <_jgr_> If Group::name is non-empty, which is usually the case, then the output of GetString is just that string passed through anyway
14:47:57 <peter1138> Also, don't force a build/resort on the groups list when it's only the vehicle list that needs refreshing.
14:57:36 <xarick> that's strange, we can't get the engine_id out of the preview <https://docs.openttd.org/ai-api/classAIEventEnginePreview>
14:58:37 <_glx_> why would you need the id ?
14:58:59 <xarick> AcceptPreview should return the id, instead of bool imo
14:59:29 <xarick> or add an additional method
14:59:52 <_glx_> you receive AIEventEngineAvailable when accepting IIRC
15:00:25 <xarick> gonna check
15:00:47 *** rito12_51026 has joined #openttd
15:00:47 <rito12_51026> xarick: It's that way on purpose, so AI does not have any benefits over human players
15:09:26 *** Flygon has quit IRC (Read error: Connection reset by peer)
15:16:38 <xarick> nop glx, didn't get it
15:16:48 <xarick> i got it a year after accepting preview
15:17:00 <xarick> but everyone else got it as well by then
15:40:31 *** Wormnest has joined #openttd
15:42:51 <xarick> random question
15:43:13 <xarick> if i use the preview vehicle, do stations get a bonus rating
15:43:26 <xarick> what are the pros of using a preview vehicle
15:52:32 <_glx_> with preview you can get faster or more powerful before others
15:56:27 <xarick> their reliability is quite low during preview
15:56:36 <xarick> there should be some other bonuses
15:56:41 <xarick> but okay
15:59:21 <_glx_> hmm yeah, when AI accepts preview, the only way to use the new engine is via EngineList
16:01:15 <_glx_> and it's the same when GS enables an engine for a company
16:01:43 <_glx_> AI won't know without parsing EngineList
16:07:55 <xarick> what reliability do engines enabled by a GS get?
16:56:34 *** gelignite has joined #openttd
17:20:03 *** Wolf01 has joined #openttd
17:58:40 *** gelignite is now known as Guest2592
17:58:44 *** gelignite has joined #openttd
18:05:12 <xarick> is the AcceptPreview a command?
18:05:30 *** Guest2592 has quit IRC (Ping timeout: 480 seconds)
18:05:56 <xarick> oh it is :(
18:09:06 <xarick> if the script needs to save and the engine preview event was sent, I can't accept preview
18:09:30 <xarick> I can't save the engine preview instance
18:09:56 <xarick> I can't accept the preview on load, or is the preview re-sent on load?
18:21:29 <peter1138> So ScriptEventEngineAvailable should be sent to the AI company if it accepts the preview, I guess?
18:22:47 <_jgr_> xarick: There's no point in sitting on the preview event. Either accept or bin it. This is the same as for human players.
18:23:43 <xarick> the AI might be in the middle of something else when Save is called
18:24:22 <xarick> I can't "accept preview" that way
18:24:46 <_jgr_> That is no different to any other kind of script event
18:46:19 <_glx_> and AI has only 20 days to handle it anyway
18:46:31 <_glx_> like humans
18:55:51 <_glx_> also if human has the preview window open when saving, it doesn't reopen on load
18:59:25 *** Flygon has joined #openttd
19:04:20 *** Flygon has quit IRC (Read error: Connection reset by peer)
19:38:45 *** Flygon has joined #openttd
19:41:32 <xarick> okay, fair
19:56:21 *** Lorenz_ has joined #openttd
19:56:45 *** Lorenz_ has left #openttd
20:05:54 *** MinchinWeb[m] has quit IRC (Ping timeout: 480 seconds)
20:07:32 *** MinchinWeb[m] has joined #openttd
20:34:04 <xarick> it would be cool to get the date of an event
20:35:00 <xarick> looking at AIEventStationFirstVehicle specifically
20:35:48 <xarick> I could compare this date to the date stations were built and compute the "days_in_transit" that way
20:36:29 <xarick> or even compare the date the other station was first visit
20:45:56 <xarick> `AIVehicle.GetAge(i) > 730`... i really need the economyage
21:16:16 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1471978305153532116/image.png?ex=6990e61f&is=698f949f&hm=196d97ceb6108c2cc17cfa846fad2f1b33b8d3a30aca1d81766fdb42d1b08a9a&
21:16:16 <andythenorth> backing up is boring 😐
21:20:38 <LordAro> andythenorth: my backup has been running since monday
21:20:50 <andythenorth> I don't have a big disk
21:20:50 <LordAro> 12T over 100Mbps is not fast :(
21:21:29 <LordAro> (offsite zpool became very sad over the weekend)
21:22:11 <andythenorth> ooof
21:32:06 <xarick> can something bad happen when a vehicle is getting very old and urgently needs replacing
21:32:16 <xarick> let them explode
21:34:08 <xarick> when disasters are on
21:38:26 <xarick> make that urgency mean something
21:49:41 <peter1138> Well, it'll break down...
21:54:26 <andythenorth> what 1990s game shall we remake next?
21:54:36 <xarick> Lemmings
21:54:53 <andythenorth> that is the most sensible suggestion you've made in months πŸ™‚
21:55:01 <andythenorth> I tried making the basics of lemmings nce
21:55:07 <andythenorth> * once
21:55:25 <xarick> oh, I thought you meant vehicles exploding
21:55:43 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1471988230479024259/nukes.mov?ex=6990ef5e&is=698f9dde&hm=351611eac68a5fb107c9243c914152c1870e6733888f98aad026f946f516d560&
21:55:43 <andythenorth> this is directly inspired by Lemmings
21:55:46 <andythenorth> (and War Games)
22:05:24 *** gelignite has quit IRC ()
22:17:34 <peter1138> Lemmings eh
22:19:42 <SigHunter> is there a way to make bribing authorities not get detected ever?
22:21:00 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #15270: Fix #15269: crash when building drive-through stop on unowned one-way road https://github.com/OpenTTD/OpenTTD/pull/15270
22:21:03 <DorpsGek> [OpenTTD/OpenTTD] PeterN closed issue #15269: [Crash]: https://github.com/OpenTTD/OpenTTD/issues/15269
22:31:32 <andythenorth> naptime?
23:08:49 <xarick> I wonder if ScriptIndustry should have a GetStationID
23:08:59 <xarick> i need their neutral station
23:14:01 *** jinks has quit IRC (Quit: ZNC - http://znc.in)
23:14:20 *** jinks has joined #openttd