Headless Server Software/Setup: Difference between revisions

From Resonite Wiki
No edit summary
Add account login requirements
 
(7 intermediate revisions by 4 users not shown)
Line 2: Line 2:
* Be a Resonite [[Patreon|Patron]] at the Discoverer level or higher.
* Be a Resonite [[Patreon|Patron]] at the Discoverer level or higher.
* Have a Windows or Linux server or machine ready to go
* Have a Windows or Linux server or machine ready to go
* Have a spare Steam account's credentials ready.
** This spare account does not need to be a patreon.


=== Windows Prerequisites ===
=== Windows Prerequisites ===
* [https://dotnet.microsoft.com/en-us/download/dotnet-framework/net462 .NET Framework 4.6.2]
* [https://dotnet.microsoft.com/en-us/download/dotnet/9.0 .NET Runtime 9.0]


=== Linux Prerequisites ===
=== Linux Prerequisites ===
* Mono (mono-complete)
* .NET 9.0 Runtime
** You can find instructions on [https://www.mono-project.com/download/stable/#download-lin-ubuntu Mono's website]
** You can find instructions on [https://learn.microsoft.com/en-us/dotnet/core/install/linux Microsoft's website]
** Follow instructions for the <code>mono-complete</code> package
** Follow instructions for the distribution you are using
* steamcmd
* steamcmd
** You can find instructions on the [https://developer.valvesoftware.com/wiki/SteamCMD#Downloading_SteamCMD Valve Software Wiki].
** You can find instructions on the [https://developer.valvesoftware.com/wiki/SteamCMD#Downloading_SteamCMD Valve Software Wiki].


== Access to Headless client builds ==
== Access to Headless Software builds ==
To gain access to the Headless client you will need a headless steam beta code:
To gain access to the Headless Software you will need a headless steam beta code:
* Send <code>/headlessCode</code> to the [[Resonite Bot | Resonite bot]] in-game.
* Send <code>/headlessCode</code> to the [[Resonite Bot | Resonite bot]] in-game.
* You'll get a headless beta code for steam. With this in hand you need to proceed to getting the files.
* You'll get a headless beta code for steam. With this in hand you need to proceed to getting the files.


== Getting the Headless client files ==
== Getting the Headless Software files ==
There are two options for getting the files required to run a headless client:
There are two options for getting the files required to run a headless server:
# Using Steam's Graphical Interface
# Using Steam's Graphical Interface
# Using Steam's Command Line Interface - Common for within Docker files and Linux servers.
# Using Steam's Command Line Interface - Common for within Docker files and Linux servers.
Line 30: Line 32:
# Click the "Betas" option in the window which appears
# Click the "Betas" option in the window which appears
# Enter your code from Resonite bot into the "beta access code" field.
# Enter your code from Resonite bot into the "beta access code" field.
# This will grant you access to the headless-client build.
# This will grant you access to the headless build.
# Switch to the headless-client build
# Switch to the headless build


=== Using Steam's Command Line Interface ===  
=== Using Steam's Command Line Interface ===  
# Run Steam CMD with: <code>steamcmd</code>
# Run Steam CMD with: <code>steamcmd</code>
# Run: <code>login <steam username of spare account></code>
# Run: <code>app_license_request 2519830</code>.
# Run: <code>app_license_request 2519830</code>.
# Run: <code>app_update 2519830 -beta headless -betapassword <headless beta access code></code>
# Run: <code>app_update 2519830 -beta headless -betapassword <headless beta access code></code>


== Your first time running a Headless Client ==  
== Your first time running a Headless Server ==  
First, look for the files you've installed. Look for Resonite.exe:
First, look for the files you've installed. Look for Resonite.exe:
* For SteamCMD it will be in the location which you downloaded the files to with SteamCMD
* For SteamCMD it will be in the location which you downloaded the files to with SteamCMD
Line 44: Line 47:


Once you've found them you can try running the "Resonite.exe" file in there:
Once you've found them you can try running the "Resonite.exe" file in there:
* For Windows, we still recommend a terminal window.  
* For Windows, we still recommend a terminal window.
** Powershell or CMD works well
** Powershell or CMD works well
** This allows you to see any errors or problems in a much easier way.
** This allows you to see any errors or problems in a much easier way.
* For Linux you'll need mono: <code>mono Resonite.exe</code>
* For Linux you'll need dotnet: <code>dotnet Resonite.dll</code>


This will run a default Resonite Headless, as we haven't specified any configuration properties it will just open a default world using a non-logged in user.  
This will run a default Resonite Headless, as we haven't specified any configuration properties it will just open a default world using a non-logged in user.  
Line 53: Line 56:
This isn't that useful but it does verify that everything is installed and setup correctly. After it starts up you should see "World Running" and something along the lines of "<your computers name> World 0>_".
This isn't that useful but it does verify that everything is installed and setup correctly. After it starts up you should see "World Running" and something along the lines of "<your computers name> World 0>_".


If you see this, you're good to go! You've got a running Headless Client. You'll probably want to create a [[Headless Client/Configuration File|Configuration File]] next.
If you see this, you're good to go! You've got a running Headless Server. You'll probably want to create a [[Headless Server Software/Configuration File|Configuration File]] next.

Latest revision as of 07:26, 3 December 2024

Prerequisites

  • Be a Resonite Patron at the Discoverer level or higher.
  • Have a Windows or Linux server or machine ready to go
  • Have a spare Steam account's credentials ready.
    • This spare account does not need to be a patreon.

Windows Prerequisites

Linux Prerequisites

Access to Headless Software builds

To gain access to the Headless Software you will need a headless steam beta code:

  • Send /headlessCode to the Resonite bot in-game.
  • You'll get a headless beta code for steam. With this in hand you need to proceed to getting the files.

Getting the Headless Software files

There are two options for getting the files required to run a headless server:

  1. Using Steam's Graphical Interface
  2. Using Steam's Command Line Interface - Common for within Docker files and Linux servers.

Using Steam's graphical interface

  1. Open Steam
  2. Find Resonite in your Installed Games list
  3. Right Click Resonite and select "Properties"
  4. Click the "Betas" option in the window which appears
  5. Enter your code from Resonite bot into the "beta access code" field.
  6. This will grant you access to the headless build.
  7. Switch to the headless build

Using Steam's Command Line Interface

  1. Run Steam CMD with: steamcmd
  2. Run: login <steam username of spare account>
  3. Run: app_license_request 2519830.
  4. Run: app_update 2519830 -beta headless -betapassword <headless beta access code>

Your first time running a Headless Server

First, look for the files you've installed. Look for Resonite.exe:

  • For SteamCMD it will be in the location which you downloaded the files to with SteamCMD
  • For Steam's GUI it will be in the regular Steam installation folder for Resonite inside a folder called "Headless"

Once you've found them you can try running the "Resonite.exe" file in there:

  • For Windows, we still recommend a terminal window.
    • Powershell or CMD works well
    • This allows you to see any errors or problems in a much easier way.
  • For Linux you'll need dotnet: dotnet Resonite.dll

This will run a default Resonite Headless, as we haven't specified any configuration properties it will just open a default world using a non-logged in user.

This isn't that useful but it does verify that everything is installed and setup correctly. After it starts up you should see "World Running" and something along the lines of "<your computers name> World 0>_".

If you see this, you're good to go! You've got a running Headless Server. You'll probably want to create a Configuration File next.