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

Ship can't decide whether or not it wants to go for maintenance #8912

Closed
DonaldDuck313 opened this issue Mar 30, 2021 · 1 comment
Closed
Labels
component: pathfinder This issue is related to Pathfinder needs triage This issue needs further investigation before it becomes actionable

Comments

@DonaldDuck313
Copy link

Version of OpenTTD

1.10.0

Expected result

When a ship wants to go for maintenance, it should go to the nearest depot, and shouldn't suddenly decide while it's heading for the depot that actually it doesn't want to go for maintenance.

Actual result

If the nearest depot and the ship's destination are in opposite directions, the ship first decides it wants to go to maintenance, so it turns around to head for the nearest depot, which I guess is expected behavior. The problem is that after it has turned around, while it's heading for the depot, it suddenly decides that it doesn't want to go for maintenance, so it turns around again to go to its destination. Then when it's heading for its destination, it changes its mind again and decides that it wants to go for maintenance. So it gets stuck in an infinite loop.

Steps to reproduce

  1. Download and unzip this saved game.

  2. In order to open the game, you will need to install the following NewGRFs:

    • ALe426/506 'TAF' 1.1a
    • Ansaldo/TIBB E652 0.0.1
    • E.44R 'Tartaruga' 1.0
    • B 82500
    • Generic Tram Set v0.4
    • US Town Names v0.31 (20 Apr 2005)
    • FIRS Industry Replacement Set 2.1.5
    • Original vehicles cargo set
    • Snow Line Mod 1.0.2

    They can all be installed by going to NewGRF Settings > Check Online Content.

  3. Open the saved game.

  4. Go to the list of ships and open the information window for Ship 16.

  5. Observe what Ship 16 is doing. It's stuck in an infinite loop, and can't decide whether it wants to go for maintenance at Bay Minette Ship Depot or if it wants to go directly to its destination at Norman Center Industrial Park.

I realize that in this specific case I can easily fix the problem by building a new ship depot closer to where Ship 16 is stuck (and that's what I will do in the game), but it would still be nice if you could fix this so that ships don't do that in future versions of OpenTTD.

@TrueBrain TrueBrain added the needs triage This issue needs further investigation before it becomes actionable label Apr 10, 2021
@LordAro
Copy link
Member

LordAro commented Apr 12, 2021

Duplicate of #8022

@LordAro LordAro marked this as a duplicate of #8022 Apr 12, 2021
@LordAro LordAro closed this as completed Apr 12, 2021
@2TallTyler 2TallTyler added the component: pathfinder This issue is related to Pathfinder label Oct 19, 2022
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 needs triage This issue needs further investigation before it becomes actionable
Projects
None yet
Development

No branches or pull requests

4 participants