Help with mod load order

ScooterDWiebels

Warlord
Joined
May 1, 2016
Messages
132
Location
CA
I'm having a problem with mod load order it appears to be loading my compatibility mod and running the sql script before it runs the original mod thus overwriting my changes. anybody know what to do?
 
I'm having a problem with mod load order it appears to be loading my compatibility mod and running the sql script before it runs the original mod thus overwriting my changes. anybody know what to do?
You need to add the original mod as a dependency to your mod.
 
I have been having problems with 1-6 not loading in the correct order recently. So what I do is make a dependency to point each one to the previous. For (4) Civ IV Diplomatic Features, I change the modinfo to point it to (3) CSD for CBP. I repeat this for 5,6. Also, I point all my sub-mods to 6 so that they are ensured to follow afterwards and not before.

References is different than dependencies as far as the mod loading screen from what I can see.

Example for (4) C4DF - CBP (v 11).modinfo:
Code:
<Dependencies>
    <Mod id="8411a7a8-dad3-4622-a18e-fcc18324c799" minversion="0" maxversion="999" title="Community Balance Patch" />
    <Mod id="eead0050-1e3f-4178-a91f-26cf1881ac39" minversion="0" maxversion="999" title="CSD" />
  </Dependencies>
 
I have been having problems with 1-6 not loading in the correct order recently. So what I do is make a dependency to point each one to the previous. For (4) Civ IV Diplomatic Features, I change the modinfo to point it to (3) CSD for CBP. I repeat this for 5,6. Also, I point all my sub-mods to 6 so that they are ensured to follow afterwards and not before.

References is different than dependencies as far as the mod loading screen from what I can see.

Example for (4) C4DF - CBP (v 11).modinfo:
Code:
<Dependencies>
    <Mod id="8411a7a8-dad3-4622-a18e-fcc18324c799" minversion="0" maxversion="999" title="Community Balance Patch" />
    <Mod id="eead0050-1e3f-4178-a91f-26cf1881ac39" minversion="0" maxversion="999" title="CSD" />
  </Dependencies>
Yeah I got it fixed thanks.
 
There are several mechanisms that are supposed to affect the load order both within a mod and between mods. All examples are taken from the R&F .modinfo file.

The first is supposed to effect an entire mod because of its placement within the <Properties></Properties> block of the whole mod.
Code:
    <Properties>
        <Name>LOC_EXPANSION1_MOD_TITLE</Name>
        <Teaser>LOC_EXPANSION1_MOD_TEASER</Teaser>
        <Description>LOC_EXPANSION1_MOD_DESCRIPTION</Description>
        <Authors>LOC_MOD_AUTHORS_FIRAXIS</Authors>
        <EnabledByDefault>1</EnabledByDefault>
        <LoadOrder>-75</LoadOrder>
    </Properties>
The next is another <LoadOrder></LoadOrder> pair and but because of its placement in the <Properties></Properties> construct for the UpdateDatabase construct it effects every file in the lager grouping, in this case the UpdateDatabase construct. Just like the one above effects every file in the mod. Then there are those that only affect one file within a grouping, like this <File Priority="2"> construct.
Remember that larger numbers come first!!!
Code:
        <UpdateDatabase id="Expansion1Gameplay" criteria="Expansion1">
            <Properties>
                <!-- Ensure schema/data is loaded before other database changes -->
                <LoadOrder>-100</LoadOrder>
            </Properties>
            <!-- Schema comes first -->
            <File Priority="2">
               Data/Expansion1_Schema.sql
            </File>
            <!-- Remove data second -->
            <File Priority="1">
               Data/Expansion1_RemoveData.xml
            </File>
            <!-- Apply everything else -->
            <File>Data/Expansion1_Agendas.xml</File>
            <File>Data/Expansion1_Alliances.xml</File>
-jeff
 
That's great description Jeff, thanks. So, the question now, how to debug this. Let's say we have very few mods selected, i.e. CP, Cultural Diversity and JFDLC RtP. They load OK without modpack creation option and while creating mod pack(s) the order gets messed up. I know that what gets loaded incorrectly is buildings / wonders / building queues. How do I debug and see which specific files get in front of the others and perhaps it would be quite useful to be able to see the correct load sequence as well....

Load order on the mod level doesn't affect anything in this case, i.e. I've specified the dependencies and the loadOrder for the entire mod, but I suppose it is too high level...
 
That's great description Jeff, thanks. So, the question now, how to debug this. Let's say we have very few mods selected, i.e. CP, Cultural Diversity and JFDLC RtP. They load OK without modpack creation option and while creating mod pack(s) the order gets messed up. I know that what gets loaded incorrectly is buildings / wonders / building queues. How do I debug and see which specific files get in front of the others and perhaps it would be quite useful to be able to see the correct load sequence as well....

Load order on the mod level doesn't affect anything in this case, i.e. I've specified the dependencies and the loadOrder for the entire mod, but I suppose it is too high level...
Facing the same issues, was a solution to this ever found?
 
wait, there's a load order? how do you choose load order? i just click enable then press next kek
I was asking in the context of modpacks, there is a lord order in the game though, usually dependencies help dictate what mod loads before another.
 
Back
Top Bottom