Egg Repository

Pterodactyl Community Egg Repository

Sonic Robo Blast 2

Sonic Robo Blast 2 Dedicated Server

Read Me

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

Portdefault
Game5029
Yolks
NameTag
ghcr.io/ptero-eggs/yolks:wine_latestghcr.io/ptero-eggs/yolks:wine_latest
Variables
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
Server nameThe name of your server (this will show in the master list)SRV_NAMEDefault NameYesYes
PasswordThe password used for joining the serverSRV_PWChangeMeYesYes
Max PlayersThe amount of players that can join your server at once Maximum amount of players: 32MAX_PLAYERS32YesYes
Master List Room NumberThis 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_NR33YesYes
SRB2 VersionThe version of Sonic Robo Blast 2 that will be usedSRB2_VERSION2.2.15NoNo
WINEDEBUGUsed to suppress WINE FIXME messages. Rarely needs to be changed.WINEDEBUG-allNoNo
WINEARCHUsed for compatibility. Cannot be changed.WINEARCHwin64NoNo
WINEPATHUsed for compatibility. Cannot be changed.WINEPATH/home/containerNoNo
Install Script
#!/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 "-------------------------------------------------"