Trains stop at blue chain sig, stacker not working

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Loewchen
Global Moderator
Global Moderator
Posts: 8358
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Trains stop at blue chain sig, stacker not working

Post by Loewchen »

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.
Could you post a vanilla save file with an example? Thank you.

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2919
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Trains stop at blue chain sig, stacker not working

Post by Optera »

Loewchen wrote:
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.
Could you post a vanilla save file with an example? Thank you.
Sure, the threads teaching how to utilize circuit controlled signals seem to have been lost. Can't find any of them.
Attachments
_Stacker.zip
Doesn't need any of the listed mods.
(2.68 MiB) Downloaded 86 times

aaargha
Filter Inserter
Filter Inserter
Posts: 330
Joined: Wed Dec 07, 2016 8:35 am
Contact:

Re: Trains stop at blue chain sig, stacker not working

Post by aaargha »

Optera wrote:Sure, the threads teaching how to utilize circuit controlled signals seem to have been lost. Can't find any of them.
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.

mrvn
Smart Inserter
Smart Inserter
Posts: 5710
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Trains stop at blue chain sig, stacker not working

Post by mrvn »

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.
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.

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.

Shokubai
Filter Inserter
Filter Inserter
Posts: 470
Joined: Mon May 02, 2016 3:17 pm
Contact:

Re: Trains stop at blue chain sig, stacker not working

Post by Shokubai »

mrvn wrote:
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.
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.

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.
Or simply fix the signals and remove the In-Station waiting area and settle for "pretty good".

Avezo
Filter Inserter
Filter Inserter
Posts: 451
Joined: Fri Apr 01, 2016 3:53 pm
Contact:

Re: Trains stop at blue chain sig, stacker not working

Post by Avezo »

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
stucktrain.jpg (985.11 KiB) Viewed 1922 times

mrvn
Smart Inserter
Smart Inserter
Posts: 5710
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Trains stop at blue chain sig, stacker not working

Post by mrvn »

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.

Post Reply

Return to “Technical Help”