Jump to content

Dedicated Server Quick Setup Guide - Windows


Recommended Posts

My problem is that after running both, I can see 2 servers on the server list.... I checked and my Slave doesn't connect with the master, EVENT THOUGH it its configured as "is_master = false"

Files below:

cluster.ini

Quote

 

[GAMEPLAY]
game_mode = survival
max_players = 6
pvp = false
pause_when_empty = true

[MISC]
console_enabled = true
autocompiler_enabled = true


[network]
cluster_name = Server!
cluster_description = Don't Starve...
cluster_password = pass
cluster_intention = cooperative
tick_rate = 60


[shard]
shard_enable = true
master_ip = 127.0.0.1
master_port = 11000
cluster_key = blarg

 

server.ini (Master folder)

Quote

[NETWORK]
server_port = 11000


[SHARD]
is_master = true
name = Master
id = 9000


[STEAM]
master_server_port = 27018
authentication_port = 8768

server.ini (Caves folder)

Quote

[NETWORK]
server_port = 11001


[SHARD]
is_master = false
name = Caves
id = 9001


[STEAM]
master_server_port = 27019
authentication_port = 8769
 

server_master_log.txt

server_caves_log.txt

Link to comment
Share on other sites

I guess I missed the edit timeframe.

The setup I've tried is as such:

SteamCMD is in /Documents/Games/steamcmd/
DST is in /Documents/Games/dont-starve-together/
 

Spoiler

8c865b20e3.png


Server clusters are in /Documents/games/dont-starve-together/Clusters/
And here's how I start the server:

@title Starting Don't Starve Together Servers
@cd C:\Users\REDACTED\Documents\Games\steamcmd\
@steamcmd +login anonymous +force_install_dir C:\Users\REDACTED\Documents\Games\dont-starve-together +app_update 343050 +quit
@cd C:\Users\REDACTED\Documents\Games\dont-starve-together\bin\
start C:\Users\REDACTED\Documents\Games\dont-starve-together\bin\dontstarve_dedicated_server_nullrenderer -conf_dir "C:\Users\REDACTED\Documents\Games\dont-starve-together\Clusters" -console -cluster DedicatedServer -shard Master
start C:\Users\REDACTED\Documents\Games\dont-starve-together\bin\dontstarve_dedicated_server_nullrenderer -conf_dir "C:\Users\REDACTED\Documents\Games\dont-starve-together\Clusters" -console -cluster DedicatedServer -shard Caves

 

And here's the log that results:
 

Spoiler

[00:00:00]:
System Memory:
        Memory Load: 43%
        Available Physical Memory: 2156m/3834m
        Available Page File: 4415m/7667m
        Available Virtual Memory: 4009m/4095m
        Available Extended Virtual Memory: 0m
[00:00:00]:
Process Memory:
        Peak Working Set Size: 8m
        Working Set Size: 7m
        Quota Peak Page Pool Usage: 153k
        Quota Page Pool Usage: 153k
        Quota Peak Non Paged Pool Usage:13k
        Quota Non Paged Pool Usage: 13k
        Page File Usage: 3m
        Peak Page File Usage: 3m
[00:00:00]: PersistRootStorage is now APP:Klei//C:\Users\REDACTED\Documents\Games\dont-starve-together\Clusters/DedicatedServer/Master/
[00:00:00]: Starting Up
[00:00:00]: Version: 198581
[00:00:00]: Current time: Wed Dec 14 18:55:51 2016

