Jump to content

modmain.lua question


StalkinU

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
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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

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.

×
  • Create New...