Skip to content

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.

egg-resonite.json

updated

Install

Installer image
ghcr.io/ptero-eggs/installers:debian
Steam app
2519830
Steam login
required
Install script
61 lines

Image

  • Mono ghcr.io/ptero-eggs/yolks:mono_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

mono Headless/Resonite.exe -HeadlessConfig Headless/Config/Config.json -Logs Headless/Logs $(if false; then echo "-LoadAssembly "Libraries/ResoniteModLoader.dll""; fi)
  • The username for your Steam account.

    STEAM_USERUsers cannot see

    required|string|max:128A value is required.

  • The password for your Steam account.

    STEAM_PASSUsers cannot see

    required|string|max:128A value is required.

  • The Steam Guard code or Login Token emailed to you.

    STEAM_AUTHUsers cannot see

    nullable|string

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

    ENABLE_MODLOADERUsers can edit

    required|string|in:true,false

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

    SRCDS_BETAPASSUsers cannot see

    required|string|max:30A value is required.

  • SRCDS_BETAIDUsers cannot see

    required|string

  • Auto update the server on startup

    AUTO_UPDATEUsers can edit

    required|boolean

  • SRCDS_APPIDUsers cannot see

    required|string|max:20

Wings

Stop command
shutdown
Running when the console shows
World running...

Readme

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

Changes

  1. Validate and update embedded URLs

    · Daniel Barton · bf9f3cb

  2. SteamCMD + Other fixes

    · yesBad · edbf925

  3. Add steamcmd based eggs

    · Daniel Barton · 60ef9fb

All changes on GitHub

Problem with this egg?

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

Install script 61 lines bash in ghcr.io/ptero-eggs/installers:debian Show
#!/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 "-----------------------------------------"