Difference between revisions of "AI War 2:Defining your own planet names"

From Arcen Wiki
Jump to navigation Jump to search
(Created page with "To set up your own file of planet names, you need to change two files in the XML. You need to create a directory and then put the files in the directory. Then you need to tel...")
 
Line 11: Line 11:
 
           description="Some new planet names from a modder. Text within these quotes is shown to the user when they hover over the option in the map lobby." />   
 
           description="Some new planet names from a modder. Text within these quotes is shown to the user when they hover over the option in the map lobby." />   
 
'''
 
'''
 +
 +
 +
* Note that it's possible to just change the contents of one of the existing txt files in PlanetNames, but those changes will be overridden the next time Steam updates things, so its safest to define your own

Revision as of 15:03, 16 October 2019

To set up your own file of planet names, you need to change two files in the XML.

You need to create a directory and then put the files in the directory. Then you need to tell the game to look at the directory. These instructions assume you have the game installed at ~/AIWar2 (you might instead have it installed at C:\ProgramFiles\Steam\AIWar2 or something like that, the procedure is the same).

  • First go to ~/AIWar2/GameData/Configuration. This is the base directory with all the XML data contained in various subdirectories. We are interested in the PlanetNames directory. In this directory you will see a bunch of directories for existing sets of planet names; Kahuna's Real Stars, Cities_UK, etc... You want to create your own directory (lets say NewPlanetNames), then create a file called NewPlanetNames.txt inside it. Put your planet names in that text file, one planet name per line.
  • Then you need to tell the game to look at NewPlanetNames when reading the XML. Go to ~/AIWar2/GameData/Configuration/PlanetNameType and open the file CMP_PlanetNameType.xml. You'll see a number of entries, one for each of the sub directories in the PlanetName directory.
    • Create a new entry that looks like

 <planet_name_type name="NewPlanetNames" display_name="New Planet Names (the display name is the name the Game shows" subdir="New Planet Names"                                                                                                                                                                                                                      
         description="Some new planet names from a modder. Text within these quotes is shown to the user when they hover over the option in the map lobby." />  


  • Note that it's possible to just change the contents of one of the existing txt files in PlanetNames, but those changes will be overridden the next time Steam updates things, so its safest to define your own