Preventing trains skipping stops.
Posted: Sat Jul 07, 2018 12:06 am
So, in my network I am using trains that have a destination list that simply looks like this:
All of the destinations that accept or create a resource on the network, share the same naming scheme and are switched on and off via a circuit depending if they have a load waiting/capacity to accept a full load, and trains collect/drop off at the nearest appropriate location automatically.
The problem I am having is that if two trains try to go the same destination the second train 'skips' it's current task if the station it was going to is switched off. For example a load of iron ore is ready to collect, Train A goes in first, Train B is sat in the lay-by waiting it's turn. Train A takes the entire load, and the station is disabled. Train B instead of waiting for another load to become ready (or travelling to another available load), it instead skips loading entirely, and goes to the unloading step, wasting fuel and causing additional congestion on the line for no benefit.
How can I force Train B in this scenario to stay on it's current step (Collect Ore), instead of skipping to the next available step (Unload Ore) before it is ready?
Code: Select all
Output: Iron Ore [Until full, OR 15 seconds has passed]
Input: Iron Ore [Until empty, OR 15 seconds has passed]
The problem I am having is that if two trains try to go the same destination the second train 'skips' it's current task if the station it was going to is switched off. For example a load of iron ore is ready to collect, Train A goes in first, Train B is sat in the lay-by waiting it's turn. Train A takes the entire load, and the station is disabled. Train B instead of waiting for another load to become ready (or travelling to another available load), it instead skips loading entirely, and goes to the unloading step, wasting fuel and causing additional congestion on the line for no benefit.
How can I force Train B in this scenario to stay on it's current step (Collect Ore), instead of skipping to the next available step (Unload Ore) before it is ready?