• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days. For more updates please see here.

How do I increase the max player limit on a huge map?

qovneob

Chieftain
Joined
Aug 19, 2012
Messages
2
I'm sure this has been asked before but I'm having trouble finding a solution.

I started creating a huge map (first mod attempt) but it gets locked in at 12 players. I've included all 22 civs in the Scenario Editor section of world builder and added enough random spawn points for them all. I've also tried editing the XML through modbuddy to increase the default player limit, specifically the <DefaultPlayers> value in this section:

<!-- Enter your Game Data here. -->
<!-- Increase Max Players -->
<Worlds>
<Row>
<Type>WORLDSIZE_HUGE</Type>
<Description>TXT_KEY_WORLD_HUGE</Description>
<Help>TXT_KEY_WORLD_HUGE_HELP</Help>
<DefaultPlayers>22</DefaultPlayers>
<DefaultMinorCivs>24</DefaultMinorCivs>
<GridWidth>128</GridWidth>
<GridHeight>80</GridHeight>
<FogTilesPerBarbarianCamp>35</FogTilesPerBarbarianCamp>
<NumNaturalWonders>7</NumNaturalWonders>
<UnitNameModifier>0</UnitNameModifier>
<TargetNumCities>6</TargetNumCities>
<NumFreeBuildingResources>7</NumFreeBuildingResources>
<BuildingClassPrereqModifier>100</BuildingClassPrereqModifier>
<MaxConscriptModifier>75</MaxConscriptModifier>
<TerrainGrainChange>1</TerrainGrainChange>
<FeatureGrainChange>1</FeatureGrainChange>
<ResearchPercent>130</ResearchPercent>
<NumCitiesUnhappinessPercent>60</NumCitiesUnhappinessPercent>
<NumCitiesPolicyCostMod>7.5</NumCitiesPolicyCostMod>
<AdvancedStartPointsMod>120</AdvancedStartPointsMod>
<IconAtlas>WORLDSIZE_ATLAS</IconAtlas>
<PortraitIndex>5</PortraitIndex>
</Row>
</Worlds>

Regardless, nothing seems to grant more than 12 players when setting up a single player game. Is there something I'm overlooking to allow this?
 
What do you mean by "editing the XML through modbuddy"? If you have created a mod, and put the above XML code in it, it won't work, because WORLDSIZE_HUGE already exists. For such simple changes, it's better to use <Update> tags to change only the things you need:

Code:
<GameData>
	<Worlds>
		<Update>
			<Set DefaultPlayers = "22"/>
			<Where Type = "WORLDSIZE_HUGE"/>
		</Update>
	</Worlds>
</GameData>
(untested code, but should work)


Btw, when starting a new single player game, you can add more AI players in the advanced setup using the "Add AI Player" button.
 
Thanks for the quick reply. I created a project in Modbuddy with just the map and additional XML data file. It works in game for loading the map but still defaults to 12 players. Adding extra AI works, but I wanted to make it default to something higher than 12.

I looked into the update tags (must have missed that in the tutorial), would this do it?

<Worlds>
<Update>
<Set DefaultPlayers="20"/>
<Where Type="WORLDSIZE_HUGE"/>
</Update>
</Worlds>

Edit, just saw your code update, thanks!!

Moderator Action: Moved to the main forum.
Because the maps subforum is only for maps, not for questions about maps ;).
 
Back
Top Bottom