Campaign creation guide Part 2 (Adding Custom Army lists)
Posted: Fri Dec 01, 2017 11:55 am
You can easily add custom army lists to your campaigns.
First look in your main game build for /CORE/ArmyList.txt
Copy ArmyList.txt to the main folder of your custom campaign. (Not a /CORE subfolder).
You can add new custom army lists to the end of this file and they will work in your campaign. (Always add them at the end - inserting them will invalidate previous saves of the campaign by altering the army list references in the saved campaign game).
Find the list that is closest to the composition of your custom list and make a copy of it at the end of the file. Then change its "chunk-name" etc. as detailed below. Note that everything after "//" is a comment and is not part of the actual list.
Lists are in the following format:
[EC_INDIAN] // This is the "chunk-name" and is the internal name of the list. All of the lists in the file must have different names. They cannot contain spaces (use underscores), and cannot be too long (not sure what the length limit is).
SIDEID 17 // This is the nationality. You can find the list in /Data/Text/Text2.txt under IDS_SIDENAME.... You can add your own by putting an appropriately numbered IDS_SIDENAME... string in your text1.txt. You can re-use one of the existing side numbers in your campaign. If so, pick one that you won't need in the campaign and which uses the banner type you want.
NAME IDS_ARMY_EC_INDIAN // This is the string holding the army list display name. It should be IDS_ARMY_ plus the chunk name. You put this tag and the string to go with it in your text1.txt file.
YEARS 2500 3319 // Note start era from 3000 BC
DEPLOYMENT Hellenistic // Deployment type can be Roman, Hellenistic or Skythian
CODE 0 // DO NOT ALTER THIS OR REMOVE IT FROM YOUR CUSTOM LIST
LONGMIN 63 // Minimum longitude of historical army territory
LONGMAX 94 // Maximum longitude of historical army territory
LATMIN 5 // Minimum latitude of historical army territory
LATMAX 35 // Maximum latitude of historical army territory
INTRO IDS_ARMY_INTRO_INDIAN // Army list intro string - needs to go in your text1.txt
SORTNAME Indian // Used in sandbox campaign to sort the list of army lists
MAPSET Tropical // MAPSET must be Medi, North, MidEast, Steppe, Desert or Tropical
//The following hold the details of the units in the army. They must be numbered consecutively, starting from 0.
UNIT_0 Indian_Elephants // This is the name of the unit from column A of the squads file
MIN_0 2 // Minimum number of units for 2000 point army
MAX_0 11 // Maximum number of units for 2000 point army
UNIT_1 Indian_H_Chariots
MIN_1 0
MAX_1 3
UNIT_2 Indian_L_Chariots
MIN_2 2
MAX_2 5
UNIT_3 Indian_Cavalry
MIN_3 2
MAX_3 9
UNIT_4 Indian_Archers
MIN_4 7
MAX_4 30
UNIT_5 Indian_Javelinmen
MIN_5 2
MAX_5 10
UNIT_6 Nomad_LH
MIN_6 0
MAX_6 3
UNIT_7 Indian_Light_Archers
MIN_7 0
MAX_7 3
UNIT_8 Heavy_Artillery
MIN_8 0
MAX_8 1
UNIT_9 Light_Artillery
MIN_9 0
MAX_9 1
You should ensure that the total points value of the maximum number of units in the army adds up to around 3000 points to ensure reasonable choice.
And that's all there is to it.
You can find the Squads file in /Data in the main game build. It you want to mod it, you can copy it to the main folder of your custom campaign . (Not the /DATA sub-folder).
Squads.csv is the version actually used by the game. Squads.xlsx is useful for the the formatting - if you edit that and save it, you can also save a copy in .csv format.
--------------------------
You can find some examples of custom lists at the end of the ArmyList.txt file in the SeleukosICampaign in Immortal Fire when it is released.
---------------------------
VERY IMPORTANT
If you are planning for your army lists to be used in MP, make sure you have the word
REPLACE
above the [POTLUCK] line in your army list.
Otherwise the wrong army list names will be displayed in the challenge list, and possibly other strange things may occur.
First look in your main game build for /CORE/ArmyList.txt
Copy ArmyList.txt to the main folder of your custom campaign. (Not a /CORE subfolder).
You can add new custom army lists to the end of this file and they will work in your campaign. (Always add them at the end - inserting them will invalidate previous saves of the campaign by altering the army list references in the saved campaign game).
Find the list that is closest to the composition of your custom list and make a copy of it at the end of the file. Then change its "chunk-name" etc. as detailed below. Note that everything after "//" is a comment and is not part of the actual list.
Lists are in the following format:
[EC_INDIAN] // This is the "chunk-name" and is the internal name of the list. All of the lists in the file must have different names. They cannot contain spaces (use underscores), and cannot be too long (not sure what the length limit is).
SIDEID 17 // This is the nationality. You can find the list in /Data/Text/Text2.txt under IDS_SIDENAME.... You can add your own by putting an appropriately numbered IDS_SIDENAME... string in your text1.txt. You can re-use one of the existing side numbers in your campaign. If so, pick one that you won't need in the campaign and which uses the banner type you want.
NAME IDS_ARMY_EC_INDIAN // This is the string holding the army list display name. It should be IDS_ARMY_ plus the chunk name. You put this tag and the string to go with it in your text1.txt file.
YEARS 2500 3319 // Note start era from 3000 BC
DEPLOYMENT Hellenistic // Deployment type can be Roman, Hellenistic or Skythian
CODE 0 // DO NOT ALTER THIS OR REMOVE IT FROM YOUR CUSTOM LIST
LONGMIN 63 // Minimum longitude of historical army territory
LONGMAX 94 // Maximum longitude of historical army territory
LATMIN 5 // Minimum latitude of historical army territory
LATMAX 35 // Maximum latitude of historical army territory
INTRO IDS_ARMY_INTRO_INDIAN // Army list intro string - needs to go in your text1.txt
SORTNAME Indian // Used in sandbox campaign to sort the list of army lists
MAPSET Tropical // MAPSET must be Medi, North, MidEast, Steppe, Desert or Tropical
//The following hold the details of the units in the army. They must be numbered consecutively, starting from 0.
UNIT_0 Indian_Elephants // This is the name of the unit from column A of the squads file
MIN_0 2 // Minimum number of units for 2000 point army
MAX_0 11 // Maximum number of units for 2000 point army
UNIT_1 Indian_H_Chariots
MIN_1 0
MAX_1 3
UNIT_2 Indian_L_Chariots
MIN_2 2
MAX_2 5
UNIT_3 Indian_Cavalry
MIN_3 2
MAX_3 9
UNIT_4 Indian_Archers
MIN_4 7
MAX_4 30
UNIT_5 Indian_Javelinmen
MIN_5 2
MAX_5 10
UNIT_6 Nomad_LH
MIN_6 0
MAX_6 3
UNIT_7 Indian_Light_Archers
MIN_7 0
MAX_7 3
UNIT_8 Heavy_Artillery
MIN_8 0
MAX_8 1
UNIT_9 Light_Artillery
MIN_9 0
MAX_9 1
You should ensure that the total points value of the maximum number of units in the army adds up to around 3000 points to ensure reasonable choice.
And that's all there is to it.
You can find the Squads file in /Data in the main game build. It you want to mod it, you can copy it to the main folder of your custom campaign . (Not the /DATA sub-folder).
Squads.csv is the version actually used by the game. Squads.xlsx is useful for the the formatting - if you edit that and save it, you can also save a copy in .csv format.
--------------------------
You can find some examples of custom lists at the end of the ArmyList.txt file in the SeleukosICampaign in Immortal Fire when it is released.
---------------------------
VERY IMPORTANT
If you are planning for your army lists to be used in MP, make sure you have the word
REPLACE
above the [POTLUCK] line in your army list.
Otherwise the wrong army list names will be displayed in the challenge list, and possibly other strange things may occur.