Dedicated Server

From Interstellar Rift Wiki
Jump to: navigation, search

Setup

Windows

Step 1a: Download the game

You can either download the game through the Steam client, or you can use SteamCMD.

When using SteamCMD you need to customize and run the following command:

.\steamcmd +login <steam_username> "<steam_password>" +force_install_dir <installation_path> +app_update 363360 validate +quit

For example, the resulting command for a given user dummy with password dummy password installed to the subdirectory ir of the steamcmd location would be:

.\steamcmd +login dummy "dummy password" +force_install_dir .\ir +app_update 363360 validate +quit

(More info on SteamCMD usage can be found here.

Step 1b: Download and install dependencies

  1. When using the Steam client dependencies should be installed by Steam on first run, if this does not happen, install the following dependencies:
    • Microsoft .NET Framework 4.7.2: %PROGRAMFILES(X86)%\Steam\steamapps\common\Steamworks Shared\_CommonRedist\DotNet\4.7\NDP472-KB4054530-x86-x64-AllOS-ENU.exe
    • Microsoft Visual C++ 2012 Redistributable (x86): %PROGRAMFILES(X86)%\Steam\steamapps\common\Steamworks Shared\_CommonRedist\vcredist\2012\vcredist_x86.exe
  2. When using SteamCMD you will have to install the dependencies yourself, you have two options to download the installers:
    1. Directly from Microsoft
    2. Using SteamCMD
      • Microsoft .NET Framework 4.7.2: download_depot 228980 229006
      • Microsoft Visual C++ 2012 Redistributable (x86): download_depot 228980 228984

Step 2: Validating your server

You will need an SSK (Standalone Server Key) to allow your server to be validated. To get one you need to use the full Interstellar Rift client, however it does not need to run on the same machine as the dedicated server.

Where to find the "Generate SSK" button
  1. Open your IsR client and go to Play Interstellar Rift > Host Game and then click the "Generate SSK" button, don't close the client until you've reached the end of the guide
  2. A file called SSK.txt will be generated at: %APPDATA%\InterstellarRift.
  3. Copy this file to the same location on the server machine, this key will be valid for 30 days and then you will have to redo this step.

Step 3: Configuring your server

Configuring your server is done by editing the server.json file located at: %APPDATA%\InterstellarRift. All values in this file are explained here.

Step 4: Running your server

The game folder contains an auto-restart script called start_server_autorestart.ps1 that will automatically restart your server when it crashes, you can either use this script to run your server or use it as an example for making your own. To execute it, right click the script and then use the "Run with PowerShell" option.

Step 5: Forwarding ports

The Interstellar Rift server uses UDP over port 8905 by default. Make sure your router is forwarding this port to the machine your server is running on.

Linux

Running a Linux server is not officially supported but the Steam user 7thCore has made a Steam Guide explaining how to set up a dedicated server on Linux through Wine here

Troubleshooting and Errors

Error Description Solution
Announcing server to masterserver: invalid steam ticket This means your SSK is not valid Repeat step 2. The server does not have to be restarted for it to detect the new SSK.

If you have any further questions or issues please post in the Steam forum or ask in the #technicalsupport channel on Discord.

Configuration

Server configuration is mostly done by editing the server.json. It is detailed here.

Management

Managing a server can be made easier by using the console and chat commands. These are explained here.