dontstarvetogether_linux32steamcmdDont Starve Togetherdontstarve_dedicated_server_nullrenderer%IP% %PORT% -persistent_storage_root {OGP_HOME_DIR} -conf_dir config -cluster Serverbin6none343050anonymouscluster_name.*cluster_name = %key%config/Server/cluster.inikey-regexmax_players.*max_players = %key%config/Server/cluster.inikey-regexcluster_description.*This server is super duper!cluster_description =config/Server/cluster.inisCluster description. This will show up in the server details area on the "Browse Games" screencluster_password.*cluster_password =config/Server/cluster.inisThis is the password that players must enter to join your server. Leave this blank for no passwordgame_mode.*survivalgame_mode =config/Server/cluster.inisThe cluster’s game mode. This field is the equivalent of the "Game Mode" field on the "Host Game" screencluster_intention.*cooperativecluster_intention =config/Server/cluster.inisThe cluster’s playstyle. This field is the equivalent of the "Server Playstyle" field on the "Host Game" screenconsole_enabled.*trueconsole_enabled =config/Server/cluster.inisThe console allows to input admin commands, cheats, and so onautosaver_enabled.*trueautosaver_enabled =config/Server/cluster.inisThe auto saver creates a save at the start of each day, which will be resumed from when the server restartsenable_vote_kick.*trueenable_vote_kick =config/Server/cluster.inisWhen no admin is present, vote kick allows players to vote to kick players that are disrupting the gamepause_when_empty.*truepause_when_empty =config/Server/cluster.inisPause the server when there are no players connectedpvp.*falsepvp =config/Server/cluster.inisPlayers versus Players
echo
echo
echo "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ R E A D T H I S ////////////////"
echo
cluster_ini="config/Server/cluster.ini"
if [ -f "$cluster_ini" ]; then
echo "Configuration file $cluster_ini found. OK!"
else
echo "Configuration file $cluster_ini not found"
echo "Generating new configuration file in $cluster_ini"
mkdir -p config/Server
echo 'W0dBTUVQTEFZXQpnYW1lX21vZGUgPSBlbmRsZXNzCm1heF9wbGF5ZXJzID0gNjQKcHZwID0gZmFsc2UKcGF1c2Vfd2hlbl9lbXB0eSA9IGZhbHNlCgpbbmV0d29ya10KY2x1c3Rlcl9uYW1lID0gRG9udCBTdGFydmUgVG9nZXRoZXIKY2x1c3Rlcl9kZXNjcmlwdGlvbiA9IEEgRG9udCBTdGFydmUgVG9nZXRoZXIgU2VydmVyCmNsdXN0ZXJfaW50ZW50aW9uID0gY29vcGVyYXRpdmUKY2x1c3Rlcl9wYXNzd29yZCA9CnRpY2tfcmF0ZSA9IDMwCmF1dG9zYXZlcl9lbmFibGVkID0gdHJ1ZQpjb25uZWN0aW9uX3RpbWVvdXQgPSA4MDAwCnNlcnZlcl9zYXZlX3Nsb3QgPSAxCmVuYWJsZV92b3RlX2tpY2sgPSBmYWxzZQoKW2FjY291bnRdCmRlZGljYXRlZF9sYW5fc2VydmVyID0gZmFsc2UKCgpbU1RFQU1dCkRJU0FCTEVDTE9VRCA9IHRydWUKCgpbTUlTQ10KQ09OU09MRV9FTkFCTEVEID0gdHJ1ZQphdXRvY29tcGlsZXJfZW5hYmxlZCA9IHRydWUKCg==' | base64 -di > $cluster_ini
fi
cluster_token="config/Server/cluster_token.txt"
if [ -f "$cluster_token" ]; then
echo "Cluster token file found in $cluster_token OK!"
else
echo "You will have to upload your file cluster_token.txt to folder config/Server/"
echo "Please see official forum if you don't know how to generate it. http://forums.kleientertainment.com/forum/"
fi
echo
echo "If you want to reset your server to initial state, delete the folder config and re-install the server from OGP"
echo
echo "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ R E A D T H I S ////////////////"