[Modbuddy] What are References and Blocks?

GravityGames

Chieftain
Joined
Jan 20, 2015
Messages
35
Hello, I know what dependencies are in Modbuddy, they're rather obvious (DLC/Expansion/Mod has to be active for this mod to work), but what do references and blocks do? I think references are for optional extensions (like for instance a mod that gives every leader their own music like in Civ 5 would make the mod have it's own music, otherwise, it would not), but how would this be used in the mod itself (how would this be detected)? As for blocks, I haven't the foggiest clue what they're for.
 
A depends on B. Mod A cannot be enabled unless mod B is enabled first. Mod B loads first, then mod A

A references B. Mod A can be enabled whether or not mod B is enabled. If mod B is enabled it is loaded before mod A

A blocks B. Mod B cannot be enable if mod A is enabled.
 
Alright, thank you. How would I handle references in my XML (and possibly Lua later on) for things like "if mod B is applied, mod A loads file Y, otherwise mod A loads file X instead? I'd like to know so I can make my sponsor mods adjust their behavior when loaded with each other or with other mods enabled, sponsor or otherwise (and would also be helpful in case I pick up Civ 5 modding).
 
Top Bottom