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.
DutchBully
Inserter
Inserter
Posts: 23
Joined: Mon Apr 24, 2017 4:54 pm
Contact:

Trains stop at blue chain sig, stacker not working

Post by DutchBully »

Hi folks, I read a few things about train paths and how things seem to mess up when another train enters its loop, but not willing to spend 5 hours digging through forums for bits and clue's. (I gave up after like spending half an hour not getting anywhere. I hope one of you folks have a clue or need more input.

Attached pick for offload setup, plenty of open slots to park in, but trains refuse to pass blue signal (right top). It seems trains are stuck in the same path regardless when moving or not. Also... If I would switch a locomotive that is parked in the unloading slot/station from AUTO to MANUAL, the stopped train at the blue light will actually move up to the slot right behind the manual train. Odd?

Would something like : "if train speed = 0 then recalculate path" be an option?

Please advise

DB
Attachments
stucktrain.jpg
stucktrain.jpg (999.93 KiB) Viewed 19979 times

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 »

For one...You've created a stopping zone with signals before each station...So its not odd that a train went in there.

Second You are missing your signals down near your chests and along the top (West bound)


Try this. Use chains along the west bound track including the spaces between south tracks.

Code: Select all

SWWSWWSWWSWWSWW
S  S  S  S  S
S  S  S  S  S
S  S  S  S  S
T  T  T  T  T
SEESEESEESEESEE
You needs chains on the W's and E's and right after your T's
W- West bound(top)
S- Southbound
T- Station
E-Eastbound(bottom)
Put a regular signal right after each station. THen do what you did on West to East.

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 »

Red marks for chains
blue marks for standard.

The problem is that a train hitting a chain signal wants to reserve its way all the way through...locking up everything, A standard signal breaks the chain. This is you need them after each station and after each junction

The standard signals you have behind your trains are ok but you could prevent an extra train from going in there by removing the middle-ish signals. You still need the one at the top of each southbound exit.
Untitled-1.jpg
Untitled-1.jpg (641.11 KiB) Viewed 19965 times
To more specifically tell you why yours is broken. The train on the far left has no signals before it gets 2/3 of the way down that east bound path. It has reserved that track and wont release it until it clears. Hence all the red chain signals down there.

DutchBully
Inserter
Inserter
Posts: 23
Joined: Mon Apr 24, 2017 4:54 pm
Contact:

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

Post by DutchBully »

not helpful, they stop for a blue sign, thats the problem

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 »

DutchBully wrote:not helpful, they stop for a blue sign, thats the problem
Post your save. I will fix it so you can study.

They stop because they cant enter the next block...presumably the butt of that second train on the left is sticking out over the first signal in that path which is keeping the block full...You can fix this by adding chain signals where i mentioned to break up the block.

Based on your signals...the blue area is one block. It will only allow 1 train ANYWHERE in that block until said train clears the block. The second train on the far left appears to still be in the block.
3.jpg
3.jpg (65.73 KiB) Viewed 19945 times
Because of your lack of signals on the outbound path the first train on the far left is also locking up all of the track in front of it since it is all 1 block.
4.jpg
4.jpg (73.11 KiB) Viewed 19945 times
I made a proof on concept. Ignore the station on the right...I just needed a reason for trains to leave.
6.png
6.png (1.28 MiB) Viewed 19943 times

DutchBully
Inserter
Inserter
Posts: 23
Joined: Mon Apr 24, 2017 4:54 pm
Contact:

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

Post by DutchBully »

Can you stop addressing this and please let the devs give input on WHY there is a train stopped at a BLUE BLUE BLUE chain signal, I don't need lectures in OTTD. You totally dont understand the issue

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 »

DutchBully wrote:Can you stop addressing this and please let the devs give input on WHY there is a train stopped at a BLUE BLUE BLUE chain signal, I don't need lectures in OTTD. You totally dont understand the issue
Since Devs have yet to answer. The reason for the stuck-at-blue situation is usually another train has already decided its going to use the path. Since the trains don't really recalculate paths this way the generic fix is as I mentioned OR put a station called "Waiting Bay" or something similar before those blues. Give the trains a Time 0 seconds condition. This will force them to chose a path only when leaving the waiting bay rather than before. This is a known quirk of the signal/pathing system.
Last edited by Shokubai on Sat May 06, 2017 11:09 pm, edited 4 times in total.

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

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

Post by Nexela »

Why not turn Press F4 and turn on show_rail_paths to show you what the train is trying to do.

BenSeidel
Filter Inserter
Filter Inserter
Posts: 588
Joined: Tue Jun 28, 2016 1:44 am
Contact:

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

Post by BenSeidel »

