Actions

Editing Dedicated Server Guide

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 3: Line 3:
 
== Requirements ==
 
== Requirements ==
 
* Linux or Windows system, either physical or virtualised,  
 
* Linux or Windows system, either physical or virtualised,  
** NOT recommended also running a Stationeers client (there will be issues with router NAT-loopback).
+
** must NOT be being used to run a Stationeers client (the game will not permit this).
** Linux Glibcxx 3.4.29 & Glibc 2.34 (Ubuntu 22.04 LTS)
 
 
** if running on Windows you must have the Microsoft Visual C++ 2015, 2017 and 2019 runtime installed, [https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 click here to download it].
 
** if running on Windows you must have the Microsoft Visual C++ 2015, 2017 and 2019 runtime installed, [https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 click here to download it].
 
* ~16GB RAM (Tested and confirmed on Linux). 8GB or less and the server won't load.  
 
* ~16GB RAM (Tested and confirmed on Linux). 8GB or less and the server won't load.  
Line 125: Line 124:
  
 
===== Configuration from setting.xml =====
 
===== Configuration from setting.xml =====
setting.xml will be created once you start it up for the first time. <u>Command parameters reset setting.xml to default</u>
+
setting.xml will be created once you start it up for the first time. <u>Command parameters override setting.xml</u>
 
<hr>''The server is mostly a stripped down client as such it inherits certain features''
 
<hr>''The server is mostly a stripped down client as such it inherits certain features''
 
<hr>
 
<hr>
Line 256: Line 255:
  
 
===In Game Admin===
 
===In Game Admin===
<ServerAuthSecret/> parameter must be added to setting.xml on both server and client and be the same token.
+
ADMINPASSWORD parameter must be added to setting.xml and set a password.
  
All commands are typed in the chat (tilde) by default and prefixed by <code>serverrun</code>
+
All commands are typed in the chat (enter) by default, starting with /login
  
 
=== Server Program Console===
 
=== Server Program Console===
Line 430: Line 429:
 
| <full-directory-path>
 
| <full-directory-path>
 
|-
 
|-
| DIFFICULTY
+
| debugthreads
| Sets game difficulty to one of the predefined settings
 
|  -DIFFICULTY [<difficulty>]
 
|-
 
| REGENERATEROOMS
 
| Regenerates all rooms for the world
 
|
 
|-
 
| STORMBEGIN
 
| Starts weather event
 
|
 
|-
 
| STORMEND
 
| Stops weather event
 
|
 
|-
 
| DEBUGTHREADS
 
 
| Show the times that the worker threads take to run.
 
| Show the times that the worker threads take to run.
 
| GameTick
 
| GameTick
 
|-
 
|-
| STATUS
+
| status
 
| Displays a bunch of info to give insight into state of server.
 
| Displays a bunch of info to give insight into state of server.
 
|  
 
|  
 
|-
 
|-
| MASTERSERVER
+
| masterserver
 
| Commands to help with interacting with the Master Server.
 
| Commands to help with interacting with the Master Server.
 
| refresh
 
| refresh
|-
 
| DELETELOOSEITEMS
 
| Removes all items in world that isn't in a slot
 
|
 
|-
 
| SUNTIME
 
| Set the time of day between 0 and 1 (e.g. 0 is sunrise, 0.5 is sunset)
 
| Arguments:
 
* time
 
|-
 
| CLEANUPPLAYERS
 
| Cleans up player bodies
 
| Arguments:
 
* dead
 
* disconnected
 
* all
 
 
|-
 
|-
 
| TEST
 
| TEST
Line 512: Line 479:
 
So try and keep the same structure in the server to prevent complications.<br>
 
So try and keep the same structure in the server to prevent complications.<br>
 
''1 is core file and always need to be enabled''
 
''1 is core file and always need to be enabled''
 
===Alternate ModConfig.xml===
 
If the above modconfig don't work, try this one:
 
 
<HR><pre>
 
<?xml version="1.0" encoding="utf-8"?>
 
<ModConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
    <Mods>
 
        <unsignedLong>1</unsignedLong>
 
        <unsignedLong>1001</unsignedLong>
 
        <unsignedLong>1002</unsignedLong>
 
    </Mods>
 
    <DisabledMods>
 
    </DisabledMods>
 
    <LocalMods>
 
        <LocalMod>
 
            <folder>"FirstModFolderPath"</folder>
 
            <modID>1001</modID>
 
        </LocalMod>
 
        <LocalMod>
 
            <folder>"SecondModFolderPath"</folder>
 
            <modID>1002</modID>
 
        </LocalMod>
 
    </LocalMods>
 
</ModConfig>
 
</pre>
 
  
 
=== Storing Mods ===
 
=== Storing Mods ===
 
 
  WIN: C:\Users\'''USERNAME_HERE'''\Documents\My Games\Stationeers\mods\
 
  WIN: C:\Users\'''USERNAME_HERE'''\Documents\My Games\Stationeers\mods\
 
  LIN: /home/'''USERNAME_HERE'''/My Games/Stationeers/mods/
 
  LIN: /home/'''USERNAME_HERE'''/My Games/Stationeers/mods/
Line 559: Line 499:
 
  \Steam\steamapps\common\Stationeers\rocketstation_Data\StreamingAssets\
 
  \Steam\steamapps\common\Stationeers\rocketstation_Data\StreamingAssets\
 
Look for ExampleMod.zip and AttributesExampleMod.zip .
 
Look for ExampleMod.zip and AttributesExampleMod.zip .
 
 
Note: There seems to be some changes as to how where the dedicated server loads mods from. The above solution seems to be deprecated, see below if above solution doesn't work.
 
 
WIN:[Where you've installed the server]/Steam/steamapps/common/Stationeers Dedicated Server/rocketstation_DedicatedServer_Data/StreamingAssets/Data/Mods <br>
 
LIN:/home/'''USERNAME_HERE'''/Steam/steamapps/common/Stationeers Dedicated Server/rocketstation_DedicatedServer_Data/StreamingAssets/Data/Mods <br>
 
OSX:[Where you've installed the server]/Steam/steamapps/common/Stationeers Dedicated Server/rocketstation_DedicatedServer_Data/StreamingAssets/Data/Mods <br>
 
 
The Mods folder in /StreamingAssets/ is not premade, but needs to be added manually. Put the mods you want in here, and the server will load them. It is unknown if a ModConfig is even needed when doing it this way.
 

Please note that all contributions to Unofficial Stationeers Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Unofficial Stationeers Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)