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!!!
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
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?
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!
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.
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.