News

"Append Mode"

Posted on Friday, May 22, 2015

So the ModdingReadme.txt says this:

Append Method:
However, if you only want to add new xml you should use the second method.
This is done by creating new xml files that are uniquely named that match the
formatting of the xml you intend to append to. The advantage to this style
is that you can create mods that can be combined with other mods that
simply append new xml in this style.

However thats pretty vague.

 

I've tried making this file (UIText_Test.xml):

<?xml version="1.0" encoding="utf-8"?>

<StringTableList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../Schema/Lib/StringTable.xsd">

<!-- Generic Labels -->

<StringTable>
<Label>APPROVAL_TOOLTIP_EQUATION</Label>
<String>ApprovalTEST = [ICON=Stat_Morale_Icon] %s / [ICON=Stat_Population_Icon] %s</String>
</StringTable>

</StringTableList>

 

And it works to an extend - the game loads the file, but everytime I start the game, I get this warning/error:

"Duplicate StringTable Label found: APPROVAL_TOOLTIP_EQUATION"

 

Anyone know how to fix it?