Can I instruct the game to load expansion packs before my mod?

criZp

Deity
Joined
Jul 19, 2013
Messages
2,003
Location
Nidaros, Norway
My mod "no AI start advantage" used to delete some base game files, now the files are in an expansion pack, so I need it to delete expansion pack files. The expansion packs seems to load after my mod has loaded, thus my mod cannot do the deletion any more.

In modbuddy, in mod properties -> associations, it says "any referenced mod that is enabled will be activated BEFORE this mod is activated"

Seems perfect? I click the "add DLC" button next to the references list, and modbuddy lists all civilization pack dlc and all scenarios, but no expansions. I add both RnF and GS expansions with correct names and package id manually (i.e: "Expansion: Rise and Fall", "1B28771A-C749-434B-9053-D1380C553DE9"). Doesn't do anything, expansions are still loaded after my mod.

Is there someone here who can help me, is it possible to fix? Or did firaxis make it impossible?
 
I'd just add a LoadOrder to each file block of your modinfo that you want to load after all the DLC/Expansions.
Code:
<UpdateDatabase id="LKs_Compendium_UpdateDatabase">
   <Properties>
      <LoadOrder>2000</LoadOrder>
   </Properties>
   <File>Data/LKs_Ages_And_Eras_Data.sql</File>
   <File>Data/LKs_AI_Bonuses_Data.sql</File>
   <File>Data/LKs_Diplomatic_Actions_Data.sql</File>
   <File>Data/LKs_Game_Speed_Changes_Data.sql</File>
...etc.
 
Here's the code with the load order:

civ mod help.jpg
 
BTW, References in Civ6 have never accomplished anything. They might seem like they work, but they do not accomplish a stable order in which mods load their code, nor can they since LoadOrder and other issues can over-ride any set-up of which order a group of enabled mods load that was based on References and/or the order in which mods were enabled. Load Order is the only stable method for forcing which components from mods and DLC load before or after other components from other mods or DLC.

Dependancies also do not force load ordering. Only LoadOrder does so reliably and in all cases.
 
Back
Top Bottom