[00:00:00]: Don't Starve Together: 198581 WIN32
[00:00:00]: Build Date: 1630
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: -conf_dir C:\Users\REDACTED\Documents\Games\dont-starve-together\Clusters -console -cluster DedicatedServer -shard Master
[00:00:00]: [WARNING] -console has been deprecated: Use the [MISC] / console_enabled setting instead.
[00:00:00]: Initializing distribution platform
[00:00:00]: Initializing Minidump handler
[00:00:00]: ....Done
[00:00:00]: ....Done
[00:00:00]: Fixing DPI
[00:00:00]: ...Done
[00:00:00]: THREAD - started 'GAClient' (6264)
[00:00:00]: CurlRequestManager::ClientThread::Main()
[00:00:00]: ProfileIndex:8.58
[00:00:00]: [Connect] PendingConnection::Reset(true)
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: Error trying to change cluster setting (NETWORK->cluster_intention) from '' to 'cooperative'
[00:00:00]: [Warning] Authorized application C:\Users\REDACTED\Documents\Games\dont-starve-together\bin\dontstarve_dedicated_server_nullrenderer.exe is not setup in the firewall.
[00:00:00]: Authorized application C:\Users\REDACTED\Documents\Games\dont-starve-together\bin\dontstarve_dedicated_server_nullrenderer.exe is now enabled in the firewall.
[00:00:00]: OnLoadPermissionList: APP:Klei//C:\Users\REDACTED\Documents\Games\dont-starve-together\Clusters/DedicatedServer/blocklist.txt (Failure)
[00:00:00]: OnLoadPermissionList: APP:Klei//C:\Users\REDACTED\Documents\Games\dont-starve-together\Clusters/DedicatedServer/adminlist.txt (Failure)
[00:00:00]: OnLoadUserIdList: APP:Klei//C:\Users\REDACTED\Documents\Games\dont-starve-together\Clusters/DedicatedServer/whitelist.txt (Failure)
[00:00:00]: THREAD - started 'ConsoleInput' (2428)
[00:00:00]: HardwareStats:
  OS
    name                      Microsoft Windows 7 Home Premium
    version                   6.1.7601
    architecture              64-bit
    platformSpecific          SP 1.0
  CPU
    numCores                  2
    features                  SSE,SSE2,SSE3
    name                      AMD Turion(tm) II P540 Dual-Core Processor
    manufacturer              AuthenticAMD
    clockSpeed                2400
  RAM
    megsOfRam                 4096
  GPU
    name                      AMD M880G with ATI Mobility Radeon HD 4250
    driverDate                20100919000000.000000-000
    megsOfRam                 320
    refreshRate               0
    videoModeDescription
    driverVersion             8.770.2.1000

[00:00:00]: cGame::InitializeOnMainThread
[00:00:00]: Renderer initialize: Okay
[00:00:00]: AnimManager initialize: Okay
[00:00:00]: Buffers initialize: Okay
[00:00:00]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:00]: FMOD Error: An invalid object handle was used.
[00:00:00]: GameSpecific initialize: Okay
[00:00:00]: cGame::StartPlaying
[00:00:00]: LOADING LUA
[00:00:00]: DoLuaFile scripts/main.lua
[00:00:00]: DoLuaFile loading buffer scripts/main.lua
[00:00:03]: running main.lua

[00:00:03]: Could not load modindex
[00:00:03]: ModIndex: Beginning normal load sequence for dedicated server.

