orlanth
Storm God. Yarr!
- Joined
- Nov 17, 2001
- Messages
- 1,805
Ok, thanks for your help platy!
I tried what you suggested placing that code in def initFractals(self) in Planets.py , but it crashes during map generation (the python exception before crashing is "no starting plot for player").
I think the terrain types need to be declared inside the loop in Planets.py where it iterates through each planet; but it only sets the plottypes there. It looks like the terrain types are set separately by TerrainGenerator in CvMapGeneratorUtil.py, but I'm not sure how to let this access what planet type was created during the loop in Planets.py.
I've also tried it an alternate way where I instead add your terrain definitions (the code chunk from iType = CyGame().getSorenRandNum(100, "Choose Planet Type") and below) inside the loop in Planets.py that generates planets, but this is also giving the same crash.
I tried what you suggested placing that code in def initFractals(self) in Planets.py , but it crashes during map generation (the python exception before crashing is "no starting plot for player").
I think the terrain types need to be declared inside the loop in Planets.py where it iterates through each planet; but it only sets the plottypes there. It looks like the terrain types are set separately by TerrainGenerator in CvMapGeneratorUtil.py, but I'm not sure how to let this access what planet type was created during the loop in Planets.py.
I've also tried it an alternate way where I instead add your terrain definitions (the code chunk from iType = CyGame().getSorenRandNum(100, "Choose Planet Type") and below) inside the loop in Planets.py that generates planets, but this is also giving the same crash.