fheroes2 icon indicating copy to clipboard operation
fheroes2 copied to clipboard

Construction of an AI Castle, AI could have built the building that increases the growth of level 1 creatures before other less important buildings

Open LeHerosInconnu opened this issue 3 years ago • 2 comments

Preliminary checks

Describe the problem requiring a solution

In fheroes2, the AI could have built the building that increases the growth of level 1 creatures before other less important buildings.

Here are the save files: Construction AI Castle 02.zip

Related closed issue: https://github.com/ihhub/fheroes2/issues/3361.

Describe the possible solution

In the example, the Crystal Garden before the Rainbow or the Marketplace: Crystal Garden not built 02

In the example, the Waterfall before the Tavern or the Moat: Waterfall not built 02

Additional info

Version 0.9.6 3976.

LeHerosInconnu avatar Aug 22 '21 16:08 LeHerosInconnu

A little addition to this issue:

Quite often, Well is not built by AI in a half-built city. I think, in 30% of enemy cities (Beltway map) it wasn't built.

ivanychag avatar Aug 24 '21 19:08 ivanychag

To be honest, the code that handles castle build order for AI is pretty bad. I guess that most issues related to this should be grouped into a single one where we try to have better heuristics for this

vincent-grosbois avatar Aug 24 '21 21:08 vincent-grosbois

Other saves for this (before and after, version 0.9.20 5949): Horde building not build 05.zip

In fheroes2:

In the example, the Waterfall before the Tavern or the Moat: Horde building not built 01

LeHerosInconnu avatar Nov 05 '22 16:11 LeHerosInconnu