dependencies and control.lua

Place to get help with not working mods / modding interface.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

dependencies and control.lua

Post by binbinhfr »

Hi,

json dependencies garanty the order of data.lua loading, but is there a way to garanty the order of control.lua first events between mods when a save is loaded ?
(ex: garanty the order of on_config events, or on_init events ?)

My problem : how can I force the relative position of buttons in the top toolbar (between 2 mods that I developped).
My mods on the Factorio Mod Portal :geek:
orzelek
Smart Inserter
Smart Inserter
Posts: 3928
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: dependencies and control.lua

Post by orzelek »

binbinhfr wrote:Hi,

json dependencies garanty the order of data.lua loading, but is there a way to garanty the order of control.lua first events between mods when a save is loaded ?
(ex: garanty the order of on_config events, or on_init events ?)

My problem : how can I force the relative position of buttons in the top toolbar (between 2 mods that I developped).
Only way I know off would be to use remote interfaces and inform one mod that other one is present first, then inform it after it did it's actions.
Post Reply

Return to “Modding help”