modding terra.py

69king

Chieftain
Joined
Oct 26, 2005
Messages
69
I would like to mod the Terra file so that the civs are randomly distributed rather than all being in the "Old World"

I have located these sections:

Code:
def minStartingDistanceModifier():
	return -20

def findStartingPlot(argsList):
	[playerID] = argsList

	def isValid(playerID, x, y):
		map = CyMap()
		pPlot = map.plot(x, y)
		
		if (pPlot.getArea() != map.findBiggestArea(False).getID()):
			return False

		return True
	
	return CvMapGeneratorUtil.findStartingPlot(playerID, isValid)

I believe the findStartingPlot determines the "Old World" Continent so I would remove that entire function. I haven't seen anything similar in any other map.py files anyway.

I'm thinking I could remove the startingDistanceModifier as well or increase it to maybe 40. Does anyone know what that number means in terms of grid spaces?

I would play with 8-10 civs so on the Huge Terra map I could have a fairly large starting distance.

Any ideas, comments?
 
Looks like this part is what actually determines which landmass the players start on:
Code:
if (pPlot.getArea() != map.findBiggestArea(False).getID()):
	return False
If you remove THOSE it should distribute players on both continents.

MinStartingDistance of -20 I'm not sure the exact effects of - I do know it determines how much space is between each player's start. You can try increasing or decreasing the number and seeing how close together or far apart it puts players.
 
Back
Top Bottom