Getting a simple mod to work

ThermobaricPunch

Chieftain
Joined
Apr 26, 2019
Messages
15
It's been a long time since I played and modded Civ VI, but I know this mod I made used to work (at least the previous iteration).

It's a simple mod that just adds some bonuses from other leaders/civs to Gilgamesh/Sumeria for the sake of testing and just plain fun. The only thing I did was update the main xml adding some stuff from the Frontier Pass civilizations, along with the proper dependencies.

I don't know if it matters or not but I've never used ModBuddy, as I've never done anything more complex than very simple xml edits and whatnot and this was just adding some lines so I don't know why the mod no longer works, but then again the last time I used it was back when Gathering Storm came out.

The mod is also supposed to update the text descriptions of Sumeria and Gilgamesh traits and I recall I had a lot of trouble making text changes work for some reason but I managed it in the end; of course now it no longer works.

The game recognizes the mod and loads it just fine but it has no effect at all. I checked and rechecked but to my knowledge everything is set up properly in my files, unless the last updates drastically changed something about modding.
 

Attachments

Lol just by checking the other threads I realized this subforum is pretty much dead, so I guess I'll have to figure it out on my own like the others. So far I found a mistake in the modinfo file but that didn't solve anything so... Yeah...
 
Keep in mind that it's a holiday weekend, so there might not be many who browse the forums right now. I don't have the time to look at your actual mod, but I've adjusted your modinfo so that it'll properly load your files. It's also a good idea to look at your database and modding logs ("..\User Files\Documents\My Games\Sid Meier's Civilization VI\Logs") for errors when loading your mod.

Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="7f95196e-9f4a-11e6-80f5-76304dak7eb5" version="1.00">
    <Properties>
        <Name>Ford - Sumeria to Xumer</Name>
        <Teaser>Sumeria to Xumer</Teaser>
        <Description>Sumeria to Xumer</Description>
        <Authors>Edgar Ford</Authors>
        <CompatibleVersions>2.0</CompatibleVersions>      
    </Properties>
    <Dependencies>
        <Mod id="1B28771A-C749-434B-9053-D1380C553DE9" title="Expansion: Rise and Fall" />
        <Mod id="4873eb62-8ccc-4574-b784-dda455e74e68" title="Expansion: Gathering Storm" />
        <Mod id="8424840C-92EF-4426-A9B4-B4E0CB818049" title="Civilization: Babylon" />
        <Mod id="9DE86512-DE1A-400D-8C0A-AB46EBBF76B9" title="Civilization: Gran Colombia" />
        <Mod id="643EA320-8E1A-4CF1-A01C-00D88DDD131A" title="Civilization: Nubia" />
        <Mod id="A1100FC4-70F2-4129-AC27-2A65A685ED08" title="Civilization: Byzantium" />
        <Mod id="A3F42CD4-6C3E-4F5A-BC81-BE29E0C0B87C" title="Civilization: Vietnam" />
        <Mod id="3809975F-263F-40A2-A747-8BFB171D821A" title="Civilization: Poland" />      
        <Mod id="FFDF4E79-DEE2-47BB-919B-F5739106627A" title="Civilization: Portugal" />
        <Mod id="E2749E9A-8056-45CD-901B-C368C8E83DEB" title="Civilization: Macedonia" />  
    </Dependencies>
    <InGameActions>
        <UpdateDatabase id="Ford_Sumeria_UpdateDatabase">
            <Properties>
                <LoadOrder>300</LoadOrder>
            </Properties>
            <File>XU.xml</File>
        </UpdateDatabase>
        <UpdateText id="Ford_Sumeria_LocalizedText">
            <Properties>
                <LoadOrder>301</LoadOrder>
            </Properties>
            <File>XU_Text.xml</File>
        </UpdateText>
    </InGameActions>
    <Files>
        <File>XU.xml</File>
        <File>XU_Text.xml</File>
    </Files>
</Mod>
 
It was just a bit disheartening to see so many threads with only a single reply, sometimes a self-reply. And thanks for taking your time to fix the modinfo but that was what I had already noticed, although I used <Components> instead of <InGameActions>, but either way the mod doesn't do anything. I also tried formatting the TraitModifiers like:

<Row>
<TraitType>TRAIT_LEADER_ADVENTURES_ENKIDU</TraitType>
<ModifierId>TRAIT_ADJUST_BUILDER_CHARGES</ModifierId>
</Row>

Instead of

<Row TraitType="TRAIT_LEADER_ADVENTURES_ENKIDU" ModifierId="TRAIT_ADJUST_BUILDER_CHARGES"/>

But that didn't matter either.
 
Components & InGameActions are generally interchangeable, however it is best to use the same nomenclature as the game files (i.e. InGameActions). The problems with your modinfo included your entire Components code block, which was inaccurate and missing the correct Update actions and files. It was also missing a LoadOrder, which tells the game core to load your files after the game files. If after using my updated modinfo you're still not getting the mod to load, you need to look at your logs to see if there's any errors.
 
Yes I noticed the missing section just before reading your post and did a similar fix, then tried yours as well. I may have accidentally deleted the whole components bit while adding the dependencies, I know this mod used to work before I "updated" it and somehow messed up everything.

I checked the log and it just said generic "failed to load XML" errors, I googled the errors and realized that, in all my genius, I added some redundant parameters (Gilgamesh/Sumeria's default traits). I didn't remember redundancies could cause the whole XML to fail to load like that. Regarding the text changes I think my whole was approach completely wrong as again they reference directly the vanilla text tags and I'm pretty sure that's a no-no. I guess I would have to take a whole different approach, like making new localization tags instead of trying to modify the already existing ones... Now I remember why I had so much trouble making text changes work in the past, and now I was just repeating the same mistake!

In any case, thanks for your fix to my botched modinfo, and if anything now I know InGameActions is preferable to Components.
 
Back
Top Bottom