Developer V2C Posted February 12, 2016 Developer Share Posted February 12, 2016 (edited) 1. Download and install SteamCMD: Click here to download 2. Visit the Klei Accounts site and log in to your account. (Please note, Dedicated Servers are not supported for the Xbox and PlayStation versions of the game.) Spoiler 3. On the accounts page, visit the “GAMES” tab, then scroll down to Don’t Starve Together and click on the “Game Servers” button. Spoiler 4. If you don’t have any server yet, please click the “ADD NEW SERVER” button. If you have a valid server, click the green “CONFIGURE” button. Expired servers are colored in red and should be deleted. Spoiler 5. In the “Configure Server” page you will find a form with some options that you can edit to customize your server. Once you are ready, click the “Download Settings” button. Download the Zip archive, extract the content, and place the folder “MyDediServer” inside \\Documents\Klei\DoNotStarveTogether\. Spoiler 6. Copy and save the following text to: \\Documents\Klei\StartDSTServers.bat Spoiler c:\steamcmd\steamcmd.exe +login anonymous +app_update 343050 validate +quit cd /D "c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\bin64" start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster MyDediServer -shard Master start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster MyDediServer -shard Caves Please Note: You will need to fix the file pathing if the steamcmd or the game’s folders were not installed in the default location. 7. Checklist of all the files you should have now: Spoiler \\Documents\Klei\DoNotStarveTogether\MyDediServer\cluster_token.txt \\Documents\Klei\DoNotStarveTogether\MyDediServer\cluster.ini \\Documents\Klei\DoNotStarveTogether\MyDediServer\Master\server.ini \\Documents\Klei\DoNotStarveTogether\MyDediServer\Caves\server.ini \\Documents\Klei\DoNotStarveTogether\MyDediServer\Caves\worldgenoverride.lua \\Documents\Klei\StartDSTServers.bat 8. Double-click StartDSTServers.bat to start your dedicated servers! Edited August 12, 2021 by ScottHansen changed scripts to be x64 based 41 7 Link to comment Share on other sites More sharing options...
artemiyME Posted February 12, 2016 Share Posted February 12, 2016 Is process about the same with Linux (Ubuntu Server for me) machines (except directories of course)? 1 Link to comment Share on other sites More sharing options...
vosdbk Posted February 12, 2016 Share Posted February 12, 2016 (edited) Which place can i put "steam_group_id"? Edited February 12, 2016 by vosdbk 3 Link to comment Share on other sites More sharing options...
jasontherand Posted February 12, 2016 Share Posted February 12, 2016 I have tried converting my old server over to this new world but I keep getting [200] account failed (6): "E_INVALID_TOKEN" I first tried getting the key as described, tried making a new key using the console, and tried using the old key. 1 Link to comment Share on other sites More sharing options...
Rokuna Posted February 12, 2016 Share Posted February 12, 2016 I think I have everything set, once I get pass step 13, do I just start a game or is there a way to use myself as a dedicated server? (sorry, completely new) 1 Link to comment Share on other sites More sharing options...
Gingerbread Posted February 12, 2016 Share Posted February 12, 2016 (edited) This change needs more explanation. I found a path like this ~/.klei/DoNotStarveTogether/Cluster_1/Master so will we create also Caves folder under here? or do I have to create a folder named MyDediServer? Edited February 12, 2016 by Gingerbread Link to comment Share on other sites More sharing options...
artemiyME Posted February 12, 2016 Share Posted February 12, 2016 the path was generated because you started server with old config files, and server had no folders in place, you have to clean out the folder and make new one at .klei/<YourMainClusterFolder>, then make Main+Caves folders inside of it, etc. Link to comment Share on other sites More sharing options...
Gingerbread Posted February 12, 2016 Share Posted February 12, 2016 (edited) 7 minutes ago, artemiyME said: the path was generated because you started server with old config files, and server had no folders in place, you have to clean out the folder and make new one at .klei/<YourMainClusterFolder>, then make Main+Caves folders inside of it, etc. which one is the main cluster folder so now my server files seems like this Quote ~/.klei/DoNotStarveTogether$ ls backup chat_log.txt client.ini client_save Cluster_1 log.txt modoverrides.lua save.old server_token.txt settings.ini.old worldgenoverride.lua~/.klei/DoNotStarveTogether$ cd Cluster_1~/.klei/DoNotStarveTogether/Cluster_1$ ls cluster.ini Master Edited February 12, 2016 by Gingerbread Link to comment Share on other sites More sharing options...
haywardGB Posted February 12, 2016 Share Posted February 12, 2016 Is this an official update now , or is still optional ? Do all dedicated server owners need to update using this page ? Is there a version of this for Linux users , please ? 1 Link to comment Share on other sites More sharing options...
artemiyME Posted February 12, 2016 Share Posted February 12, 2016 your main cluster folder is DoNotStarveTogether, it wil lcontain Caves and Overword settings/info of each cluster 1. save files "settings.ini.old", "server_token.txt", folder "save.old", "modoverrides.lua", " worldgenoverride.lua " 2. delete everthing in that folder. 3. follow the guide starting from #6 Link to comment Share on other sites More sharing options...
wqwz111 Posted February 12, 2016 Share Posted February 12, 2016 1 minute ago, artemiyME said: your main cluster folder is DoNotStarveTogether, it wil lcontain Caves and Overword settings/info of each cluster 1. save files "settings.ini.old", "server_token.txt", folder "save.old", "modoverrides.lua", " worldgenoverride.lua " 2. delete everthing in that folder. 3. follow the guide starting from #6 Could you tell me how to enable mods in this new version? Link to comment Share on other sites More sharing options...
Gingerbread Posted February 12, 2016 Share Posted February 12, 2016 Yeah honestly its not detailed and I did not even understand mydediserver part. Link to comment Share on other sites More sharing options...
Nikonarou Posted February 12, 2016 Share Posted February 12, 2016 this is sort of headache, especially with rented dedicated servers and their file system is a bit different than how you run a dedicated server off your personal connection, how do i get my mods back on my server with my all settings.ini from the old way of doing things pre-cluster? 1 Link to comment Share on other sites More sharing options...
haywardGB Posted February 12, 2016 Share Posted February 12, 2016 (edited) This update has borked my server and I'm not even sure I can be bothered to support them with a 24/7 dedicated server anymore. This whole thing seems a bit arse about face if you ask me. Running multiple servers for 1 game server ? This should have stayed optional . Edited February 12, 2016 by haywardGB Link to comment Share on other sites More sharing options...
Nikonarou Posted February 12, 2016 Share Posted February 12, 2016 1 minute ago, haywardGB said: This update has borked my server and I'm not even sure I can be bothered to support them with a 24/7 dedicated server anymore. This whole thing seems a bit arse about face if you ask me. Running multiple servers for 1 game server ? This should have stayed optional . Only way we can get caves content durning that process, not sure if they changing it. But 2 servers, does help with lag issues i think since the caves are sort of paused while the overworld is running. Link to comment Share on other sites More sharing options...
haywardGB Posted February 12, 2016 Share Posted February 12, 2016 Just now, Nikonarou said: Only way we can get caves content durning that process, not sure if they changing it. But 2 servers, does help with lag issues i think since the caves are sort of paused while the overworld is running. You'll have players in both worlds, so two processes are running regardless. If you ask me, this will use more resources. Link to comment Share on other sites More sharing options...
artemiyME Posted February 12, 2016 Share Posted February 12, 2016 (edited) 23 minutes ago, wqwz111 said: Could you tell me how to enable mods in this new version? I did not get that far, and I have to go now, but I'm pretty sure with 2 same options you had before modoverrides.lua in Cluster folder or modsettings in DST steam folder. 9 minutes ago, haywardGB said: This update has borked my server and I'm not even sure I can be bothered to support them with a 24/7 dedicated server anymore. This whole thing seems a bit arse about face if you ask me. Running multiple servers for 1 game server ? This should have stayed optional . I'm pretty sure reason this is being changed is exactly because Klei is gearing up to merge servers into one, instead of hosting them separately (since player hosted cave/overworld merged server are in beta already) Edited February 12, 2016 by artemiyME 1 Link to comment Share on other sites More sharing options...
wqwz111 Posted February 12, 2016 Share Posted February 12, 2016 Just now, artemiyME said: I did not get that far, and I have to go now, but I'm pretty sure with 2 same options you had before modoverrides.lua in Cluster folder or modsettings in DST steam folder. Thanks, my server does not work right now. I have followed all steps listed above. the console is showing like below: [Steam] SteamGameServer_Init(8768, 11000, 27018) [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. dlopen failed trying to load: steamclient.so with error: steamclient.so: cannot open shared object file: No such file or directory [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. [Steam] SteamGameServer_Init(8768, 11000, 27019) [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. dlopen failed trying to load: steamclient.so with error: steamclient.so: cannot open shared object file: No such file or directory [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. [Steam] SteamGameServer_Init(8768, 11000, 27020) [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. dlopen failed trying to load: steamclient.so with error: steamclient.so: cannot open shared object file: No such file or directory [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. [Steam] SteamGameServer_Init(8768, 11000, 27021) [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. dlopen failed trying to load: steamclient.so with error: steamclient.so: cannot open shared object file: No such file or directory [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. [Steam] SteamGameServer_Init(8768, 11000, 27022) [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. dlopen failed trying to load: steamclient.so with error: steamclient.so: cannot open shared object file: No such file or directory [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. [Steam] SteamGameServer_Init(8768, 11000, 27023) [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. dlopen failed trying to load: steamclient.so with error: steamclient.so: cannot open shared object file: No such file or directory [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. [Steam] SteamGameServer_Init(8768, 11000, 27024) [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. dlopen failed trying to load: steamclient.so with error: steamclient.so: cannot open shared object file: No such file or directory [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. [Steam] SteamGameServer_Init(8768, 11000, 27025) [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. dlopen failed trying to load: steamclient.so with error: steamclient.so: cannot open shared object file: No such file or directory [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. [Steam] SteamGameServer_Init(8768, 11000, 27026) [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. dlopen failed trying to load: steamclient.so with error: steamclient.so: cannot open shared object file: No such file or directory [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. [Steam] SteamGameServer_Init(8768, 11000, 27027) [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. dlopen failed trying to load: steamclient.so with error: steamclient.so: cannot open shared object file: No such file or directory [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. [Warning] SteamGameServer_Init failed 2 Link to comment Share on other sites More sharing options...
Xaviien Posted February 12, 2016 Share Posted February 12, 2016 I followed the instructions to the letter, I'm fairly certain, except I changed survival and cooperative to endless and social in the ini. When I open StartDSTServers.bat I get the error "Windows cannot find 'dontstarve_dedicated_server_nullrenderer'. Make sure you typed the name correctly, and then try again." 4 Link to comment Share on other sites More sharing options...
Nikonarou Posted February 12, 2016 Share Posted February 12, 2016 Kinda wished they had not messed with this (new cluster settings not even sure how to link to my group page anymore, and mods don't work). But i guess change is part of the beta process. Link to comment Share on other sites More sharing options...
Coleoud Posted February 12, 2016 Share Posted February 12, 2016 (edited) @V2C After creating a text document named cluster_token.txt , putting in the server token and saving it, I don't exactly know how I'm supposed to carry out step 7 when I don't have any other files than these. Spoiler Edited February 12, 2016 by Coleoud Link to comment Share on other sites More sharing options...
Lectroburn Posted February 12, 2016 Share Posted February 12, 2016 I have attached the folder structure for the server. Extract it under Documents\Klei\DoNotStarveTogether\ (for windows users). Fill in the cluster tokens and the ini files for each shard. Make sure all port numbers are different between servers. ServerTemplate.zip Link to comment Share on other sites More sharing options...
alainmcd Posted February 12, 2016 Share Posted February 12, 2016 @Coleoud, you create a new file and rename it to cluster.ini. Same for steps 8-11. Link to comment Share on other sites More sharing options...
Gingerbread Posted February 12, 2016 Share Posted February 12, 2016 (edited) hmm so i am able to make it work but the problem is caves did not work even though i added server.ini file of caves. I am told artemiy's server has no caves at the moment too. Are we missing something here or is there something not covered in this thread? Edited February 12, 2016 by Gingerbread Link to comment Share on other sites More sharing options...
Developer V2C Posted February 12, 2016 Author Developer Share Posted February 12, 2016 Hey guys, I know this is not an easy process, but I'll try my best to work through it with you. First of all, I'll try to explain the folder structure: All save data goes inside \\Documents\Klei\DoNotStarveTogether now, whether it is your client save slots, or your dedicated server saves.. There is no need to use the -conf_dir command line argument anymore. Inside, you may find folders for Cluster_1, Cluster_2, etc... These are save slots when hosting from the game client. I recommend you leave these folders alone. The "MyDediServer" as mentioned in the guide is any custom folder name for your dedicated server save. It can be anything, and will be used in the command line argument "-cluster MyDediServer", for example. Within your cluster folder (e.g. MyDediServer), there will be two more shard folders, one for the Master shard (aka Forest world), and one for the Caves shard. Again, the folder names can be anything ("Master" and "Caves" is recommended) and will be used in the command line arguments "-shard Master" or "-shard Caves" for example. Typical set of command line arguments would be: "-console -cluster MyDediServer -shard Master" <- to start the master forest server "-console -cluster MyDediServer -shard Caves" <- to start the slave caves server NOTE: Remember to check the worldgenoverride.lua inside the Caves folder to make sure DST_CAVE preset is enabled. 2 Link to comment 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