a way to ensure quality (or any mod) is loaded at the last possible moment

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Stargateur
Filter Inserter
Filter Inserter
Posts: 379
Joined: Sat Oct 05, 2019 6:17 am
Contact:

a way to ensure quality (or any mod) is loaded at the last possible moment

Post by Stargateur »

AFAIK there is no way to ask for a mod to load after all of the rest. This is annoying for mod such as quality. There is no way to tell in a mod, "load before quality".
Rseding91
Factorio Staff
Factorio Staff
Posts: 16452
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: a way to ensure quality (or any mod) is loaded at the last possible moment

Post by Rseding91 »

Optional prerequisites? If such a thing was added.
If you want to get ahold of me I'm almost always on Discord.
User avatar
Stargateur
Filter Inserter
Filter Inserter
Posts: 379
Joined: Sat Oct 05, 2019 6:17 am
Contact:

Re: a way to ensure quality (or any mod) is loaded at the last possible moment

Post by Stargateur »

this would load the mod before, the purpose is after. What would be great is mod that should run last be able to add a weight to their order, quality who add recipe in data-update (well I didn't check actually) could miss recipe from mod that add recipe in data-updates (yes I know it's better to do it in data stage but I don't control all mods in the mod portal :p)

I happen to have a case where I couldn't recycle loader and lane splitter from some mod cause I guess mod order loaded quality before the other mod. Thus the mod author tell me he can recycle so that just unfortunate for my case, and so I wish a way to control better this behavior. Specially since quality doesn't have any dep it's loaded before other mod that have more dep.
Specifically, the depth of each mod's dependency chain is taken into account first, sorting the shorter ones to the front of the queue.
https://lua-api.factorio.com/latest/aux ... cycle.html

It would be great as an user to also be able to override/control mod loading order to be able to fix a small loading order problem.
User avatar
Stargateur
Filter Inserter
Filter Inserter
Posts: 379
Joined: Sat Oct 05, 2019 6:17 am
Contact:

Re: a way to ensure quality (or any mod) is loaded at the last possible moment

Post by Stargateur »

Example of thing current situation make modder do call its mod "zzz-nonstandard-beacons" to try to be the last loaded, next will be zzzz and next will be zzzzzzzzzzzzzzzzzzzzzzz
Rseding91
Factorio Staff
Factorio Staff
Posts: 16452
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: a way to ensure quality (or any mod) is loaded at the last possible moment

Post by Rseding91 »

So if such a thing existed how would the game handle when two mods ask to be loaded “last”?
If you want to get ahold of me I'm almost always on Discord.
Kyralessa
Filter Inserter
Filter Inserter
Posts: 786
Joined: Thu Sep 29, 2016 5:58 pm
Contact:

Re: a way to ensure quality (or any mod) is loaded at the last possible moment

Post by Kyralessa »

They play Rock, Paper, Scissors for it?
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 426
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: a way to ensure quality (or any mod) is loaded at the last possible moment

Post by protocol_1903 »

Rseding91 wrote: Mon Jan 05, 2026 12:54 pm So if such a thing existed how would the game handle when two mods ask to be loaded “last”?
I rather think that it should be mod A asking to be loaded specifically before mod B as opposed to after. The rest of the mod order sorts itself out as normal.
Stargateur wrote: Mon Jan 05, 2026 10:52 am Example of thing current situation make modder do call its mod "zzz-nonstandard-beacons" to try to be the last loaded, next will be zzzz and next will be zzzzzzzzzzzzzzzzzzzzzzz
Glad my mod could be a good example :)
In either case this only applies if a mod specifically wants to be loaded after my mod specifically. Which i highly doubt would ever happen. Even if it does it could just optionally depend on my mod. Any other mod that wants to replicate 'loading last' in all cases would just be start with `zzz` internally. No need to make it longer.
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
User avatar
Stargateur
Filter Inserter
Filter Inserter
Posts: 379
Joined: Sat Oct 05, 2019 6:17 am
Contact:

Re: a way to ensure quality (or any mod) is loaded at the last possible moment

Post by Stargateur »

Rseding91 wrote: Mon Jan 05, 2026 12:54 pm So if such a thing existed how would the game handle when two mods ask to be loaded “last”?
natural order again I guess, but that still better than current just natural order, that clearly not perfect but maybe something like ":quality" in dep could mean "I want to be loaded before quality", or a weight system that would allow more control.

Another: zzzzStopChasingBeltItems
Post Reply

Return to “Modding interface requests”