Blueprint: https://pastebin.com/ms2gsKEZ
I believe I have identified a train pathfinding bug:
- A train is in a smelting array, but it is empty. It cannot leave due to the next block not being free. Other stations in the smelting array are free. - A train is in the mining array, and it is full. It is trying to path to a smelting station. Expected behavior:
- Train full of ore will correctly path to an open smelting station.
Actual behavior:
- Train does not path to an open station, instead preferring to sit and wait for the train to leave the first smelting station. I believe the bug lies in the pathfinding code that relies on time that a train has spent stopped at a signal:
https://wiki.factorio.com/Railway/Train_path_finding wrote:When the path includes a train currently waiting at a rail signal -> Add a penalty of 100 + 0.1 for every tick the train has already waited.
When you place a rail signal somewhere behind the station, such that it is pre-occupied by the train, then everything works as intended.