I haven't tried changing race specific AI personally but if you manage to get the ai only upgrades working then you wont need it since you can just use a not requirement.
AI has quite a lot of checks and requirements needed before it can perform a task such as an AI only upgrade.
1. The AI needs to be able to afford the upgrade. I assume you put costs to 0.
2. Needs to be correctly set up with ai_economy under player_upgrades and upgrades.
3. The entity that has the upgrade available needs to not be queued with other things. I found that if you just stick the upgrade on an HQ or something the AI will not attempt the upgrade because it's building other things. Put it on an entity that does not have any other spawners or upgrades.
4. There are other factors which influence the priorities. Go to army>ai_production_info>unlocking_upgrade_list, add a new unlocking_upgrade_info, in the upgrade_pbg add the upgrade you want ai to use. The other slots can be filled with anything, it doesn't matter.
Additionally:
Thanks bro, You just save my life. I can now disable certain unit for AI.
By the way, add the
upgrades as a tag for AI one by one is so heavy for me. Is there any easier way to manage the DLC's armys production list? I only want DLC's armys not using any tanks. I have set all tanks'
priority in
ai_economy to 0 which works pretty well for Soviet' and German' AI. But what about OKW/British/USF? Is there a
specific ai_economy that I just miss?