Page 2 of 2

Re: [0.12.35] [Hanziq] Trains sometimes change path after chain signals

Posted: Sat Jul 01, 2017 10:07 am
by Engimage
I am really glad you gonna revise it Rseding.
Solution here should be pretty simple.
When a train evaluates a chain signal it should consider it "green" if the upcoming blocks are reserved by this same train. This will remove deadlocking but will allow trains crashing themselves if they are longer than roundabout. In this case you can definitely blame player for incorrect design.

Re: [0.12.35] [Hanziq] Trains sometimes change path after chain signals

Posted: Sun Jul 02, 2017 1:27 pm
by tag
I tried to create a smaller test case.
testcase.jpg
testcase.jpg (114.56 KiB) Viewed 2062 times
To reproduce the problem:
- Build the blueprint below
- Assign the same name to the three stations on the left ("A")
- Assign the same name to the three stations on the right ("B")
- Add a few trains which travel between "A" and "B". At "A", they should leave after 5 seconds of inactivity. At "B", they should leave immediately (0 seconds of inactivity).
Blueprint
Then watch for a few minutes. Sometimes a train will pass the first chain signal, reroute, and then wait at the second chain signal.
path.jpg
path.jpg (68.16 KiB) Viewed 2062 times

Re: [0.12.35] [Hanziq] Trains sometimes change path after chain signals

Posted: Mon Jul 03, 2017 6:29 pm
by Sephrat
I'm pretty sure this can be moved to "resolved" like viewtopic.php?f=11&t=34844&p=293975 :-)