WrathRaptor
Chieftain
Okay, I've been working on this sponsor mod. Using working (I'm assuming anyways, haven't pkay trsted them after their respective authors updated them) Civ:BERT sponsors mods as a template to make sure I've covered all my bases and that the XML is correct.
However, my sponsor doesn't load in-game.
So, I pulled the logs and began correcting the errors in the XML. Apparently, I have a lot. But the current errors which are shown below are where I am stuck.
Prepared Statements:
Current: 10
------------------------------
[143414.093] table PlayerPerks_ImprovementYieldEffects has no column named Help
[143414.093] In Query - insert into PlayerPerks_ImprovementYieldEffects('PlayerPerkType', 'Help', 'ImprovementType', 'YieldType', 'Yield') values (?, ?, ?, ?, ?);
[143414.093] In XMLSerializer while updating table PlayerPerks_ImprovementYieldEffects from file XML/Civilizations/CivBEPlayerPerks.xml.
[143419.703]
Also, further down it states the following:
Prepared Statements:
Current: 22
------------------------------
[143438.578] no such table: ContentPackage.LocalizedText
[143451.515]
With respect to the first error, this is what I currently have in my XML file:
<!-- Terrain Improvement Effects - Yields -->
<PlayerPerks_ImprovementYieldEffects>
<Row>
<PlayerPerkType>PLAYERPERK_WEY_YU_CIVILIZATION_PERK_C1</PlayerPerkType>
<Help>TXT_KEY_PLAYERPERK_WEY_YU_CIVILIZATION_PERK_C1_HELP</Help>
<ImprovementType>IMPROVEMENT_TERRASCAPE</ImprovementType>
<YieldType>YIELD_CULTURE</YieldType>
<Yield>1</Yield>
</Row>
<Row>
<PlayerPerkType>PLAYERPERK_WEY_YU_CIVILIZATION_PERK_C2</PlayerPerkType>
<Help>TXT_KEY_PLAYERPERK_WEY_YU_CIVILIZATION_PERK_C2_HELP</Help>
<ImprovementType>IMPROVEMENT_TERRASCAPE</ImprovementType>
<YieldType>YIELD_SCIENCE</YieldType>
<Yield>2</Yield>
I received similar errors when I tried to add a free unit to this sponsor. I removed that section of code. If someone has insight on how to properly address that, I'd like to here it as well.
Finally, since I'm using Ryika's Sha'Yuri Clan sponsor as a kind of template, I noticed a difference in the MODINFO file, that I do not have in mine. This concerns the Lua personality traits file.
<EntryPoints>
<EntryPoint type="PersonalityTraits" file="Lua/PersonalityTrait_Ayuri_Leader.lua">
<Name>PersonalityTrait_Ayuri_Leader</Name>
<Description>
</Description>
</EntryPoint>
</EntryPoints>
I have even less experience with Lua than I do XML, and I do not know how to assign this entry point to my specific Lua personality traits file.
However, my sponsor doesn't load in-game.
So, I pulled the logs and began correcting the errors in the XML. Apparently, I have a lot. But the current errors which are shown below are where I am stuck.
Prepared Statements:
Current: 10
------------------------------
[143414.093] table PlayerPerks_ImprovementYieldEffects has no column named Help
[143414.093] In Query - insert into PlayerPerks_ImprovementYieldEffects('PlayerPerkType', 'Help', 'ImprovementType', 'YieldType', 'Yield') values (?, ?, ?, ?, ?);
[143414.093] In XMLSerializer while updating table PlayerPerks_ImprovementYieldEffects from file XML/Civilizations/CivBEPlayerPerks.xml.
[143419.703]
Also, further down it states the following:
Prepared Statements:
Current: 22
------------------------------
[143438.578] no such table: ContentPackage.LocalizedText
[143451.515]
With respect to the first error, this is what I currently have in my XML file:
<!-- Terrain Improvement Effects - Yields -->
<PlayerPerks_ImprovementYieldEffects>
<Row>
<PlayerPerkType>PLAYERPERK_WEY_YU_CIVILIZATION_PERK_C1</PlayerPerkType>
<Help>TXT_KEY_PLAYERPERK_WEY_YU_CIVILIZATION_PERK_C1_HELP</Help>
<ImprovementType>IMPROVEMENT_TERRASCAPE</ImprovementType>
<YieldType>YIELD_CULTURE</YieldType>
<Yield>1</Yield>
</Row>
<Row>
<PlayerPerkType>PLAYERPERK_WEY_YU_CIVILIZATION_PERK_C2</PlayerPerkType>
<Help>TXT_KEY_PLAYERPERK_WEY_YU_CIVILIZATION_PERK_C2_HELP</Help>
<ImprovementType>IMPROVEMENT_TERRASCAPE</ImprovementType>
<YieldType>YIELD_SCIENCE</YieldType>
<Yield>2</Yield>
I received similar errors when I tried to add a free unit to this sponsor. I removed that section of code. If someone has insight on how to properly address that, I'd like to here it as well.
Finally, since I'm using Ryika's Sha'Yuri Clan sponsor as a kind of template, I noticed a difference in the MODINFO file, that I do not have in mine. This concerns the Lua personality traits file.
<EntryPoints>
<EntryPoint type="PersonalityTraits" file="Lua/PersonalityTrait_Ayuri_Leader.lua">
<Name>PersonalityTrait_Ayuri_Leader</Name>
<Description>
</Description>
</EntryPoint>
</EntryPoints>
I have even less experience with Lua than I do XML, and I do not know how to assign this entry point to my specific Lua personality traits file.