Page 1 of 1
How to make one mod override another
Posted: Sat Jun 30, 2018 8:28 pm
by jchardin64
I'm using the AAI industry mod, and I'm trying to make a mod of my own that will alter one of the recipes.
So what I want is this:
But instead what I keep getting is:
Which leaves the recipe unchanged.
I've set AAI Industry as one of the dependencies in info.json, but no matter what I do I can't make my mod override the other.
Re: How to make one mod override another
Posted: Sat Jun 30, 2018 11:59 pm
by eradicator
Put the changes in data-updates.lua in your mod, instead of data.lua. If that fails too try data-final-fixes.lua. Depends on where AAI creates/changes the recipe.
To repent for your sins read
Data Lifecycle 10 times.
Re: How to make one mod override another
Posted: Mon Jul 02, 2018 8:35 am
by bobingabout
Alternatively, add AAI as an optional dependancy (dependancy with a ? in front)
Re: How to make one mod override another
Posted: Mon Jul 02, 2018 10:42 am
by darkfrei
bobingabout wrote:Alternatively, add AAI as an optional dependancy (dependancy with a ? in front)
Do we have already hidden dependencies with "(?)"?
Re: How to make one mod override another
Posted: Mon Jul 02, 2018 11:25 am
by bobingabout
darkfrei wrote:bobingabout wrote:Alternatively, add AAI as an optional dependancy (dependancy with a ? in front)
Do we have already hidden dependencies with "(?)"?
I'm not sure, but even if it is, it's so recent that I'd leave it out in case anyone isn't using the latest version of the game that doesn't support it.
Re: How to make one mod override another
Posted: Mon Jul 02, 2018 2:57 pm
by eradicator
bobingabout wrote:darkfrei wrote:bobingabout wrote:Alternatively, add AAI as an optional dependancy (dependancy with a ? in front)
Do we have already hidden dependencies with "(?)"?
I'm not sure, but even if it is, it's so recent that I'd leave it out in case anyone isn't using the latest version of the game that doesn't support it.
OP said he already has a dependancy. (And no, optionals are 0.17.)