Egg Repository

Pterodactyl Community Egg Repository

Resonite

Enter a novel digital universe with infinite possibilities. Whether you resonate with people around the world in a casual conversation, playing games and socializing or you riff off each other when creating anything from art to programming complex games, you'll find your place here.

Read Me

Resonite headless client

From https://resonite.com

Dive into a brand new digital universe with infinite possibilities, socialize and hang out with people around the world or to build, create and develop anything.

Notice

To use this egg, you will need a beta code and a Steam account. Currently the beta code can only acquired by going to the Resonite Patreon (https://www.patreon.com/Resonite), and subscribing to the "Discoverer" level. Then you will be able to message the Resonite bot in-game with "/headlessCode", and receive the beta code. The account will also need to have Resonite in its library. You can do this by running app_license_request 2519830 in steamcmd if you have never installed Resonite on this Steam account. For more information related to Headless configuration, ask in the official Resonite Discord: https://discord.gg/resonite

This game does not require any port forwarding, but instead uses UDP NAT hole punching (and/or relay) on a random port. You can force a certain port in the config for direct connections with the forcePort directive, but most communcation is done via NAT hole punch using LiteNetLib (LNL).

Yolks
NameTag
Monoghcr.io/ptero-eggs/yolks:mono_latest
Variables
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
Steam Account UserThe username for your Steam account.STEAM_USERNoNo
Steam Account PasswordThe password for your Steam account.STEAM_PASSNoNo
Steam Account Token/CodeThe Steam Guard code or Login Token emailed to you.STEAM_AUTHNoNo
Enable Mod LoaderSee: https://github.com/resonite-modding-group/ResoniteModLoader for more information on Resonite Mod Loader.ENABLE_MODLOADERfalseYesYes
Beta PasswordThis is the "Beta Password" that is only acquired by going to the Resonite Patreon, subscribing to the tier with Headless access, and then after your Resonite account shows "Patreon Supporter", message the Resonite bot in game with /headlessCode, and paste that code here.SRCDS_BETAPASSNoNo
Beta branch nameSRCDS_BETAIDheadlessNoNo
Auto updateAuto update the server on startupAUTO_UPDATE1YesYes
Steam App IDSRCDS_APPID2519830NoNo
Install Script
#!/bin/bash
# steamcmd Base Installation Script
#
# Server Files: /mnt/server
# Image to install with is 'ghcr.io/ptero-eggs/installers:debian'
## just in case someone removed the defaults.
if [[ "${STEAM_USER}" == "" ]] || [[ "${STEAM_PASS}" == "" ]]; then
echo -e "steam user is not set.\n"
echo -e "Using anonymous user.\n"
STEAM_USER=anonymous
STEAM_PASS=""
STEAM_AUTH=""
else
echo -e "user set to ${STEAM_USER}"
fi
## download and install steamcmd
cd /tmp
mkdir -p /mnt/server/steamcmd
curl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd
mkdir -p /mnt/server/steamapps # Fix steamcmd disk write error when this folder is missing
cd /mnt/server/steamcmd
# SteamCMD fails otherwise for some reason, even running as root.
# This is changed at the end of the install process anyways.
chown -R root:root /mnt
export HOME=/mnt/server
## install game using steamcmd
./steamcmd.sh +force_install_dir /mnt/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) -betapassword ${SRCDS_BETAPASS} ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6
## set up 32 bit libraries
mkdir -p /mnt/server/.steam/sdk32
cp -v linux32/steamclient.so ../.steam/sdk32/steamclient.so
## set up 64 bit libraries
mkdir -p /mnt/server/.steam/sdk64
cp -v linux64/steamclient.so ../.steam/sdk64/steamclient.so
## check if config file exists
echo "Looking for existing config file..."
if ! [ -f "/mnt/server/Headless/Config/Config.json" ]; then
echo "Config does not exist, creating new config."
## create default config
mkdir -p /mnt/server/Headless/Config
curl -sSL -o /mnt/server/Headless/Config/Config.json https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/resonite/Config.json
else
## leave existing config
echo "Config already exists, leaving it as is."
fi
## check if mod loader is enabled
echo "Checking if mod loader needs to be installed..."
if [ "$ENABLE_MODLOADER" = true ]; then
echo "Installing/Updating mod loader as its enabled."
mkdir -p /mnt/server/Libraries
mkdir -p /mnt/server/rml_libs
mkdir -p /mnt/server/rml_mods
curl -sSL -o /mnt/server/Libraries/ResoniteModLoader.dll https://github.com/resonite-modding-group/ResoniteModLoader/releases/latest/download/ResoniteModLoader.dll
curl -sSL -o /mnt/server/rml_libs/0Harmony.dll https://github.com/resonite-modding-group/ResoniteModLoader/releases/latest/download/0Harmony.dll
else
echo "Skipping installing mod loader as its not enabled."
fi
## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"