Skip to content

Unturned

Vanilla Unturned with the included RockerMod.

egg-unturned.json

updated

Ports

Add an allocation on the node for each port.

  • Game 27015
  • Game +1 27016

Install

Installer image
ghcr.io/ptero-eggs/installers:debian
Steam app
1110390
Steam login
not required
Install script
53 lines

Image

  • SteamCMD, Debian ghcr.io/ptero-eggs/steamcmd:debian

Panel features

  • steam_disk_space

    The Panel tells the user when SteamCMD does not have enough disk space.

Startup

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

7 variables

Startup command

./Unturned_Headless.x86_64 -batchmode -nographics -bind 0.0.0.0 -port 27015 -GSLT {{GSLT}} -Name "Pterodactyl hosted Server" -Password {{SRV_PW}} +InternetServer/PterodactylUnturned

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

  • SRV_NAMEUsers can edit

    string|max:50

  • SRV_PWUsers can edit

    nullable|string

  • GSLTUsers can edit

    required|stringA value is required.

  • ID of the server for savegames

    SRV_IDUsers cannot see

    string

  • Auto update on restart

    AUTO_UPDATEUsers can edit

    required|boolean

  • Steam App ID require for install and startup update

    SRCDS_APPIDUsers cannot see

    required|string|in:1110390

  • This is needed to load specific libraries

    LD_LIBRARY_PATHUsers cannot see

    required|string

Wings

Stop command
shutdown
Running when the console shows
Loading level: 100%

Readme

Unturned

Steam Description You're one of the few not yet turned zombie. Keeping it that way will be a challenge.

  • Go in guns blazing and attract the attention of everything, living and dead.
  • Take a subtle approach sneaking around and making use of distractions.
  • Confront and learn to counter special abilities ranging from invisibility to fire breathing to lightning attacks.

GSLT

You can manually create GSLTs while logged in with your Steam account here: https://steamcommunity.com/dev/managegameservers

Use Unturned's app ID 304930, and a memo to remind you which server the token is for.

Server Ports

Unturned requires 2 ports to run properly.

Port default
Game 27015
Game +1 27016

Changes

  1. 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 53 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}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) ${INSTALL_FLAGS} validate +quit

## 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

## add below your custom commands if needed

## Specific to Unturned
cd /mnt/server/
ln -s ../../../steamcmd/linux64/steamclient.so Unturned_Headless_Data/Plugins/x86_64/steamclient.so
ln -s ../Extras/Rocket.Unturned/ Modules/

## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"