Have you ever had trains stuck on blue chain signals in front of stackers?
Place this surprisingly simple setup in front of the first chain signal and it will force all trains to recalculate their path (repath).
I'm almost certain this was posted before, but I can't find the original post anymore.
Edit: Updated to better logic preventing stuck trains.
Force path recalculation
Force path recalculation
Last edited by Optera on Sun Aug 06, 2017 4:52 pm, edited 1 time in total.
My Mods: mods.factorio.com
Re: Force path recalculation
I've had similar ideas, show the train a red signal for one tick, but my setup used a combinator to do the single pulsing. The advantage yours has, in addition to being simpler, is that it should also work with modded trains that travel at ludicrous speeds (reserves multiple signals each tick).
A potential problem your setup has is that a train can possibly get stuck between the signals if there is a red signal further ahead, but I'll have to test that to know for sure. A simple way to make this a non issue is to make the read signal also output yellow on red.
Interestingly enough neither of our solutions should have any effect on the blue chain signal situation. If a train tries to reserve a blue chain signal that does not allow progress along the its intended path the train will try to find another, it's the same as seeing a red signal. Trains waiting in front of open stackers is usually a sign of the pathfinder not liking the design, paths through occupied slots are still seen as cheaper than the free ones.
A potential problem your setup has is that a train can possibly get stuck between the signals if there is a red signal further ahead, but I'll have to test that to know for sure. A simple way to make this a non issue is to make the read signal also output yellow on red.
Interestingly enough neither of our solutions should have any effect on the blue chain signal situation. If a train tries to reserve a blue chain signal that does not allow progress along the its intended path the train will try to find another, it's the same as seeing a red signal. Trains waiting in front of open stackers is usually a sign of the pathfinder not liking the design, paths through occupied slots are still seen as cheaper than the free ones.
Re: Force path recalculation
Good catch.A potential problem your setup has is that a train can possibly get stuck between the signals if there is a red signal further ahead, but I'll have to test that to know for sure. A simple way to make this a non issue is to make the read signal also output yellow on red.
I built this contraption at least 1 loco length in front of the chain signal by chance, so i never noticed the possibility of locking a train down.
Setting the 2nd signal to closed when green != 0 will have the same repath effect without getting trains getting stuck.
This particular design was made for my LTN depots, which can hold every train going there.Interestingly enough neither of our solutions should have any effect on the blue chain signal situation. If a train tries to reserve a blue chain signal that does not allow progress along the its intended path the train will try to find another, it's the same as seeing a red signal. Trains waiting in front of open stackers is usually a sign of the pathfinder not liking the design, paths through occupied slots are still seen as cheaper than the free ones.
At stackers with not enough space for all trains it'll behave like it wasn't there once it's full.
Such stackers need different signaling shown here. The drawback of this solution is you can't have pass through or PAX tracks.
My Mods: mods.factorio.com
Re: Force path recalculation
To the top! I have struggled with that and gave up after not coming up with such simple idea. I see several places to apply that one, will be mandatory for my next base.