Joszs
Chieftain
- Joined
- Oct 27, 2016
- Messages
- 5
Hi Modders,
I created a simple fix which raises the number of max players for each map to 20. It works when I just modify it in the civilization 6 source code. But when I add the same overwrite as a mod it doesn't work. I think that the system cannot find the file which needs to be overwritten, the mod is loaded when a map is started instead of when the menu is started or that the vanilla configuration overwrites the mod. The vanilla file can be found in Assets\Configuration\Data\MapSizes.xml and contains the following code:
My Mod is called MaxPlayers and has the following modinfo file:
The Data/MaxPlayers_MapSizes.xml file consists of the following code:
When I start up the game the Mod is found and is turned on. Does someone know what causes the Mod not to work?
I created a simple fix which raises the number of max players for each map to 20. It works when I just modify it in the civilization 6 source code. But when I add the same overwrite as a mod it doesn't work. I think that the system cannot find the file which needs to be overwritten, the mod is loaded when a map is started instead of when the menu is started or that the vanilla configuration overwrites the mod. The vanilla file can be found in Assets\Configuration\Data\MapSizes.xml and contains the following code:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GameInfo>
<MapSizes>
<Row MapSizeType="MAPSIZE_DUEL" Name="LOC_MAPSIZE_DUEL_NAME" Description="LOC_MAPSIZE_DUEL_DESCRIPTION" MinPlayers="2" MaxPlayers="4" DefaultPlayers="2" MinCityStates="0" MaxCityStates="6" DefaultCityStates="3" SortIndex="10" />
<Row MapSizeType="MAPSIZE_TINY" Name="LOC_MAPSIZE_TINY_NAME" Description="LOC_MAPSIZE_TINY_DESCRIPTION" MinPlayers="2" MaxPlayers="6" DefaultPlayers="4" MinCityStates="0" MaxCityStates="10" DefaultCityStates="6" SortIndex="20" />
<Row MapSizeType="MAPSIZE_SMALL" Name="LOC_MAPSIZE_SMALL_NAME" Description="LOC_MAPSIZE_SMALL_DESCRIPTION" MinPlayers="2" MaxPlayers="10" DefaultPlayers="6" MinCityStates="0" MaxCityStates="14" DefaultCityStates="9" SortIndex="30" />
<Row MapSizeType="MAPSIZE_STANDARD" Name="LOC_MAPSIZE_STANDARD_NAME" Description="LOC_MAPSIZE_STANDARD_DESCRIPTION" MinPlayers="2" MaxPlayers="14" DefaultPlayers="8" MinCityStates="0" MaxCityStates="18" DefaultCityStates="12" SortIndex="40" />
<Row MapSizeType="MAPSIZE_LARGE" Name="LOC_MAPSIZE_LARGE_NAME" Description="LOC_MAPSIZE_LARGE_DESCRIPTION" MinPlayers="2" MaxPlayers="16" DefaultPlayers="10" MinCityStates="0" MaxCityStates="22" DefaultCityStates="15" SortIndex="50" />
<Row MapSizeType="MAPSIZE_HUGE" Name="LOC_MAPSIZE_HUGE_NAME" Description="LOC_MAPSIZE_HUGE_DESCRIPTION" MinPlayers="2" MaxPlayers="20" DefaultPlayers="12" MinCityStates="0" MaxCityStates="24" DefaultCityStates="18" SortIndex="60" />
</MapSizes>
</GameInfo>
My Mod is called MaxPlayers and has the following modinfo file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="ECAD2272-CCE4-49A9-9926-B1B31D72C0ED" version="1">
<Properties>
<Name>Max Players Fix</Name>
<Teaser/>
<Description>Each map size now has a maximum number of 20 civilizations.</Description>
<Authors>Joszs</Authors>
<ShowInBrowser>Show</ShowInBrowser>
<EnabledByDefault>1</EnabledByDefault>
<EnabledAtStartup>1</EnabledAtStartup>
</Properties>
<Components>
<UpdateDatabase id="JOSZS_MAXPLAYERS">
<Items>
<File>Data/MaxPlayers_MapSizes.xml</File>
</Items>
</UpdateDatabase>
</Components>
<Files>
<File>Data/MaxPlayers_MapSizes.xml</File>
</Files>
</Mod>
The Data/MaxPlayers_MapSizes.xml file consists of the following code:
Code:
<GameInfo>
<MapSizes>
<Row MapSizeType="MAPSIZE_DUEL" Name="LOC_MAPSIZE_DUEL_NAME" Description="LOC_MAPSIZE_DUEL_DESCRIPTION" MinPlayers="2" MaxPlayers="20" DefaultPlayers="2" MinCityStates="0" MaxCityStates="6" DefaultCityStates="3" SortIndex="10" />
<Row MapSizeType="MAPSIZE_TINY" Name="LOC_MAPSIZE_TINY_NAME" Description="LOC_MAPSIZE_TINY_DESCRIPTION" MinPlayers="2" MaxPlayers="20" DefaultPlayers="4" MinCityStates="0" MaxCityStates="10" DefaultCityStates="6" SortIndex="20" />
<Row MapSizeType="MAPSIZE_SMALL" Name="LOC_MAPSIZE_SMALL_NAME" Description="LOC_MAPSIZE_SMALL_DESCRIPTION" MinPlayers="2" MaxPlayers="20" DefaultPlayers="6" MinCityStates="0" MaxCityStates="14" DefaultCityStates="9" SortIndex="30" />
<Row MapSizeType="MAPSIZE_STANDARD" Name="LOC_MAPSIZE_STANDARD_NAME" Description="LOC_MAPSIZE_STANDARD_DESCRIPTION" MinPlayers="2" MaxPlayers="20" DefaultPlayers="8" MinCityStates="0" MaxCityStates="18" DefaultCityStates="12" SortIndex="40" />
<Row MapSizeType="MAPSIZE_LARGE" Name="LOC_MAPSIZE_LARGE_NAME" Description="LOC_MAPSIZE_LARGE_DESCRIPTION" MinPlayers="2" MaxPlayers="20" DefaultPlayers="10" MinCityStates="0" MaxCityStates="22" DefaultCityStates="15" SortIndex="50" />
<Row MapSizeType="MAPSIZE_HUGE" Name="LOC_MAPSIZE_HUGE_NAME" Description="LOC_MAPSIZE_HUGE_DESCRIPTION" MinPlayers="2" MaxPlayers="20" DefaultPlayers="12" MinCityStates="0" MaxCityStates="24" DefaultCityStates="18" SortIndex="60" />
</MapSizes>
</GameInfo>
When I start up the game the Mod is found and is turned on. Does someone know what causes the Mod not to work?