News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

r11731 - AI built

Started by Andarix, July 13, 2025, 08:07:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andarix

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.

ceeac

Was the station built by the script AI or the C++ AI?

Andarix


victor_18993

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.
En la vida todo son vivencias y cada una de ellas nos hace mas grandes,¿Como de grande eres tu? :)