• Stars
    star
    169
  • Rank 224,453 (Top 5 %)
  • Language
    Dockerfile
  • License
    GNU General Publi...
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Host your own Risk of Rain 2 dedicated server. No technical skills required. Runs everywhere.

Risk of Rain 2 dockerized server

Docker Pulls

Host your Risk of Rain 2 dedicated server anywhere using Docker. Powered by Wine and the X virtual framebuffer to seamlessy run on Linux machines.

Guide on Steam.

Quickstart

You need Docker installed. On Debian systems, you can use the bootstrap_debian.sh script to set up Docker and some other dependencies.

Run the Docker container with:

docker run --rm -p 27015:27015/udp avivace/ror2server:latest

Players need to start Risk of Rain 2, open the console pressing CTRL + ALT + ` and insert this command:

connect "<SERVER_IP>:27015";

Replace SERVER_IP with the public IP of the server running the Docker Image.

By default, the server has no password and runs on UDP port 27015. Make sure you have crossplay disabled before joining.

Customize configuration

If you want to start the server on port 25000 with password hello:

docker run -p 25000:25000/udp -e R2_SV_PORT=25000 -e R2_PSW='hello' avivace/ror2server:latest

Players will then join with:

cl_password "hello"; connect "<SERVER_IP>:25000";

You can pass these additional environment variables to customise your server configuration:

  • R2_PLAYERS, the maximum number of players, default is 4;
  • R2_HEARTBEAT, set to 1 to advertise to the master server and list your server in the internal server browser. If you enable this, add -p 27016:27016/udp to your Docker command;
  • R2_HOSTNAME, the name that will appear in the server browser;
  • R2_PSW, the password someone must provide to join this server;
  • R2_ENABLE_MODS, set to 1 to enable mod support (given you mounted the mod folders as described below);
  • R2_QUERY_PORT, the listen port for the Steamworks connection, needed to list the server in the game browser on a alternate port, you need to add -p <PORT>:<PORT>/udp to your Docker command;
  • R2_SV_PORT, the listen port for the game server, needed to list the server in the game browser on a alternate port, you also need to add -p <PORT>:<PORT>/udp to your Docker command.
  • R2_TAGS, the tags the server will have in the server browser.
  • R2_GAMEMODE, the type of gamemode for the run, defaulting to ClassicRun. Supported options:
    • ClassicRun (Standard)
    • InfiniteTowerRun (Simulacrum)

You shouldn't need to change R2_QUERY_PORT and R2_SV_PORT if you are not planning on hosting more server instances on the same machine/IP.

Append one or more -e VARIABLENAME=VALUE to your Docker command to set environment variables.

To check if your server is correctly getting announced to the Steamworks network, you can use this API call:

curl http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001/?format=json&addr=<IP_ADDRESS>

Known Issues

Be aware that this version suffers from some known issues, probably caused by the executable not running natively on Windows. You should probably ask the developers for a proper Linux build.

Since the RoR2 Server will be downloaded each time the docker container is started, there could be breaking changes which require more up to date versions of wine in order to work correctly. In this case you can try forcing the installation of bleeding-edge wine versions by running:

# wine-devel
docker run ${your_parameters} -e WINE_REPLACE_REL="devel" avivace/ror2server:latest
# wine-staging
docker run ${your_parameters} -e WINE_REPLACE_REL="staging" avivace/ror2server:latest

Mod support

To install and enable mods server side, you'll need a directory containing:

  • The BepInEx folder with the desired mods;
  • The doorstop_config.ini and winhttp.dll files, both shipped with the BepInEx version you intend to use.

Supposing your mod directory is in /path/to/directory, you can start your server as follows:

docker run -p 27015:27015/udp -v /path/to/directory:/root/ror2ds-mods -e R2_ENABLE_MODS=1 avivace/ror2server:latest

Beware that some mods requires the client to also have them installed.

FAQ

Can I run this on a VPS?

Yes, any Linux box works. For decent performance, you need 3 GB of free space and at least 2 GB of RAM.

Server crashes with "NullReferenceException"

Disable crossplay.

Server is stuck at "Unloading unused Assets"

That line is usually the last one of the initialization process. It usually means your server is working correctly, that is not a blocking error. If you can't connect to your server at that point, it's probably a network issue.

Server is stuck at "Could not load config ..."

If you see something like this:

Could not load config /Config/server_pregame.cfg: Could not find file "Z:\home\steam\ror2-dedicated\Risk of Rain 2_Data\Config\server_pregame.cfg"

Be aware that these kind of warning messages are non blocking, they are just warnings and the server initialization will proceed as normal.

Acknowledgements

Thanks to InfernalPlacebo and Vam-Jam.

Built by Manuele, Davide Casella, Fabio Nicolini, Antonio Vivace.

More Repositories

1

dotfiles

i3 + Plasma: using the i3 window manager on the top of KDE Plasma and other dotfiles, configurations, scripts, workarounds and practises from my Debian Sid machines.
JavaScript
783
star
2

MonokaiC

A Monokai color scheme for Sublime Text, providing both colored and text-style preview for MarkdownEditing
65
star
3

reviews-sentiment

Data analytics, exploration, sentiment analysis and topic analysis (LDA) on Amazon customer reviews. And cool interactive plots.
Jupyter Notebook
29
star
4

iosevka-docker

Docker containers to build custom (or upstream) versions of the Iosevka typeface and package them for Debian
Shell
29
star
5

j2-resume

An opinionated (and probably over-engineered) workflow to produce a fancy LaTeX, web or docx Curriculum Vitae document from a JSON data source using Jinja2 (a data-driven CV)
TeX
22
star
6

Physarum

Physarum polycephalum slime mould computing simulation, implemented on a custom VueJS + Unity3D stack
C#
21
star
7

breeze2-sddm-theme

Default Plasma Breeze SDDM Theme with customizable font
QML
20
star
8

compsci

Lecture notes, projects, and more resources on the courses I attended for my Bachelor's and Master's degrees in Computer Science
Python
20
star
9

monokai-gtk

GTK2 theme, giving a uniform look to applications using the Monokai color scheme.
19
star
10

dailyProgrammer

A material design frontend to /r/dailyprogrammer challenges
JavaScript
18
star
11

kalman

Interactive and real time 2D simulation of the Kalman Filter in use to reduce statistical input noise.
Vue
18
star
12

RSSnotifier

Node RSS reader telegram bot. Provides notification on queries-matching elements and supports multiple users.
JavaScript
16
star
13

ardumonitor

Real time stats monitoring on Arduino.
Arduino
13
star
14

quadratino

a Snake clone for Game Boy
C
12
star
15

fuse

A simple file sharing web service in Vue.js and Flask
JavaScript
12
star
16

deb-builds

picom, alacritty, i3-gaps, sway, chromium and wlc debian packages. Available as a repository on deb.avivace.com
Makefile
11
star
17

Arc-T

Plasma desktop theme, based on Arc, providing full transparent panels.
Shell
7
star
18

debian-quickstart

Sane defaults for the twenty-first century.
CSS
7
star
19

sfx-framedata

Provides Capcom's Street Fighter V technical gameplay data on a Discord Bot and on a public API. Supports common (unofficial) move names and short forms.
Python
5
star
20

quantum-computing-intro

Afternotes on the "Practical introduction to Quantum Computing: from qubits to quantum machine learning and beyond" CERN course
5
star
21

misterino

Telegram Bot to subscribe and deliver notifications from Twitch Webhooks
Python
4
star
22

pokemon-fights

Predicting Pokèmon fights outcomes with decision trees
R
4
star
23

master-thesis

My master thesis in Computer Science: Modernising the CERN CMS Trigger Rates Monitoring software
TeX
4
star
24

radiogit

Watch GitHub repositories from Telegram chats. GitHub notifications delivered on Telegram.
Python
3
star
25

dna-recombination

Computer Science B.Sc thesis paper and final stage experience. Approaching a Computational Biology Problem with integer linear programming tools.
TeX
3
star
26

EmbeddedSystems-8051

Course project on a 8051 development board. Monitoring accelerometer and thermometer values on LCD.
C
3
star
27

openlab-report-template

LaTeX template for the project report of CERN Openlab summer students
TeX
2
star
28

mvpoli

Common Lisp and SWI-Prolog libraries to manipulate multivariate polynomials.
Prolog
2
star
29

cervical-cancer

Exploratory study on Cervical Cancer: verifying known causal relations and assessing risk factors from women medical history datasets.
TeX
2
star
30

sha

A Rasberry Pi integrated domotic solution with MQTT supporting sensors, actuators and thermostat. Controllable from a fancy VueJS web application, smart speakers or a basic SMS interface.
Python
2
star
31

pv2023

Paper submission for the PV2023 conference - "The Challenge of Digital Preservation at CERN"
TeX
1
star
32

VHDLtrafficlights

Implement a semaphore with a Xilinx FPGA
VHDL
1
star
33

msc1-sparsematrix

Comparing open source and commercial solvers for sparse matrices.
R
1
star
34

basket-shots

Predicting Basket Shots outcomes using Suppor Vector Machines. Data Technology and Machine Learning course project.
R
1
star
35

bio-p

Ruby
1
star
36

msc2-dct

Comparing naïve and scipy implementations of DCT2/IDCT2 (Direct Cosine Transform), while exposing the scipy implementation on a web app.
Python
1
star
37

french-attestation-generator

A bot to generate Attestation de déplacement dérogatoire documents on the go, just by sending a telegram message.
JavaScript
1
star
38

ultralite-music

A light music player for PSP capable of running smoothly on 19 MHz granting extreme battery life
Lua
1
star