Civilization VI is a simulated game which allow max to 12 AI/Players in multiplayer, if you want to learn how to add more than 12AI Slots, you’ve come right place.
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:
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);
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;
*NOTE: BE CAREFUL, REMEMBER THAT THIS METHOD IS COMPLETELY UNSUPPORTED AND MAY CAUSE CRASHES!