I have successfully modify Soviet and Wehrmacht AI build orders through ai_economy. But it is quite confusing that ai_economy isn't work for DLC factions(OKW/AEF/British). Any good idea? I just want to remove heavy armors from AI build orders.
I also try to create an upgrade that AI will definitely choose in order to distinguish AI from players, and add this the unit I don't want AI to produce as a not requirement. But it fail because AI will not choose the upgrade even if I set the priority to 1000 in ai_economy.
How to modify OKW/AEF/British AI's unit production orders?
11 Mar 2025, 08:11 AM
#1

Posts: 1
13 Mar 2025, 20:39 PM
#2


Posts: 102 | Subs: 1
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:
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:
SneakEye
—
3/10/24, 1:57 AM
Add an armor_modifier inside the upgrade, with value multiplication 1. The AI somehow takes the modifiers into account with their decisionmaking and armor modifiers seem to have the highest priority, even if it has no effect with value x1.
PAGES (1)

0 user is browsing this thread:
Livestreams
![]() |
![]() |
![]() |
107 | ||
![]() |
![]() |
![]() |
25 | ||
![]() |
![]() |
![]() |
139 | ||
![]() |
![]() |
![]() |
4 | ||
![]() |
![]() |
![]() |
2 | ||
![]() |
![]() |
![]() |
1 | ||
![]() |
![]() |
![]() |
1 | ||
![]() |
![]() |
![]() |
1 | ||
![]() |
![]() |
![]() |
1 | ||
![]() |
![]() |
![]() |
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.43063.872+8
- 2.55379.875+3
- 3.799453.638+6
- 4.303163.650+3
- 5.290113.720+1
- 6.194101.658-1
- 7.281161.636-1
- 8.371284.566-1
- 9.14059.704+7
- 10.327232.585+7
Replay highlight
VS
-
cblanco ★
-
보드카 중대
-
VonManteuffel
-
Heartless Jäger

Einhoven Country

Honor it
13

Download
1348
Board Info
466 users are online:
466 guests
7 posts in the last 24h
25 posts in the last week
91 posts in the last month
25 posts in the last week
91 posts in the last month
Registered members: 52852
Welcome our newest member, polishup
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, polishup
Most online: 2043 users on 29 Oct 2023, 01:04 AM