Skip to content

Assetto Corsa (Freeroam + AI)

Custom Assetto Corsa server with focus on freeroam

egg-assetto-corsa-freeroam-ai.json

updated

Ports

Add an allocation on the node for each port.

  • Game 9600
  • HTTP 8081

Install

Installer image
ghcr.io/ptero-eggs/installers:debian
Install script
45 lines

Image

  • Dotnet_8 ghcr.io/ptero-eggs/yolks:dotnet_8

Startup

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

5 variables

Startup command

./AssettoServer
  • The name off the server

    SERVER_NAMEUsers can edit

    required|string|max:40

  • SERVER_PASSWORDUsers can edit

    nullable|string|max:64

  • HTTP_PORTUsers can see

    nullable|numeric

  • ADMIN_PASSWORDUsers can edit

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

  • MAX_CLIENTSUsers can edit

    required|numeric|between:2,25

Wings

Stop command
^C (SIGINT)
Running when the console shows
Starting update loop with an update rate of

Files Wings edits

Wings sets these values in these files before each start.

cfg/server_cfg.ini ini

SERVER.NAME
{{server.build.env.SERVER_NAME}}
SERVER.PASSWORD
{{server.build.env.SERVER_PASSWORD}}
SERVER.ADMIN_PASSWORD
{{server.build.env.ADMIN_PASSWORD}}
SERVER.HTTP_PORT
{{server.build.env.HTTP_PORT}}
SERVER.MAX_CLIENTS
{{server.build.env.MAX_CLIENTS}}
SERVER.UDP_PORT
{{server.build.default.port}}
SERVER.TCP_PORT
{{server.build.default.port}}

Readme

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

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