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

Adventure map, AI makes useless unboarding on a single tile #9129

Open
1 task done
Branikolog opened this issue Sep 23, 2024 · 5 comments
Open
1 task done

Adventure map, AI makes useless unboarding on a single tile #9129

Branikolog opened this issue Sep 23, 2024 · 5 comments
Labels
AI Artificial intelligence behaviour improvement New feature, request or improvement
Milestone

Comments

@Branikolog
Copy link
Collaborator

Preliminary checks

Describe the problem requiring a solution

AI unboards and jumps back on a board on the next turn for no reason.

image

2024-09-23.15-04-16.mov

AI unboard fail.zip

Describe the possible solution

AI shouldn't make such useless steps.

Additional info

No response

@Branikolog Branikolog added improvement New feature, request or improvement AI Artificial intelligence behaviour labels Sep 23, 2024
@Branikolog Branikolog added this to the 1.2.0 milestone Sep 23, 2024
@oleg-derevenetz
Copy link
Collaborator

There is a reason, AI performs a fog discovery here, so it will try to step at any tile that shows a little more.

@Branikolog
Copy link
Collaborator Author

@oleg-derevenetz
Thanks for clarification!
How do you think, is it possible to teach AI not to waste so much points for just one step in future? Or allow him such movements only if there're no other tasks nearby?
I'm going to leave this issue opened, as such cases heavily slow down AI.

@oleg-derevenetz
Copy link
Collaborator

Or allow him such movements only if there're no other tasks nearby?

Fog discovery is already considered as a last resort task :)

@Branikolog
Copy link
Collaborator Author

Indeed. But I'm 100% sure has not revealed the whole map, since there're two treasure chests above. I expect him to disembark there, but not in the only tile in forest. :)
I suggest forbidding AI to disembark on such tiles belonging to small closed territories, where he cannot make any action. :)

@oleg-derevenetz
Copy link
Collaborator

oleg-derevenetz commented Sep 23, 2024

I suggest forbidding AI to disembark on such tiles belonging to small closed territories, where he cannot make any action. :)

In general case, you may never know for sure. Even if this particular hero cannot do any action, some other hero can, if scout found something valuable enough - e.g. enemy castle or a hero, and that other hero, for instance, has the Dimension Door spell. I really don't care if AI actions look "strange" from a human player's point of view as long as they are backed by logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI Artificial intelligence behaviour improvement New feature, request or improvement
Projects
None yet
Development

No branches or pull requests

2 participants