Out of the Park Developments Online Manuals
 
Title
KeyExisting Key New Key
Create as
Find in this manual
Case sensitive

Replace with
Hands-on: Cities
OK, next let's do a hands-on example to add a few cities to our new nation of Markusonia:

  1. Open cities.txt using a text editor.
  2. Scroll to the bottom of the file and create a new row at the bottom.
  3. Type the following in your new row: 'Markusonia, 5000000,'. This is creating a new city called Markusonia (the capital city of Markusonia), with a population of 5 million. Do not put any commas in the population even if the number is difficult to read! Doing so will cause the row not to work. Your new row should look like this so far:

    Markusonia,5000000,
  4. Type the following in your new row: '229,'. This is saying that Markusonia is a part of nation ID 229, which we identified as the nation of Markusonia in nations.txt. Your new row should look like this so far:

    Markusonia,5000000,229,
  5. Type the following in your new row: 'Markusonia'. This is saying that Markusonia is a part of the region called 'Markusonia,' (just like 'New York, New York'). Your new row should look like this so far:

    Markusonia,5000000,229,Markusonia
  6. Type the following in your new row: '-16.26,156.47'. This is saying that Markusonia is located at longitude -16.26, latitude 156.47. (Note that latitude and longitude can be negative numbers. A negative number for latitude means the location is south of the equator, such as in Australia. A negative number for longitude means the location is west of the Prime Meridian, such as in the United States.) Your row of data should now look like this:

    Markusonia,5000000,229,Markusonia,-16.26,156.47
  7. Repeat this process for as many cities as you want.
  8. Save and close the file. The next time you open OOTP, these new cities can be used for team and player origins.

Important Notes about Adding Cities
  • For each city, make sure that you have a nation in nations.txt with a matching nation ID. See Hands-on: Nations for an example of adding nations.
  • Do not use commas within any of the fields in the file, such as in the population.
  • Do not put spaces between fields of information.
  • Note that latitude and longitude can be negative numbers. A negative number for latitude means the location is south of the equator, such as in Australia. A negative number for longitude means the location is west of the Prime Meridian, such as in the United States.
  • You might find this site helpful for real-world latitudes and longitudes.
Previous page: Hands-on: Nations
Next page: Injuries