Linkman226
#anarchy
- Joined
- Sep 14, 2007
- Messages
- 2,493
Without further ado, I am releasing my Stability BMP Generator. Two examples of maps it generated, both from Synthesis:
Currently this has been tested to work for these mods:
Because the actual coding changes between mods, the script may not work in all scenarios. Feel free to try it for your mod. If it works, let me know; if not, also let me know. I'll work on figuring out why and expanding the breadth of this script's scope.
A small caveat: You need to download some stuff for it to work. I am working on an executable file but it's not done yet. You can wait for a few days if you so desire, it should be out by them. Tops, a week. That won't require an additional downloads.
Installation instructions:
1. Download Python 2.7 or later on to your system.
2. Download pygtk.
3. Download PIL.
4. Finally, download the zip in the download link below. Unzip wherever your heart desires.
5. To run the script, double-click on 'Generate.py'.
When you run the script, the following should happen:
First the black command prompt will pop up. The process is underway. If it pops up but then suddenly disappears, something is wrong. Post your problem here.
Then a window should pop up after some seconds looking something like this:
Follow the directions. An example is given above. When you're ready, click 'Generate.' The window may freeze up and claim to be Not Responding, especially on a slower computer. If it does go into 'Not Responding' mode, ignore the window for a few seconds, don't click it or anything, or it may just crash. It's just processing, that's all. After a few seconds it will close along with the command prompt. Your picture is ready. Check the directory which you selected as the target.
Fortunately, you cannot also configure some options in Config.ini. Want a .GIF instead, for example? Or a different-size image? Check out Config.ini. Here's the full list of options and what they do:
[MULTIPLIERS]
X-MULTIPLIER=4
Y-MULTIPLIER=4
These are the multipliers to expand the image. Initially the script creates an image where each plot is one pixel, and then expands the X and Y according to these specifications. Four and four produce images of approximately equal size to the ones Rhye produce (off by a handful of pixels).
[COLORS]
;R,G,B format
OCEAN = 0, 0, 200
PEAK = 64 ,32, 16
CORE = 0, 155, 0
HISTORICAL = 0, 255, 0
HISTORICALOTHERCORE = 255, 255, 0
AHISTORICAL = 255, 155, 0
AHISTORICALOTHERCORE = 255, 0, 0
These denote the colors for each type of plot, depending on stability/ terrain. They are in standard RGB format, separated by commas. The colors selected as the default were the ones used in Rhye's original maps.
[MISC]
HASREBORNDIM=True ;accepts '1', 'yes', 'on' for true and '0', 'no', 'false', 'off' for false (case-insensitive)
Ignore this for now
EXT = .BMP
The format in which the image should be saved. All standard image formats can be used
Download Here- V .03
Spoiler :
Currently this has been tested to work for these mods:
Spoiler Compatible Mods :
- RFC Synthesis
- RFC Dawn of Civilization
Because the actual coding changes between mods, the script may not work in all scenarios. Feel free to try it for your mod. If it works, let me know; if not, also let me know. I'll work on figuring out why and expanding the breadth of this script's scope.
A small caveat: You need to download some stuff for it to work. I am working on an executable file but it's not done yet. You can wait for a few days if you so desire, it should be out by them. Tops, a week. That won't require an additional downloads.
Installation instructions:
1. Download Python 2.7 or later on to your system.
2. Download pygtk.
3. Download PIL.
4. Finally, download the zip in the download link below. Unzip wherever your heart desires.
5. To run the script, double-click on 'Generate.py'.
When you run the script, the following should happen:
First the black command prompt will pop up. The process is underway. If it pops up but then suddenly disappears, something is wrong. Post your problem here.
Then a window should pop up after some seconds looking something like this:
Follow the directions. An example is given above. When you're ready, click 'Generate.' The window may freeze up and claim to be Not Responding, especially on a slower computer. If it does go into 'Not Responding' mode, ignore the window for a few seconds, don't click it or anything, or it may just crash. It's just processing, that's all. After a few seconds it will close along with the command prompt. Your picture is ready. Check the directory which you selected as the target.
Fortunately, you cannot also configure some options in Config.ini. Want a .GIF instead, for example? Or a different-size image? Check out Config.ini. Here's the full list of options and what they do:
Spoiler ini Options :
[MULTIPLIERS]
X-MULTIPLIER=4
Y-MULTIPLIER=4
These are the multipliers to expand the image. Initially the script creates an image where each plot is one pixel, and then expands the X and Y according to these specifications. Four and four produce images of approximately equal size to the ones Rhye produce (off by a handful of pixels).
[COLORS]
;R,G,B format
OCEAN = 0, 0, 200
PEAK = 64 ,32, 16
CORE = 0, 155, 0
HISTORICAL = 0, 255, 0
HISTORICALOTHERCORE = 255, 255, 0
AHISTORICAL = 255, 155, 0
AHISTORICALOTHERCORE = 255, 0, 0
These denote the colors for each type of plot, depending on stability/ terrain. They are in standard RGB format, separated by commas. The colors selected as the default were the ones used in Rhye's original maps.
[MISC]
HASREBORNDIM=True ;accepts '1', 'yes', 'on' for true and '0', 'no', 'false', 'off' for false (case-insensitive)
Ignore this for now
EXT = .BMP
The format in which the image should be saved. All standard image formats can be used
Download Here- V .03