-
Notifications
You must be signed in to change notification settings - Fork 151
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
Game sends ships to unreachable port causiong an exception #6445
Comments
Mirrored on Codeberg as #CB4807. |
Mirrored from Codeberg That port in the screenshot shouldn't be reachable at all, because water needs to have a distance of two nodes to be navigable by ships. |
Mirrored from Codeberg Not entirely sure about the description. Placing a road cannot interfere with ship movement since ships can only move onto nodes that are entirely surrounded by 6 water triangles, and no road or bridge can be built there. Maybe the savegame is from v1.1? There was a bug in v1.1 where ships could in some cases move over land, so it might be that due to this bug the two oceans in the screenshot would have been one fleet then but are two separate fleets now. |
Mirrored from Codeberg According to the forum post this is an autosave from 1.2, However I might ask whether he continued a game from 1.1 |
Mirrored from Codeberg well I am not sure. How near do we need to get to the port dock to reach it. This may be a corner case as the port dock is just at the point surrounded by 6 water triangles left to the southern bridge. |
Mirrored from Codeberg in the forum the player comnfirmed the whole game was played with 1.2. |
I uploaded the wrong savegame. I have coreccted it now in the original post |
While fixing the broken game in Multiplayer I found that the real bug is two fold.
|
Describe the bug
see https://www.widelands.org/forum/topic/5978/
if a port is unreachable and a ship gets send to it the game throws an exception.
To reproduce
Steps to reproduce the behavior:
see attached screenshot as well
Expected behavior
maps should not allow a port space in this place
ships should not be sent to such a port.
Screenshots
If applicable, add screenshots to help explain your problem.
Savegames
2024-04-27T23.12.16.wgf.zip
Version:
widelands latest.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: