• 📚 Admin Project Update: I've added a major feature to PictureBooks.io called Avatar Studio! You can now upload photos to instantly turn your kids (and pets! 🐶) into illustrated characters that star in their own stories. Give it a try and let me know what you think!

Error parsing XML file, can't make localization files work as supposed.

bandit_heeler

Chieftain
Joined
Aug 5, 2025
Messages
6
Hello. I'm getting a weird error on loading a localization file, here's the log:
Code:
[776098.380] LocalizedText - Loading Text/LOC_PlotToolTip_BlackDeath.xml
[776098.380] Error parsing C:/Users/Bandit/Documents/My Games/Sid Meier's Civilization VI/Mods/Bandit'sPlotTooltip/Text/LOC_PlotToolTip_BlackDeath.xml
[776098.380] Warning: LocalizedText - Failed loading XML.
I figured that the issue is somehow related to this part of code. The error drops when this block is present and doesn't when absent.
XML:
        <Row Tag="LOC_MOD_TOOLTIP_PLOT_CONTAMINATED_TEXT">
            <Text>[COLOR:{2_Color}]PLAGUE-STRICKEN: {1_Num} {1_Num: plural 1?turn; other?turns;}[ENDCOLOR]</Text>
        </Row>

The file Text/LOC_PlotToolTip_BlackDeath.xml gets loaded when loading Black Death scenario (action id BanditsPlotToolTipText_BlackDeath) and after Text/LOC_RemoveText_BlackDeath.xml which deletes the key LOC_MOD_TOOLTIP_PLOT_CONTAMINATED_TEXT so it must be clear and there should not be overwrite conflicts.
If you can help, please do, it will be appreciated. :exhausted:
 

Attachments

Back
Top Bottom