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 | + | ** must NOT be being used to run a Stationeers client (the game will not permit this). |
− | + | ** if running on Windows you must have the Microsoft Visual C++ 2015 runtime installed, [https://www.microsoft.com/en-us/download/details.aspx?id=52685 click here to download it]. | |
− | ** if running on Windows you must have the Microsoft Visual C++ 2015 | ||
* ~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 22: | Line 21: | ||
<code>steamcmd +login anonymous +app_update 600760 -beta beta validate +quit</code> | <code>steamcmd +login anonymous +app_update 600760 -beta beta validate +quit</code> | ||
− | |||
− | |||
== Default ports == | == Default ports == | ||
− | + | 27516: Game port (UDP).<br> | |
− | |||
27015: Steam update port (UDP). | 27015: Steam update port (UDP). | ||
Line 37: | Line 33: | ||
|- | |- | ||
| -NEW | | -NEW | ||
− | | rowspan=2 | | + | | rowspan=2 | Worldname (string) |
− | | rowspan=2 | Starts a new game at specific world automatically from launch. Must provide world | + | | rowspan=2 | Starts a new game at specific world automatically from launch. Must provide world name as argument |
− | |||
|- | |- | ||
| -NEWGAME | | -NEWGAME | ||
Line 45: | Line 40: | ||
| -LOAD | | -LOAD | ||
| rowspan=2 | savefolder (string) | | rowspan=2 | savefolder (string) | ||
− | | rowspan=2 | Loads a saved world file | + | | rowspan=2 | Loads a saved world file |
|- | |- | ||
| -LOADGAME | | -LOADGAME | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| -JOIN | | -JOIN | ||
Line 63: | Line 54: | ||
| Absolute base directory for custom profile Ex)<br> -basedirectory C:\Profile\Player1 <br> Config Path : default.ini <code>C:\Profile\Player1\</code> <br> Save Path : <code>C:\Profile\Player1\saves\[worldname]</code> | | Absolute base directory for custom profile Ex)<br> -basedirectory C:\Profile\Player1 <br> Config Path : default.ini <code>C:\Profile\Player1\</code> <br> Save Path : <code>C:\Profile\Player1\saves\[worldname]</code> | ||
|- | |- | ||
− | | -logfile|| "path" || If no output_log.txt use this parameter. Check examples below for syntax | + | | -logfile|| "path" || If no output_log.txt use this parameter. Check examples below for syntax |
|- | |- | ||
|} | |} | ||
Line 69: | Line 60: | ||
https://docs.unity3d.com/Manual/CommandLineArguments.html | https://docs.unity3d.com/Manual/CommandLineArguments.html | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Examples == | == Examples == | ||
− | <span style="font-size: 120%;"> Dedicated server starts new Mars world | + | <span style="font-size: 120%;"> Dedicated server starts new Mars world. </span><br> |
− | <code>rocketstation_DedicatedServer.exe - | + | <code>rocketstation_DedicatedServer.exe -NEW=Mars -SETTINGSPATH="C:\Server\User1"</code> |
− | <span style="font-size: 120%;"> Load Mothership file. | + | <span style="font-size: 120%;"> Load Mothership file.<br> |
− | <code>rocketstation_DedicatedServer.exe -LOAD Mothership | + | <code>rocketstation_DedicatedServer.exe -LOAD=Mothership</code> |
− | <span style="font-size: 120%;"> Load Mothership file | + | <span style="font-size: 120%;"> Load Mothership file. C:\Profile\Player1\saves\Mothership C:\Profile\Player1\saves\map1 </span><br> |
− | <code>rocketstation_DedicatedServer.exe -LOAD Mothership -SETTINGSPATH "C:\Profile\Player1" | + | <code>rocketstation_DedicatedServer.exe -LOAD=Mothership -SETTINGSPATH="C:\Profile\Player1"</code> |
Line 100: | Line 79: | ||
− | <span style="font-size: 120%;"> Example <code>-LOAD "myworld"</code> directory structure. </span><br> | + | <span style="font-size: 120%;"> Example <code>-LOAD="myworld"</code> directory structure. </span><br> |
'''Note:''' ''BaseDirectory'' is by default in SteamApps/common/Stationeers Dedicated Server/''<Contents of BaseDirectory>'' if installed with SteamCMD<br> | '''Note:''' ''BaseDirectory'' is by default in SteamApps/common/Stationeers Dedicated Server/''<Contents of BaseDirectory>'' if installed with SteamCMD<br> | ||
<big>'''Linux:'''</big><br> | <big>'''Linux:'''</big><br> | ||
− | <code>-LOAD "myworld"</code> will look for a folder named "myworld" in the ''saves'' directory like this:<br> | + | <code>-LOAD="myworld"</code> will look for a folder named "myworld" in the ''saves'' directory like this:<br> |
''BaseDirectory''/saves/myworld/<br> | ''BaseDirectory''/saves/myworld/<br> | ||
<big>'''Windows:'''</big><br> | <big>'''Windows:'''</big><br> | ||
− | <code>-LOAD "myworld"</code> will look for a folder named "myworld" in the ''saves'' directory like this:<br> | + | <code>-LOAD="myworld"</code> will look for a folder named "myworld" in the ''saves'' directory like this:<br> |
''BaseDirectory''\saves\myworld\ | ''BaseDirectory''\saves\myworld\ | ||
Line 125: | Line 104: | ||
===== 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 | + | 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 235: | ||
===In Game Admin=== | ===In Game Admin=== | ||
− | + | ADMINPASSWORD parameter must be added to setting.xml and set a password. | |
− | All commands are typed in the chat ( | + | All commands are typed in the chat (enter) by default, starting with /login |
=== Server Program Console=== | === Server Program Console=== | ||
Line 301: | Line 280: | ||
|- | |- | ||
| LOADGAME | | LOADGAME | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| JOIN | | JOIN | ||
Line 332: | Line 307: | ||
|- | |- | ||
| IMGUI | | IMGUI | ||
− | | | + | | No help text :( |
| | | | ||
|- | |- | ||
Line 385: | Line 360: | ||
| | | | ||
|- | |- | ||
+ | |||
| PAUSE | | PAUSE | ||
| will pause/unpause the game (including for clients) | | will pause/unpause the game (including for clients) | ||
Line 420: | Line 396: | ||
|- | |- | ||
| NETCONFIG | | NETCONFIG | ||
− | | Change the | + | | Change the NetConfig.xml. e.g netconfig ip 127.0.0.1 |
| Arguments: | | Arguments: | ||
* list | * list | ||
Line 429: | Line 405: | ||
| Sets the default settings path to a new location. Launch command only. If none found default is used. | | Sets the default settings path to a new location. Launch command only. If none found default is used. | ||
| <full-directory-path> | | <full-directory-path> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| TEST | | TEST | ||
Line 488: | Line 420: | ||
<HR><pre> | <HR><pre> | ||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
− | <ModConfig xmlns: | + | <ModConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
<Mods> | <Mods> | ||
− | < | + | <unsignedLong>1</unsignedLong> |
− | + | <unsignedLong>1001</unsignedLong> | |
− | + | <unsignedLong>1002</unsignedLong> | |
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
</Mods> | </Mods> | ||
+ | <DisabledMods> | ||
+ | </DisabledMods> | ||
+ | <LocalMods> | ||
+ | <LocalMod> | ||
+ | <folder>YourFirstModFolderHere</folder> | ||
+ | <modID>1001</modID> | ||
+ | </LocalMod> | ||
+ | <LocalMod> | ||
+ | <folder>YourSecondModFolderHere</folder> | ||
+ | <modID>1002</modID> | ||
+ | </LocalMod> | ||
+ | </LocalMods> | ||
</ModConfig> | </ModConfig> | ||
</pre><HR> | </pre><HR> | ||
− | + | Assign a number to each entry you want to add.<br> | |
− | + | Numbers seem to default to 4 digits for mods when generated by the client,<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'' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== 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/ | ||
OSX: /Users/'''USERNAME_HERE'''/My Games/Stationeers/mods/ | OSX: /Users/'''USERNAME_HERE'''/My Games/Stationeers/mods/ | ||
− | |||
− | |||
\Modname or workshopid\About\ | \Modname or workshopid\About\ | ||
Line 559: | Line 463: | ||
\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 . | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |