Jump to content

[GUIDE] How to install,configure and update mods on Dedicated Server


Recommended Posts

This guide is for helping step by step to install,configure and update mods on dedicated server

 

Guide Version Compatibility: Game Update 166077

 

Spoiler

I want to clarify that I will show my method to install, configure and update mods on dedicated server,maybe it's not the best method,but at least it works fine, there are lots of ways to do this

 

I just want to explain the install with maximum information,I going show you some example but you can customize as you wish

this tutorial is for all systems ( Linux, Windows server, Mac OS X ) and also for pre-configured dedicated server


so i going make example with 3 mods for install,configure and update mods on dedicated server


1) subscribe on steam workshop:


mod Health Info:
http://steamcommunity.com/sharedfiles/filedetails/?id=375859599

mod Global Position:
http://steamcommunity.com/sharedfiles/filedetails/?id=378160973

mod Ancient Altar:
http://steamcommunity.com/sharedfiles/filedetails/?id=481765222


you need subscribe to the mods on steam workshop for download mods on your computer:

 


2) installation of mods :


now i going explain how install mods on all systems and also for pre-configure dedicated server


this is for preconfigured dedicated server:

 

Spoiler

I going show a example for install mods, it's based about settings on this guide for preconfigured dedicated server:

 

http://steamcommunity.com/sharedfiles/filedetails/?id=635281092

 

here the default path directory for mods of your game

Steam\steamapps\common\Don't Starve Together Dedicated Server\mods

some example:

C:\Steam\steamapps\common\Don't Starve Together Dedicated Server\mods

D:\Steam\steamapps\common\Don't Starve Together Dedicated Server\mods

E:\Steam\steamapps\common\Don't Starve Together Dedicated Server\mods

you guessed it all depends on which hard drive is installed your game

so you need to edit file: dedicated_server_mods_setup.lua

here is a simple example to how add your mods in this file:


--#Global Position
ServerModSetup("378160973")

--#Ancient Altar
ServerModSetup("481765222")

--#Health Info
ServerModSetup("375859599")

of course if you use different mods you just need to change numbers and names

to retrieve the numbers of mods, this is very simple

you just have to get the numbers of mods of the folder the folder workshop-xxxxxxxx in same path directory

workshop-378160973

workshop-481765222

workshop-375859599

to find out which number corresponds to such mod, consult the modinfo.lua file that's in every mods (check screenshots)

name = "Global Positions"

name = "Ancient Altar"

name = "Health Info"

when you have finish don't forget to save dedicated_server_mods_setup.lua

for the moment the mods are just installed on the server, but they are not activated, you need follow the next step


how add mods in dedicated_server_mods_setup.lua:


http://nsa37.casimages.com/img/2016/02/16/160216020639237771.jpg


http://nsa37.casimages.com/img/2016/01/08/160108054006341781.jpg


how retrieve the numbers of mods:


http://nsa37.casimages.com/img/2016/02/26/16022602542487528.jpg


example for find name of mods:


http://nsa37.casimages.com/img/2016/02/26/160226025620337814.jpg


http://nsa38.casimages.com/img/2016/01/08/16010805422340253.jpg



this is for dedicated server on Linux:

 

Spoiler

I going show example for install mods, it's based about settings on my guide dedicated server on Linux:

you need go to the following directory:

cd /home/dst/server_dst/mods


so you need to edit file: dedicated_server_mods_setup.lua


nano /home/dst/server_dst/mods/dedicated_server_mods_setup.lua

here is a simple example to how add your mods in this file:


--#Global Position
ServerModSetup("378160973")

--#Ancient Altar
ServerModSetup("481765222")

--#Health Info
ServerModSetup("375859599")

of course if you use different mods you just need to change numbers and names

to retrieve the numbers of mods, this is very simple

you just have to get the numbers of mods of the folder workshop-xxxxxxxx

(if you are on client linux: cd /media/extra/.steam/steamapps/common/Don't Starve Together/mods)

workshop-378160973

workshop-481765222

workshop-375859599

to find out which number corresponds to such mod, consult the modinfo.lua file that's in every mods (check screenshot)

name = "Global Positions"

name = "Ancient Altar"

name = "Health Info"

when you have finish don't forget to save dedicated_server_mods_setup.lua (press CTRL + X and Y)

for the moment the mods are just installed on the server, but they are not activated, you need follow the next step

how add mods in dedicated_server_mods_setup.lua:


http://nsa37.casimages.com/img/2016/01/08/160108080529188426.jpg

http://nsa38.casimages.com/img/2016/02/03/160203123827173578.jpg


how retrieve the numbers of mods:


http://nsa38.casimages.com/img/2016/01/08/160108080737257691.jpg


example for find name of mods:


http://nsa38.casimages.com/img/2016/01/08/160108081053156946.jpg

http://nsa37.casimages.com/img/2016/01/08/160108081054339660.jpg

 

this is for dedicated server on Mac OS X:

 

Spoiler

I going show example for install mods, it's based about settings on my guide dedicated server on Mac OS X:

you need go to the following directory:

/Users/dst/server_dst/dontstarve_dedicated_server_nullrenderer.app/Contents/mods


so you need to edit file: dedicated_server_mods_setup.lua


nano /Users/dst/server_dst/dontstarve_dedicated_server_nullrenderer.app/Contents/mods/dedicated_server_mods_setup.lua

here is a simple example to how add your mods in this file:


--#Global Position
ServerModSetup("378160973")

--#Ancient Altar
ServerModSetup("481765222")

--#Health Info
ServerModSetup("375859599")

of course if you use different mods you just need to change numbers and names

to retrieve the numbers of mods, this is very simple

you just have to get the numbers of mods of the folder workshop-xxxxxxxx in same path directory

on Mac OS X:

cd /Users/your_user/Library/Application Support/Steam/steamapps/common/Don't Starve Together/dontstarve_steam.app/Contents/mods

workshop-378160973

workshop-481765222

workshop-375859599

to find out which number corresponds to such mod, consult the modinfo.lua file that's in every mods (check screenshot)

name = "Global Positions"

name = "Ancient Altar"

name = "Health Info"

when you have finish don't forget to save dedicated_server_mods_setup.lua (press CTRL + X and Y)

for the moment the mods are just installed on the server, but they are not activated, you need follow the next step

how add mods in dedicated_server_mods_setup.lua:

http://nsa38.casimages.com/img/2016/02/03/160203123244862493.jpg

http://nsa38.casimages.com/img/2016/02/03/160203123515449133.jpg

how retrieve the numbers of mods:

http://nsa37.casimages.com/img/2016/02/03/160203015548703339.jpg

example for find name of mods:

http://nsa38.casimages.com/img/2016/02/03/160203020407100124.jpg

http://nsa38.casimages.com/img/2016/02/03/160203020409193472.jpg

 

this is for dedicated server on Windows Server:

 

Spoiler

I going show example for install mods, it's based about settings on my guide dedicated server on Windows Server:

you need go to the following directory:

C:\server\mods

so you need to edit file: dedicated_server_mods_setup.lua

here is a simple example to how add your mods in this file:


--#Global Position
ServerModSetup("378160973")

--#Ancient Altar
ServerModSetup("481765222")

--#Health Info
ServerModSetup("375859599")

of course if you use different mods you just need to change numbers and names

to retrieve the numbers of mods, this is very simple

you just have to get the numbers of mods of the folder the folder workshop-xxxxxxxx in same path directory

workshop-378160973

workshop-481765222

workshop-375859599

to find out which number corresponds to such mod, consult the modinfo.lua file that's in every mods (check screenshots)

name = "Global Positions"

name = "Ancient Altar"

name = "Health Info"

when you have finish don't forget to save dedicated_server_mods_setup.lua

for the moment the mods are just installed on the server, but they are not activated, you need follow the next step

how add mods in dedicated_server_mods_setup.lua:

http://nsa37.casimages.com/img/2016/02/03/160203025949937090.jpg

http://nsa37.casimages.com/img/2016/02/03/160203025951460679.jpg

how retrieve the numbers of mods:

http://nsa38.casimages.com/img/2016/03/04/160304041753770836.jpg

example for find name of mods:

http://nsa38.casimages.com/img/2016/03/04/160304042332524689.jpg

http://nsa38.casimages.com/img/2016/01/08/16010805422340253.jpg

 

3) enable and configure mods :

 

