Problems in fixing FontIcons bug

cholsy

Warlord
Joined
Dec 20, 2010
Messages
180
To fix an icon bug, I edited the original xml to find it works.
The key is to change <Name> from 'ICON_DISTRICT_COTHON' to 'DISTRICT_COTHON' in <IconDefinitions> table.
The source of fix is like this link.

https://forums.civfanatics.com/threads/1-0-3-31-font-icons-problems.661403/#post-15924596


However, when I tried this with MOD, I failed.
First, I made the source codes uploaded like this.

Code:
    <InGameActions>
        <UpdateDatabase id="NewAction1">
            <Properties>
                <LoadOrder>999998</LoadOrder>
            </Properties>
            <File priority="4">debug.xml</File>
        </UpdateDatabase>
    </InGameActions>

Code:
<GameData>
    <IconDefinitions>       
        <Replace Name="DISTRICT_COTHON"  Atlas="ICON_ATLAS_EXPANSION2_FONT_ICON_DISTRICTS_BASELINE_4" Index="2"/> <!-- ICON_DISTRICT_COTHON is used in the vanilla game -->
    </IconDefinitions>
</GameData>

But it didn't work.
Second, I tried with SQL like this, but also failed.

Code:
UPDATE IconDefinitions SET Name = 'DISTRICT_COTHON' WHERE Name = 'ICON_DISTRICT_COTHON' AND Atlas = 'ICON_ATLAS_EXPANSION2_FONT_ICON_DISTRICTS_BASELINE_4' AND Index = 2 ;

There must be something wrong but I could not find with my poor knowledge. :confused:
 
Always appreciate your help, LeeS !!! :)
I wonder how I could match a right action type to each table, so that I can avoid repeating same problems.
 
Top Bottom