[RESOLVED] Load Order (Always Load Mod Last)?...

Place to get help with not working mods / modding interface.
User avatar
Volvith
Inserter
Inserter
Posts: 40
Joined: Mon Jun 26, 2017 12:28 pm
Contact:

[RESOLVED] Load Order (Always Load Mod Last)?...

Post by Volvith »

Hi guys,

Quick question, is there any way to always run a specific mod as last in the queue? (other than dependencies)
Trying this because of compatibility reasons with category re-assignment. :3

If not, can i assign variable dependencies?
Like: "If mod A is active, this mod depends on mod A..."?

Cheers lads! ;)
Last edited by Volvith on Tue Aug 01, 2017 2:51 pm, edited 1 time in total.
Rational People: If it ain't fucked, don't fuck it.
Engineers: If it ain't fucked, unfuck it till it's perfect.
Me as an Engineer: If it ain't fucked, i'll fuck it till it is.
User avatar
Volvith
Inserter
Inserter
Posts: 40
Joined: Mon Jun 26, 2017 12:28 pm
Contact:

Re: Load Order (Always Load Mod Last)?...

Post by Volvith »

Well, this at least got me somewhere.
I realized that the edits that were being overridden by another mod were in the updates instead of final-fixes, so i dumped everything in the latter, and it works properly, for as far as i've checked so far.

I wonder though, can i add some data.raw recipe changes to the control.lua?
Because if any author decides to use the data-final-fixes, it will run later than my mod, due to naming.
I think that shouldn't be a problem, as long as i don't turn it into a 500+ line file?... (with it being run on every game load and all that. :/)

Alternatively, could i use an on_load script for this purpose?

Anyways, thanks for the help, didn't really take a good look at data-cycles before... :3
Rational People: If it ain't fucked, don't fuck it.
Engineers: If it ain't fucked, unfuck it till it's perfect.
Me as an Engineer: If it ain't fucked, i'll fuck it till it is.
orzelek
Smart Inserter
Smart Inserter
Posts: 3928
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Load Order (Always Load Mod Last)?...

Post by orzelek »

You can't touch data.raw after game load.
One thing you can do is to make optional dependency if you find a mod that does things to late for you to update.
Adding new item categories in final updates in normal mod would be strange so you should be able to safely reorder them there.
User avatar
Volvith
Inserter
Inserter
Posts: 40
Joined: Mon Jun 26, 2017 12:28 pm
Contact:

Re: Load Order (Always Load Mod Last)?...

Post by Volvith »

orzelek wrote:You can't touch data.raw after game load.
One thing you can do is to make optional dependency if you find a mod that does things to late for you to update.
Adding new item categories in final updates in normal mod would be strange so you should be able to safely reorder them there.
Yeah, didn't think i could use control for this, thanks for clearing that up...
Oh well, i might mess around with dependencies for a bit in that case, if any problems arise.

Again, thanks for the help. ;)
Rational People: If it ain't fucked, don't fuck it.
Engineers: If it ain't fucked, unfuck it till it's perfect.
Me as an Engineer: If it ain't fucked, i'll fuck it till it is.
Post Reply

Return to “Modding help”