fheroes2 icon indicating copy to clipboard operation
fheroes2 copied to clipboard

On particular map the AI seems to not pick up resources

Open crypt47 opened this issue 10 months ago • 4 comments

Preliminary checks

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

Seven_Lakes_0022.sav.zip

Additional info

No response

crypt47 avatar Apr 24 '24 10:04 crypt47

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.

oleg-derevenetz avatar Apr 24 '24 13:04 oleg-derevenetz

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?

crypt47 avatar Apr 24 '24 13:04 crypt47

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.

oleg-derevenetz avatar Apr 24 '24 13:04 oleg-derevenetz

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.

crypt47 avatar Apr 24 '24 16:04 crypt47