Difference between revisions of "Dedicated Server"

From Interstellar Rift Wiki
Jump to: navigation, search
(Linux Info (Incomplete))
(How to make a windows dedicated server)
Line 5: Line 5:
 
= How to make a windows dedicated server=
 
= How to make a windows dedicated server=
  
'''Step 1: Download the game'''
+
'''Step 1a: Download the game'''
<ul>
+
 
<li>You have 2 options when trying to download the game. You can either download it via your Steam Client or you can use SteamCMD.</li>
+
You can either download the game through the Steam client, or you can use SteamCMD.
<li>If you want to download it via SteamCMD the Steam AppID is 363360</li>
+
 
</ul>
+
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 <code>dummy</code> with password <code>dummy password</code> installed to the subdirectory <code>ir</code> 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 [https://developer.valvesoftware.com/wiki/SteamCMD here].
 +
 
 +
'''Step 1b: Download and install dependencies'''
 +
 
 +
# 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: <code>%PROGRAMFILES(X86)%\Steam\steamapps\common\Steamworks Shared\_CommonRedist\DotNet\4.7\NDP472-KB4054530-x86-x64-AllOS-ENU.exe</code>
 +
#* Microsoft Visual C++ 2012 Redistributable (x86): <code>%PROGRAMFILES(X86)%\Steam\steamapps\common\Steamworks Shared\_CommonRedist\vcredist\2012\vcredist_x86.exe</code>
 +
# When using SteamCMD you will have to install the dependencies yourself, you have two options to download the installers:
 +
## '''Directly from Microsoft'''
 +
##* [https://steamcommunity.com/app/363360/discussions/1/1648791520848656353/ Microsoft .NET Framework 4.7.2]
 +
##* [https://www.microsoft.com/en-us/download/details.aspx?id=30679 Microsoft Visual C++]
 +
## '''Using SteamCMD'''
 +
##* Microsoft .NET Framework 4.7.2: <code>download_depot 228980 229006</code>
 +
##* Microsoft Visual C++ 2012 Redistributable (x86): <code>download_depot 228980 228984</code>
 
'''Step 2: Make a shortcut to start your server'''
 
'''Step 2: Make a shortcut to start your server'''
 
<ol>
 
<ol>
<li>We will need to make a shortcut of IR.exe. It is usually located in the folder: Steam/SteamApps/common/Interstellar Rift/Build/IR.exe</li>
+
<li>We will need to make a shortcut of IR.exe. It is usually located in the folder: <code>%PROGRAMFILES(X86)%/Steam/steamapps/common/Interstellar Rift/Build/IR.exe</code></li>
 
<li>Create a shortcut by right clicking IR.exe and selecting create shortcut</li>
 
<li>Create a shortcut by right clicking IR.exe and selecting create shortcut</li>
 
<li>Right click the shortcut you just made and go to properties</li>
 
<li>Right click the shortcut you just made and go to properties</li>
Line 19: Line 36:
 
<li>example "Interstellar Rift\Build\IR.exe" -server</li>
 
<li>example "Interstellar Rift\Build\IR.exe" -server</li>
 
<li>example2 [http://puu.sh/iCOH7/961cc4452a.png click here] to see an image of how it should look</li>
 
<li>example2 [http://puu.sh/iCOH7/961cc4452a.png click here] to see an image of how it should look</li>
                         <li>example3 Make a Batch fill in the same folder as IR.exe, Added IR.exe -server to that batch file then run it.</li>
+
                         <li>example3 Make a batch file in the same folder as IR.exe, Added IR.exe -server to that batch file then run it.</li>
 
</ul>
 
</ul>
                 <li>Do Not close the steam client you made the SSK.txt. You must start your server at least once before you can close the steam client that you made the SSK.txt  with or it will be invalid and you will have to make a new one</li>  
+
                 <li>Do not close the steam client you made the SSK.txt. You must start your server at least once before you can close the steam client that you made the SSK.txt  with or it will be invalid and you will have to make a new one</li>  
 
</ol>
 
</ol>
 
'''Step 3: Validating Your Server'''
 
'''Step 3: Validating Your Server'''
Line 46: Line 63:
  
 
<br>
 
<br>
 +
 
= Linux Info (Incomplete) =
 
= Linux Info (Incomplete) =
  

Revision as of 12:48, 10 May 2019

This is a guide for setting up your own Interstellar Rift dedicated server on windows. If you have any questions or issues please reply to the steam thread here and the Developers will answer them as soon as possible. This guide is player made. It assumes you already know how to install the steam client and/or SteamCMD. It is based off the guide found here here


How to make a windows dedicated server

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: Make a shortcut to start your server

  1. We will need to make a shortcut of IR.exe. It is usually located in the folder: %PROGRAMFILES(X86)%/Steam/steamapps/common/Interstellar Rift/Build/IR.exe
  2. Create a shortcut by right clicking IR.exe and selecting create shortcut
  3. Right click the shortcut you just made and go to properties
  4. Change the target to included -server at the end of it
    • example "Interstellar Rift\Build\IR.exe" -server
    • example2 click here to see an image of how it should look
    • example3 Make a batch file in the same folder as IR.exe, Added IR.exe -server to that batch file then run it.
  5. Do not close the steam client you made the SSK.txt. You must start your server at least once before you can close the steam client that you made the SSK.txt with or it will be invalid and you will have to make a new one

Step 3: Validating Your Server

  1. You will need an SSK (Standalone Server Key) to allow your server to be validated. To get one open your IR client and go to Play Interstellar Rift > Host Game. Then click the "Generate SSK" key, like this
  2. After that a file called SSK.txt will be generated in your Appdata folder at: *Your Drive*:/Users/*Your User*/AppData/Roaming/InterstellarRift/SSK.txt
    • As as shortcut to get there you can hit window key + R or click your window key this go to run and type %appdata% and hit enter. Then go to InterstellarRift/SSK.txt
    • Please note if you are running the server on another computer you will need to copy and the generated SSK.txt in appdata on your server and the it over to that computer.
    • This key will associate any servers with it to the Steam account you generated it with; It will be valid for a maximum of 30 days and may be used in as many server instances as you'd like once it is associated.
    • If your client was exited please generate a new key.

Step 4: Configuring Your Server

  1. In that same folder as that SSK.txt is stored in (*Your Drive*:/Users/*Your User*/AppData/Roaming/InterstellarRift/) you will find a file called server.json. If you do not see that file you should see config.xml. This is your config file
  2. Right click on it and go to open with and select notepad.
  3. Lastly edit what you would like and then save and close it
    • Note: After you start your server once your will need to use the server.json file as your confing file.
    • If you change the starting ship in the server.json file the Store-o-Tron will still show the factions' starter ships rather then the new ship you put in.


Linux Info (Incomplete)

Running a Linux server is nut currently supported, and there are no known active Linux servers at this time. If you'd like to try your luck, you'll need to run it in WINE with this argument:

Quote from the developers:

CommandLineArgs.Contains("-inline")

Developer: you would have to run it through wine, thats [sic] all i know, not really my part of the code.


Troubleshooting and Errors

Error Message Description How to Fix
announcing server to masterserver: invalid steam ticket This means your SSK is not valid Repeat Step 3.
Warning > No devices found which means the network is broken or there is no UPnP/PMP capable router OR UPNP: Failed to add mapping! This means your router was not able to forward the Server's port automatically, or it does have such a function to do so. If you are getting this message it will not away. Just make sure your ports are forwarded and you shouldn't have any issues.