Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBS: Failure to route trains to free platforms #5954

Closed
DorpsGek opened this issue Mar 25, 2014 · 4 comments
Closed

PBS: Failure to route trains to free platforms #5954

DorpsGek opened this issue Mar 25, 2014 · 4 comments
Labels
component: pathfinder This issue is related to Pathfinder flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

EthanG opened the ticket and wrote:

Attached save file contains a 4-track station, 1 line of which is almost but not quite occupied by a train leaving. The leaving train is stopped on the exit signal but doesn't occupy the platform itself.The other 3 tracks are free, but 2 trains are held up, unable to enter. 'Screenshot '2050 Transport Co., 2836-06-03# 1.png' shows the situation.

This is the first time I've seen this poblem in many hours of play, but it's something which could happen often but go unnoticed. I found it because the waiting goods train (294) blocks the leaving train (223) by quite a long loop, and this gridlock spread across most of the map.

'2050 Transport Co., 2836-06-17.png' shows the work-around: block off the used line and the waiting trains start moving as normal. The open viewport and station GUI are unrelated, being work I was doing when interupted by the spreading gridlock.

srvtrfw.grf is a grf you may need to load the game. It's attached here because I never distributed this grf. It's not relevant to the train problem, it provides one refittable tram.

Attachments

Reported version: trunk
Operating system: Linux


This issue was imported from FlySpray: https://bugs.openttd.org/task/5954
@DorpsGek
Copy link
Member Author

EthanG wrote:

I forgot to give the version of trunk. I can't tell you the r-number. I used to pull from git; the problem was discovered in a version pulled on 2013-10-23. Openttd's git server stopped working, so I pulled from hg yesterday to try the bug in the latest trunk. The trains which were stuck before are still stuck in this latest pull. I reversed them in an attempt to get the pathfinder to re-check at the signal, but it made no difference. I didn't try reversing the leaving train in any version.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5954#comment13174

@DorpsGek
Copy link
Member Author

michi_cc wrote:

This is an edge case in the way pathfinder penalties are calculated and not easily fixable. In short, the pathfinder assigns a lower penalty to the blocked signal tile after the platform than to the "detour" required for the other platforms. The pathfinder is fully deterministic and only knows a singular best path which won't change unless something on the map changes. As the blocked tile is after the actual destination of the train, it can't be solved by just tweaking the penalties.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5954#comment13175

@DorpsGek
Copy link
Member Author

EthanG wrote:

I see. Why doesn't it count as blocking the destination?


This comment was imported from FlySpray: https://bugs.openttd.org/task/5954#comment13176

@DorpsGek
Copy link
Member Author

DorpsGek commented Feb 9, 2015

planetmaker closed the ticket.

Reason for closing: Not a bug

works as intended. Reservations are always up to the next signal; stations do not have implicit signals


This comment was imported from FlySpray: https://bugs.openttd.org/task/5954

@DorpsGek DorpsGek closed this as completed Feb 9, 2015
@DorpsGek DorpsGek added component: pathfinder This issue is related to Pathfinder flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pathfinder This issue is related to Pathfinder flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant