Modding a mod

seasnake

Conquistador
Joined
Apr 21, 2006
Messages
1,892
Location
California, United States
hey question,

I'm working on a mod that adds a 3uc for community patch. Is there a way I can make it so the sql I'm doing is what takes precedence? Specifically I'm adding an improvement that gives massive bonuses to cows and bison, but commmunity balance rebalances all of the values for those resources in one of its files. I want to create a file that has all of their changes and the ones that correspond to my new improvement and when both mods are active it reads mine, not the other.
 
Code:
  <References>
    <Mod id="ce8aa614-7ef7-4a45-a179-5329869e8d6d" minversion="0" maxversion="999" title="The Enlightenment Era" />
    <Mod id="d1b6328c-ff44-4b0d-aad7-c657f83610cd" minversion="0" maxversion="999" title="DLL - Various Mod Components" />
    <Mod id="d9ece224-6cd8-4519-a27a-c417b59cdf35" minversion="0" maxversion="999" title="Future Worlds" />
    <Mod id="ebfd41c6-94ad-47ed-9383-6c9509c4bdfe" minversion="0" maxversion="999" title="Ultimate Eras Mod" />
    <Mod id="8c63c188-045b-4955-bbea-6c685d119c86" minversion="0" maxversion="999" title="Prehistoric Era Reborn" />
  </References>
This is from my Era Building's modinfo file. "References" cause the other mod to be loaded first when both mods are enabled at the same time. You can add these references in ModBuddy when you are creating your mod or you can directly edit a modinfo file to add them. In ModBuddy you add these references in the "Associations" tab. The "Associations" tab should show in the same overall window within ModBuddy as when you are adding "Actions" for xml/sql files. You need the mod ID# of the other mod from it's modinfo file.

Then you just make your mod make the changes needed in the game's database.

If you are talking about dll-level changes made by CP, then the referencing method won't work because the changes made by dll are not present in the game's database.

See This post from The Enlightenment Era mod.
 
Last edited:
Top Bottom