now i going explain how enable and settings your mods on dedicated server

 

this is for pre-configured dedicated server:

 

Spoiler

I going show a example for enabled and configure mods, it's based about settings on this guide for preconfigured dedicated server:

 

http://steamcommunity.com/sharedfiles/filedetails/?id=635281092

 

in this first example, i just going explain how enabled your mods on dedicated server with setting default

so you need to edit this file for server Overworld (if not exit you need to create modoverrides.lua):

Documents\Klei\DoNotStarveTogether_EasyConfigOverworld\Cluster_1\Master\modoverrides.lua

and also for server Cave:

Documents\Klei\DoNotStarveTogether_EasyConfigCaves\Cluster_1\Master\modoverrides.lua

 

--

 

here's example how to create file modoverrides.lua (it's imperative that the type of file is lua and not Text Document):

create Text Document:

http://nsa38.casimages.com/img/2016/02/26/160226031458429826.jpg

open the New Text Document:

http://nsa38.casimages.com/img/2016/02/26/160226031458540623.jpg

add your mods what you want:

http://nsa38.casimages.com/img/2016/02/26/160226031458915401.jpg

save your modoverrides.lua:

http://nsa37.casimages.com/img/2016/02/26/160226031458813122.jpg

http://nsa38.casimages.com/img/2016/02/26/160226031459384834.jpg

now you can see your file is correctly type lua:

http://nsa38.casimages.com/img/2016/02/26/160226031459107754.jpg

you can delete your New Text Document

 

--

 

so now you need to add this in both modoverrides.lua:


return {
--#Global Position
["workshop-378160973"] = { enabled = true },
--#Ancient Altar
["workshop-481765222"] = { enabled = true },
--#Health Info
["workshop-375859599"] = { enabled = true }
}

 

Server Overworld:

Documents\Klei\DoNotStarveTogether_EasyConfigOverworld\Cluster_1\Master\modoverrides.lua

Server Cave:

Documents\Klei\DoNotStarveTogether_EasyConfigCaves\Cluster_1\Master\modoverrides.lua

 

if you use different mods, you can change the name and the numbers of mods, you can added more mods additional without problem, simply take this example:

1602041218537551.png

you can copy/paste and adapted in relation to the mods you want to set in your modoverrides.lua:


return {
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true }
}

warning, latest mod should have no colon at the end, for this works correctly:

160204013835873327.png

then just start the server to see that the mods are enabled on your dedicated server (check screenshot in the end)

--

in this second example, we going activated mods, and also added custom settings

so you need to edit modoverrides.lua:

Documents\Klei\DoNotStarveTogether_EasyConfigOverworld\Cluster_1\Master\modoverrides.lua

and also:

Documents\Klei\DoNotStarveTogether_EasyConfigCaves\Cluster_1\Master\modoverrides.lua

Here is an example:


