|
||||
|
![]() |
#1 |
Minors (Double A)
Join Date: May 2002
Location: Granby, CT
Posts: 127
|
Automated World.XML creation
I'm putting the finishing touches on a python script that generates the OOTP World.XML file from the data available at geonames.org. I think that site was probably the origin of the existing data in the game, but the world file has fallen out-of-date and has some fairly big errors in it.
I have replaced all the existing ids for continents/nations/states/cities with the geonameid. That means the generated files probably won't work with saved games. On the other hand, it makes it very easy to maintain going forward as the file can be updated programatically and the ids will remain the same. It also makes it easy to do things like turn states into countries: either for all nations, some nations, or just specific states. I can also specify which nations should have states and which level of administrative unit to use—so if I want a world where the U.S is divided into counties rather than states i can do that. |
![]() |
![]() |
![]() |
#2 |
Hall Of Famer
Join Date: Jun 2003
Posts: 8,659
|
Amazing work!
__________________
------ My Mods Managerial Strategy Pack Competitive Balance Tax Calculator Major League Women's Baseball (OOTP24) quickstart Indian Premier League | 300+ years of baseball quickstart | Expatriate League quickstart | Off-Field Injuries Update | Women's Name File for OOTP | ---- Dynasty classics: Centurion comes to OOTP5 | DC Moneyball Dynasty (2004) |
![]() |
![]() |
![]() |
#3 |
Hall Of Famer
Join Date: Nov 2005
Posts: 3,072
Infractions: 1/1 (1)
|
I would absolutely be interested in file that adjusts U.S. states to be nations.
|
![]() |
![]() |
![]() |
#4 |
Major Leagues
Join Date: Aug 2019
Posts: 316
|
update?
|
![]() |
![]() |
![]() |
#5 |
All Star Starter
Join Date: Dec 2005
Location: Los Angeles
Posts: 1,164
|
Would love to see the script! Sounds awesome!
__________________
MySQL, MyStruggle - A self-indulgent blog about my attempts to roll my own MySQL Database with OOTP Logo Gallery |
![]() |
![]() |
![]() |
Bookmarks |
|
|