StalkinU Posted December 3, 2014 Share Posted December 3, 2014 Hey, I'm trying to get a compilation mod together for the upcoming multiplayer mode.Having explained that, lets get to my question. Is it possible to have mainmod.lua include other mainmod.lua files?This method is to be used for a 1 click all server mods on/offWith a patcher to make sure mods are the same version as the servers. Folder layout below. dont_starve\mods\MPcompilation\\mainmod.lua | --=====================================>mod1/mainmod.lua=====================================>mod2/mainmod.lua=====================================>mod3/mainmod.lua=====================================>mod4/mainmod.lua Link to comment https://forums.kleientertainment.com/forums/topic/45294-modmainlua-question/ Share on other sites More sharing options...
StalkinU Posted December 3, 2014 Author Share Posted December 3, 2014 mainmod.lua being modmain.lua ofcourse Link to comment https://forums.kleientertainment.com/forums/topic/45294-modmainlua-question/#findComment-578024 Share on other sites More sharing options...
Heavenfall Posted December 3, 2014 Share Posted December 3, 2014 I remember a topic about a mod loading another mod but I can't find it. Link to comment https://forums.kleientertainment.com/forums/topic/45294-modmainlua-question/#findComment-578070 Share on other sites More sharing options...
StalkinU Posted December 3, 2014 Author Share Posted December 3, 2014 I remember a topic about a mod loading another mod but I can't find it. Hmm thats probably a good google search Link to comment https://forums.kleientertainment.com/forums/topic/45294-modmainlua-question/#findComment-578074 Share on other sites More sharing options...
Renamon Posted December 5, 2014 Share Posted December 5, 2014 (edited) lua can load multiple's of things; I did so with one of my "garry's mod" addon's here is an example. In the example I load multiple models and scripts for those models *screenie * Don't starve's lua is a completely different thing but somewhat related, if you could find a way to make the game check first it may be possible. Edited December 5, 2014 by Renamon Link to comment https://forums.kleientertainment.com/forums/topic/45294-modmainlua-question/#findComment-579037 Share on other sites More sharing options...
StalkinU Posted December 5, 2014 Author Share Posted December 5, 2014 Yeah well, wouldn't know how xDTried making a .ini file in the hopes that would work, but nope. My second aproach is taking all the prefabs and assets putting those in modmain, then moving all the functions over to the corrosponding script files.Worked for our caveman and cactus, however xD Mister skeleton doesn't seem to be wanting to reincarnate from his script Link to comment https://forums.kleientertainment.com/forums/topic/45294-modmainlua-question/#findComment-579100 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now