[BNW] Simple XML Question

Emmeric

Chieftain
Joined
Dec 18, 2020
Messages
3
Location
Butte MT
Not new to modding XML, but have had a forever issue with modding some of the DLC content. My mods work fine privately and no issue getting my mods to work.

However, I can't seem to get DLC modding to work. Here is the issue. Attempting to reduce the cost of the basic SHRINE. In the XML files, this is not just listed in Building, but listed in CIV5Buildings_Inherited_Expansion2 with a special "Replace" command

The XML structure goes <GameData><Buildings><Replace>

My mod goes:


Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 1/21/2016 4:35:26 AM -->
<GameData>
       <Buildings>
        <Update>
            <Where Type="BUILDING_SHRINE" />
            <Set Cost="15"
                 GoldMaintenance="0" />
        </Update>
    </Buildings>
</GameData>

What am I missing? The Cost and Gold Maintenance do not show up in game.

Thanks in advance!
 
Yes, OnModActivated, UpdateDatabase - Buildings.xml

Has me stumped, too. I'm thinking the GoldMaintenance="0" might be making the code angry. Will have to test it.
 
Enable logging, re-enable the mod, and then check both 1) database.log, to see if it's throwing any syntax or invalid database reference errors, and if not, 2) stopwatch.log to verify it's loading at all. Or zip the mod up (the mod build, not the project) and attach it here so we can take a look at it.
 
(Facepalm) Everything was fine.

Been a couple years since I fiddled. Forgot that my Modbuddy path =/= Civ5 Mods. Copied the Modbuddy files over to Civ5 Mods... works as coded.

Ugh. You get older and you think you remember... Thanks for the help, you two.
 
Top Bottom