Shokubai has it correct, sort of.
A train finds its path when it leaves a station and tends not to repath during it's travels (it does, but relatively rarely in any meaningful way). So those two trains have their hearts set on the far station because it would have been the only empty station when they left (I can say that because it's the furthest from the entrance). This would have also been the case for the two that are in the queue for the station as well as the one currently occupying it.

Trains will re-path eventually, so just be patient and they will go through. Unfortunately there is no "good" way of getting them to repath reliably, as they really are kludges to force a repath. While I don't believe there is an in-built timer to trigger a repath as all the repathing in my tests seem to happen at the same time something else happens such as trains arriving or departing from a station and removing/placing track, these events happen regularly enough (or are causally linked to your requirement) that waiting should be sufficient.

If you don't want to have to wait,
As suggested by Shokubai, you could put stops in the stacker (where the blue signals are), then when they reach those stops they will repath to an open unloader, but that will generally reduce the throughput as the trains will have to come to a stop at the "repathing" station and you will still get situations where the trains path to the wrong station and still have to sit there until the station frees up or they repath.

The most reliable way of getting the train to repath is to enable/disable the stops (always ensure you have a train stop enabled so that your network doesn't come to a "no path" halt). If your trains are pathing to an occupied stop, disabling the stop will cause a repath to occur, and it's guaranteed to occur in the trains that are currently pathed to the stop that is being disabled.

Aeternus
Filter Inserter
Filter Inserter
Posts: 835
Joined: Wed Mar 29, 2017 2:10 am
Contact:

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

Post by Aeternus »

Hold your mouse over the loc that's stuck behind the blue signal. That shows the path that train intends to take, and should give you a better idea of why it is stopping for that blue signal. My guesstimate is that it's waiting on that leftmost train to clear, or it's orders are to go to a station it cannot currently reach and it's arrived at this station due to a pathing mishap. From the look of things you do have some creative pathing going on...

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

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

Post by Optera »

BenSeidel wrote:Shokubai has it correct, sort of.
A train finds its path when it leaves a station and tends not to repath during it's travels (it does, but relatively rarely in any meaningful way). So those two trains have their hearts set on the far station because it would have been the only empty station when they left (I can say that because it's the furthest from the entrance). This would have also been the case for the two that are in the queue for the station as well as the one currently occupying it.

Trains will re-path eventually, so just be patient and they will go through. Unfortunately there is no "good" way of getting them to repath reliably, as they really are kludges to force a repath. While I don't believe there is an in-built timer to trigger a repath as all the repathing in my tests seem to happen at the same time something else happens such as trains arriving or departing from a station and removing/placing track, these events happen regularly enough (or are causally linked to your requirement) that waiting should be sufficient.

If you don't want to have to wait,
As suggested by Shokubai, you could put stops in the stacker (where the blue signals are), then when they reach those stops they will repath to an open unloader, but that will generally reduce the throughput as the trains will have to come to a stop at the "repathing" station and you will still get situations where the trains path to the wrong station and still have to sit there until the station frees up or they repath.

