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 and Startup

Startup Command

mono Headless/Resonite.exe -HeadlessConfig Headless/Config/Config.json -Logs Headless/Logs $(if {{ENABLE_MODLOADER}}; then echo "-LoadAssembly "Libraries/ResoniteModLoader.dll""; fi)

Variables

Steam Account User

The username for your Steam account.

Environment Variable: STEAM_USER
Default Value:
User Viewable:
User Editable:
Steam Account Password

The password for your Steam account.

Environment Variable: STEAM_PASS
Default Value:
User Viewable:
User Editable:
Steam Account Token/Code

The Steam Guard code or Login Token emailed to you.

Environment Variable: STEAM_AUTH
Default Value:
User Viewable:
User Editable:
Enable Mod Loader

See: https://github.com/resonite-modding-group/ResoniteModLoader for more information on Resonite Mod Loader.

Environment Variable: ENABLE_MODLOADER
Default Value: false
User Viewable:
User Editable:
Beta Password

This 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.

Environment Variable: SRCDS_BETAPASS
Default Value:
User Viewable:
User Editable:
Beta branch name

Environment Variable: SRCDS_BETAID
Default Value: headless
User Viewable:
User Editable:
Auto update

Auto update the server on startup

Environment Variable: AUTO_UPDATE
Default Value: 1
User Viewable:
User Editable:
Steam App ID

Environment Variable: SRCDS_APPID
Default Value: 2519830
User Viewable:
User Editable:
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 "-----------------------------------------"
Installation Imageghcr.io/ptero-eggs/installers:debianInstallation Entrypointbash