Page 1 of 1

Mod load order - Am I missing something?

Posted: Mon Feb 09, 2015 1:20 am
by xBlizzDevious
Hello!

I seem to have a couple of issues with mod load order and I'm trying to figure out how to fix it. I've seen mod authors saying to change it, but I've never seen ANY documentation anywhere from scouring the wiki, Googling and searching on the forum.

So, quick question:
How do I change the order in which mods load?

Thanks.

Re: Mod load order - Am I missing something?

Posted: Mon Feb 09, 2015 12:21 pm
by rk84
Key word for searching is dependencies.

I think mod loading order forms up from 3 things:
1. Dependencies. Mod with dependency is load later than dependent mod.
2. Dependency count. Mods with 2 dependencies are loads after mods with only one dependency. (optional missing mods does not count)
3. Naming

https://forums.factorio.com/wiki/inde ... dencies.3F
https://forums.factorio.com/wiki/inde ... nformation

Re: Mod load order - Am I missing something?

Posted: Mon Feb 09, 2015 1:55 pm
by Martc
This can be also helpful to solve mod load order.
Changelog for 0.11 wrote:Added phases to the mod loading. data.lua of all mods is loaded first, then the data-updates.lua and the data-final-fixes.lua as last.
This allows mods to change the data of other mods without the need to be last. This is used even in the base game, to add the
dust effect when a building is created, so the effect is added to mod buildings as well.

Re: Mod load order - Am I missing something?

Posted: Mon Feb 09, 2015 2:38 pm
by xBlizzDevious
rk84 wrote:Key word for searching is dependencies.

I think mod loading order forms up from 3 things:
1. Dependencies. Mod with dependency is load later than dependent mod.
2. Dependency count. Mods with 2 dependencies are loads after mods with only one dependency. (optional missing mods does not count)
3. Naming

https://forums.factorio.com/wiki/inde ... dencies.3F
https://forums.factorio.com/wiki/inde ... nformation
Ah, so all I have to do is edit a mod file to tell it that it requires something else?

For example, I have MoPower and Endless Resources installed but Endless Resources loads before MoPower so Uranium is not endless.
So all I have to do is add a dependency for Mopower (with a question mark for "proper-ness") within Endless Resources?

Thanks! I'll give that a shot.


EDIT: Thanks, I read up on those links and then did as needed - it now works properly!