platyping
Sleeping Dragon
Standalone is outdated and no longer supported.
But the initial era limit should be defined in the ini section.
Self.ihideera
But the initial era limit should be defined in the ini section.
Self.ihideera
So, I managed to add the worldbuilder into Dune Wars. The only thing to do in relation to BUG is to make the python widgets work normally by tweaking WidgetUtils and that's it.
def initFractals(self):
self.deserts.fracInit(self.iWidth, self.iHeight, self.grain_amount, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
self.iDesertTop = self.deserts.getHeightFromPercent(self.iDesertTopPercent)
self.iDesertBottom = self.deserts.getHeightFromPercent(self.iDesertBottomPercent)
self.plains.fracInit(self.iWidth, self.iHeight, self.grain_amount+1, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
self.iPlainsTop = self.plains.getHeightFromPercent(self.iPlainsTopPercent)
self.iPlainsBottom = self.plains.getHeightFromPercent(self.iPlainsBottomPercent)
self.marsh.fracInit(self.iWidth, self.iHeight, self.grain_amount, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
self.iMarshTop = self.marsh.getHeightFromPercent(self.iMarshTopPercent)
self.iMarshBottom = self.marsh.getHeightFromPercent(self.iMarshBottomPercent)
self.tundra.fracInit(self.iWidth, self.iHeight, self.grain_amount, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
self.iTundraTop = self.tundra.getHeightFromPercent(self.iMarshTopPercent)
self.iTundraBottom = self.tundra.getHeightFromPercent(self.iMarshBottomPercent)
self.variation.fracInit(self.iWidth, self.iHeight, self.grain_amount, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
iType = CyGame().getSorenRandNum(100, "Choose Planet Type")
if iType < 20:
self.terrainDesert = self.gc.getInfoTypeForString("TERRAIN_DESERT")
self.terrainPlains = self.gc.getInfoTypeForString("TERRAIN_PLAINS")
self.terrainIce = self.gc.getInfoTypeForString("TERRAIN_SNOW")
self.terrainTundra = self.gc.getInfoTypeForString("TERRAIN_TUNDRA")
self.terrainGrass = self.gc.getInfoTypeForString("TERRAIN_GRASS")
self.terrainMarsh = self.gc.getInfoTypeForString("TERRAIN_MARSH")
else:
self.terrainDesert = self.gc.getInfoTypeForString("TERRAIN_DESERT_WET")
self.terrainPlains = self.gc.getInfoTypeForString("TERRAIN_PLAINS_WET")
self.terrainIce = self.gc.getInfoTypeForString("TERRAIN_SNOW_WET")
self.terrainTundra = self.gc.getInfoTypeForString("TERRAIN_TUNDRA_WET")
self.terrainGrass = self.gc.getInfoTypeForString("TERRAIN_GRASS_WET")
self.terrainMarsh = self.gc.getInfoTypeForString("TERRAIN_MARSH_WET")