[00:00:03]: DownloadMods(0)
[00:00:03]: [CRITICAL] Failed to save file: APP:Klei//C:\Users\REDACTED\Documents\Games\dont-starve-together\Clusters/DedicatedServer/Master/save/modindex
[00:00:03]: [CRITICAL] Fingerprint:hbrjimvnqldgdfflhhoqabgirgnnokeiggjlnkijaerjkhvnnkdgmeflujoqbdgiefnnojeipejlviijbdrjehvnijdgjdfltmoqodgihfnnijeiddjltmijlhrjrfvnwndgkfflnjoqgcgiofnnpkeinejlujijbbrjoivnukdgheflsioqjegiphnnsjeindjlnhijjdrjphvnskdgcdflhhoqjegimhnnmjeihdjlniijherjggvnikdgneflsioqbcgigjnnokeioejljiijgerjmivnjkdgliflmhoqkbgimfnnijeioejlqiijbdrjqivnqldgjgfluioqacgiqgnnjkeipdjlghijherjflvnimdgdeflmioqmbgiqfnnmjeioejlniijadrjrgvnjkdgidflkhoqabgirgnnsneihfjljiijherjoivnjkdgidfltmoqgcgisfnnlkeipdjltmijjdrjfhvnikdgpeflsioqbbgiofnnvkei.
[00:00:03]: [CRITICAL] Failed to save file: APP:Klei//C:\Users\REDACTED\Documents\Games\dont-starve-together\Clusters/DedicatedServer/Master/save/modindex
[00:00:03]: [CRITICAL] Fingerprint:hbrjimvnqldgdfflhhoqabgirgnnokeiggjlnkijaerjkhvnnkdgmeflujoqbdgiefnnojeipejlviijbdrjehvnijdgjdfltmoqodgihfnnijeiddjltmijlhrjrfvnwndgkfflnjoqgcgiofnnpkeinejlujijbbrjoivnukdgheflsioqjegiphnnsjeindjlnhijjdrjphvnskdgcdflhhoqjegimhnnmjeihdjlniijherjggvnikdgneflsioqbcgigjnnokeioejljiijgerjmivnjkdgliflmhoqkbgimfnnijeioejlqiijbdrjqivnqldgjgfluioqacgiqgnnjkeipdjlghijherjflvnimdgdeflmioqmbgiqfnnmjeioejlniijadrjrgvnjkdgidflkhoqabgirgnnsneihfjljiijherjoivnjkdgidfltmoqgcgisfnnlkeipdjltmijjdrjfhvnikdgpeflsioqbbgiofnnvkei.
[00:00:04]: FMOD Error: An invalid object handle was used.
[00:00:06]: LOADING LUA SUCCESS
[00:00:07]: PlayerDeaths could not load morgue
[00:00:07]: PlayerHistory could not load player_history
[00:00:07]: bloom_enabled       false
[00:00:07]: [CRITICAL] Failed to save file: APP:Klei//C:\Users\REDACTED\Documents\Games\dont-starve-together\Clusters/DedicatedServer/Master/save/profile
[00:00:07]: [CRITICAL] Fingerprint:hbrjimvnqldgdfflhhoqabgirgnnokeiggjlnkijaerjkhvnnkdgmeflujoqbdgiefnnojeipejlviijbdrjehvnijdgjdfltmoqodgihfnnijeiddjltmijlhrjrfvnwndgkfflnjoqgcgiofnnpkeinejlujijbbrjoivnukdgheflsioqjegiphnnsjeindjlnhijjdrjphvnskdgcdflhhoqjegimhnnmjeihdjlniijherjggvnikdgneflsioqbcgigjnnokeioejljiijgerjmivnjkdgliflmhoqkbgimfnnijeioejlqiijbdrjqivnqldgjgfluioqacgiqgnnjkeipdjlghijherjflvnimdgdeflmioqmbgiqfnnmjeioejlniijadrjrgvnjkdgidflkhoqabgirgnnsneihfjljiijherjoivnjkdgidfltmoqgcgisfnnlkeipdjltmijeerjqivntkdgeeflrioqjbgiofnn.
[00:00:07]: Could not load saveindex
[00:00:07]: OnFilesLoaded()
[00:00:07]: OnUpdatePurchaseStateComplete
[00:00:20]:     Load FE
[00:00:26]:     Load FE: done
[00:00:26]: [string "scripts/mainfunctions.lua"]:809: Unable to write to config directory. Please make sure you have permissions for your Klei save folder.
LUA ERROR stack traceback:
=[C]:-1 in (global) error (C) <-1--1>
scripts/knownerrors.lua:16 in (global) known_assert (Lua) <12-23>
   condition = false
   key = CONFIG_DIR_WRITE_PERMISSION
scripts/mainfunctions.lua:809 in () ? (Lua) <800-822>

[00:00:26]: [string "scripts/mainfunctions.lua"]:809: Unable to write to config directory. Please make sure you have permissions for your Klei save folder.
LUA ERROR stack traceback:
    =[C]:-1 in (global) error (C) <-1--1>
    scripts/knownerrors.lua:16 in (global) known_assert (Lua) <12-23>
    scripts/mainfunctions.lua:809 in () ? (Lua) <800-822>

