Jump to content

Recommended Posts

So I was able to set up the server, but I cannot change the settings, like server name, password, etc. I tried changing the cluster.ini file but that does nothing. I was wondering if someone could help me resolve this issue

On 10/16/2021 at 1:43 AM, crazypenguin011 said:

So I was able to set up the server, but I cannot change the settings, like server name, password, etc. I tried changing the cluster.ini file but that does nothing. I was wondering if someone could help me resolve this issue

My guess is the path of the file you're editing and the one that's s being executed don't match. Check and/or post logs.

On 11/9/2020 at 6:49 AM, myxal said:

I don't use Klei's script so I'm not even sure how it's supposed to work.

How do you do?

I have done using docker image, but I'm thinking if this can make it slower or worse, idk.

Edited by Otomay

I could not for the life of me get this to work.

I was pulling my hair out for 2 days straight before I finally realised what the problem was - permissions.

I needed to give permissions to my steam user first, running the command to start the server from the root user did not work, even when I edited the .sh file to have the correct file path regardless of who ran it.

This required me to (from the root user) enter:

usermod -aG sudo steam

to give the username 'steam' sudo privileges. This did not work the first time, and required restarting and re-running the command a couple times before it actually worked.

I then had to change the permissions of the hidden directory that the server config files are in (the /.klei/ directory). To do this I went as the root user to the file:

cd /home/steam/

and edited the permissions to allow any user on my computer to read/write to the directory:

chmod ugo+rwx /.klei/

From there the server would work, but only when running the startserver.sh from the steam user.

 

I hope someone out there finds this useful.

  • Big Ups 1

When running the server script I always get the errors

Master: [00:00:10]: [CRITICAL] Failed to save file: /home/steam/.klei//DoNotStarveTogether/MyDediServer/Master/save/shardindex
Master: [00:00:10]: [CRITICAL] Fingerprint:(VERY LONG STRING).

a few times for both Master and Cave shards before they ultimately shutdown after the messages:

Master: [00:00:10]: Check for write access: FALSE
Master: [00:00:10]: Reset() returning
Master: [00:00:10]: THREAD - started 'WorldSim' (140422007482048)
Master: [00:00:10]: WorldSim::SimThread::Main()
Master: [00:00:10]: DoLuaFile scripts/worldgen_main.lua
Master: [00:00:10]: DoLuaFile loading buffer scripts/worldgen_main.lua
Caves:  [00:00:10]: DLC enabled :       false
Master: [00:00:10]: DLC enabled :       false
src/tier1/fileio.cpp (5086) : m_vecRegisteredWriters.Count() == 0
src/tier1/fileio.cpp (5086) : m_vecRegisteredWriters.Count() == 0
Caves:  src/tier1/fileio.cpp (5086) : m_vecRegisteredWriters.Count() == 0
Master: src/tier1/fileio.cpp (5086) : m_vecRegisteredWriters.Count() == 0

This happens in both my Debian and Arch Linux installations...

I noticed the program is trying to save the file to a path with a double slashes (.../.klei//DoNotStarveTogether/...) but I don't know how I would change that.

Any clue as to what may be causing the problem?

Edited by Hatty DeWitt
On 2/17/2016 at 4:52 AM, 255 said:

This guide will help you set up a dedicated server on an Ubuntu machine (32 or 64-bit)

4. Create the script that will run the servers.

  Hide contents

Download this shell script and move it to ~/run_dedicated_servers.sh.

 

 

I have optimized the following code by adding automatic mod file rewriting, so that additional configuration is not required for dedicated_server_mods_setup.lua in the configuration file.

 

#Check mod file
check_for_file "$dontstarve_dir/$cluster_name/Master/modoverrides.lua"

#rewirte mod file in dedicated_server_mods_setup.lua
cd "$dontstarve_dir/$cluster_name/Master" || fail 
grep -o '\-[0-9]*"' modoverrides.lua | sed 's/^\-/ServerModSetup("/g; s/$/)/g' > "$install_dir/mods/dedicated_server_mods_setup.lua"

 

 

 

On 8/7/2023 at 5:21 PM, AllanChao said:

I have optimized the following code by adding automatic mod file rewriting, so that additional configuration is not required for dedicated_server_mods_setup.lua in the configuration file.

#Check mod file
check_for_file "$dontstarve_dir/$cluster_name/Master/modoverrides.lua"

#rewirte mod file in dedicated_server_mods_setup.lua
cd "$dontstarve_dir/$cluster_name/Master" || fail 
grep -o '\-[0-9]*"' modoverrides.lua | sed 's/^\-/ServerModSetup("/g; s/$/)/g' > "$install_dir/mods/dedicated_server_mods_setup.lua"

Thanks for the script, very useful for an existing cluster ;)

