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 styleis that you can create mods that can be combined with other mods thatsimply 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"?>
<StringTableListxmlns: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?
Appending an XML file will only add in new, unique data, so what's going on here is the game is thinking "Oh hey, new data. But wait, this has the same label as something that already exists in the base file! Can't let that happen."
That means you can't use this method to change existing content. In order to do what you want, you will currently have to copy the whole file, keep the same name, and then edit the data you want.
Ah got it. Too bad really, would make my files much smaller.
There are many great features available to you once you register, including:
Sign in or Create Account