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.

alainmcd

[HowTo] Run a Dedicated Server from your PC - without SteamCMD or the Dedicated Server Tool

Recommended Posts

Chillaxin    17

I followed the steps word-for-word but when I run the .bat file it says it cannot find nullrender.exe

I am trying to get a beta server up and running at all times even when I'm not playing but klei can't figure out how to write a guide that actually works.

Share this post


Link to post
Share on other sites
alainmcd    889
34 minutes ago, Chillaxin said:

Is there a way to allow more than 6 players with this method?? If so, how?

Type

TUNING.MAX_SERVER_SIZE = 64

in the console before entering the Host Game menu, or use this mod.

26 minutes ago, Chillaxin said:

when I run the .bat file it says it cannot find nullrender.exe

Is your batch file located in the bin folder of your DST installation? If so, are you running it via a shortcut? And if so, have you changed the "Start in" path?

Share this post


Link to post
Share on other sites
Chillaxin    17

I put the .bat file in the place of the directions ' (in Steam, right-click Don't Starve Together -> Properties -> Local Files tab -> Browse Local Files) '

It's the default location from a fresh install -- C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\bin

I didn't run a shortcut. I'm running the .bat as administrator directly. 

Share this post


Link to post
Share on other sites
alainmcd    889

The error message means either the file is not there or you're trying to call the wrong file. Check if there's a file named dontstarve_dedicated_server_nullrenderer.exe in the bin folder. If there isn't, verify the integrity of your game cache. If the file is there, or if you still receive the same error message, please post the contents of your batch file (open it with a text editor, press Ctrl-A to select all, then copy it and paste it here, or upload the file somewhere) to check if everything's OK.

Share this post


Link to post
Share on other sites
Chillaxin    17

Yes, the dontstarve_dedicated_server_nullrender.exe is in the bin folder.

dontstarve_dedicated_server_nullrenderer.exe -only_update_server_mods
start "My DST Server Master" dontstarve_dedicated_server_nullrenderer.exe -skip_update_server_mods -console -cluster Cluster_5 -shard Master
start "My DST Server Caves"  dontstarve_dedicated_server_nullrenderer.exe -skip_update_server_mods -console -cluster Cluster_5 -shard Caves

Share this post


Link to post
Share on other sites
alainmcd    889

That's when you run the file as admin, right? There's an issue with admin privileges, it's started in C:\Windows\System32 instead of the current folder. Add a new line at the top of your RunDSTServer.bat with this text (I've added it to the guide to avoid this issue):

cd /D "%~dp0"

 

Share this post


Link to post
Share on other sites
Chillaxin    17

Now everytime running the .bat it says expired cluster token.

Yes, i know how to make a cluster token. I copy and pasted the text into a .txt document. I then copy and pasted that document into every folder in the klei folder "donotstarvetogether" "DoNotStarveTogetherANewReignBeta" and "mydediserver" but despite having a copy of the token everywhere the system always says expired cluster token.

Share this post


Link to post
Share on other sites
Chillaxin    17

lol I added a copy of the cluster token document to the bin folder in hopes it would work.

Unfortunately no luck. I feel like I'm so close to finally being able to have my own server .

Share this post


Link to post
Share on other sites
alainmcd    889

 @Hela, hi and welcome around here! You need to run the script to relaunch your server (after restarting your computer, updating the game or shutting down the server, but not to rejoin your game if you left your server running in the background).

Share this post


Link to post
Share on other sites
Chillaxin    17
On 2/3/2017 at 10:15 PM, alainmcd said:

You have to place your cluster_token.txt in the Cluster_5 folder.

OMG thank you! I was finally able to play with a group of people on my own server today thank you!

Share this post


Link to post
Share on other sites
Chillaxin    17

Thank again! I've been using the server for a while now with lots of fun.

I do have a question -- Is there a way to disable "Vote Server Regeneration" ? People like to greif players by constantly spamming votes or even more terrible - actually winning the vote. The game doesn't even tell people who is initiating the horrible voting process.

Share this post


Link to post
Share on other sites
alainmcd    889

@Chillaxin, no problem!

Open your cluster.ini file (should be in (My) Documents\Klei\DoNotStarveTogetherANewReignBeta\Cluster_5), add this line:

vote_enabled = false

under [GAMEPLAY]. According to this thread, there's also this option:

enable_vote_kick = false

under [NETWORK] to disable vote kicking. I haven't tried either, so I can't say for sure whether they work or not. If your file doesn't have a [GAMEPLAY] or [NETWORK] section, simply add it at the end of the file.

Share this post


Link to post
Share on other sites
Houaiss    1
On 22/12/2016 at 11:41 AM, alainmcd said:

Run your script

okay... how I should do this? when I double click the file it only opens the notes... and is in .bat in the end =(

Share this post


Link to post
Share on other sites
alainmcd    889

Hi @Houaiss! Open the file with Notepad, go to File -> Save As... In the Save as type dropdown menu select All Files  (*.*), then type in RunDSTServer.bat as the file name and save. Make sure you save it in the bin folder of your DST installation - if you're having trouble saving it there because of permissions, you can always save it to your desktop and then move/copy over the file.

And welcome to the forums!

Share this post


Link to post
Share on other sites
Houaiss    1
7 hours ago, alainmcd said:

Hi @Houaiss! Open the file with Notepad, go to File -> Save As... In the Save as type dropdown menu select All Files  (*.*), then type in RunDSTServer.bat as the file name and save. Make sure you save it in the bin folder of your DST installation - if you're having trouble saving it there because of permissions, you can always save it to your desktop and then move/copy over the file.

And welcome to the forums!

I got it later after I posted. Already runing the dedicated server all worked right! Thank you anyway! And thanks for the welcome in too!

Share this post


Link to post
Share on other sites
Azedo    4

Heya I tried this way too, but I will delete everything and try using this method thanks much appreciated ^^

Share this post


Link to post
Share on other sites