I was able to configure everything, that's what I did to make the mods work
1. I created the folder "mods" in the folder "MyDediServer" in it I placed 2 files "dedicated_server_mods_setup.lua" and "modsettings.lua" (you should know what should be written in them)
2. In the folder "Master" and "Caves" placed the file "mods overrides.lua"
3. D file "run_dedicated_servers.sh " added 2 lines
check_for_file "$dontstarve_dir/$cluster_name/Master/modoverrides.lua"
check_for_file "$dontstarve_dir/$cluster_name/Caves/modoverrides.lua"
These 2 lines should be placed under the line (check_for_file "steamcmd.sh ")

P.s. English is not my native language, so if I explained it badly, I'm sorry

Edited by kriatit

I'm having trouble with dedicated server on linux setup with mods. I already added the modoverrides.lua with mod setting enable true to both Master and Caves folder. Also added ServerModSetup("2003549262") to the dedicated_server_mods_setup.lua. Then I ran the run_dedicated_servers.sh. The server was online but no mod added. Please help!

On 7/18/2021 at 9:44 AM, Cyborg said:

 

Why this doesn't work? I do everything how it should be done.

If you change the cluster file dir, you should move the token file into ~/.klei/DoNotStarveTogether/<your cluster file name>/

On 4/3/2024 at 9:07 PM, FrauleinEule said:

I follow this guide, and the last version my dedicated server run normally, but this version I got problem with running my server, it just stay in here , I use none mod in this cluster world.

image.png.97f28a5683916621f3ecb0776cf3aa9c.png

 

Do you resolve the problem? I alsl meet the problem, My dedicated server based on  ubuntu can not install mods.dedicate mods file content as follow:

ServerModSetup("831523966") -- 999堆叠
ServerModSetup("1172839635") -- Better Ice Box
ServerModSetup("661253977") -- Don't Drop Everything
ServerModSetup("375850593") -- Extra Equip Slots
ServerModSetup("378160973") -- Global Position
ServerModSetup("1595934840") -- 扶我起来
ServerModSetup("2189004162") -- Insight
ServerModSetup("1207269058") -- 简易血条
ServerModSetup("1595631294") -- 智能小木牌
ServerModSetup("362175979") -- Wormhole Marks
ServerModSetup("2115943953") -- Auto Stack Pro



--There are two functions that will install mods, ServerModSetup and ServerModCollectionSetup. Put the calls to the functions in this file and they will be executed on boot.

--ServerModSetup takes a string of a specific mod's Workshop id. It will download and install the mod to your mod directory on boot.
	--The Workshop id can be found at the end of the url to the mod's Workshop page.
	--Example: http://steamcommunity.com/sharedfiles/filedetails/?id=350811795
	--ServerModSetup("350811795")

--ServerModCollectionSetup takes a string of a specific mod's Workshop id. It will download all the mods in the collection and install them to the mod directory on boot.
	--The Workshop id can be found at the end of the url to the collection's Workshop page.
	--Example: http://steamcommunity.com/sharedfiles/filedetails/?id=379114180
	--ServerModCollectionSetup("379114180")

When DST server start ,the file will be set as default . 

Ok so I just followed this guide on Debian 12 (64 bit system)

So I am not sure what distro this guide was ment for or what

version if it was meant for Debian but the Dependenies

using the names above could not be found.

 

The correct dependencies are bellow this is the command

you would run on Debian 12 for a 64 bit install to install the 32 bit

dependencies need.

apt-get install libx32stdc++6  libgcc-s1-x32-cross libcurl4-gnutls-dev libcurl4-gnutls-dev

 

This worked for me I followed the rest of the guide and it worked fine I just had

to figure out the file names for the dependencies in Debian 12 which wasn't

too hard. I have been running Debian for years now and have worked with

linux systems for a long time.

I hope this helps some one else out that is trying to do this install on a Debian 12

64 bit system to install the 32 bit packages needed by steam.  I did this on December 6 2024.

you can see in the screenshot that it is running succesfully.

Also bellow

https://ibb.co/NZYbqd1

 

I hope this helps other people out there as well.

 

Jamie (she / her)

Don't Starve Private Server Dec 6 2024 jpg.jpg

Hello there,

First time posting on here, but i just wanted to share my docker configuration in case someone needed something convenient.
All you have to do to set it up, is update the environment variables in docker-compose.yml file

I have yet to add a readme, but I'm excited to share nonetheless.

Hope this helps!
 

If someone is still confused why mods are not launching despite setting lua files. You need to copy your mods folder into ~/dontstarvetogether_dedicated_server/ or path your actual game is installed. NOT in MyDediServer folder.

Maybe someone finds it usefull.

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