The AI Parameters File (AIParams.csv) is stored in the \INI\ directory and contains the following sections:
Contents |
This determines the AI's sequence of building different classes of units when Ministers or AI Rulers use 'Autobuild' at military bases. Each cell refers to the Unit Class to be built, with the following values added to the class number to specify additional features:
There are three lines each for Land, Air, and Naval, with the first line of each group being Defense priority, the middle being mixed, and the last being Offense priority. This priority is set by the human player or the AI ruler.
For each Unit Class this provides the weighting of different specs to determine what unit should be built from the available designs.
As above except for this is for the production of missiles; the lines refer to the types of missile targets being prioritized.
This section specifies the units to be used by the AI or Minister to respond to situations and hotspots on the map. The lines, in order, represent the type of AI military request. The first ten of these are also an exact match to the Hotspot-Request types that the human player can issue; the last six are used by the AI only.
AI (both minister and AI-player) use only:
For each of those scenarios, the eight sets of three columns each give details on the types of units that should respond to the request. The second column (mtype) is 0/1/2 for land/air/sea, the third column is the unit class (infantry, tank etc) that should be called to respond.
The first number of each set is a little odd since it means different things for different types of units:
Each request has an importance attached to it by the AI (or the human in case of hotspots), which determines how many units will respond to a request; units are requested in column order, after all 8 columns are done it loops back to column 1.
Note: the contents of the AIParams file were edited and updated as part of Update3, so when modding it make sure you start from the latest version.