[00:00:26]: Reset() returning
[00:00:27]: [200] Account Failed (6): "E_INVALID_TOKEN"
[00:00:27]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:00:27]: !!!! Your Server Will Not Start !!!!
[00:00:27]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:00:27]: No auth token could be found.
[00:00:27]: To generate a cluster_token you must
[00:00:27]: open the console from a logged-in game
[00:00:27]: client with the tilda key (~ / ▒) and type:
[00:00:27]: TheNet:GenerateClusterToken()
[00:00:27]: This will create 'cluster_token.txt' in
[00:00:27]: your client settings directory. Copy this
[00:00:27]: into your cluster settings directory.
[00:00:27]: [Connect] PendingConnection::Reset(true)

 

 

Link to comment
Share on other sites

8 hours ago, alainmcd said:

@ptkhanh94, looks like you might have missed step 1: download SteamCMD. However, if you're planning on hosting a dedicated server and playing on the same machine, I suggest you take the easy route and follow my instructions.

 

I'm getting the same thing, but I did download SteamCMD. Is there a certain place to put it or did I just not do it right.

Link to comment
Share on other sites

@Kyoko, hi there! If you host a server on your machine, it shows up for you in LAN even if it's an online game. Probably the same for all games created in your LAN. You can always check if it shows up in Jack'lul's server listing.

@Ryan9004, welcome to the forums! Make sure you followed step 1 correctly: download SteamCMD and extract it to C:\steamcmd.

Link to comment
Share on other sites

This is what I got when I run the Server.Untitled.png

Says "Window cannot find "start dontstarve_dedicated_server_nullrenderer -console -cluster MyDediServer -shard Master
start dontstarve_dedicated_server_nullrenderer -console -cluster MyDediServer -shard Caves"

What should I do?

Link to comment
Share on other sites

im so furious at this setup, of course most people have steam. i as alot of people probably dont have it saved in C:/steam. ive tried countless ways to make it work and nothing, why is it so disappointing that developers make server creation such a drama for the average player who just wants to play with their friends. im so heartbroken about this. spent the last 6 hours of my saturday afternoon trying to make this work. i love the game but this has put me to my end of playing, for now atleast. 

Link to comment
Share on other sites

I've done everything right but Is there a way to make it work on A new reign Beta? I tried it the same way like with normal one but it Doesn't work. If theres a way tell me, thanks. + It tells me i Dont have Cluster_token but i have it in MyDediServer Folder? Any Other way to Fix this?

 

Edited by BombCraft13
Link to comment
Share on other sites

Hi @jjaks, welcome to the forums! You don't need to move your Steam installation, but you do need to download SteamCMD and extract steamcmd.exe it to C:\steamcmd. Alternatively you can try following this simpler guide.

Hi @BombCraft13, welcome to you too! To play in the beta, you need to (1) have SteamCMD update the Dedicated Server tool in the beta, and (2) use the ANR config folder. For the first part, simply edit the first line of your batch file from step 11 to include the -beta parameter, so it will look something like this:

c:\steamcmd\steamcmd.exe +login anonymous +app_update 343050 -beta anewreignbeta +quit

For the second part, you'll need to use the DoNotStarveTogetherANewReignBeta folder instead of DoNotStarveTogether (steps 6 through 10 and 12).

  • Like 2
Link to comment
Share on other sites

1 hour ago, alainmcd said:

Hi @jjaks, welcome to the forums! You don't need to move your Steam installation, but you do need to download SteamCMD and extract steamcmd.exe it to C:\steamcmd. Alternatively you can try following this simpler guide.

Hi @BombCraft13, welcome to you too! To play in the beta, you need to (1) have SteamCMD update the Dedicated Server tool in the beta, and (2) use the ANR config folder. For the first part, simply edit the first line of your batch file from step 11 to include the -beta parameter, so it will look something like this:


c:\steamcmd\steamcmd.exe +login anonymous +app_update 343050 -beta anewreignbeta +quit

For the second part, you'll need to use the DoNotStarveTogetherANewReignBeta folder instead of DoNotStarveTogether (steps 6 through 10 and 12).

Thanks, Helped alot

  • Like 1
Link to comment
Share on other sites

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
 Share

×
  • Create New...