[2.0.76] train prefers longer path from station placed on intersection

Things that has been reported already before.
jDomantas
Burner Inserter
Burner Inserter
Posts: 10
Joined: Fri Nov 27, 2020 4:42 pm
Contact:

[2.0.76] train prefers longer path from station placed on intersection

Post by jDomantas »

In this setup (see the video and the save file) trains prefer taking the longer route to the next station. However, both options are valid routes - breaking the long route makes the trains start using the short route.

What I expected: if both routes are valid options, then these trains should take the shorter option.

The catch is the in both cases the station before the split is placed one spot further than the last valid spot (this is particularly easy to do by accident in the left case, by placing the station first and then finding the earliest spot where the curve can go without hitting the station's hitbox). When starting from such station manually driven trains cannot take the curve. Automated trains not only are able to take the curve, but also find it highly preferrable over going straight.

If when starting from the station automated trains were not able to take the curve, I'd find the behavior perfectly reasonable - after all, the station is not built strictly before the intersection. Although that would be slightly annoying because it's so easy to build a curve after the station and think that it's fine because the curve fits.
Attachments
factorio_L1SWCR6uvY.mp4
(4.27 MiB) Downloaded 8 times
train-repro.zip
(656.75 KiB) Downloaded 4 times
Post Reply

Return to “Duplicates”