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

Road vehicle forgets the need for servicing #3057

Closed
DorpsGek opened this issue Jul 28, 2009 · 2 comments
Closed

Road vehicle forgets the need for servicing #3057

DorpsGek opened this issue Jul 28, 2009 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

laurijh opened the ticket and wrote:

I was testing all kinds of stupid things with canals and other things when one mail truck (Road Vehicle 1 in the .sav) got stuck driving circles around a town center (Grenhill), stacking up over 90 breakdowns before I spotted it. The route to the depot isn't long, just a bridge over a canal and a couple of corners. However, every time just before the truck reaches the intersection where it should choose the bridge leading to the depot, it switches its destination back to the other town's truck station and then right after the intersection, changes destination back to the depot.

Removing the shorter route to depot by e.g. demolishing the bridge fixes the situation by limiting the vehicle's route choices, but I think the real issue is that a vehicle shouldn't decide to suddenly go to the station instead of depot with 90+ breakdowns.

Also tested with r16968 with identical results.

Attachments

Reported version: 0.7.2-RC2
Operating system: All


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

Rubidium wrote:

The issue is that the road vehicle code has some code to prevent vehicles wondering off to far for depots. In this case it checks whether the depot is closer than 12 tiles. If not it cancels the depot order.

The long drive around the back causes the vehicle to be more than 12 tiles from the depot, thus causing the order to be cancelled. Guess the only way to prevent this is not looking to the 'bird' distances, but the distance over the road.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3057#comment6392

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r17333


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

@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