Egg Repository

Pterodactyl Community Egg Repository

Assetto Corsa (Freeroam + AI)

Custom Assetto Corsa server with focus on freeroam

Read Me

Assetto Corsa

Assetto Corsa is a sim racing video game developed by the Italian video game developer Kunos Simulazioni. It is designed with an emphasis on a realistic racing experience with support for extensive customization and moddability.

Server Ports

Asseto Corsa requires two ports, game port is UDP and WEB HTTP port is TCP.

Port default
Game 9600
HTTP 8081

Notes

9600 is the default port, but any port can be used.

Freeroam + AI

This egg uses: GitHub Website

Yolks
NameTag
Dotnet_8ghcr.io/ptero-eggs/yolks:dotnet_8
Variables
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
Server nameThe name off the serverSERVER_NAMEAC_ServerYesYes
Server PasswordSERVER_PASSWORDYesYes
Http portHTTP_PORTYesNo
Admin PasswordADMIN_PASSWORDYesYes
Max clientsMAX_CLIENTS18YesYes
Install Script
#!/bin/bash

apt update
apt -y install curl git jq tar

## get release info and download links
LATEST_JSON=$(curl --silent "https://api.github.com/repos/compujuckel/AssettoServer/releases/latest")
RELEASES=$(curl --silent "https://api.github.com/repos/compujuckel/AssettoServer/releases")
MATCH=$([[ "$(uname -m)" == "x86_64" ]] && echo "linux-x64" || echo "linux-arm64")
VERSION=latest

if [ -z "${VERSION}" ] || [ "${VERSION}" == "latest" ]; then
    DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})
else
    VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION "${VERSION}" '.[] | select(.tag_name==$VERSION) | .tag_name')
    if [ "${VERSION}" == "${VERSION_CHECK}" ]; then
        DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION "${VERSION}" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})
    else
        echo -e "defaulting to latest release"
        DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i linux | head -1)
    fi
fi

mkdir -p /mnt/server
cd /mnt/server

curl -sSL -o assetto-server-linux.tar.gz ${DOWNLOAD_URL}

tar xvf assetto-server-linux.tar.gz
rm assetto-server-linux.tar.gz
chmod +x AssettoServer

mkdir cfg/
cd cfg/

[ -f "server_cfg.ini" ] || curl -sSL -o "server_cfg.ini" "https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/assetto_corsa/cfg/server_cfg.ini"
[ -f "extra_cfg.yml" ] || curl -sSL -o "extra_cfg.yml" "https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/assetto_corsa/cfg/extra_cfg.yml"
[ -f "entry_list.ini" ] || touch entry_list.ini



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