Skip to content

Sonic Robo Blast 2

Sonic Robo Blast 2 Dedicated Server

egg-sonic-robo-blast-2.json

updated

Ports

Add an allocation on the node for each port.

  • Game 5029

Install

Installer image
ghcr.io/ptero-eggs/installers:debian
Install script
44 lines

Image

  • Wine ghcr.io/ptero-eggs/yolks:wine_latest

Startup

The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.

8 variables

Startup command

rm ./latest-log.txt; wine ./srb2win.exe -dedicated -port 5029 -room 33 & ENS_PID=$! ; tail -c0 -F ./latest-log.txt --pid=$ENS_PID

Dotted values come from the server settings. These values are examples.

  • The name of your server (this will show in the master list)

    SRV_NAMEUsers can edit

    required|string|max:20

  • The password used for joining the server

    SRV_PWUsers can edit

    required|string|max:20

  • The amount of players that can join your server at once Maximum amount of players: 32

    MAX_PLAYERSUsers can edit

    required|string|max:32

  • This advertises the server on the Master Server. ID specifies the room in which the server is hosted: 33 is the Standard room, while 28 is the Casual room. Master List: https://ms.srb2.org/

    ROOM_NRUsers can edit

    required|string|max:20

  • The version of Sonic Robo Blast 2 that will be used

    SRB2_VERSIONUsers cannot see

    required|string|max:20

  • Used to suppress WINE FIXME messages. Rarely needs to be changed.

    WINEDEBUGUsers cannot see

    string|nullable

  • Used for compatibility. Cannot be changed.

    WINEARCHUsers cannot see

    required|string|in:win64

  • Used for compatibility. Cannot be changed.

    WINEPATHUsers cannot see

    required|string|in:/home/container

Wings

Stop command
^C (SIGINT)
Running when the console shows
DEDICATED: No players at round start, idling...

Files Wings edits

Wings sets these values in these files before each start.

adedserv.cfg file

servername
servername "{{server.build.env.SRV_NAME}}"
password
password {{server.build.env.SRV_PW}}
maxplayers
maxplayers {{server.build.env.MAX_PLAYERS}}

Readme

Sonic Robo Blast 2

SRB2

Sonic Robo Blast 2 is a 3D open-source Sonic the Hedgehog fangame built using a modified version of the Doom Legacy port of Doom. SRB2 is closely inspired by the original Sonic games from the Sega Genesis, and attempts to recreate the design in 3D. While SRB2 isn't fully completed, it already features tons of levels, enemies, speed, and quite a lot of the fun that the original Sonic games provided.

Server Ports

Port default
Game 5029

Changes

  1. Add: Sonic robo blast 2

    · Red Banana · 91d1255

All changes on GitHub

Problem with this egg?

Open an issue on GitHub. Include your Panel and Wings versions.

Install script 44 lines bash in ghcr.io/ptero-eggs/installers:debian Show
#!/bin/bash

# SRB2_VERSION
if [[ "$SRB2_VERSION" == "latest" ]]; then
    echo "Fetching latest SRB2 version from GitHub..."
    SRB2_VERSION=$(curl -s https://api.github.com/repos/STJr/SRB2/releases/latest | jq -r '.tag_name' | sed 's/SRB2_release_//')
    echo "Latest SRB2 version is: $SRB2_VERSION"
fi

SRB2_VERSION_NO_DOTS="${SRB2_VERSION//./}"
SRB2_URL="https://github.com/STJr/SRB2/releases/download/SRB2_release_${SRB2_VERSION}/SRB2-v${SRB2_VERSION_NO_DOTS}-Full.zip"

apt update && apt install -y unzip wget jq curl libsdl2-2.0-0 libpng16-16

mkdir -p /mnt/server
cd /mnt/server || exit

wget -O SRB2.zip "$SRB2_URL"
unzip SRB2.zip
rm SRB2.zip

chmod +x ./srb2win.exe

CONFIG_FILE="/mnt/server/adedserv.cfg"

if [[ -f "$CONFIG_FILE" ]]; then
    echo "Ensuring necessary settings exist in configuration..."
    sed -i "s/^servername.*/servername ${SRV_NAME}/" "$CONFIG_FILE"
    sed -i "s/^password.*/password ${SRV_PW}/" "$CONFIG_FILE"
    sed -i "s/^maxplayers.*/maxplayers ${MAX_PLAYERS}/" "$CONFIG_FILE"
else
    echo "Configuration file missing! Creating a new one..."
    cat > "$CONFIG_FILE" <<EOL
servername "${SRV_NAME:-"My SRB2 Server"}"
wait 5
password ${SRV_PW:-"ChangeMe"}
wait 5
maxplayers ${MAX_PLAYERS:-20}
EOL
fi

echo -e "-------------------------------------------------"
echo -e "Installation completed for SRB2 $SRB2_VERSION"
echo -e "-------------------------------------------------"