bandit_heeler
Chieftain
- Joined
- Aug 5, 2025
- Messages
- 5
Hello. I'm getting a weird error on loading a localization file, here's the log:
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.
The file
If you can help, please do, it will be appreciated. :exhausted:
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.
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: