Find in this manual | ||
Replace with |
The Cities File
Cities.txt is a list of almost 90,000 real-world cities, including almost every city in the world with a population of greater than 1,000. It is located in the datadatabase directory in your OOTP installation directory. Just like nations.txt, the cities file is comma-separated. See About Comma-Separated Files for more information about comma-separated files. If you're using Microsoft Excel, pay special attention to this section.
Changes to cities.txt will affect every saved game that you create going forward after the change. There is not currently any way to modify cities for an existing saved game.
Cities.txt stores 6 pieces of data for each city, as follows. All fields in cities.txt are required:
Baltimore,610892,206,Maryland,39.3,-76.61
Here's what this line means in plain English:
Changes to cities.txt will affect every saved game that you create going forward after the change. There is not currently any way to modify cities for an existing saved game.
Cities.txt stores 6 pieces of data for each city, as follows. All fields in cities.txt are required:
Field # | Req'd | Value | Description | Used in... |
1 | Yes | City Name | Name of the city | Player origins, team locations |
2 | Yes | Population | Population of the city | Determining likelihood of a teams and players being created in that city. Note that city populations do not change over time. |
3 | Yes | Nation ID | Numeric ID for the city's nation. This corresponds to the nation ID in the nations.txt file. | Â |
4 | Yes | Region/State | Name of the region or state in which the city is located | Player origins, team locations |
5 | Yes | City Latitude | The latitude of the city | Used in contract negotiations, when a player is deciding whether the team offering a contract is close enough to the player's home. |
6 | Yes | City Longitude | The longitude of the city | Used in contract negotiations, when a player is deciding whether the team offering a contract is close enough to the player's home |
One-Row Example of Cities.txt
Let's look at an example of a line from cities.txt:Baltimore,610892,206,Maryland,39.3,-76.61
Here's what this line means in plain English:
- The city name is "Baltimore."
- The population of the city is 610,892.
- The city is a part of nation 206, which is the United States, according to nations.txt.
- The city is a part of the state Maryland.
- The city is located at longitude 39.3, latitude -76.61.