I’ve been trying to make a mod that fixes the dialog portraits displayed in the campaign. However, while the mod folder is recognized by the game, none of the effects I put in stringmods.xml appear in the game. When trying to use a modded stringtabley.xml in its place, the change come into effect without issue.
I’ve concluded that there’s something I did wrong in the stringmods.xml file itself. So far I’ve only ran tests with 1 or 2 changes. Currently stringmods.xml looks like this:
<stringmods>
<StringTable>
<Language name="English">
<string _locid="27219" gamecharacter="Sailor" soundfilename="GENR5030" portraitfilename="resources\art\units\infantry_ranged\crossbow\crossbow_portrait.png">Thanks to that pirate, we'll need some new ships.</string>
<string _locid="26854" gamecharacter="Second Sailor" soundfilename="GENR0005" portraitfilename="resources\art\units\mercenaries\highlander\highlander_portrait.png">A ship! Filled to the gunwales with explosives. It came out of nowhere.</string>
</Language>
</StringTable>
</stringmods>
I’ve tried browsing for mods that use stringmods.xml to compare, but so far no luck. They all use the entire stringtabley.xml file instead.
Any pointers as to what might have gone wrong and how can it be corrected? First attempt at modding so I suspect it must be something I overlooked.