DoC Stability Map Creator

Leoreth

Bofurin
Retired Moderator
Joined
Aug 23, 2009
Messages
38,062
Location
風鈴高等学校
If you want to use the stability map creator, here it is. Unfortunately it doesn't entirely work from inside the game, so you will have to install Python separately.

Installation Instructions:

1) Download the archive and unpack it somewhere. Remember the location.
2) Copy the MapDrawer.py file into the RFC Dawn of Civilization\Assets\Python folder
3) Open MapDrawer.py and set IMAGE_LOCATION to where you unpacked the archive.

4) Install Python on your computer (e.g. from here, I recommend 2.7.8)
5) Download and install the Pillow package for Python (e.g. from here)

Usage Instructions

1) Enter the game as any civilization.
2) Open the Python console ("shift" + "~")
3) Enter "import MapDrawer as md"
4) Enter "md.createMaps()"
5) The console should confirm with "Maps Created". You're done in the game.

6) Open the windows command line interface.
7) Navigate to the folder you unpacked the archive to.
8) Enter "python DrawStability.py"
9) The interface should confirm the creation of every map. The maps will be in the Maps folder.
 

Attachments

Sorry for the delay, didn't have the time before to try it for myself. But it still works even after I download the folder to another location.

Are you sure the file path you've entered is correct? Looking at the error message, the "x02K Games" part seems to be the cause of the problem. To make things easier, you can always right-click on the current path in Explorer and use "copy path as text" or similar. Pasting that into the Python file should point to the right location.
 
Sorry for the delay, didn't have the time before to try it for myself. But it still works even after I download the folder to another location.

Are you sure the file path you've entered is correct? Looking at the error message, the "x02K Games" part seems to be the cause of the problem. To make things easier, you can always right-click on the current path in Explorer and use "copy path as text" or similar. Pasting that into the Python file should point to the right location.

I did the copy-paste trick. I changed to folder location, but that didn't work. Same error. And no strange x02K Games things or something like that.

Code:
IMAGE_LOCATION = "D:\Documents\My Games\Beyond the Sword\Dawn of Civ Maps\Dawn of Civ Maps"
 
Dawn of Civ maps twice, is that correct?

Otherwise no idea, maybe insufficient privileges?
 
Great!
 
Update: re-uploaded the archive to correct a minor bug (when a respawn uses another civ's slot, the core of the respawn showed up as their extended core).
 
Quick question: when does China's core extend to the south? And does it shrink in the north at the mean time?
 
When they respawn after the Mongol spawn. And no.
 
Back
Top Bottom