Page 1 of 1

Train Pathing Question

Posted: Thu Dec 28, 2017 6:23 pm
by dog80
Why does the train not take the yellow marked waiting area? I know how to work around that, but i stumbled over this problem now several times and it forces me to build the train network in a specific way.

(green is the way the train will take when there is green light)
r5g5re61g5r.jpg
r5g5re61g5r.jpg (79.78 KiB) Viewed 4075 times
- the 2 red marked signals can be removed that would fix the issue, though it destroys the way i wanted to setup the network, because i'd like to have other trains pass this rail in both directions, which is not implemented here.

- Also swapping the drive-through and waiting-bay would be a solution (image2), though again it forces me to build it in a specific way.
r5g5re61g5r-1.jpg
r5g5re61g5r-1.jpg (82.95 KiB) Viewed 4075 times
in reality trains would ofcourse take the waiting bay because the distance to the left could be much larger. I suspect that this advanced path finding would very complex etc. so taking the solution of the direct way is the only one...

nvm this is just for my personal understanding, thx for any help.

Re: Train Pathing Question

Posted: Thu Dec 28, 2017 6:51 pm
by orzelek
I'm not 100% sure but I think that train choses path that seems shorter regardless of signal state on that path.
If you move the siding to other side of main rail it will have same length as main track and should be used more often since pathing cost will be same as main line.

Re: Train Pathing Question

Posted: Thu Dec 28, 2017 6:53 pm
by dog80
orzelek wrote:I'm not 100% sure but I think that train choses path that seems shorter regardless of signal state on that path.
If you move the siding to other side of main rail it will have same length as main track and should be used more often since pathing cost will be same as main line.
yes that is correct - but again maybe at a certain point there is no possibility to move it on the other side

Re: Train Pathing Question

Posted: Fri Dec 29, 2017 3:13 pm
by aaargha
This is caused by the pathfinder not looking whether a signal is red or not - except for circuits - but whether or not there is a train in the block. As there is no train in either block the only thing the pathfinder has to differentiate with is how long the paths are. Changing how that works seems like it would not be that easy to me at least, especially handling chain signals correctly and efficiently.

Another workaround for this could be to make the siding the only entrance to the train station, this should only need very little space.

Re: Train Pathing Question

Posted: Fri Dec 29, 2017 4:50 pm
by pleegwat
I could see giving some penalty to paths through a two-way signal.

Re: Train Pathing Question

Posted: Sat Dec 30, 2017 4:27 pm
by Jap2.0
I think that part of it could be that paths are calculated when the train departs, and it rarely recalcultes, although in that case I would think that it would choose the correct path. Also, you're on 0.16, right?
aaargha wrote:This is caused by the pathfinder not looking whether a signal is red or not - except for circuits - but whether or not there is a train in the block. As there is no train in either block the only thing the pathfinder has to differentiate with is how long the paths are. Changing how that works seems like it would not be that easy to me at least, especially handling chain signals correctly and efficiently.

Another workaround for this could be to make the siding the only entrance to the train station, this should only need very little space.
Really? I thought that penalties were given with 2(block length) for red signals, and that circuit-controlled signals just gave a constant penalty of 1000?

Re: Train Pathing Question

Posted: Sat Dec 30, 2017 4:36 pm
by Jap2.0
Ah, this is relavent. I'm not entirely sure why this is happenning, though.

Re: Train Pathing Question

Posted: Sun Dec 31, 2017 5:04 pm
by dog80
pleegwat wrote:I could see giving some penalty to paths through a two-way signal.
Sounds valid to me

Re: Train Pathing Question

Posted: Sun Dec 31, 2017 5:30 pm
by cbhj1
not sure it matters to the discussion, but the rail signal going into the waiting bay is red without a train in the block

Re: Train Pathing Question

Posted: Mon Jan 01, 2018 10:04 am
by aaargha
cbhj1 wrote:not sure it matters to the discussion, but the rail signal going into the waiting bay is red without a train in the block
Which signal are you referring to, as far as I can tell they all look like they're in the correct state?

Re: Train Pathing Question

Posted: Mon Jan 01, 2018 2:17 pm
by cbhj1
in the second picture, the entrance to the empty waiting bay

Re: Train Pathing Question

Posted: Mon Jan 01, 2018 7:56 pm
by Jap2.0
cbhj1 wrote:in the second picture, the entrance to the empty waiting bay
Nope - it's a chain signal.

Re: Train Pathing Question

Posted: Mon Jan 01, 2018 9:29 pm
by cbhj1
so it is, my mistake

Re: Train Pathing Question

Posted: Tue Jan 02, 2018 4:33 am
by Triaxx2
I'm not seeing a second signal for the interior signals on the upper side to be chained off of. They're connecting to the signal on the far end past the incoming train. Which is why they're red, so the train is going through because it's already in the block.

Re: Train Pathing Question

Posted: Thu Mar 15, 2018 11:50 am
by dog80
Triaxx2 wrote:I'm not seeing a second signal for the interior signals on the upper side to be chained off of. They're connecting to the signal on the far end past the incoming train. Which is why they're red, so the train is going through because it's already in the block.
the station