Adding custom Company Name Lists[]
Adding custom Company Name Lists is achieved by adding a single content file to any mod. Since these lists are just content files (JSON) you can have any number of lists within a single mod as well as any other file you want.
For each list you add to a mod a new entry will appear in the Main Menu when creating a new map (for any game mode, Career, Sandbox or even Scenario creation). This new entry will appear as a possible selection in the AI Name Generator
world option. The asset type we are creating is of type ProjectAutomata.AiPlayerNameList, the docs for that type can be used as a reference when creating new lists.
Company names consist of two parts. One is the actual name and the other is a suffix. Suffixes from the list can be chosen at random.
Example[]
In this example, we will create a new Company Name List that will add a new list with some names of Western Companies.
- Create a new folder for your mod inside the Mods folder of the game and a desc.json for it (if you are not familiar with mods creation check out this article.)
- Inside the content folder of your mod add a JSON file named WesternAiNames.json
- Edit the new JSON file as follows:
{
"type": "ProjectAutomata.AiPlayerNameList",
"object": {
"name": "WesternAiNames", //name of the scriptable object that will be created
"displayName": "Western", //display name shown in main menu
"uiOrder": 500, //The lower the ordering the further left it will be displayed
"names": [
"Tough",
"Best",
"Seal The Deal",
"Eastern",
"Sky",
"Weston",
"Morgan",
"Wyatt",
"Handy",
"North",
"South",
"East",
"West",
"Old North",
"Old South",
"Old East",
"Old West",
"Arizona"
],
"suffixes": [
"Company",
"Palace",
"Trading",
"Bounty",
"Barter",
"Co",
"Pacific",
"Products",
"Ranch",
"Creek",
"Wells"
]
}
}
Now run the game, a new choice (Western) will be available when choosing which AI Name Generator
to use. Select Western and start map generation, when the world is ready you’ll see that other AI companies have western names.