Catharz
Chieftain
- Joined
- Jan 2, 2017
- Messages
- 2
Hi,
I'm trying to convert my Civilization 5 mod to Civilization 6.
The logs say the DB has been updated, and the new game speed is selectable from the menu.
But as soon as I start the game I get a Lua error saying that GameSpeeds is nil.
The list of GameSpeeds and the selected GameSpeed seem to be empty when in game.
The code for the mod is as follows:
MoreSpeed.modinfo
MoreSpeed_GameInfo.xml
MoreSpeed_GameData.xml
Any help would is appreciated.
I'm trying to convert my Civilization 5 mod to Civilization 6.
The logs say the DB has been updated, and the new game speed is selectable from the menu.
But as soon as I start the game I get a Lua error saying that GameSpeeds is nil.
The list of GameSpeeds and the selected GameSpeed seem to be empty when in game.
The code for the mod is as follows:
MoreSpeed.modinfo
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="6260e866-60bc-4314-a183-6be87f4d27b3" version="1">
<Properties>
<Name>Fast game</Name>
<Teaser>10x the speed of a normal game</Teaser>
<Description>10x the speed of a normal game</Description>
<Authors>Catharz</Authors>
<ShowInBrowser>DLC</ShowInBrowser>
<EnabledByDefault>0</EnabledByDefault>
<AffectsSavedGames>1</AffectsSavedGames>
<SupportsSinglePlayer>1</SupportsSinglePlayer>
<SupportsMultiplayer>1</SupportsMultiplayer>
<SupportsHotSeat>1</SupportsHotSeat>
</Properties>
<Files>
<File>Data/MoreSpeed_GameInfo.xml</File>
<File>Data/MoreSpeed_GameData.xml</File>
</Files>
<!-- This is where the data is supposed to be loaded -->
<Components>
<UpdateDatabase>
<Items>
<File>Data/MoreSpeed_GameData.xml</File>
</Items>
</UpdateDatabase>
</Components>
<!-- This is where More Speed gets added to the menu -->
<Settings>
<Custom id="MoreSpeedGameSetup">
<Items>
<File>Data/MoreSpeed_GameInfo.xml</File>
</Items>
</Custom>
</Settings>
</Mod>
MoreSpeed_GameInfo.xml
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GameInfo>
<GameSpeeds>
<Row
GameSpeedType="GAMESPEED_MORE"
Name="More Speed"
Description="10x speed of normal"
SortIndex="5"
/>
</GameSpeeds>
</GameInfo>
MoreSpeed_GameData.xml
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GameData>
<Types>
<Row Type="GAMESPEED_MORE" Kind="KIND_GAMESPEED"/>
</Types>
<GameSpeeds>
<Row>
<GameSpeedType>GAMESPEED_MORE</GameSpeedType>
<Name>More speed</Name>
<Description>10x speed of normal</Description>
<CostMultiplier>10</CostMultiplier>
<CivicUnlockMaxCost>10</CivicUnlockMaxCost>
<CivicUnlockPerTurnDrop>1</CivicUnlockPerTurnDrop>
<CivicUnlockMinCost>2</CivicUnlockMinCost>
</Row>
</GameSpeeds>
<GameSpeed_Turns>
<Row>
<GameSpeedType>GAMESPEED_MORE</GameSpeedType>
<MonthIncrement>1920</MonthIncrement>
<TurnsPerIncrement>18</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_MORE</GameSpeedType>
<MonthIncrement>1200</MonthIncrement>
<TurnsPerIncrement>15</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_MORE</GameSpeedType>
<MonthIncrement>960</MonthIncrement>
<TurnsPerIncrement>6</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_MORE</GameSpeedType>
<MonthIncrement>480</MonthIncrement>
<TurnsPerIncrement>12</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_MORE</GameSpeedType>
<MonthIncrement>240</MonthIncrement>
<TurnsPerIncrement>15</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_MORE</GameSpeedType>
<MonthIncrement>96</MonthIncrement>
<TurnsPerIncrement>12</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_MORE</GameSpeedType>
<MonthIncrement>48</MonthIncrement>
<TurnsPerIncrement>30</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_MORE</GameSpeedType>
<MonthIncrement>24</MonthIncrement>
<TurnsPerIncrement>15</TurnsPerIncrement>
</Row>
</GameSpeed_Turns>
</GameData>
Any help would is appreciated.
Last edited: