The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Andarix on July 13, 2025, 08:07:21 AM

Title: r11731 - AI built
Post by: Andarix on July 13, 2025, 08:07:21 AM
In the course of time, this station was built by the AI.

I can't make any further statements about it because I've only just discovered it.

Screenshot 2025-07-13 100134.png

[edit]

The road was there first.
Title: Re: r11731 - AI built
Post by: ceeac on August 30, 2025, 07:07:47 AM
Was the station built by the script AI or the C++ AI?
Title: Re: r11731 - AI built
Post by: Andarix on August 30, 2025, 07:33:54 AM
script AI
Title: Re: r11731 - AI built
Post by: victor_18993 on August 31, 2026, 09:20:56 PM
Fixed in r12242.

The issue was in the station-building core: when a script supplied an explicit layout/rotation, the normal way-direction validation was skipped, allowing a station to be built on an invalid track layout.

The explicit-layout path now uses the same validation as the normal building path. Valid cases such as end-of-line stations and tram tracks embedded in roads are preserved.

I also added a regression test for this case.
Thanks for reporting it — the Script AI made the problem much easier to expose and reproduce.