bigpak Posted February 28, 2015 Share Posted February 28, 2015 So, I am making one absolutely massive mod, and I have run into a bit of trouble apparently. I have more than 200 local variables for recipes and functions and whatnot in modmain.lua and it won't let me add anymore, but tell me if this is a proper workaround, if I add at the very end of my modmain.lua filemodimport "extension.lua"and that can be an extension to modmain, so far it is working... I know that no one should EVER hit this limit, but I have managed to, however this mod will not be released as it is just an absolute mess and is for private use aka me only. Also, can someone explain modimport to me? does it literally just attach it to modmain as an extension or is it something else? so if there is things like local ing_1 = = Ingredient( "scrap_metal", 2) would I need to declare that again in extension.lua or having it once in modmain.lua will be fine? Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.