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.
|