Train doesn't go to next stop while disabling current if current has no path
Posted: Sun Aug 04, 2019 9:09 pm
As the title says:
When a train is pathing to a stop that it has no path to and that stop gets disabled, it doesn't go to the next stop.
Reproduction steps:
Setup:
1. Set up a train on a rail loop that can reach train stop A and B.
2. Put a train stop C somewhere unreachable.
3. Put a train on the rails with schedule A B C (no leave conditions necessary)
Actual expected behaviour:
4. disable station C (connect to logistic network, wooden chest < 0)
5. start train
The train will run between stop A and B without considering C as it is disabled.
Actual buggy behaviour:
6. enable stop C again (disconnect from logistics)
Train will stop at stop B and display "no path"
7. disable stop C (reconnect to logistics)
Train will continue trying to go to train stop C (i.e. stay stopped at stop B), even though all train stops C are disabled.
Expected behaviour:
After disabling stop C in step 7, the train starts running between A and B again.
Reason:
I use something like this for wireless data transfer: disabling a station at ore sorting instantly disables all ore outposts without a need for circuit wires to all my outposts.
Save file:
This save file is after step 7. You can:
- redo steps 6 and 7 to see the buggy behaviour
- send the train to A or B to get it back to the state after step 5
When a train is pathing to a stop that it has no path to and that stop gets disabled, it doesn't go to the next stop.
Reproduction steps:
Setup:
1. Set up a train on a rail loop that can reach train stop A and B.
2. Put a train stop C somewhere unreachable.
3. Put a train on the rails with schedule A B C (no leave conditions necessary)
Actual expected behaviour:
4. disable station C (connect to logistic network, wooden chest < 0)
5. start train
The train will run between stop A and B without considering C as it is disabled.
Actual buggy behaviour:
6. enable stop C again (disconnect from logistics)
Train will stop at stop B and display "no path"
7. disable stop C (reconnect to logistics)
Train will continue trying to go to train stop C (i.e. stay stopped at stop B), even though all train stops C are disabled.
Expected behaviour:
After disabling stop C in step 7, the train starts running between A and B again.
Reason:
I use something like this for wireless data transfer: disabling a station at ore sorting instantly disables all ore outposts without a need for circuit wires to all my outposts.
Save file:
This save file is after step 7. You can:
- redo steps 6 and 7 to see the buggy behaviour
- send the train to A or B to get it back to the state after step 5