Sign in to follow this  
255

Dedicated Server Command Line Options Guide

Recommended Posts

Maco02    7

Wow, I like the effort to document all that you are doing. This help a lot! There is a flag that is used in the Linux guide but is not listed here "-monitor_parent_process". Can you add it to the list with a little explanation :)

  • Like 1

Share this post


Link to post
Share on other sites
tsuna87    56

Today I Noticed this waning in the server logs:

[WARNING] -console has been deprecated: Use the [MISC] / console_enabled setting instead.

In my experiments the '-console' command line option does not work any more.

But since the '[MISC]/console_enabled' option has a default value of 'true' the console works any way (with or without the '-console' flag).

  • Like 1

Share this post


Link to post
Share on other sites
thezigpc    1

For those that care about it, id like to add for those who do not know it.

"-only_update_server_mods" -  Updates server mods listed in the dedicated_server_mods_setup.lua file but does not launch a server.

"-skip_update_server_mods" -  Skips mod updates.

I use these in my batch file.

  • Sanity 1

Share this post


Link to post
Share on other sites
thasmo    23

Would be awesome if Klei could provide a full list and secondly add an explanation about when to use the console command versus setting it in the configuration files.

  • Like 1

Share this post


Link to post
Share on other sites
thasmo    23

Nullrenderer states that `backup_logs` is deprecated and `backup_log_count` should be used instead. This is not documented here and I wonder what the default value is. @255 , will this be updated here soon?

Share this post


Link to post
Share on other sites
justacpa    5
On 2/24/2016 at 8:07 PM, 255 said:

 

Examples:

The recommended way to run a two level server is with the following commands:


dontstarve_dedicated_server_nullrenderer -console -cluster MyClusterName -shard Master
dontstarve_dedicated_server_nullrenderer -console -cluster MyClusterName -shard Caves

 

In the example above, are the names "master" and "caves" reference to the folder name or the shard name in the ini file?  I ask because I want to set up a server with 4 shards (2 caves, 2 overworlds) and I need to rename existing Caves folder to Caves_1 and create another for Caves_2.  Would I need to change the command above to Caves_1 and add Caves_2, or just make sure that the server name in the ini file matches what's in the command line above?


 

Share this post


Link to post
Share on other sites
alainmcd    912

@justacpa, I gave a sorta-detailed explanation on how to add more shards to a cluster over in my thread. The instructions should help you regardless of how you set up your servers, whether you followed my guide or a different one. Feel free to ask if you need more info.

The -shard parameter does indeed refer to the folder where the shard is located. So if you add a new line to your batch file with -shard Caves_2 for a new shard, you'll need a Caves_2 folder in your cluster folder with the necessary server.ini, leveldataoverride.lua and modoverrides.lua files.

Share this post


Link to post
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
Sign in to follow this