Before The Dawn
Chieftain
First: I'm totaly unable to learn python but I can change stuf If I know what to change and what to chage it to, the same goes for adding and removing stuff in .py scripts.
Second: Is there maby some freindly person that please could tell me what I need to change and/or add in this example of a Map Script:
To get a Map script that:
1) Doesn't contains any Ice, Snow, Tundra, Desert, Jungle and Peaks
or lets you choose what terrain types you wishes.
2) That allows bonuses even if the required terrain/feature type is missing
and an option to add bonuses on XX numbers of plots(ie. add bonuses on every single plot, on no plots at all, at half of the plots and so on).
3) That allows you to travel around the map(world) in every direction(is it called tel*something*????)
So what do you say? Know what I should change or add??
Using one of the existing scripts isn't an option since they contains alot of stuff I don't need.
Second: Is there maby some freindly person that please could tell me what I need to change and/or add in this example of a Map Script:
Code:
from CvPythonExtensions import *
import CvUtil
import CvMapGeneratorUtil
from CvMapGeneratorUtil import FractalWorld
from CvMapGeneratorUtil import TerrainGenerator
from CvMapGeneratorUtil import FeatureGenerator
def getDescription():
return "TXT_KEY_MAP_SCRIPT_FRACTAL_DESCR"
def isAdvancedMap():
"This map should show up in simple mode"
return 0
def generatePlotTypes():
NiTextOut("Setting Plot Types (Python Fractal) ...")
fractal_world = FractalWorld()
fractal_world.initFractal(rift_grain = -1, has_center_rift = False, polar = False)
return fractal_world.generatePlotTypes()
def generateTerrainTypes():
NiTextOut("Generating Terrain (Python Fractal) ...")
terraingen = TerrainGenerator()
terrainTypes = terraingen.generateTerrain()
return terrainTypes
def addFeatures():
NiTextOut("Adding Features (Python Fractal) ...")
featuregen = FeatureGenerator()
featuregen.addFeatures()
return 0
1) Doesn't contains any Ice, Snow, Tundra, Desert, Jungle and Peaks
or lets you choose what terrain types you wishes.
2) That allows bonuses even if the required terrain/feature type is missing
and an option to add bonuses on XX numbers of plots(ie. add bonuses on every single plot, on no plots at all, at half of the plots and so on).
3) That allows you to travel around the map(world) in every direction(is it called tel*something*????)
So what do you say? Know what I should change or add??
Using one of the existing scripts isn't an option since they contains alot of stuff I don't need.