Train chooses longer path to destination

Bugs that are actually features.
thefrolickingman
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Aug 04, 2020 11:22 pm
Contact:

Train chooses longer path to destination

Post by thefrolickingman »

Greetings developers,

After 3 years of playing, I am pleased to file my first bug report. Applies to 0.18.

Steps to reproduce:
1. Load attached save file. The player should be in the train.
2. Set the train to Automatic. Its destination is a point near "Copper Mine 3" in the northeast.
3. Immediately after activating the train, it will approach a T-intersection.

Expected result:
Train chooses the shorter, northern route.

Actual result:
Train chooses the southern route, which is significantly longer.

As far as I can tell, the shorter, northern route is valid and there is nothing special about the T-intersection that would cause the game to choose the longer, southern route. The T-intersection was created using a well-tested blueprint I've used for two years. I experimented with the track and signals at the T-intersection but was unable to determine why the game chooses to take the longer path.
Attachments
train routing bug.zip
(51.38 MiB) Downloaded 79 times
Loewchen
Global Moderator
Global Moderator
Posts: 10378
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Train chooses longer path to destination

Post by Loewchen »

The short route would require the train to drive through the station "The Hinterlands East!" which is not in the schedule and therefore adds a high penalty to the path making the longer route more attractive. If you remove the station it takes the short route. NaB.
User avatar
5thHorseman
Smart Inserter
Smart Inserter
Posts: 1193
Joined: Fri Jun 10, 2016 11:21 pm
Contact:

Re: Train chooses longer path to destination

Post by 5thHorseman »

Another option is to add the station to your route and not give it a wait condition. Not only will that force your train to go that way (it has to go to that station), it will blow through the station without stopping because there is no wait condition. So you get the best of both worlds.
thefrolickingman
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Aug 04, 2020 11:22 pm
Contact:

Re: Train chooses longer path to destination

Post by thefrolickingman »

Loewchen, I confirmed the behavior that you described. Removing the station in-between corrects the pathing. NaB. Thanks!
Post Reply

Return to “Not a bug”