XML file doesn't work. What was missed?

cholsy

Warlord
Joined
Dec 20, 2010
Messages
204
I'm a beginner and making a very simple MOD to fix errata in localized text.
If successful, description of Chivalry policy should be written as "TEST" but nothing changed.
Following is the MOD. What did I miss?
Any advice from anybody will be appreciated. :)

Spoiler MOD :

<?xml version="1.0" encoding="utf-8"?>
<Mod id="da3d8f57-c10e-4480-90ce-9a02b898318a" version="1">
<Properties>
<Name>Personal XML</Name>
<Description>Fix Errata
No effect on gameplay.</Description>
<Created>1602315942</Created>
<Teaser>Fix Errata
No effect on gameplay.</Teaser>
<Authors>cholsy</Authors>
<CompatibleVersions>1.2,2.0</CompatibleVersions>
</Properties>

<InGameActions>
<UpdateDatabase id="NewAction">
<Properties>
<LoadOrder>999999</LoadOrder>
</Properties>
<File>Errata.xml</File>
</UpdateDatabase>
</InGameActions>
<Files>
<File>Errata.xml</File>
</Files>

</Mod>



Spoiler Text :

<?xml version="1.0" encoding="utf-8"?>
<GameData>
<LocalizedText>
<Replace Tag="LOC_POLICY_CHIVALRY_DESCRIPTION" Language="ko_KR">
<Text> TEST </Text>
</Replace>
</LocalizedText>
</GameData>
 
You can't update localized text via an UpdateDatabase action. It needs to be a UpdateText action.

If you check your Database.log file at
C:\Users\{UserNameHere]\Documents\My Games\Sid Meier's Civilization VI\Logs
it will report an error for this sort of mistake: specifically that there is no such table named LocalizedText in the InGame UpdateDatabase system.
 
Back
Top Bottom