Question about mod encapsulation.
Posted: Wed Jun 15, 2016 5:35 am
Are mods in Factorio isolated from one another? If so how? To what degree?
I see a lot of mods that interact with one another. I'm curious as to how that is done. From what I can tell poking about they check remote.interfaces for the mod then do a remove.call.
Is this the only way mods can see each other? Am I wasting time and effort with my mod making sure everything is prepended with my mod's name to avoid naming conflicts? What about when using the global variable? Is the global variable shared between all mods or is it "unique" to each mod? Such as if one mod does global.a =1 and my mod does global.a=3 later do both mods see global.a as 3 when they check on it in the future or what they each set it too?
If all of this is covered in the wiki please provide me a link to the page with this info. I certainly wasn't locating it. Thanks!
I see a lot of mods that interact with one another. I'm curious as to how that is done. From what I can tell poking about they check remote.interfaces for the mod then do a remove.call.
Is this the only way mods can see each other? Am I wasting time and effort with my mod making sure everything is prepended with my mod's name to avoid naming conflicts? What about when using the global variable? Is the global variable shared between all mods or is it "unique" to each mod? Such as if one mod does global.a =1 and my mod does global.a=3 later do both mods see global.a as 3 when they check on it in the future or what they each set it too?
If all of this is covered in the wiki please provide me a link to the page with this info. I certainly wasn't locating it. Thanks!