Skip to content

Assetto Corsa

Assetto Corsa (Italian for "Race Setup") 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

egg-assetto-corsa.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
Steam app
302550
Steam login
required
Install script
47 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.

10 variables

Startup command

./acServer
  • A steam username of an account that owns the game is required

    STEAM_USERUsers can edit

    required|stringA value is required.

  • Steam User Password

    STEAM_PASSUsers can edit

    required|stringA value is required.

  • Steam Auth Code required if the Steam Account is using Steam Auth. Slow installs will cause the code to expire before it can be used.

    STEAM_AUTHUsers can edit

    nullable|string

  • Name of the server

    HOSTNAMEUsers can edit

    required|string|max:45

  • If enabled players must enter the password to join the server

    PASSWORDUsers can edit

    nullable|string|max:40

  • Used to login as server administrator, type /help in-game for more

    ADMIN_PASSWORDUsers can edit

    required|string|max:40|min:8A value is required.

  • HTTP Port

    HTTP_PORTUsers cannot see

    nullable|int

  • SRCDS_APPIDUsers cannot see

    required|string|max:20

  • autoupdate Server on start or restart. 1 = on; 0 = off

    AUTO_UPDATEUsers can edit

    required|boolean

  • Required to always install and update the correct version of the game.

    WINDOWS_INSTALLUsers cannot see

    required|boolean

Wings

Stop command
^C (SIGINT)
Running when the console shows
Server started

Files Wings edits

Wings sets these values in these files before each start.

cfg/server_cfg.ini file

NAME
NAME={{server.build.env.HOSTNAME}}
PASSWORD
PASSWORD={{server.build.env.PASSWORD}}
ADMIN_PASSWORD
ADMIN_PASSWORD={{server.build.env.ADMIN_PASSWORD}}
UDP_PORT
UDP_PORT={{server.build.default.port}}
TCP_PORT
TCP_PORT={{server.build.default.port}}
HTTP_PORT
HTTP_PORT={{server.build.env.HTTP_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. Fix: Assetto Corsa admin password (#282)

    · Francky D · 0c8321f

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

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

if [ "${STEAM_USER}" == "anonymous" ]; then
    echo -e "ERROR - STEAM USER NOT SET\n"
    echo -e "Steam account must have the dedicated server in library to install and host the game\n"
    echo -e "You must configure Steam account in the server startup variables, after that reinstall the server\n"
fi

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