return {
["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},
["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},
["workshop-375859599"] = { --Health Info
    enabled = true,
    configuration_options =
    {
        ["show_type"] = 1,
    }
}
}

settings are differents depending of mods

for know the settings possible of your mods, you need view the file modinfo.lua

example for mod Global Position, go here:

Steam\steamapps\common\Don't Starve Together Dedicated Server\mods\workshop-378160973\modinfo.lua

just look the part configuration option:


configuration_options =
{
	{
		name = "SHOWPLAYERSOPTIONS",
		label = "Player Indicators",
		hover = "The arrow things that show players past the edge of the screen.",
		options =	{
						{description = "Always", data = 3},
						{description = "Scoreboard", data = 2},
						{description = "Never", data = 1},
					},
		default = 2,
	},
	{
		name = "SHOWPLAYERICONS",
		label = "Player Icons",
		hover = "The player icons on the map.",
		options =	{
						{description = "Show", data = true},
						{description = "Hide", data = false},
					},
		default = true,
	},
	{
		name = "FIREOPTIONS",
		label = "Show Fires",
		hover = "Show fires with indicators like players." ..
				"\nThey will smoke when they are visible this way.",
		options =	{
						{description = "Always", data = 1},
						{description = "Charcoal", data = 2},
						{description = "Disabled", data = 3},
					},
		default = 2,
	},
	{
		name = "SHOWFIREICONS",
		label = "Fire Icons",
		hover = "Show fires globally on the map (this will only work if fires are set to show)." ..
				"\nThey will smoke when they are visible this way.",
		options =	{
						{description = "Show", data = true},
						{description = "Hide", data = false},
					},
		default = true,
	},
	{
		name = "SHAREMINIMAPPROGRESS",
		label = "Share Map",
		hover = "Share map exploration between players. This will only work if" .. 
				"\n'Player Indicators' and 'Player Icons' are not both disabled." ..
				"\nMap revealed this way cannot be saved/loaded.",
		options =	{
						{description = "Enabled", data = true},
						{description = "Disabled", data = false},
					},
		default = true,
	},
	{
		name = "OVERRIDEMODE",
		label = "Wilderness Override",
		hover = "If enabled, it will use the other options you set in Wilderness mode." ..
				"\nOtherwise, it will not show players, but all fires will smoke and be visible.",
		options =	{
						{description = "Enabled", data = true},
						{description = "Disabled", data = false},
					},
		default = false,
	},
}

here's what do you need changed for add your mod with your custom settings with this example:

160204121852874321.png

you can copy/paste and adapted in relation to the mods you want to set in your modoverrides.lua:


return {
["name of folder of your mod"] = { --name of your mod
    enabled = true,
    configuration_options =
    {
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
    }
},
["name of folder of your mod"] = { --name of your mod
    enabled = true,
    configuration_options =
    {
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
    }
},
["name of folder of your mod"] = { --name of your mod
    enabled = true,
    configuration_options =
    {
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
    }
}
}

warning, latest mod should have no colon at the end, for this works correctly:

16020401383680416.png

just choose the settings you want and integrated into your file modoverrides.lua, example with Global Position:

configuration_options =

{

    {   

       name = "SHOWPLAYERSOPTIONS",  

       label = "Player Indicators",   

       hover = "The arrow things that show players past the edge of the screen.",

       options =    {      

                 {description = "Always", data = 3},       

                 {description = "Scoreboard", data = 2},       

                 {description = "Never", data = 1},          

           },      

       default = 2,

   },

    {     

    name = "SHOWPLAYERICONS",      

   label = "Player Icons",      

   hover = "The player icons on the map.",      

   options =    {           

             {description = "Show", data = true},           

             {description = "Hide", data = false},           

         },   

     default = true,   

 },  

   {     

    name = "FIREOPTIONS",     

    label = "Show Fires",   

     hover = "Show fires with indicators like players." ..         

        "\nThey will smoke when they are visible this way.",     

    options =    {             

            {description = "Always", data = 1},       

            {description = "Charcoal", data = 2},           

            {description = "Disabled", data = 3},              

       },     

    default = 2,   

 },   

 {      

   name = "SHOWFIREICONS",   

     label = "Fire Icons",   

     hover = "Show fires globally on the map (this will only work if fires are set to show)." ..      

           "\nThey will smoke when they are visible this way.",       

 options =    {                  

            {description = "Show", data = true},         

            {description = "Hide", data = false},          

           },   

     default = true,  

   },   

 {     

    name = "SHAREMINIMAPPROGRESS",   

     label = "Share Map",      

   hover = "Share map exploration between players. This will only work if" ..           

     "\n'Player Indicators' and 'Player Icons' are not both disabled." ..       

         "\nMap revealed this way cannot be saved/loaded.",   

     options =    {               

             {description = "Enabled", data = true},         

             {description = "Disabled", data = false},          

           },      

   default = true,

    },   

 {      

   name = "OVERRIDEMODE",   

     label = "Wilderness Override",   

     hover = "If enabled, it will use the other options you set in Wilderness mode." ..     

            "\nOtherwise, it will not show players, but all fires will smoke and be visible.",     

    options =    {           

             {description = "Enabled", data = true},         

             {description = "Disabled", data = false},          

           },       

 default = false,  

   },

}

--

the result with the settings I choose:

160204121852486321.png

you can copy/paste and adapted in relation to the mods you want to set in your modoverrides.lua:


["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},

you can also mix the mods in modoverrides.lua, between those who are activated without custom setting and those with custom settings

here are some example to integrate all in the modoverrides.lua

for this example, the mod Global Position is enabled but without custom settings,mods Ancient Altar and Health Info are with custom settings:


return {
--#Global Position
["workshop-378160973"] = { enabled = true },
["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},
["workshop-375859599"] = { --Health Info
    enabled = true,
    configuration_options =
    {
        ["show_type"] = 1,
    }
}
}

for this example, the mod Ancient Altar is enabled but without custom settings,mods Global Position and Health Info are with custom settings:


return {
["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},
--#Ancient Altar
["workshop-481765222"] = { enabled = true },
["workshop-375859599"] = { --Health Info
    enabled = true,
    configuration_options =
    {
        ["show_type"] = 1,
    }
}
}

for this example, the mod Health Info is enabled but without custom settings,mods Ancient Altar and Global Position are with custom settings:


return {
["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},
["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},
--#Health Info
["workshop-375859599"] = { enabled = true }
}
}

warning, some mods use apostrophe in their values in modinfo.lua (example with mod Ancient Altar):

160204010436505513.png

it's important in such cases,  add the apostrophe in the mod:

160204010602543706.png

 


["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},

 

if you just let your mods activated without custom setting, it's also possible to see the default value options of the mods in the modinfo.lua, because when you activated a mod and he contains configuration option, the mod executed option with settings by default (example with Ancient Altar):

if you have this in your modoverrides.lua:

160204010830744576.png

mod going start with options by default:

160204010830956691.png

so it's very important to view the file modinfo.lua for enabled or setting mods correctly in the modoverrides.lua

 

enable mods without custom settings:

http://nsa37.casimages.com/img/2016/02/26/160226034729345516.jpg

http://nsa37.casimages.com/img/2016/02/26/160226034729474709.jpg

http://nsa38.casimages.com/img/2016/02/03/160203094125323405.jpg

 

enable mods with custom settings:

http://nsa37.casimages.com/img/2016/02/26/160226034729345516.jpg

http://nsa37.casimages.com/img/2016/02/26/160226034729474709.jpg

http://nsa38.casimages.com/img/2016/02/03/160203094358975317.jpg

 

how find the settings of the mod:

http://nsa38.casimages.com/img/2016/02/26/160226033935465650.jpg

http://nsa38.casimages.com/img/2016/02/03/160203095116557497.jpg

 

how know if your mods are enabled without custom settings are correctly loaded:

http://nsa38.casimages.com/img/2016/02/26/160226034417112921.jpg

http://nsa38.casimages.com/img/2016/02/26/160226034417242585.jpg

http://nsa37.casimages.com/img/2016/02/26/160226125238277594.jpg

 

how know if your mods are enabled with custom settings are correctly loaded:

http://nsa38.casimages.com/img/2016/02/26/160226034417112921.jpg

http://nsa38.casimages.com/img/2016/02/26/160226034417242585.jpg

http://nsa37.casimages.com/img/2016/02/26/160226125346810404.jpg

 

this is for dedicated server on Linux:

 

Spoiler

I going show a example for enabled and configure mods, it's based about settings on this guide for Linux:

in this first example, i just going explain how enabled your mods on dedicated server with setting default

so you need to edit this file for server Overworld:

nano /home/dst/.klei/DoNotStarveTogether/MyDediServer/Master/modoverrides.lua

and also for server Cave:

nano /home/dst/.klei/DoNotStarveTogether/MyDediServer/Caves/modoverrides.lua

so you need to add this in both modoverrides.lua:


return {
--#Global Position
["workshop-378160973"] = { enabled = true },
--#Ancient Altar
["workshop-481765222"] = { enabled = true },
--#Health Info
["workshop-375859599"] = { enabled = true }
}

if you use different mods, you can change the name and the numbers of mods, you can added more mods additional without problem, simply take this example:

1602041218537551.png

you can copy/paste and adapted in relation to the mods you want to set in your modoverrides.lua:


return {
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true }
}

warning, latest mod should have no colon at the end, for this works correctly:

160204013835873327.png

then just start the server to see that the mods are enabled on your dedicated server (check screenshot in thr end)

--

in this second example, we going activated mods, and also added custom settings

so you need to edit modoverrides.lua:

nano /home/dst/.klei/DoNotStarveTogether/MyDediServer/Master/modoverrides.lua

and also:

nano /home/dst/.klei/DoNotStarveTogether/MyDediServer/Caves/modoverrides.lua

here is an example:


return {
["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},
["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},
["workshop-375859599"] = { --Health Info
    enabled = true,
    configuration_options =
    {
        ["show_type"] = 1,
    }
}
}

settings are differents depending of mods

for know the settings possible of your mods, you need view the file modinfo.lua

example for mod Global Position, go here:

/home/dst/server_dst/mods/workshop-378160973/modinfo.lua

just look the part configuration option:


configuration_options =
{
	{
		name = "SHOWPLAYERSOPTIONS",
		label = "Player Indicators",
		hover = "The arrow things that show players past the edge of the screen.",
		options =	{
						{description = "Always", data = 3},
						{description = "Scoreboard", data = 2},
						{description = "Never", data = 1},
					},
		default = 2,
	},
	{
		name = "SHOWPLAYERICONS",
		label = "Player Icons",
		hover = "The player icons on the map.",
		options =	{
						{description = "Show", data = true},
						{description = "Hide", data = false},
					},
		default = true,
	},
	{
		name = "FIREOPTIONS",
		label = "Show Fires",
		hover = "Show fires with indicators like players." ..
				"\nThey will smoke when they are visible this way.",
		options =	{
						{description = "Always", data = 1},
						{description = "Charcoal", data = 2},
						{description = "Disabled", data = 3},
					},
		default = 2,
	},
	{
		name = "SHOWFIREICONS",
		label = "Fire Icons",
		hover = "Show fires globally on the map (this will only work if fires are set to show)." ..
				"\nThey will smoke when they are visible this way.",
		options =	{
						{description = "Show", data = true},
						{description = "Hide", data = false},
					},
		default = true,
	},
	{
		name = "SHAREMINIMAPPROGRESS",
		label = "Share Map",
		hover = "Share map exploration between players. This will only work if" .. 
				"\n'Player Indicators' and 'Player Icons' are not both disabled." ..
				"\nMap revealed this way cannot be saved/loaded.",
		options =	{
						{description = "Enabled", data = true},
						{description = "Disabled", data = false},
					},
		default = true,
	},
	{
		name = "OVERRIDEMODE",
		label = "Wilderness Override",
		hover = "If enabled, it will use the other options you set in Wilderness mode." ..
				"\nOtherwise, it will not show players, but all fires will smoke and be visible.",
		options =	{
						{description = "Enabled", data = true},
						{description = "Disabled", data = false},
					},
		default = false,
	},
}

here's what do you need changed for add your mod with your custom settings with this example:

160204121852874321.png

you can copy/paste and adapted in relation to the mods you want to set in your modoverrides.lua:


return {
["name of folder of your mod"] = { --name of your mod
    enabled = true,
    configuration_options =
    {
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
    }
},
["name of folder of your mod"] = { --name of your mod
    enabled = true,
    configuration_options =
    {
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
    }
},
["name of folder of your mod"] = { --name of your mod
    enabled = true,
    configuration_options =
    {
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
    }
}
}

warning, latest mod should have no colon at the end, for this works correctly:

16020401383680416.png

just choose the settings you want and integrated into your file modoverrides.lua, example with Global Position:

configuration_options =

{

    {   

       name = "SHOWPLAYERSOPTIONS",  

       label = "Player Indicators",   

       hover = "The arrow things that show players past the edge of the screen.",

       options =    {      

                 {description = "Always", data = 3},       

                 {description = "Scoreboard", data = 2},       

                 {description = "Never", data = 1},          

           },      

       default = 2,

   },

    {     

    name = "SHOWPLAYERICONS",      

   label = "Player Icons",      

   hover = "The player icons on the map.",      

   options =    {           

             {description = "Show", data = true},           

             {description = "Hide", data = false},           

         },   

     default = true,   

 },  

   {     

    name = "FIREOPTIONS",     

    label = "Show Fires",   

     hover = "Show fires with indicators like players." ..         

        "\nThey will smoke when they are visible this way.",     

    options =    {             

            {description = "Always", data = 1},       

            {description = "Charcoal", data = 2},           

            {description = "Disabled", data = 3},              

       },     

    default = 2,   

 },   

 {      

   name = "SHOWFIREICONS",   

     label = "Fire Icons",   

     hover = "Show fires globally on the map (this will only work if fires are set to show)." ..      

           "\nThey will smoke when they are visible this way.",       

 options =    {                  

            {description = "Show", data = true},         

            {description = "Hide", data = false},          

           },   

     default = true,  

   },   

 {     

    name = "SHAREMINIMAPPROGRESS",   

     label = "Share Map",      

   hover = "Share map exploration between players. This will only work if" ..           

     "\n'Player Indicators' and 'Player Icons' are not both disabled." ..       

         "\nMap revealed this way cannot be saved/loaded.",   

     options =    {               

             {description = "Enabled", data = true},         

             {description = "Disabled", data = false},          

           },      

   default = true,

    },   

 {      

   name = "OVERRIDEMODE",   

     label = "Wilderness Override",   

     hover = "If enabled, it will use the other options you set in Wilderness mode." ..     

            "\nOtherwise, it will not show players, but all fires will smoke and be visible.",     

    options =    {           

             {description = "Enabled", data = true},         

             {description = "Disabled", data = false},          

           },       

 default = false,  

   },

}

--

the result with the settings I choose:

160204121852486321.png

you can copy/paste and adapted in relation to the mods you want to set in your modoverrides.lua:


["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},

you can also mix the mods in modoverrides.lua, between those who are activated without custom setting and those with custom settings

here are some example to integrate all in the modoverrides.lua

for this example, the mod Global Position is enabled but without custom settings,mods Ancient Altar and Health Info are with custom settings


return {
--#Global Position
["workshop-378160973"] = { enabled = true },
["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},
["workshop-375859599"] = { --Health Info
    enabled = true,
    configuration_options =
    {
        ["show_type"] = 1,
    }
}
}

for this example, the mod Ancient Altar is enabled but without custom settings,mods Global Position and Health Info are with custom settings:


return {
["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},
--#Ancient Altar
["workshop-481765222"] = { enabled = true },
["workshop-375859599"] = { --Health Info
    enabled = true,
    configuration_options =
    {
        ["show_type"] = 1,
    }
}
}

for this example, the mod Health Info is enabled but without custom settings,mods Ancient Altar and Global Position are with custom settings:


return {
["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},
["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},
--#Health Info
["workshop-375859599"] = { enabled = true }
}
}

warning, some mods use apostrophe in their values in modinfo.lua (example with mod Ancient Altar):

160204010436505513.png

it's important in such cases,  add the apostrophe in the mod:

160204010602543706.png

if you just let your mods activated without custom setting, it's also possible to see the default value options of the mods in the modinfo.lua, because when you activated a mod and he contains configuration option, the mod executed option with settings by default (example with Ancient Altar):

if you have this in your modoverrides.lua:

160204010830744576.png

mod going start with options by default:

160204010830956691.png

so it's very important to view the file modinfo.lua for enabled or setting mods correctly in the modoverrides.lua

 

enable mods without custom settings:

http://nsa37.casimages.com/img/2016/02/26/160226094757102525.jpg

http://nsa38.casimages.com/img/2016/02/26/160226094757920358.jpg

http://nsa38.casimages.com/img/2016/02/04/160204105329311103.jpg

 

enable mods with custom settings:

http://nsa37.casimages.com/img/2016/02/26/160226094757102525.jpg

http://nsa38.casimages.com/img/2016/02/26/160226094757920358.jpg

http://nsa37.casimages.com/img/2016/02/04/160204105927831675.jpg

 

how find the settings of the mod:

http://nsa38.casimages.com/img/2016/02/04/160204110918200916.jpg

http://nsa37.casimages.com/img/2016/02/04/160204110919633041.jpg

 

how know if your mods are enabled without custom settings are correctly loaded:

http://nsa37.casimages.com/img/2016/02/26/160226095346676804.jpg

http://nsa37.casimages.com/img/2016/02/26/160226095347280130.jpg

http://nsa37.casimages.com/img/2016/02/26/160226095625339491.jpg

 

how know if your mods are enabled with custom settings are correctly loaded:

 

http://nsa37.casimages.com/img/2016/02/26/160226095346676804.jpg

http://nsa37.casimages.com/img/2016/02/26/160226095347280130.jpg

http://nsa38.casimages.com/img/2016/02/26/160226095714406923.jpg

 

this is for dedicated server on Mac OS X:

 

Spoiler

I going show a example for enabled and configure mods, it's based about settings on this guide for Mac OS X:

in this first example, i just going explain how enabled your mods on dedicated server with setting default

so you need to edit this file for server Overworld:

nano /Users/dst/Documents/Klei/DoNotStarveTogether/MyDediServer/Master/modoverrides.lua

and also for server Cave:

nano /Users/dst/Documents/Klei/DoNotStarveTogether/MyDediServer/Caves/modoverrides.lua

so you need to add this in both modoverrides.lua:


return {
--#Global Position
["workshop-378160973"] = { enabled = true },
--#Ancient Altar
["workshop-481765222"] = { enabled = true },
--#Health Info
["workshop-375859599"] = { enabled = true }
}

if you use different mods, you can change the name and the numbers of mods, you can added more mods additional without problem, simply take this example:

1602041218537551.png

you can copy/paste and adapted in relation to the mods you want to set in your modoverrides.lua:


return {
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true }
}

warning, latest mod should have no colon at the end, for this works correctly:

160204013835873327.png

then just start the server to see that the mods are enabled on your dedicated server (check screenshot in the end)

--

in this second example, we going activated mods, and also added custom settings

so you need to edit modoverrides.lua:

nano /Users/dst/Documents/Klei/DoNotStarveTogether/MyDediServer/Master/modoverrides.lua

and also:

nano /Users/dst/Documents/Klei/DoNotStarveTogether/MyDediServer/Caves/modoverrides.lua

here is an example:


return {
["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},
["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},
["workshop-375859599"] = { --Health Info
    enabled = true,
    configuration_options =
    {
        ["show_type"] = 1,
    }
}
}

settings are differents depending of mods

for know the settings possible of your mods, you need view the file modinfo.lua

example for mod Global Position, go here:

Steam\steamapps\common\Don't Starve Together Dedicated Server\mods\workshop-378160973\modinfo.lua

just look the part configuration option:


configuration_options =
{
	{
		name = "SHOWPLAYERSOPTIONS",
		label = "Player Indicators",
		hover = "The arrow things that show players past the edge of the screen.",
		options =	{
						{description = "Always", data = 3},
						{description = "Scoreboard", data = 2},
						{description = "Never", data = 1},
					},
		default = 2,
	},
	{
		name = "SHOWPLAYERICONS",
		label = "Player Icons",
		hover = "The player icons on the map.",
		options =	{
						{description = "Show", data = true},
						{description = "Hide", data = false},
					},
		default = true,
	},
	{
		name = "FIREOPTIONS",
		label = "Show Fires",
		hover = "Show fires with indicators like players." ..
				"\nThey will smoke when they are visible this way.",
		options =	{
						{description = "Always", data = 1},
						{description = "Charcoal", data = 2},
						{description = "Disabled", data = 3},
					},
		default = 2,
	},
	{
		name = "SHOWFIREICONS",
		label = "Fire Icons",
		hover = "Show fires globally on the map (this will only work if fires are set to show)." ..
				"\nThey will smoke when they are visible this way.",
		options =	{
						{description = "Show", data = true},
						{description = "Hide", data = false},
					},
		default = true,
	},
	{
		name = "SHAREMINIMAPPROGRESS",
		label = "Share Map",
		hover = "Share map exploration between players. This will only work if" .. 
				"\n'Player Indicators' and 'Player Icons' are not both disabled." ..
				"\nMap revealed this way cannot be saved/loaded.",
		options =	{
						{description = "Enabled", data = true},
						{description = "Disabled", data = false},
					},
		default = true,
	},
	{
		name = "OVERRIDEMODE",
		label = "Wilderness Override",
		hover = "If enabled, it will use the other options you set in Wilderness mode." ..
				"\nOtherwise, it will not show players, but all fires will smoke and be visible.",
		options =	{
						{description = "Enabled", data = true},
						{description = "Disabled", data = false},
					},
		default = false,
	},
}

here's what do you need changed for add your mod with your custom settings with this example:

160204121852874321.png

you can copy/paste and adapted in relation to the mods you want to set in your modoverrides.lua:


return {
["name of folder of your mod"] = { --name of your mod
    enabled = true,
    configuration_options =
    {
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
    }
},
["name of folder of your mod"] = { --name of your mod
    enabled = true,
    configuration_options =
    {
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
    }
},
["name of folder of your mod"] = { --name of your mod
    enabled = true,
    configuration_options =
    {
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
    }
}
}

warning, latest mod should have no colon at the end, for this works correctly:

16020401383680416.png

just choose the settings you want and integrated into your file modoverrides.lua, example with Global Position:

configuration_options =

{

    {   

       name = "SHOWPLAYERSOPTIONS",  

       label = "Player Indicators",   

       hover = "The arrow things that show players past the edge of the screen.",

       options =    {      

                 {description = "Always", data = 3},       

                 {description = "Scoreboard", data = 2},       

                 {description = "Never", data = 1},          

           },      

       default = 2,

   },

    {     

    name = "SHOWPLAYERICONS",      

   label = "Player Icons",      

   hover = "The player icons on the map.",      

   options =    {           

             {description = "Show", data = true},           

             {description = "Hide", data = false},           

         },   

     default = true,   

 },  

   {     

    name = "FIREOPTIONS",     

    label = "Show Fires",   

     hover = "Show fires with indicators like players." ..         

        "\nThey will smoke when they are visible this way.",     

    options =    {             

            {description = "Always", data = 1},       

            {description = "Charcoal", data = 2},           

            {description = "Disabled", data = 3},              

       },     

    default = 2,   

 },   

 {      

   name = "SHOWFIREICONS",   

     label = "Fire Icons",   

     hover = "Show fires globally on the map (this will only work if fires are set to show)." ..      

           "\nThey will smoke when they are visible this way.",       

 options =    {                  

            {description = "Show", data = true},         

            {description = "Hide", data = false},          

           },   

     default = true,  

   },   

 {     

    name = "SHAREMINIMAPPROGRESS",   

     label = "Share Map",      

   hover = "Share map exploration between players. This will only work if" ..           

     "\n'Player Indicators' and 'Player Icons' are not both disabled." ..       

         "\nMap revealed this way cannot be saved/loaded.",   

     options =    {               

             {description = "Enabled", data = true},         

             {description = "Disabled", data = false},          

           },      

   default = true,

    },   

 {      

   name = "OVERRIDEMODE",   

     label = "Wilderness Override",   

     hover = "If enabled, it will use the other options you set in Wilderness mode." ..     

            "\nOtherwise, it will not show players, but all fires will smoke and be visible.",     

    options =    {           

             {description = "Enabled", data = true},         

             {description = "Disabled", data = false},          

           },       

 default = false,  

   },

}

--

the result with the settings I choose:

160204121852486321.png

you can copy/paste and adapted in relation to the mods you want to set in your modoverrides.lua:


["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},

you can also mix the mods in modoverrides.lua, between those who are activated without custom setting and those with custom settings

here are some example to integrate all in the modoverrides.lua

for this example, the mod Global Position is enabled but without custom settings,mods Ancient Altar and Health Info are with custom settings


return {
--#Global Position
["workshop-378160973"] = { enabled = true },
["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},
["workshop-375859599"] = { --Health Info
    enabled = true,
    configuration_options =
    {
        ["show_type"] = 1,
    }
}
}

for this example, the mod Ancient Altar is enabled but without custom settings,mods Global Position and Health Info are with custom settings:


return {
["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},
--#Ancient Altar
["workshop-481765222"] = { enabled = true },
["workshop-375859599"] = { --Health Info
    enabled = true,
    configuration_options =
    {
        ["show_type"] = 1,
    }
}
}

for this example, the mod Health Info is enabled but without custom settings,mods Ancient Altar and Global Position are with custom settings:


return {
["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},
["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},
--#Health Info
["workshop-375859599"] = { enabled = true }
}
}

warning, some mods use apostrophe in their values in modinfo.lua (example with mod Ancient Altar):

160204010436505513.png

it's important in such cases,  add the apostrophe in the mod:

160204010602543706.png

if you just let your mods activated without custom setting, it's also possible to see the default value options of the mods in the modinfo.lua, because when you activated a mod and he contains configuration option, the mod executed option with settings by default (example with Ancient Altar):

if you have this in your modoverrides.lua:

160204010830744576.png

mod going start with options by default:

160204010830956691.png

so it's very important to view the file modinfo.lua for enabled or setting mods correctly in the modoverrides.lua

 

enable mods without custom settings:

http://nsa37.casimages.com/img/2016/02/26/160226120244611282.jpg

http://nsa38.casimages.com/img/2016/02/26/16022612024593502.jpg

http://nsa38.casimages.com/img/2016/02/04/160204105329311103.jpg

 

enable mods with custom settings:

http://nsa37.casimages.com/img/2016/02/26/160226120244611282.jpg

http://nsa38.casimages.com/img/2016/02/26/16022612024593502.jpg

http://nsa37.casimages.com/img/2016/02/04/160204105927831675.jpg

 

how find the settings of the mod:

http://nsa37.casimages.com/img/2016/02/26/160226120742491000.jpg

http://nsa37.casimages.com/img/2016/02/04/160204110919633041.jpg

 

how know if your mods are enabled without custom settings are correctly loaded:

http://nsa37.casimages.com/img/2016/02/26/160226121421393023.jpg

http://nsa37.casimages.com/img/2016/02/26/160226121421515706.jpg

http://nsa37.casimages.com/img/2016/02/26/160226095625339491.jpg

 

 

how know if your mods are enabled with custom settings are correctly loaded:

http://nsa37.casimages.com/img/2016/02/26/160226121421393023.jpg

http://nsa37.casimages.com/img/2016/02/26/160226121421515706.jpg

http://nsa38.casimages.com/img/2016/02/26/160226095714406923.jpg

 

this is for dedicated server on Windows Server:

 

Spoiler

I going show a example for enabled and configure mods, it's based about settings on this guide for Windows Server:

in this first example, i just going explain how enabled your mods on dedicated server with setting default

so you need to edit this file for server Overworld (if not exit you need to create modoverrides.lua):

Documents\Klei\DoNotStarveTogether\MyDediServer\Master\modoverrides.lua

and also for server Cave:

Documents\Klei\DoNotStarveTogether\MyDediServer\Caves\modoverrides.lua

 

--

 

here's example how to create file modoverrides.lua (it's imperative that the type of file is lua and not Text Document):

create Text Document:

http://nsa38.casimages.com/img/2016/02/26/160226031458429826.jpg

open the New Text Document:

http://nsa38.casimages.com/img/2016/02/26/160226031458540623.jpg

add your mods what you want:

http://nsa38.casimages.com/img/2016/02/26/160226031458915401.jpg

save your modoverrides.lua:

http://nsa37.casimages.com/img/2016/02/26/160226031458813122.jpg

http://nsa38.casimages.com/img/2016/02/26/160226031459384834.jpg

now you can see your file is correctly type lua:

http://nsa38.casimages.com/img/2016/02/26/160226031459107754.jpg

you can delete your New Text Document

 

--

 

so you need to add this in both modoverrides.lua:


return {
--#Global Position
["workshop-378160973"] = { enabled = true },
--#Ancient Altar
["workshop-481765222"] = { enabled = true },
--#Health Info
["workshop-375859599"] = { enabled = true }
}

if you use different mods, you can change the name and the numbers of mods, you can added more mods additional without problem, simply take this example:

1602041218537551.png

you can copy/paste and adapted in relation to the mods you want to set in your modoverrides.lua:


return {
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true },
--#name of mod
["workshop-numbers_of_mod"] = { enabled = true }
}

warning, latest mod should have no colon at the end, for this works correctly:

160204013835873327.png

then just start the server to see that the mods are enabled on your dedicated server (check screenshot in the end)

--

in this second example, we going activated mods, and also added custom settings

so you need to edit modoverrides.lua:

Documents\Klei\DoNotStarveTogether\MyDediServer\Master\modoverrides.lua

and also:

Documents\Klei\DoNotStarveTogether\MyDediServer\Caves\modoverrides.lua

here is an example:


return {
["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},
["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},
["workshop-375859599"] = { --Health Info
    enabled = true,
    configuration_options =
    {
        ["show_type"] = 1,
    }
}
}

settings are differents depending of mods

for know the settings possible of your mods, you need view the file modinfo.lua

example for mod Global Position, go here:

Steam\steamapps\common\Don't Starve Together Dedicated Server\mods\workshop-378160973\modinfo.lua

just look the part configuration option:


configuration_options =
{
	{
		name = "SHOWPLAYERSOPTIONS",
		label = "Player Indicators",
		hover = "The arrow things that show players past the edge of the screen.",
		options =	{
						{description = "Always", data = 3},
						{description = "Scoreboard", data = 2},
						{description = "Never", data = 1},
					},
		default = 2,
	},
	{
		name = "SHOWPLAYERICONS",
		label = "Player Icons",
		hover = "The player icons on the map.",
		options =	{
						{description = "Show", data = true},
						{description = "Hide", data = false},
					},
		default = true,
	},
	{
		name = "FIREOPTIONS",
		label = "Show Fires",
		hover = "Show fires with indicators like players." ..
				"\nThey will smoke when they are visible this way.",
		options =	{
						{description = "Always", data = 1},
						{description = "Charcoal", data = 2},
						{description = "Disabled", data = 3},
					},
		default = 2,
	},
	{
		name = "SHOWFIREICONS",
		label = "Fire Icons",
		hover = "Show fires globally on the map (this will only work if fires are set to show)." ..
				"\nThey will smoke when they are visible this way.",
		options =	{
						{description = "Show", data = true},
						{description = "Hide", data = false},
					},
		default = true,
	},
	{
		name = "SHAREMINIMAPPROGRESS",
		label = "Share Map",
		hover = "Share map exploration between players. This will only work if" .. 
				"\n'Player Indicators' and 'Player Icons' are not both disabled." ..
				"\nMap revealed this way cannot be saved/loaded.",
		options =	{
						{description = "Enabled", data = true},
						{description = "Disabled", data = false},
					},
		default = true,
	},
	{
		name = "OVERRIDEMODE",
		label = "Wilderness Override",
		hover = "If enabled, it will use the other options you set in Wilderness mode." ..
				"\nOtherwise, it will not show players, but all fires will smoke and be visible.",
		options =	{
						{description = "Enabled", data = true},
						{description = "Disabled", data = false},
					},
		default = false,
	},
}

here's what do you need changed for add your mod with your custom settings with this example:

160204121852874321.png

you can copy/paste and adapted in relation to the mods you want to set in your modoverrides.lua


return {
["name of folder of your mod"] = { --name of your mod
    enabled = true,
    configuration_options =
    {
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
    }
},
["name of folder of your mod"] = { --name of your mod
    enabled = true,
    configuration_options =
    {
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
    }
},
["name of folder of your mod"] = { --name of your mod
    enabled = true,
    configuration_options =
    {
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
        ["name_of_option"] = data,
    }
}
}

warning, latest mod should have no colon at the end, for this works correctly:

16020401383680416.png

just choose the settings you want and integrated into your file modoverrides.lua, example with Global Position:

configuration_options =

{

    {   

       name = "SHOWPLAYERSOPTIONS",  

       label = "Player Indicators",   

       hover = "The arrow things that show players past the edge of the screen.",

       options =    {      

                 {description = "Always", data = 3},       

                 {description = "Scoreboard", data = 2},       

                 {description = "Never", data = 1},          

           },      

       default = 2,

   },

    {     

    name = "SHOWPLAYERICONS",      

   label = "Player Icons",      

   hover = "The player icons on the map.",      

   options =    {           

             {description = "Show", data = true},           

             {description = "Hide", data = false},           

         },   

     default = true,   

 },  

   {     

    name = "FIREOPTIONS",     

    label = "Show Fires",   

     hover = "Show fires with indicators like players." ..         

        "\nThey will smoke when they are visible this way.",     

    options =    {             

            {description = "Always", data = 1},       

            {description = "Charcoal", data = 2},           

            {description = "Disabled", data = 3},              

       },     

    default = 2,   

 },   

 {      

   name = "SHOWFIREICONS",   

     label = "Fire Icons",   

     hover = "Show fires globally on the map (this will only work if fires are set to show)." ..      

           "\nThey will smoke when they are visible this way.",       

 options =    {                  

            {description = "Show", data = true},         

            {description = "Hide", data = false},          

           },   

     default = true,  

   },   

 {     

    name = "SHAREMINIMAPPROGRESS",   

     label = "Share Map",      

   hover = "Share map exploration between players. This will only work if" ..           

     "\n'Player Indicators' and 'Player Icons' are not both disabled." ..       

         "\nMap revealed this way cannot be saved/loaded.",   

     options =    {               

             {description = "Enabled", data = true},         

             {description = "Disabled", data = false},          

           },      

   default = true,

    },   

 {      

   name = "OVERRIDEMODE",   

     label = "Wilderness Override",   

     hover = "If enabled, it will use the other options you set in Wilderness mode." ..     

            "\nOtherwise, it will not show players, but all fires will smoke and be visible.",     

    options =    {           

             {description = "Enabled", data = true},         

             {description = "Disabled", data = false},          

           },       

 default = false,  

   },

}

--

the result with the settings I choose:

160204121852486321.png

you can copy/paste and adapted in relation to the mods you want to set in your modoverrides.lua:


["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},

you can also mix the mods in modoverrides.lua, between those who are activated without custom setting and those with custom settings

here are some example to integrate all in the modoverrides.lua

for this example, the mod Global Position is enabled but without custom settings,mods Ancient Altar and Health Info are with custom settings


return {
--#Global Position
["workshop-378160973"] = { enabled = true },
["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},
["workshop-375859599"] = { --Health Info
    enabled = true,
    configuration_options =
    {
        ["show_type"] = 1,
    }
}
}

for this example, the mod Ancient Altar is enabled but without custom settings,mods Global Position and Health Info are with custom settings:


return {
["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},
--#Ancient Altar
["workshop-481765222"] = { enabled = true },
["workshop-375859599"] = { --Health Info
    enabled = true,
    configuration_options =
    {
        ["show_type"] = 1,
    }
}
}

for this example, the mod Health Info is enabled but without custom settings,mods Ancient Altar and Global Position are with custom settings:


return {
["workshop-378160973"] = { --Global Position
    enabled = true,
    configuration_options =
    {
        ["SHOWPLAYERSOPTIONS"] = 1,
        ["SHOWPLAYERICONS"] = true,
        ["FIREOPTIONS"] = 3,
        ["SHOWFIREICONS"] = false,
        ["SHAREMINIMAPPROGRESS"] = false,
        ["OVERRIDEMODE"] = false,
    }
},
["workshop-481765222"] = { --Ancient Altar
    enabled = true,
    configuration_options =
    {
        ["AncientStation"] = "hard",
        ["ThuleciteFragments"] = "easy",
    }
},
--#Health Info
["workshop-375859599"] = { enabled = true }
}
}

warning, some mods use apostrophe in their values in modinfo.lua (example with mod Ancient Altar):

160204010436505513.png

it's important in such cases,  add the apostrophe in the mod:

160204010602543706.png

if you just let your mods activated without custom setting, it's also possible to see the default value options of the mods in the modinfo.lua, because when you activated a mod and he contains configuration option, the mod executed option with settings by default (example with Ancient Altar):

if you have this in your modoverrides.lua:

160204010830744576.png

mod going start with options by default:

160204010830956691.png

so it's very important to view the file modinfo.lua for enabled or setting mods correctly in the modoverrides.lua

 

enable mods without custom settings:

http://nsa38.casimages.com/img/2016/02/26/160226124645338180.jpg

http://nsa37.casimages.com/img/2016/02/26/160226124645699656.jpg

http://nsa38.casimages.com/img/2016/02/03/160203094125323405.jpg

 

enable mods with custom settings:

http://nsa38.casimages.com/img/2016/02/26/160226124645338180.jpg

http://nsa37.casimages.com/img/2016/02/26/160226124645699656.jpg

http://nsa38.casimages.com/img/2016/02/03/160203094358975317.jpg

 

how find the settings of the mod:

http://nsa37.casimages.com/img/2016/02/26/160226124917861344.jpg

http://nsa38.casimages.com/img/2016/02/03/160203095116557497.jpg

 

how know if your mods are enabled without custom settings are correctly loaded:

http://nsa38.casimages.com/img/2016/02/26/160226125126420840.jpg

http://nsa37.casimages.com/img/2016/02/26/160226125126742873.jpg

http://nsa37.casimages.com/img/2016/02/26/160226125238277594.jpg

 

how know if your mods are enabled with custom settings are correctly loaded:

http://nsa38.casimages.com/img/2016/02/26/160226034417112921.jpg

http://nsa38.casimages.com/img/2016/02/26/160226034417242585.jpg

http://nsa37.casimages.com/img/2016/02/26/160226125346810404.jpg

 

3) update mods on dedicated server :

 

this is for pre-configured dedicated server:

 

Spoiler

I going show a example for update mods, it's based about settings on this guide for preconfigured dedicated server:

 

http://steamcommunity.com/sharedfiles/filedetails/?id=635281092

 

--

 

it often happens that the mods are updated by creator, the problem is if the mod is not updated on the server, and if the other players do not have the mod or an old version of the mod in their game, server is going not accessible for new players

 

--

 

warning, this is not the case for all the mods,

all depends if the function (all_clients_require_mod) is disabled or enabled in the mod:

http://nsa37.casimages.com/img/2016/02/26/160226015519691936.jpg

 

--

 

here are the type of message that can appear for server administrators when the mod is not updated on the server:

http://nsa38.casimages.com/img/2016/02/26/160226011830439761.jpg

 

this is also displayed in the server log:

http://nsa37.casimages.com/img/2016/02/26/160226012404508332.jpg

 

--

 

the only way to update your mod, you must restart servers:

 

stop both server with command c_shutdown():

http://nsa37.casimages.com/img/2016/02/26/160226014335831102.jpg

 

start both servers:

http://nsa38.casimages.com/img/2016/02/26/160226014416992667.jpg

 

you can see your mod is now updated in server_log.txt:

http://nsa38.casimages.com/img/2016/02/26/160226014417398975.jpg

http://nsa37.casimages.com/img/2016/02/26/160226014422344942.jpg

 

this is for dedicated server on Linux:

 

Spoiler

I going show a example for update mods, it's based about settings on this guide for Linux:

--

it often happens that the mods are updated by creator, the problem is if the mod is not updated on the server, and if the other players do not have the mod or an old version of the mod in their game, server is going not accessible for new players

 

--

 

warning, this is not the case for all the mods,

all depends if the function (all_clients_require_mod) is disabled or enabled in the mod:

http://nsa37.casimages.com/img/2016/02/26/160226015519691936.jpg

 

--

 

here are the type of message that can appear for server administrators when the mod is not updated on the server:

http://nsa38.casimages.com/img/2016/02/26/160226011830439761.jpg

 

this is also displayed in the server log:

http://nsa37.casimages.com/img/2016/02/26/160226012404508332.jpg

 

--

 

the only way to update your mod, you must restart servers:


sh /home/dst/server_dst/bin/restart.sh
sh /home/dst/server_dst/bin/restart2.sh

http://nsa37.casimages.com/img/2015/11/30/151130032718665840.jpg

if you see the message "No screen session found"

because the script try to kill screen,

so when you launch both scripts for first time, it's start both servers

if you make again sh restart.sh or sh restart2.sh, it's going restart the server

 

--

 

you can see your mod is now updated in server_log.txt:

http://nsa37.casimages.com/img/2016/02/27/160227111305109929.jpg

http://nsa37.casimages.com/img/2016/02/27/160227111129357800.jpg

 

this is for dedicated server on Mac OS X:

 

Spoiler

I going show a example for update mods, it's based about settings on this guide for Mac OS X:

--

 

it often happens that the mods are updated by creator, the problem is if the mod is not updated on the server, and if the other players do not have the mod or an old version of the mod in their game, server is going not accessible for new players

 

--

 

warning, this is not the case for all the mods,

all depends if the function (all_clients_require_mod) is disabled or enabled in the mod:

http://nsa37.casimages.com/img/2016/02/26/160226015519691936.jpg

 

--

 

here are the type of message that can appear for server administrators when the mod is not updated on the server:

http://nsa38.casimages.com/img/2016/02/26/160226011830439761.jpg

 

this is also displayed in the server log:

http://nsa37.casimages.com/img/2016/02/26/160226012404508332.jpg

 

--

 

the only way to update your mod, you must restart servers:


sh /Users/dst/server_dst/dontstarve_dedicated_server_nullrenderer.app/Contents/MacOS/restart.sh
sh /Users/dst/server_dst/dontstarve_dedicated_server_nullrenderer.app/Contents/MacOS/restart2.sh

http://nsa37.casimages.com/img/2016/01/07/160107065620430766.jpg

if you see the message "No screen session found"

because the script try to kill screen,

so when you launch both scripts for first time, it's start both servers

if you make again sh restart.sh or sh restart2.sh, it's going restart the server

 

--

 

you can see your mod is now updated in server_log.txt:

http://nsa38.casimages.com/img/2016/02/27/16022712112557547.jpg

http://nsa38.casimages.com/img/2016/02/27/160227121127818877.jpg

 

this is for dedicated server on Windows Server:

 

Spoiler

I going show a example for update mods, it's based about settings on this guide for Windows Server:

it often happens that the mods are updated by creator, the problem is if the mod is not updated on the server, and if the other players do not have the mod or an old version of the mod in their game, server is going not accessible for new players

 

--

 

warning, this is not the case for all the mods,

all depends if the function (all_clients_require_mod) is disabled or enabled in the mod:

http://nsa37.casimages.com/img/2016/02/26/160226015519691936.jpg

 

--

 

here are the type of message that can appear for server administrators when the mod is not updated on the server:

http://nsa38.casimages.com/img/2016/02/26/160226011830439761.jpg

 

this is also displayed in the server log:

http://nsa37.casimages.com/img/2016/02/26/160226012404508332.jpg

 

--

 

the only way to update your mod, you must restart servers:

just need to restart services for both servers (server_overworld and server_cave):

http://nsa38.casimages.com/img/2015/12/13/151213093313440998.jpg

http://nsa37.casimages.com/img/2016/02/27/16022701071118256.jpg

http://nsa37.casimages.com/img/2016/02/27/160227010710648653.jpg

http://nsa37.casimages.com/img/2016/02/27/160227010711170777.jpg

 

you can see your mod is now updated in server_log.txt:

http://nsa38.casimages.com/img/2016/02/27/160227124218269975.jpg

http://nsa37.casimages.com/img/2016/02/26/160226014422344942.jpg

 

I hope this guide is good for you and especially to help you for install,configure and update mods on your dedicated server :)

 

--

 

I would like to thank everyone who helped me since I arrived in this community

and especially who taught me a lot about the functioning of servers and mods:

 

Rezecib, Maris,Kzisor, DarkXero, and also Zillvr for help community

Bizziboi, Ipsquiggle, V2C, PeterA

 

and of course thx also all devs!

 

---

F.A.Q

 

if you have "ERROR: Failed to load modoverrides.lua" in server_log.txt?

 

Spoiler
 
if you have this type of error in your server_log.txt:
 
 
this means that there is a syntax error in your modoverrides.lua
 
 
--
 
you can try to fixe your modoverrides.lua with this website:
 

 

--

 

here is a simple example with a basic error:

 

you have this in your modoverrides.lua:


return {
--#Global Position
["workshop-378160973"] = { enabled = true },
--#Ancient Altar
["workshop-481765222"] = { enabled = true }
--#Health Info
["workshop-375859599"] = { enabled = true }
}

select lua code:

http://nsa38.casimages.com/img/2016/02/27/16022701313166213.jpg

 

put your code and submit:

http://nsa38.casimages.com/img/2016/02/27/160227013134512180.jpg

 

now you can see there is an error that prevents the line 7 to be reading:

http://nsa38.casimages.com/img/2016/02/27/160227013134812857.jpg

 

create new:

http://nsa38.casimages.com/img/2016/02/27/160227013525337554.jpg

 

it simply lacks a comma at the end of line 5
if it is not completed by a comma, line 7 can not be read
put again your code, add comma in the end of line 5 and submit your code:

http://nsa38.casimages.com/img/2016/02/27/160227013654933648.jpg

 

and now you can see you have no errors:

http://nsa38.casimages.com/img/2016/02/27/160227014302726784.jpg

 

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