@CraniumMuppet But CDs do some high-level ai work, don't they? Meaning creating the ai_strategy_plan for new nationsm creating some ai_strategy for nudging production and the big part doing ai_weights for decision and events.
Those AI things are seperate from pathfinding and frontline management sure, but those are still AI things?
Correct.
It's a bit more nuanced. CDs can nudge the AI towards certain behaviors and there are some mods that does this really well (Expert AI for example).
Same goes for events, decisions, focuses etc. Most of what I see as criticism for the AI from the community more closely relates to lower level AI behavior such as Frontline management, prioritization of theaters, shuffling of troops etc which is not something CDs handle.
Usually these lower level issues in my experience does not always have clear simple answers on how to tackle since the AI doesn't have eyes in the same way as players do.
What I personally think most players issue with the AI is not necessarily that the AI is hard or easy, but rather that the AI sometimes inhibit behavior that we as humans see as "weird", so immersion is lost. Like "that's not something that a human would do" so it kinda breaks the illusion of playing against a real enemy
It's kinda the same when you exploit the AI in a similar way in Civ or Total Warhammer. Games in general struggle with AI and trying to have it behave as humans do.
Games like Dark Souls or the Witcher have a bit of an easier time because they are more isolated and can read player input. The enemies does not have to think far ahead, they just need to kill the player. AI in strategy games needs to think 2,3,4 steps ahead. I'm by no means any expert though, but it's generally a hard issue to fix because the fix isn't always clear.
A hard rule like "never cycle attack" can be implemented, but it's not always clear that it is not beneficial, like pinning down. Not that HoIs ai is without criticism, but a lot of suggestions about "stop the AI doing X" is usually not as simple a task at it may seem because its frought with what ifs and edge cases.
That's not to say that we should not seek to improve AI in games in general.