Different XML files with different mods loaded

GravityGames

Chieftain
Joined
Jan 20, 2015
Messages
35
Hello, I asked this question in another thread about a week ago, but with no answer, I'm hoping someone will be able to help me out. How do I set up a mod so that when a mod that is referenced is loaded with the mod I'm making, the mod will use one XML file, but when the mod I'm making is loaded without a certain reference, another XML file will be loaded? An example (and the one I'm currently using) is for the mod to load one set of values when loaded with the "Awesome Sponsors - Overhaul" mod, so my mod can be balanced with the altered sponsors, and for another XML file to be loaded when the "Awesome Sponsors" mod is NOT enabled, for balance with the vanilla sponsors.
 
You can't. There is no "load this or that depending on" but only "load always".

However, you can achieve the same effect but will need to use SQL.

Have the vanilla changes always load (via XML or SQL) and list them first in the list of OnModActivated->UpdateDatabase entries

Then use SQL to update those values under the special case, by add a "where exists (select ...)" to the end of each update statement, see http://forums.civfanatics.com/showthread.php?t=468374 for an example
 
You can't. There is no "load this or that depending on" but only "load always".

However, you can achieve the same effect but will need to use SQL.

Have the vanilla changes always load (via XML or SQL) and list them first in the list of OnModActivated->UpdateDatabase entries

Then use SQL to update those values under the special case, by add a "where exists (select ...)" to the end of each update statement, see http://forums.civfanatics.com/showthread.php?t=468374 for an example

Well, guess I WILL have to learn SQL then. Alright, I'll see if that thread works later, thanks!
 
Back
Top Bottom