AI Does Not Target Units Outside Of Bases

  • GAME BUILD #: Current
  • OPERATING SYSTEM: Windows 10

:arrow_forward: ISSUE EXPERIENCED

The AI Will Ignore Units Outside of bases, such as random villagers hunting. only when they build a building do they react and start an attack against them.

:arrow_forward: FREQUENCY OF ISSUE

  • 100% of the time / matches I play (ALWAYS)

:arrow_forward: REPRODUCTION STEPS

Here’s the steps to reproduce the issue:

  1. start post imp as spain vs france, have some vills gather hunts away from base, explorer and dog hide in side of the map
  2. expect ai to relentlessly hunt them as in vanilla
  3. ai kills tc and ignores isolated units and idles army.

:arrow_forward: EXPECTED RESULT

like in vanilla ai will hunt down even a single villager on the far side of the map.

this could be due to the use of:

aiPlanSetVariableInt(planID, cAttackPlanBaseAttackMode, 0, cAttackPlanBaseAttackModeExplicit);


aiPlanSetVariableInt(planID, cAttackPlanAttackExplicitBaseID, 0, targetBaseID);

disabling these let the ai target isolated units again, though this causes trouble with defensereflex and other ai behaviour.


Hi @newaoeiiiai !

Thank you, we are already tracking this issue!