Egg Repository

Pterodactyl Community Egg Repository

Automobilista 2

Egg for Automobilista 2

Read Me

Automobilista 2

Steam description : Automobilista 2 is all the racing simulators you ever wanted - in just one. An incredibly diverse collection of cars and tracks cohesively simulated, featuring incredible graphics and audio quality, dynamic weather and track conditions and the best VR support for a racing experience like no other.

Minimum RAM warning

Minimum RAM requirement of 512MB, with 1GB+ being recommended

Minimum Storage warning

Automobilista 2 required at least 2GiB.

Server Ports

Automobilista 2 requires three ports to run. Hostport is always the default Allocation Port!

Portdefault
SteamPort8766
Hostport(Default Allocation Port)27015
queryPort27016

Notes

All Ports can be changed

Yolks
NameTag
ghcr.io/ptero-eggs/yolks:wine_latestghcr.io/ptero-eggs/yolks:wine_latest
Variables
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
App IDSRCDS_APPID1338040NoNo
Auto UpdateDecide if you want to update your serverAUTO_UPDATE1YesYes
WindowsWINDOWS_INSTALL1NoNo
Wine DebugWINEDEBUG-allNoNo
Server NameSERVER_NAMEPtero DefaultYesYes
Query PortQUERY_PORTYesYes
Steam PortSTEAM_PORTYesYes
Server PasswordSERVER_PASSWORDYesYes
Max PlayersMAX_PLAYERS16YesYes
Install Script
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

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

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

cd $HOME
if [ ! -f "server.cfg" ] ; then
    echo "Installing default config file"
    cp config_sample/server_with_lists.cfg server.cfg
fi

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