News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Ship Pathfinding

Started by zook2, June 05, 2024, 05:47:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zook2

This ship is going from Falgwith to Ponzeath, with no intermediate waypoints. It sails to the position indicated in the screenshot, then turns towards Ponzeath. I've noticed that behaviour before in the last game.

jamespetts

Thank you for the report. Are you able to upload a saved game in which this can reliably be reproduced?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

neroden

Not a bug.  That's what my "backup ship pathfinder" does if the distance is too long to use the conventional routefinder.  It follows a straight-then-diagonal route but detours around land.  I could maybe make it a little smarter at figuring out which of two possible such routes to use, but in this case, there is no straight-then-diagonal all-water route.

We needed *a* routefinder for long distances because it has to be used to test things like "Is the fishery reachable by sea from the fishing port?"

But I don't think it's worthwhile to put a lot of effort into making it good, since the problem can be fixed by adding a waypoint.

Taking non-optimal coast-hugging routes reflects historical travel patterns with ships anyway :-)