Could you post a vanilla save file with an example? Thank you.Optera wrote: I've been abusing the instant repath for my stations and stackers throughout 0.14 and it work s perfectly fine if it's set up correctly.
Block start is only green when >1 block end = green
Block End is only reading
Chain signals inside the block switch to red when all their exits are blocked.
When the path the train wants to take is blocked it instantly repaths coming to the block entry.
Trains stop at blue chain sig, stacker not working
Re: Trains stop at blue chain sig, stacker not working
Re: Trains stop at blue chain sig, stacker not working
Sure, the threads teaching how to utilize circuit controlled signals seem to have been lost. Can't find any of them.Loewchen wrote:Could you post a vanilla save file with an example? Thank you.Optera wrote: I've been abusing the instant repath for my stations and stackers throughout 0.14 and it work s perfectly fine if it's set up correctly.
Block start is only green when >1 block end = green
Block End is only reading
Chain signals inside the block switch to red when all their exits are blocked.
When the path the train wants to take is blocked it instantly repaths coming to the block entry.
- Attachments
-
- _Stacker.zip
- Doesn't need any of the listed mods.
- (2.68 MiB) Downloaded 105 times
My Mods: mods.factorio.com
Re: Trains stop at blue chain sig, stacker not working
I can't seem to find them as well. As far as I remember though yours is the accepted solution and, for what it's worth, I can also vouch for it's usefulness.Optera wrote:Sure, the threads teaching how to utilize circuit controlled signals seem to have been lost. Can't find any of them.
Re: Trains stop at blue chain sig, stacker not working
This will be horrible for the train yard posted at the top. Each station has a private waiting bay as well as the shared waiting bay for all stations. When a station becomes free the first train will go there and once it clears the first signal a second train will start going there too. But then the first train gets loaded and disables the station. Now the second train repaths but is stuck behind the first train. So when the first train leaves the second will leave the yard, loop around and try again. Unless the first train leaving triggers another repath so the second train can pick the old station again.Aeternus wrote:There is now an ability to fix a depot capacity issue like this... still a bit of a kludge but it should work: Once a train is detected at the station (read cargo contents) deactivate the station. Reactivate it once the train leaves the station. The condition "Anything >0" on the station on read train contents, outputting a red signal back to the station to deactivate it should work fine.
A deactivated station is invalid for pathing destinations, so trains waiting at the transfer arrival waypoint station can't use it, but the train already stopped there will finish it's holding condition (such as "wait until empty"). If all bays are occupied, trains will wait at that switcher waypoint and repath to the next free bay once one becomes available. For this to work effectively, only a single waypoint station should be used, and trains should hold there briefly.
Also when all stations are blocked any train not already at a station will skip the station and continue to the next station on its list. So anything in any waiting bay will try to leave but is stuck behind all the unloading trains. Once a station frees up all other trains will pass through there without unloading.
For this kind of design repathing through signals seem to be the way to go.
Re: Trains stop at blue chain sig, stacker not working
Or simply fix the signals and remove the In-Station waiting area and settle for "pretty good".mrvn wrote:This will be horrible for the train yard posted at the top. Each station has a private waiting bay as well as the shared waiting bay for all stations. When a station becomes free the first train will go there and once it clears the first signal a second train will start going there too. But then the first train gets loaded and disables the station. Now the second train repaths but is stuck behind the first train. So when the first train leaves the second will leave the yard, loop around and try again. Unless the first train leaving triggers another repath so the second train can pick the old station again.Aeternus wrote:There is now an ability to fix a depot capacity issue like this... still a bit of a kludge but it should work: Once a train is detected at the station (read cargo contents) deactivate the station. Reactivate it once the train leaves the station. The condition "Anything >0" on the station on read train contents, outputting a red signal back to the station to deactivate it should work fine.
A deactivated station is invalid for pathing destinations, so trains waiting at the transfer arrival waypoint station can't use it, but the train already stopped there will finish it's holding condition (such as "wait until empty"). If all bays are occupied, trains will wait at that switcher waypoint and repath to the next free bay once one becomes available. For this to work effectively, only a single waypoint station should be used, and trains should hold there briefly.
Also when all stations are blocked any train not already at a station will skip the station and continue to the next station on its list. So anything in any waiting bay will try to leave but is stuck behind all the unloading trains. Once a station frees up all other trains will pass through there without unloading.
For this kind of design repathing through signals seem to be the way to go.
Re: Trains stop at blue chain sig, stacker not working
This seem to actually work as intended. Somewhat. Trains do repath on their own, but they repath to shortest available path and they count it (afaik) by amount of signal blocks, not actual length. If you take a look at attachement, the shortest path (counted by rail blocks) is all the way to the left from stacker - 1 block, and since it's red at the end, trains will keep waiting and repathing continously to the same signal. They won't repath to other stations because they'd need to take 'longer' path of 3 or 4 rail blocks. Switching locomotives to manual probably overrides this count somehow. The only solution I can give is rebuilding it to have single-block stations.
- Attachments
-
- stucktrain.jpg (985.11 KiB) Viewed 2329 times
Re: Trains stop at blue chain sig, stacker not working
All the stations are the same distance from the yard. But the cost should still be cheaper if a station is free. Since then it would have only green signals from start to end. And with all stations blocked the repath should pick the station where it can get closest. So First all stations should get one train. Then all should get a second train. Then all a third train. That you get trains unbalanced means it doesn't repath for every train that leaves the common waiting area.