Risk of Rain 2

Risk of Rain 2

Pas assez d'évaluations
A rough guide to a RoR2 dedicated server on Linux
De Ress
A rough guide on how to host a dedicated RoR2 server on Linux.

Note that this guide is not meant for people who are inexperienced in setting up (game)servers on Linux.
   
Récompenser
Ajouter aux favoris
Favoris
Retirer des favoris
Notes and Disclaimers
Disclaimer

Note that this guide is at your own risk. Running a Windows server on Linux is obviously not supported. Please don't bug the developers about this method of running a server.

Notes

I've tested this method of running a server on Ubuntu Server 18.04 LTS, Running on a Scaleway node with 2 vCores and 2 GB of RAM and no SWAP. Experiences may vary depending on your server's specs.

Also create a new Linux user for this, you're gonna run Wine, that should not run anywhere privileged.

Known issues

At the moment I'm unable to get the Steam master server to recognize the server. This is due that I cannot get a valid account connected to authenticate the server with. If you have any idea on how to do so, do let me know.
Pre-requirements
Requirements
  • SteamCMD
  • Wine
  • Xvfb

Below follows the apt command for Ubuntu 18.04, for other OSes you'll need to find your equivalent
apt-get install xvfb wine-stable lib32gcc1
Setting up SteamCMD and the RoR server
Start by setting up SteamCMD from Valve's own documentation.

Once you've installed SteamCMD, start it up and type in the following commands.

login anonymous force_install_dir <A PATH TO YOUR INSTALLATION> @sSteamCmdForcePlatformType windows app_update 1180760 exit

A copy of the RoR2 Dedicated server has now been installed to the path of your choosing, to configure your server please reference the official dedicated server guide.
Running the dedicated server
To run the dedicated server we will use a combination of Xvfb and Wine.

While in the root folder of the server we run the following command to launch the server.
xvfb-run wine ./"Risk of Rain 2.exe"

To keep the server running without an active SSH session, you can use something like screen, systemd or something else that's your fancy.
4 commentaires
FuneralThirsty 7 févr. à 6h45 
The force_install_dir needs to come before the login anonymous
WOKE_KOALA 24 juin 2021 à 22h56 
This guide helped me I thought I'd share what I used for my systemd service file:winter2019neutralyul::lunar2020ratinablanket:


[Unit]
Description=RoR2 Dedicated Server
After=network.target

[Service]
User=steam
Nice=1
KillMode=none
SuccessExitStatus=0 1
ProtectHome=true
ProtectSystem=full
PrivateDevices=true
NoNewPrivileges=true
WorkingDirectory=/opt/steam/RoR2DS
ExecStart=xvfb-run wine ./"Risk of Rain 2.exe"
ExecStop=killall "Risk of Rain 2.exe"

[Install]
WantedBy=multi-user.target

hope this helps someone
alan1229 11 nov. 2020 à 16h06 
Thanks, working fine on GCP :)
freyaaaaaaaaaaaaaaaaaaaaaaaaaaaa 21 aout 2020 à 15h30 
To workaround the server not appearing in server browsers, you can add some additional Steamworks DLLs into the root of the ROR2 server directory. Facepunch has a repository listed here: https://wiki.facepunch.com/steamworks/Server_Library but keep in mind you'll need to force your platform as Windows. At the moment server discovery seems to be bugged but it's already been patched in the beta branch.