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

Servicing of trains doesn't work if the track to the debug is not directly enough #3831

Closed
DorpsGek opened this issue May 11, 2010 · 3 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Progman opened the ticket and wrote:

r19780

I have some problems in auto servicing (and in resulting auto replacing) trains, which never enters a depot even if they could. If you check the attached game you see a sign "Line NW". On this line are a lot of steam trains which aren't replaced yet since they never entered a depot. As you see they have several tries to actually join a depot (like all the other trains on the other lines), but they never do. It looks like that the way how the tracks are build refuse the train to enter the depot as the trains aren't on a straight track when they decide to enter a depot.

Attachments

Reported version: trunk
Operating system: All


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

Progman wrote:

The attached game shows the problem as well (same game). The SH40 trains do not enter the depot for maintenance, but the T.I.M trains on the same line do.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/3831#comment8022

@DorpsGek
Copy link
Member Author

Rubidium wrote:

The SH40 route isn't the same as the T.I.M. route. Or at least not for the auto servicing.

Auto servicing only happens when a train is within a given amount of pathfinder penalties (you can configure this number). The "approach" for the T.I.M. is straight, whereas for the SH40 you have an S-turn. This S turn is more expensive in pathfinder penalties than just a single turn; changing the route so it doesn't have the S turn makes the SH40 trains go into the depot as they 'should'.

Furthermore red signals have a penalty worth some 10 straight tiles and path signals are by default red and as such shortens the distance your depot needs to be from the main track significantly.

Finally, we won't change the current behaviour; you can increase the amount of penalty you want your trains to search for, but bear in mind that that might make trains lost when they're finding depots on branches the train isn't supposed to go on. It will also be more computationally expensive, i.e. OpenTTD will run slower, however you can configure it so it effectively tries to search the whole map for a depot.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3831#comment8031

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Not a bug


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

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Vehicles labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant