fheroes2
fheroes2 copied to clipboard
On particular map the AI seems to not pick up resources
Preliminary checks
- [X] I've checked that there aren't other open issues on the same topic.
- [X] I've checked that this issue is reproducible on the latest snapshot build.
Platform
Other
Describe the bug
On some maps or in some cases AI leaves resources on the ground. Please, check out the save file. The hero Astra finds a captured mine surrounded by resouces directly on the aquire path. Doesn't make much sense.
Save file
Additional info
No response
The AI may well not collect resources if it believes that the value of the resource for its castle is relatively low, and it believes that it has some task with a higher priority. Now it's hard to say exactly what distracted him from collecting this crystal pile because AI hero has already left there.
The AI may well not collect resources if it believes that the value of the resource for its castle is relatively low, and it believes that it has some task with a higher priority. Now it's hard to say exactly what distracted him from collecting this crystal pile because AI hero has already left there.
the thing is it's pretty common all over this map. Sometimes it picks, sometimes not. Well, strategically it doesn't make sense, because somebody else will pick.
Any other ways for me to study this without builiding the debug version?
Any other ways for me to study this without builiding the debug version?
No, you will at least need the debug build with verbose AI logging enabled (to see how AI selects targets for heroes - with numbers). And also maybe a debugger too.
Any other ways for me to study this without builiding the debug version?
No, you will at least need the debug build with verbose AI logging enabled (to see how AI selects targets for heroes - with numbers). And also maybe a debugger too.
Ok, thank you for your answer. I'm not going to study it right now, but it's good to know what to do.