Jump to content

Recommended Posts

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/off

With 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

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 by Renamon

Yeah well, wouldn't know how xD

Tried 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...