ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.65k stars 370 forks source link

AI repeats the same actions infinitely #5884

Open ihhub opened 1 year ago

ihhub commented 1 year ago

Preliminary checks

Platform

Windows

Describe the bug

There are cases when AI repeats the same set of actions infinitely leading to broken gameplay:

https://user-images.githubusercontent.com/19829520/192142585-eef47a35-2542-4ffd-a856-d3b97be8496c.mp4

Save file

infinite_action_loop.zip

Additional info

No response

LeHerosInconnu commented 1 year ago

@ihhub.

AI does not have enough memory. Please, allocate it more memory. :)

ihhub commented 1 year ago

This is another example:

https://user-images.githubusercontent.com/19829520/192146945-b3b36e5a-5f0f-4221-a844-d6765f9725b5.mp4

infinite_loop_actions.zip