I'm a little stuck on my sponsor mod

WrathRaptor

Chieftain
Joined
Jul 5, 2006
Messages
19
Location
Denver, CO
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.
 
Like it says in the error:
[143414.093] table PlayerPerks_ImprovementYieldEffects has no column named Help

Code:
<PlayerPerks_ImprovementYieldEffects>
<Row>
<PlayerPerkType>PLAYERPERK_WEY_YU_CIVILIZATION_PER K_C1</PlayerPerkType>
[B]<Help>TXT_KEY_PLAYERPERK_WEY_YU_CIVILIZATION_PERK_ C1_HELP</Help>[/B] -- shouldn't be there.
<ImprovementType>IMPROVEMENT_TERRASCAPE</ImprovementType>
<YieldType>YIELD_CULTURE</YieldType>
<Yield>1</Yield>
</Row>

To create that Lua-Entry you have to go to the main menu as you would go if you wanted to load an XML-File, but instead of clicking on Actions you have to click on 'Content', then 'Add' and enter the details.
 
Thanks, Ryika, for clarification and the guidance on the Lua! I totally didn't realize that is what it meant. :goodjob:

I've cleared up all my errors. Save the one below, which still mystifies me, as my sponsor still fails to show up in-game. :blush:

Code:
Prepared Statements:
Current:		22
------------------------------
[584941.218] no such table: ContentPackage.LocalizedText
[584953.984]
 
Back
Top Bottom