How to make one mod override another

Place to get help with not working mods / modding interface.
jchardin64
Inserter
Inserter
Posts: 38
Joined: Mon Apr 30, 2018 6:00 pm
Contact:

How to make one mod override another

Post 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:

Code: Select all

Base mod > AAI Industry > my mod
But instead what I keep getting is:

Code: Select all

Base mod > my mod > AAI Industry
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.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: How to make one mod override another

Post 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.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: How to make one mod override another

Post by bobingabout »

Alternatively, add AAI as an optional dependancy (dependancy with a ? in front)
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: How to make one mod override another

Post by darkfrei »

bobingabout wrote:Alternatively, add AAI as an optional dependancy (dependancy with a ? in front)
Do we have already hidden dependencies with "(?)"?
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: How to make one mod override another

Post 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.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: How to make one mod override another

Post 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.)
Post Reply

Return to “Modding help”