Jakcie A.I (Actual AI improvements)

Hi @JakcieChan1178 just a question as someone modding the ai for my zombie mod. I have trouble getting ai to attack after about 30 min of game time and i suspect it is because it thinks it cant win any battles.

Any workarounds to have the ai keep attacking regardless of the advantage they have? Below are things i have tried.

  • Changed fallback value to -1
  • Disabled reinforcements
  • Added ‘dummy’ units with high damage but unable to attack to trick ai to think it has the advantage
  • Set limits to villagers and non military units

None of the above works. They keep units loitering around TC late game. Can you hint on the right direction? Thanks!!!

@JakcieChan1178
Here is a thread with the new AI bugs I found . I hope this will help you when you update your mod :slight_smile:
(New patch 12.0.1974 AI bugs)

Hey everyone. Just saying I just updated the mod to support the new update, enjoy.

2 Likes

There are a ton of things that influence ai attacks. A few files come to mind to me that can help you.

ai_settings’s combat_eval could be a good variable to change since the vanilla ai would highly prefer battles where they stomp the enemy instead.

You can try to tweak ai_statemodel_tunings’ skirmish_arttack_default and/or skirmish_difficulty files to try and make fallbacks as hard to do as possible (skirmish_arttack_default affects all skirmish_attack files so its not as tedious as it seems)

I don’t know if it will fix your problem but maybe it’ll work

4 Likes

Did you find any new hidden AI improvements that were not described in the new patch ?
Thanks again for the updates !

1 Like

A new patch has been released

Thanks for all the hard work, @JakcieChan1178 .Do you have a Discord community for discussing your mod? I know it’s not possible to edit your Tuning pack in the content editor, and it’s also not possible to run two tuning packs at the same time. Is there any way to share or access your mod files?

1 Like

@JakcieChan1178 I have noticed that lategame one big problem with AI behaviour

They really want to capture and defend sacred sites even when their homes are attacked and the sacred site victory condition is off

Do you think if it is possible to either lower the sacred site priority or remove all sacred site capturing from AI

1 Like

Hey everyone, it has been awhile since I have updated the mod and all of that. I won’t lie, I have not been at my main computer where the mod is a lot of the time recently so im not able to really update it.

I am paying attention to aoe4 news and would 100% be on top of updating the mod for next season.

For being able to access the source “code” (its xml files im not inflating my ego lol), I would love to actually set it up as a github, at least when I update the mod for the next big update.

Stay tuned for now I guess and thank you for following after almost 2 years!

4 Likes

Hello everyone.

Here it is! I dumped the mod uncompiled onto github. For any mod devs that want to add this into their own mod or anybody who wants to edit the mod for themselves,

This could also be a way to follow updates to the mod. Hope I can be able to update this at least every once in a while.

8 Likes

Oh, that’s just great!

Can you make the AI build walls please?

Also, is it possible to mod the AI so that it stops retreating all the time? I’ve also seen them have armies just standing still when under attack and not doing anything.

2 Likes