What are the various map dimensions?

wolfensoul9

Warlord
Joined
May 9, 2012
Messages
255
Surprisingly, I can't seem to find this information. What are the various dimensions for the map sizes. Small, standard, huge, gigantic, etc?
 
The default values are in the CIV4WorldInfo.xml file in the GameInfo folder. The iGridWidth and iGridHeight are the width and height, but they are in "grid units" so to get the actual number of plots you have to multiply them by 4. The Standard map size is set to 21 by 13 grid units, which is 84 by 52 plots.

Any mapscript can override these defaults. Some do. In the map script you can to look for the getGridSize function to see if it redefines the WorldSizeTypes values. If the function does not exist in the file then it does not redefine the sizes. These are also in "grid units" so again, you have to multiply them by 4 to get the number of plots.
Example from C2C_PerfectMongoose_v310.py:
Code:
def getGridSize(argsList):
	grid_sizes = {
		WorldSizeTypes.WORLDSIZE_DUEL:		(12,	8),
		WorldSizeTypes.WORLDSIZE_TINY:		(15, 10),
		WorldSizeTypes.WORLDSIZE_SMALL:		(18, 12),
		WorldSizeTypes.WORLDSIZE_STANDARD:	(24, 16),
		WorldSizeTypes.WORLDSIZE_LARGE:		(30, 20),
		WorldSizeTypes.WORLDSIZE_HUGE:		(36, 24),
		6: (42, 28),
		7: (48, 32)
	}
	if (argsList[0] == -1): # (-1,) is passed to function on loads
			return []
	[eWorldSize] = argsList
	return grid_sizes[eWorldSize]

So for the C2C_PerfectMongoose_v310 maps a standard size map is 24 by 16 grid units or 96 by 64 plots. (So it is 12 larger in both directions than the default specifies.)
 
The default values are in the CIV4WorldInfo.xml file in the GameInfo folder. The iGridWidth and iGridHeight are the width and height, but they are in "grid units" so to get the actual number of plots you have to multiply them by 4. The Standard map size is set to 21 by 13 grid units, which is 84 by 52 plots.

Any mapscript can override these defaults. Some do. In the map script you can to look for the getGridSize function to see if it redefines the WorldSizeTypes values. If the function does not exist in the file then it does not redefine the sizes. These are also in "grid units" so again, you have to multiply them by 4 to get the number of plots.
Example from C2C_PerfectMongoose_v310.py:
Code:
def getGridSize(argsList):
	grid_sizes = {
		WorldSizeTypes.WORLDSIZE_DUEL:		(12,	8),
		WorldSizeTypes.WORLDSIZE_TINY:		(15, 10),
		WorldSizeTypes.WORLDSIZE_SMALL:		(18, 12),
		WorldSizeTypes.WORLDSIZE_STANDARD:	(24, 16),
		WorldSizeTypes.WORLDSIZE_LARGE:		(30, 20),
		WorldSizeTypes.WORLDSIZE_HUGE:		(36, 24),
		6: (42, 28),
		7: (48, 32)
	}
	if (argsList[0] == -1): # (-1,) is passed to function on loads
			return []
	[eWorldSize] = argsList
	return grid_sizes[eWorldSize]

So for the C2C_PerfectMongoose_v310 maps a standard size map is 24 by 16 grid units or 96 by 64 plots. (So it is 12 larger in both directions than the default specifies.)

So if one wanted to theoretically change the sizes of maps would anything else besides those numbers need to be adjusted? This coming from a person who knows next to no python.;)
 
In fact, if you look at the last vales in the code I quoted above you can see that for map size "7" (two past the end of the normal defined values, so 2 past Huge) the size is listed as 48 x 32 in grid units. This is 192 x 128 in plots. The exact dimensions asked about...
 
Top Bottom