The most reliable way of getting the train to repath is to enable/disable the stops (always ensure you have a train stop enabled so that your network doesn't come to a "no path" halt). If your trains are pathing to an occupied stop, disabling the stop will cause a repath to occur, and it's guaranteed to occur in the trains that are currently pathed to the stop that is being disabled.
Correct except there is a way to force a repath. Use circuit controlled signals at the beginning and end of the block.
Block end signals read their status and block entrance are set to green while green > 0.

Loewchen
Global Moderator
Global Moderator
Posts: 8969
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

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

Post by Loewchen »

This is a Known Issue in Bug Reports FYI, do not expect it to change soon.

Aeternus
Filter Inserter
Filter Inserter
Posts: 835
Joined: Wed Mar 29, 2017 2:10 am
Contact:

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

Post by Aeternus »

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.

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 »

Optera wrote: Correct except there is a way to force a repath. Use circuit controlled signals at the beginning and end of the block.
Block end signals read their status and block entrance are set to green while green > 0.
Excellent solution. Have to try this.

BenSeidel
Filter Inserter
Filter Inserter
Posts: 588
Joined: Tue Jun 28, 2016 1:44 am
Contact:

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

Post by BenSeidel »

Optera wrote:Correct except there is a way to force a repath. Use circuit controlled signals at the beginning and end of the block.
Block end signals read their status and block entrance are set to green while green > 0.
Trains don't repath because of a changing wire signal.
no change in circuits.jpg
no change in circuits.jpg (412.97 KiB) Viewed 19845 times
Here I have a simple setup, where there are 4 stops guarded by a red signal . Once the train has pathed to the second stop I am able to open up the signal in front of the third stop. The changed signal does not cause the waiting train to repath, instead it sits there until it naturally repaths.

Miravlix
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Wed Jun 01, 2016 8:48 am
Contact:

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

Post by Miravlix »

They do actually repath, but they pick the same path as before as the chain to multiple rows of ->rail signal->rail signal->rail signal-> station design doesn't work.

The train will keep choosing the blocked path because it keeps thinking the rail signal will clear and according to pathfinding this is the best path.

Trying to use a single chain signal to create stacker is broken.

Only lanes of rail signal->chain signal->shared path to station(s) work.

Edit: changed the word rows to lanes as I thought it might confuse.

BenSeidel
Filter Inserter
Filter Inserter
Posts: 588
Joined: Tue Jun 28, 2016 1:44 am
Contact:

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

Post by BenSeidel »

Miravlix wrote:They do actually repath, but they pick the same path as before as the chain to multiple rows of ->rail signal->rail signal->rail signal-> station design doesn't work.
In your scenario they are not repathing because of your signals, they are repathing because trains always repath when they start accelerating (or is it when they come to a stop?). While it appears to work, It's not that reliable and like most solutions, reduces throughput as you can't let the next train start moving as it may reach the chain signal before the circuit snaps back shut.

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

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

Post by Optera »

BenSeidel wrote:
Optera wrote:Correct except there is a way to force a repath. Use circuit controlled signals at the beginning and end of the block.
Block end signals read their status and block entrance are set to green while green > 0.
Trains don't repath because of a changing wire signal.
The attachment no change in circuits.jpg is no longer available
Here I have a simple setup, where there are 4 stops guarded by a red signal . Once the train has pathed to the second stop I am able to open up the signal in front of the third stop. The changed signal does not cause the waiting train to repath, instead it sits there until it naturally repaths.
You didn't use circuit controlled signals as block start and exit.
2017-05-10-06-00-38-2516134.jpg
2017-05-10-06-00-38-2516134.jpg (506.47 KiB) Viewed 19810 times
As soon as any station is free the train will instantly repath.

BenSeidel
Filter Inserter
Filter Inserter
Posts: 588
Joined: Tue Jun 28, 2016 1:44 am
Contact:

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

Post by BenSeidel »

Optera wrote:
BenSeidel wrote:
Optera wrote:Correct except there is a way to force a repath. Use circuit controlled signals at the beginning and end of the block.
Block end signals read their status and block entrance are set to green while green > 0.
Trains don't repath because of a changing wire signal.
no change in circuits.jpg
Here I have a simple setup, where there are 4 stops guarded by a red signal . Once the train has pathed to the second stop I am able to open up the signal in front of the third stop. The changed signal does not cause the waiting train to repath, instead it sits there until it naturally repaths.
You didn't use circuit controlled signals as block start and exit.
2017-05-10-06-00-38-2516134.jpg
As soon as any station is free the train will instantly repath.
Yes, I know that I did not block the other two stops with circuit controlled signals, but that is irrelevant. The two trains sitting there were sufficient to stop any pathing attempts to them.

As for your design, It does not stop trains pathing to stop 1, the stop being subsequently occupied, the train arriving and not re-pathing into stop 2 as in your system the signal will be green and not red, so there is no state change to cause the repath.
Also, the placement of your chain signals is worse because you can get a train path to either of the bottom stops while one of the top stops are free. This will cause it to sit at the bottom chain signal until it can move forward, completely clogging up your system.

Edit: re-read the post as I originally assumed it's based upon Miravlix solution with the chain signals
Edit2: Just saw that you do have chain signals.

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

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

Post by Optera »

BenSeidel wrote:
Optera wrote:
BenSeidel wrote:
Optera wrote:Correct except there is a way to force a repath. Use circuit controlled signals at the beginning and end of the block.
Block end signals read their status and block entrance are set to green while green > 0.
Trains don't repath because of a changing wire signal.
no change in circuits.jpg
Here I have a simple setup, where there are 4 stops guarded by a red signal . Once the train has pathed to the second stop I am able to open up the signal in front of the third stop. The changed signal does not cause the waiting train to repath, instead it sits there until it naturally repaths.
You didn't use circuit controlled signals as block start and exit.
2017-05-10-06-00-38-2516134.jpg
As soon as any station is free the train will instantly repath.
Yes, I know that I did not block the other two stops with circuit controlled signals, but that is irrelevant. The two trains sitting there were sufficient to stop any pathing attempts to them.

As for your design, It does not stop trains pathing to stop 1, the stop being subsequently occupied, the train arriving and not re-pathing into stop 2 as in your system the signal will be green and not red, so there is no state change to cause the repath.
Also, the placement of your chain signals is worse because you can get a train path to either of the bottom stops while one of the top stops are free. This will cause it to sit at the bottom chain signal until it can move forward, completely clogging up your system.

Edit: re-read the post as I originally assumed it's based upon Miravlix solution with the chain signals
Edit2: Just saw that you do have chain signals.
Are you pulling all your assumptions out of thin air?
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.

Post Reply

Return to “Technical Help”