How to Create a Stationeers Server Guide: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
[wiki:ss-claude-11372] Fixes: wrong or outdated steps, labels and facts corrected, current pictures, dead links fixed, search title and description
[wiki:wiki-operator] Fixes from the review of the rewording: claims, example addresses, names and wording (approved by Ryan, Nov 19)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
|description=Set up a Stationeers dedicated server with SteamCMD: the start line, world IDs, the one port to open, setting.xml and the admin console commands.
|description=Set up a Stationeers dedicated server with SteamCMD: the start line, world IDs, the one port to open, setting.xml and the admin console commands.
}}
}}
== Creating a Stationeers Server From Your Home Computer or Dedicated Server ==
== Hosting a Stationeers server yourself ==
== Server Requirements ==
== Server requirements ==
Windows 7, 8, 8.1, Server 2008, Server 2012 & 64-Bit
Windows 7, 8, 8.1, Server 2008, Server 2012 & 64-Bit


Quad Core processor (requires up to 2 full cores)
Quad Core processor (requires up to 2 full cores)


Up to 3GB memory (currently uses around 6GB memory minimum and up to 15GB of memory for a full server)
Up to 3GB memory


5GB disk space (install folder)
5GB disk space (install folder)
Line 15: Line 15:
[https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist Visual C++ Redistributable for Visual Studio 2019]
[https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist Visual C++ Redistributable for Visual Studio 2019]


Steam does not need to be running (the server never starts it)
Steam doesn't need to be running (the server never starts it).


== Step 1: Fetching Game Server files from SteamCMD ==
== Step 1: Download the server files with SteamCMD ==


The best method to get game server dedicated hosting files is via [https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD].
The best way to get the server files is with [https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD].


# Create a folder where you wish to store your Stationeers game server hosting files
# Create a folder for your Stationeers server files.
# Inside of the folder, place the newly downloading SteamCMD.exe file
# Inside the folder, place the SteamCMD.exe file you downloaded.
# Create a batch file named '''SteamCMD.bat'''
# Create a batch file named '''SteamCMD.bat'''
# Place the following code in this batch file:
# Place the following code in this batch file:
Line 28: Line 28:
::: start "" steamcmd.exe +force_install_dir "C:\Some\Path\Where\You\Want\Game\Server\Files\To\Go" +login anonymous +app_update 600760 validate +quit
::: start "" steamcmd.exe +force_install_dir "C:\Some\Path\Where\You\Want\Game\Server\Files\To\Go" +login anonymous +app_update 600760 validate +quit
# Right-click SteamCMD.bat and Run as Administrator
# Right-click SteamCMD.bat and Run as Administrator
# Your game server files should be completely downloaded by now
# When the SteamCMD window closes, the server files are downloaded.


== Step 1 (alternate method): Locating Game Server Files on Hard Drive ==
== Step 1 (alternate method): Finding the game files on your hard drive ==


You can host Stationeers directly from the game itself. If you want to change any settings, locate your common folder:
You can host Stationeers from the game itself. To change any settings, find your common folder:


# Right-click Stationeers from Steam, select '''Properties'''
# In Steam, right-click Stationeers and select '''Properties'''.
# Click '''Installed Files''' tab
# Click the '''Installed Files''' tab.
# Click '''Browse''' button
# Click the '''Browse''' button.


== Step 2: Setting up a Stationeers Dedicated Server ==
== Step 2: Setting up a Stationeers dedicated server ==


# Create a batch file named '''StationeersServer.bat''' in your newly created SteamCMD folder (Step 1) or your Steam common folder (Step 1: (alternate method)).
# Create a batch file named '''StationeersServer.bat''' in your SteamCMD folder from Step 1, or in your Steam common folder (Step 1, alternate method).
# Place the following code in this batch file:
# Place the following code in this batch file:
::: start "" "C:\stationeersserver\Stationeers\rocketstation_DedicatedServer.exe" -file start Stationeers Mars2 -settings ServerName Stationeers GamePort 27016 ServerMaxPlayers 30 ServerVisible true
::: start "" "C:\stationeersserver\Stationeers\rocketstation_DedicatedServer.exe" -file start Stationeers Mars2 -settings ServerName Stationeers GamePort 27016 ServerMaxPlayers 30 ServerVisible true


# Put your settings after -settings in that line, as name and value pairs. There is no default.ini any more: the server saves them to C:\stationeersserver\Stationeers\setting.xml.
# Put your settings after -settings in that line, as name and value pairs. There's no default.ini anymore: the server saves them to C:\stationeersserver\Stationeers\setting.xml.
::: ServerName Stationeers
::: ServerName Stationeers
::: GamePort 27016
::: GamePort 27016
Line 55: Line 55:
::: ServerAuthSecret yoursecret (lets you run admin commands from inside the game)
::: ServerAuthSecret yoursecret (lets you run admin commands from inside the game)


== Step 3: Port Forwarding ==
== Step 3: Port forwarding ==
Add an incoming rule to your Windows Firewall to allow UDP port 27016 (or whichever port you are using).
Add an incoming rule to Windows Firewall that allows UDP port 27016, or whichever port you're using.


