primordial stew
Emperor
Does anyone happen to have something which dumps the contents of the map to a text file?
I need to dump improvements (mines, roads, etc..), units, and cities along with their contents (buildings, culture). I have a bunch of cities, etc on the map currently, but the future of this approach is too much work. So I want to dump it to text, clear it off, and then create the scenario specific elements during initialization. The base map will only have the terrain and resources. This map will support 4 different scenarios.
civIII + civIV had text maps, so using a text editor one could make substantial changes very quickly. Now in civ5 it's binary. The map is slow to load, and has no "search + replace" functions. With text I can quickly change the unit type (or delete all units), or civID to be appropriate, but with binary it's a major rework each time.
I've got the lua to load different code depending on the scenario name, just need stuff to load! Dumping the existing contents will be a great start.
I need to dump improvements (mines, roads, etc..), units, and cities along with their contents (buildings, culture). I have a bunch of cities, etc on the map currently, but the future of this approach is too much work. So I want to dump it to text, clear it off, and then create the scenario specific elements during initialization. The base map will only have the terrain and resources. This map will support 4 different scenarios.
civIII + civIV had text maps, so using a text editor one could make substantial changes very quickly. Now in civ5 it's binary. The map is slow to load, and has no "search + replace" functions. With text I can quickly change the unit type (or delete all units), or civID to be appropriate, but with binary it's a major rework each time.
I've got the lua to load different code depending on the scenario name, just need stuff to load! Dumping the existing contents will be a great start.