Sid Meier's Civilization VI

Sid Meier's Civilization VI

Not enough ratings
How to add more than 12 AI slots in multiplayer
By Kaito-san
Quick guide that allows you to add more than 12 AI (maybe also player?) slots in multiplayer.
   
Award
Favorite
Favorited
Unfavorite
Credits
I was trying to find how to do this in Civ 6 and I stumbled upon this post on CivFanatics. I'm just reuploading it here in case someone is interested in doing this.

Click to view original post[forums.civfanatics.com]
The Juicy Stuff
REMEMBER THAT THIS METHOD IS COMPLETELY UNSUPPORTED AND MAY CAUSE CRASHES!

Find and open StagingRoom.lua in "..Steam\steamapps\common\Sid Meier's Civilization VI\Base\Assets\UI\FrontEnd\Multiplayer"

Of course you should make a copy of that file before editing, but if something goes bad, you can use steam to restore the file.

Find and change the "12" value to what you want in this line:

Line 91

local MAX_EVER_PLAYERS : number = 12; -- hardwired max possible players in multiplayer, determined by how many players

then change line 1802 (they forgot to edit that one) from
g_currentMaxPlayers = math.min(MapConfiguration.GetMaxMajorPlayers(), 12);
to
g_currentMaxPlayers = math.min(MapConfiguration.GetMaxMajorPlayers(),MAX_EVER_PLAYERS);

Now the limit is dependant of the map size, note that you can just search and change every lines with g_currentMaxPlayers (that's 13 lines) to, for an extreme example, something like that if you don't want to care about the map's own limit:
g_currentMaxPlayers = 60;

AGAIN, I'M ONLY REUPLOADING THIS METHOD HERE FOR THE SAKE OF CONVENIENCE!