ColdWarKid
Chieftain
When editing map sizes in Terra.py there was no change in the map generated. By looking at other maps I have noticed getGridSize() is missing some additional lines of code.
Terra.py
Oasis.py
Once the following lines are added Terra.py works as it should.
Terra.py
Code:
def getGridSize(argsList):
"Enlarge the grids! According to Soren, Earth-type maps are usually huge anyway."
grid_sizes = {
WorldSizeTypes.WORLDSIZE_DUEL: (13,8),
WorldSizeTypes.WORLDSIZE_TINY: (16,10),
WorldSizeTypes.WORLDSIZE_SMALL: (21,13),
WorldSizeTypes.WORLDSIZE_STANDARD: (26,16),
WorldSizeTypes.WORLDSIZE_LARGE: (32,20),
WorldSizeTypes.WORLDSIZE_HUGE: (38,24)
}
Oasis.py
Code:
def getGridSize(argsList):
# Grid sizes reduced. Smaller maps reduced two steps. Larger maps reduced one and a half steps.
grid_sizes = {
WorldSizeTypes.WORLDSIZE_DUEL: (6,4),
WorldSizeTypes.WORLDSIZE_TINY: (8,5),
WorldSizeTypes.WORLDSIZE_SMALL: (10,6),
WorldSizeTypes.WORLDSIZE_STANDARD: (14,9),
WorldSizeTypes.WORLDSIZE_LARGE: (18,11),
WorldSizeTypes.WORLDSIZE_HUGE: (23,14)
}
if (argsList[0] == -1): # (-1,) is passed to function on loads
return []
[eWorldSize] = argsList
return grid_sizes[eWorldSize]
Once the following lines are added Terra.py works as it should.
Code:
if (argsList[0] == -1): # (-1,) is passed to function on loads
return []
[eWorldSize] = argsList
return grid_sizes[eWorldSize]