Is it possible to increase the max # of civs allowed in a game?

Only with DLL access. A lot of the game's core (C++) functions rely on the game knowing the maximum amount of players possible (in Civ5, it was 22 for max total major civs and 64 for max total civs of any type IIRC), and although this can be changed with DLL access, it is also a hard-set #define limit, meaning it cannot be modified in any way once the DLL is compiled.
 
I don't know how it happens but while trying to mod GlobalDefines.xml I screwed something up and I started as Polystralia and then a second Polystralia showed up. So multiple identical leaders is possible if that's something you're after. Still don't know how though.
 
Looks like the map size will define maximum number of civs. With a small map you can add up to 8 AIs (for total of 9 players) using the Advanced Setup. You can go to 12 players total on a standard map.

Here is the content of the Worlds table
Spoiler :
ID|Type|Description|Help|GridWidth|GridHeight|DefaultPlayers|TargetNumCities|EstimatedNumCities|TerrainGrainChange|FeatureGrainChange|NumCitiesUnhealthPercent|NumCitiesPolicyCostMod|NumCitiesTechCostMod|PortraitIndex|IconAtlas
0|WORLDSIZE_DUEL|TXT_KEY_WORLD_DUEL|TXT_KEY_WORLD_DUEL_HELP|40|24|2|4|13|-1|-1|100|10|5|0|WORLDSIZE_ATLAS
1|WORLDSIZE_TINY|TXT_KEY_WORLD_TINY|TXT_KEY_WORLD_TINY_HELP|56|36|4|4|26|-1|-1|100|10|5|1|WORLDSIZE_ATLAS
2|WORLDSIZE_SMALL|TXT_KEY_WORLD_SMALL|TXT_KEY_WORLD_SMALL_HELP|66|42|6|5|39|0|0|100|10|5|2|WORLDSIZE_ATLAS
3|WORLDSIZE_STANDARD|TXT_KEY_WORLD_STANDARD|TXT_KEY_WORLD_STANDARD_HELP|80|52|8|5|52|0|0|100|10|5|3|WORLDSIZE_ATLAS
4|WORLDSIZE_LARGE|TXT_KEY_WORLD_LARGE|TXT_KEY_WORLD_LARGE_HELP|104|64|8|6|80|1|1|80|7.5|3.75|4|WORLDSIZE_ATLAS
Additionally AdvancedSetup.lua defines maxPlayers as follow
Code:
maxPlayers = defaultPlayers + math.floor(defaultPlayers * 0.5)
So if you want to change the default number of civs you need to change DefaultPlayers in the Worlds table. It should change both the number of AIs added by normal setup and the max number of civs in advanced setup (that will be 1.5* DefaultPlayers). Of course you will have duplicate civs unless you have some civs from a mod.
 
This thread is a little nugget of gold, this was in the back of my mind as there are potentially 131 Houses I could build for my Dune mod...I would never go that far though...Or would I.........

Thanks for asking the question waves_blade and thanks to everyone who provided info. :)
 
Back
Top Bottom