You may also need to add a forwarding rule to your network router. You can use [http://PortForward.com/ PortForward.com] to read how to do this.
You may also need to open the port on your home router. [http://PortForward.com/ PortForward.com] shows how.


== How to Join Your Server ==
== How to join your server ==


STEP 1: Update your server to the newest Stationeers version: stop it and run SteamCMD.bat from Step 1 again. * If you rent your server from a game server host, ask your host about this.
Step 1: Update your server to the newest Stationeers version: stop it and run SteamCMD.bat from Step 1 again. If you rent your server from a game server host, ask your host about this.


METHOD 2, STEP 1: Find your server from the in-game server list!
Method 2, Step 1: Find your server in the in-game server list.


[[File:StationeersServerList.png|750px|alt=Stationeers Join World screen with the Enter IP:Port here... address box above the server list, from an older version of the game.]]
[[File:StationeersServerList.png|750px|alt=Stationeers Join World screen with the Enter IP:Port here... address box above the server list, from an older version of the game.]]


METHOD 2, STEP 2: Or type your server's IP address and port in the box that reads '''Enter IP:Port here...''' on the same Join World screen.
Method 2, Step 2: Or type your server's IP address and port in the box that reads '''Enter IP:Port here...''' on the same Join World screen.


METHOD 2, STEP 3: Select '''Direct Connect'''. Join your server!
Method 2, Step 3: Select '''Direct Connect'''. Join your server.


== Configuring your Stationeers Game Server! ==
== Configuring your Stationeers server ==


To modify game server settings you can open the '''\Stationeers\setting.xml'''
To change server settings, open '''\Stationeers\setting.xml'''.


You can modify settings in here (in addition to the launch line) - your launch line settings overwrite these settings:
You can change settings in this file as well as in the launch options. Launch options overwrite the settings in the file:


<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; ">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; ">
Line 89: Line 89:
</pre>
</pre>


== Stationeers Dedicated Server Configuration Variables ==
== Stationeers dedicated server launch options ==
-batchmode Dedicated server runs without UI and start to listen port.
-batchmode The dedicated server runs without a game window and starts listening on its port.


-nographics When running in batch mode, do not initialize graphics device at all.
-nographics In batch mode, the server doesn't start the graphics device at all, so it can run on machines that don't even have a GPU.
This makes it possible to run your automated workflows
on machines that don’t even have a GPU.


-file start string string Dedicated server loads a save and starts to listen port without player input.
-file start string string The dedicated server loads a save and starts listening on its port with no player input.
It loads the newest save with that name, or builds a new world if there is none.
It loads the newest save with that name, or builds a new world if there's none.


-settings SaveInterval integer Save world in every interval (in seconds, 300 by default).
-settings SaveInterval integer Saves the world at this interval (in seconds, 300 by default).


-file start [save name] [world ID] World ID (Lunar, Mars2, Europa3, MimasHerschel, Venus, Vulcan2)
-file start [save name] [world ID] World ID (Lunar, Mars2, Europa3, MimasHerschel, Venus, Vulcan2)


-settings GamePort integer UDP port for game (27016 by default).
-settings GamePort integer UDP port for the game (27016 by default).


-settings ServerName string Server title.
-settings ServerName string Server title.
Line 110: Line 108:
Save Path : C:\stationeersserver\Stationeers\saves\[save name]
Save Path : C:\stationeersserver\Stationeers\saves\[save name]


== Stationeers Admin Commands ==
== Stationeers admin commands ==
You can type commands in the dedicated server's window.
You can type commands in the dedicated server's window.
In game: set the same secret with settings ServerAuthSecret <secret> in the F3 console, then type serverrun and the command.
In game: set the same secret with settings ServerAuthSecret <secret> in the F3 console, then type serverrun and the command.


help
help
Print help commands
Prints the help commands.


serverrun <command>
serverrun <command>
Line 121: Line 119:


save [worldname]
save [worldname]
Save world to the saves folder
Saves the world to the saves folder.


quit
quit
Shutdown dedicated server immediately, without saving. Run save first.
Shuts down the dedicated server right away, without saving. Run save first.


announce <message>
announce <message>
Popup notice to all players. Example:
Shows a pop-up notice to all players. Example:
announce "Welcome to Stationeers!"
announce "Welcome to Stationeers!"


status
status
Display world name, game state, uptime and pause status (network clients lists the players)
Shows the world name, game state, uptime and pause status (network clients lists the players).


ban <steamId>
ban <steamId>
Ban player, even one who is offline. The ban has no time limit and is saved in Blacklist.txt. Example:
Bans a player, even one who's offline. The ban has no time limit and is saved in Blacklist.txt. Example:
ban 76561198299941358
ban 76561198299941358


Line 141: Line 139:


kick <steamId>
kick <steamId>
Kick player from the current server
Kicks a player from the server.


== Location of World Save Data ==
== Location of world save data ==
saves
saves


__NOTOC__
__NOTOC__

Latest revision as of 12:14, 19 November 2026

Hosting a Stationeers server yourself

Server requirements

Windows 7, 8, 8.1, Server 2008, Server 2012 & 64-Bit

Quad Core processor (requires up to 2 full cores)

Up to 3GB memory

5GB disk space (install folder)

Visual C++ Redistributable for Visual Studio 2019

Steam doesn't need to be running (the server never starts it).

Step 1: Download the server files with SteamCMD

The best way to get the server files is with SteamCMD.

  1. Create a folder for your Stationeers server files.
  2. Inside the folder, place the SteamCMD.exe file you downloaded.
  3. Create a batch file named SteamCMD.bat
  4. Place the following code in this batch file:
@echo off
start "" steamcmd.exe +force_install_dir "C:\Some\Path\Where\You\Want\Game\Server\Files\To\Go" +login anonymous +app_update 600760 validate +quit
  1. Right-click SteamCMD.bat and Run as Administrator
  2. When the SteamCMD window closes, the server files are downloaded.

Step 1 (alternate method): Finding the game files on your hard drive

You can host Stationeers from the game itself. To change any settings, find your common folder:

  1. In Steam, right-click Stationeers and select Properties.
  2. Click the Installed Files tab.
  3. Click the Browse button.

Step 2: Setting up a Stationeers dedicated server

  1. Create a batch file named StationeersServer.bat in your SteamCMD folder from Step 1, or in your Steam common folder (Step 1, alternate method).
  2. Place the following code in this batch file:
start "" "C:\stationeersserver\Stationeers\rocketstation_DedicatedServer.exe" -file start Stationeers Mars2 -settings ServerName Stationeers GamePort 27016 ServerMaxPlayers 30 ServerVisible true
  1. Put your settings after -settings in that line, as name and value pairs. There's no default.ini anymore: the server saves them to C:\stationeersserver\Stationeers\setting.xml.
ServerName Stationeers
GamePort 27016
ServerPassword yourpassword (leave it out for no password)
World: the word after the save name in -file start (Lunar, Mars2, Europa3, MimasHerschel, Venus or Vulcan2)
ServerMaxPlayers 30
ServerVisible true (shows the server in the in-game server list)
ServerAuthSecret yoursecret (lets you run admin commands from inside the game)

Step 3: Port forwarding

Add an incoming rule to Windows Firewall that allows UDP port 27016, or whichever port you're using.

You may also need to open the port on your home router. PortForward.com shows how.

How to join your server

Step 1: Update your server to the newest Stationeers version: stop it and run SteamCMD.bat from Step 1 again. If you rent your server from a game server host, ask your host about this.

Method 2, Step 1: Find your server in the in-game server list.

Stationeers Join World screen with the Enter IP:Port here... address box above the server list, from an older version of the game.

Method 2, Step 2: Or type your server's IP address and port in the box that reads Enter IP:Port here... on the same Join World screen.

Method 2, Step 3: Select Direct Connect. Join your server.

Configuring your Stationeers server

To change server settings, open \Stationeers\setting.xml.

You can change settings in this file as well as in the launch options. Launch options overwrite the settings in the file:

<ServerName>Stationeers</ServerName>
<GamePort>27016</GamePort>
<ServerPassword />

<ServerMaxPlayers>30</ServerMaxPlayers>
<ServerVisible>true</ServerVisible>

<ServerAuthSecret />

Stationeers dedicated server launch options

-batchmode The dedicated server runs without a game window and starts listening on its port.

-nographics In batch mode, the server doesn't start the graphics device at all, so it can run on machines that don't even have a GPU.

-file start string string The dedicated server loads a save and starts listening on its port with no player input. It loads the newest save with that name, or builds a new world if there's none.

-settings SaveInterval integer Saves the world at this interval (in seconds, 300 by default).

-file start [save name] [world ID] World ID (Lunar, Mars2, Europa3, MimasHerschel, Venus, Vulcan2)

-settings GamePort integer UDP port for the game (27016 by default).

-settings ServerName string Server title.

Config Path : C:\stationeersserver\Stationeers\setting.xml Save Path : C:\stationeersserver\Stationeers\saves\[save name]

Stationeers admin commands

You can type commands in the dedicated server's window. In game: set the same secret with settings ServerAuthSecret <secret> in the F3 console, then type serverrun and the command.

help Prints the help commands.

serverrun <command> Runs a command on the server from the in-game F3 console. ServerAuthSecret must match on the server and in your game.

save [worldname] Saves the world to the saves folder.

quit Shuts down the dedicated server right away, without saving. Run save first.

announce <message> Shows a pop-up notice to all players. Example: announce "Welcome to Stationeers!"

status Shows the world name, game state, uptime and pause status (network clients lists the players).

ban <steamId> Bans a player, even one who's offline. The ban has no time limit and is saved in Blacklist.txt. Example: ban 76561198299941358

ban refresh Reloads the ban list. To unban a player, delete their ID from Blacklist.txt in the server folder, then run ban refresh

kick <steamId> Kicks a player from the server.

Location of world save data

saves