Change AI build Order

Modding, Map Editor, IES Scripting and Other Questions
Post Reply
PaulStretch
Posts: 112
Joined: 27 Jun 2021, 16:10
Has thanked: 45 times
Been thanked: 13 times

Change AI build Order

Post by PaulStretch »

So when a skirmish match starts epoch 1 with American civs, the AI always builds barracks, a warehouse, and a workshop, but since I moved the barracks to Epoch 3, the AI won't build anything and just gathers resources. What AIP file would I need to remove barracks from the buildlist? I've messed around with skirmish_default, but that didn't work. Do I need to modify the American civ specifically? I'm being cautious about modding AIP files.

User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Change AI build Order

Post by Dr.MonaLisa »

Generally, you should edit most of AIPS files.

In Unofficial Patch 1.5 these files were edited:

Code: Select all

Eco_NavyLateEpoch.aip
Imp_AirEpoch.aip
Imp_AirplaneCraze.aip
Imp_LateEpoch.aip
Imp_NavyAirEpoch.aip
Imp_NavyLateEpoch.aip
Mil_AirEpoch.aip
Mil_AirplaneCraze.aip
Mil_LateEpoch.aip
Mil_NavyAirEpoch.aip
Mil_NavyLateEpoch.aip
Eco_Expand.aip
Eco_Navy.aip
Imp_Expand.aip
Imp_Navy.aip
Mil_Expand.aip
Mil_Navy.aip
Eco_AirEpoch.aip
Eco_AirplaneCraze.aip
Eco_LateEpoch.aip
Eco_NavyAirEpoch.aip
I believe the "block?" value should be changed from "YES" to "NOTTECH". This way AI wouldn't block further actions when tech is unavailable.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
These users thanked the author Dr.MonaLisa for the post:
PaulStretch
PaulStretch
Posts: 112
Joined: 27 Jun 2021, 16:10
Has thanked: 45 times
Been thanked: 13 times

Re: Change AI build Order

Post by PaulStretch »

So I replaced every instance of "YES" with "NO" in:

Eco_expand
Mil_expand
Imp_Expand
default
Skirmish_default
agressive
passive

and the AI still won't build anything. The start pop is 20 and resources are on deathmatch so I no enough resources is the issue.

Added after 3 minutes 56 seconds:
I did It! I tested skirmish on a plains map instead of an islands map. I also need to edit the Navy files. Thanks for the insight as usual!
User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Change AI build Order

Post by Dr.MonaLisa »

Yes, but I would recommend to use NOTTECH thing instead of NO. I hate Aips modding as it's the most crashy thing in game.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
These users thanked the author Dr.MonaLisa for the post:
PaulStretch
PaulStretch
Posts: 112
Joined: 27 Jun 2021, 16:10
Has thanked: 45 times
Been thanked: 13 times

Re: Change AI build Order

Post by PaulStretch »

Good to know. Thanks.
Post Reply

Return to “Questions”