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

When ai in the boat and close land #9168

Open
2 tasks done
Aiden-Wei opened this issue Oct 5, 2024 · 2 comments
Open
2 tasks done

When ai in the boat and close land #9168

Aiden-Wei opened this issue Oct 5, 2024 · 2 comments
Labels
awaiting feedback Feedback was requested from the issue opener bug Something doesn't work

Comments

@Aiden-Wei
Copy link

Preliminary checks

Platform

Windows

Describe the bug

When ai in the boat and close land

Save file

2024-10-04 151259

Additional info

No response

@Aiden-Wei Aiden-Wei added the bug Something doesn't work label Oct 5, 2024
@ihhub
Copy link
Owner

ihhub commented Oct 5, 2024

@Aiden-Wei , this information tells nothing about the issue. Please be very specific and provide all necessary details.

@ihhub ihhub added the awaiting feedback Feedback was requested from the issue opener label Oct 5, 2024
@oleg-derevenetz
Copy link
Collaborator

oleg-derevenetz commented Oct 5, 2024

Hi @ihhub

This seems to be triggered by the assertion that I added recently in #9140:

// AI can use boats to overcome water obstacles
if ( objectType == MP2::OBJ_BOAT ) {
assert( !fromWater && toWater );
return true;
}

It wasn't there before, but in theory, AI should never try to pass through a tile with OBJ_BOAT if it is not going to board the boat at the same time (that is, the direction should be shore -> boat and nothing else). Thanks to this assertion, I found #9141, when the AI's path ran through a boat located on a Whirlpool tile (BTW, it would be nice if someone who is well aware of the map internals looked at it and suggested a way to properly restore the Whirlpool tile after a boat).

Hi @Aiden-Wei we need a save file and a description of how to reproduce the issue (preferably with a demo video).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback Feedback was requested from the issue opener bug Something doesn't work
Projects
None yet
Development

No branches or pull requests

3 participants