Trackmania

Games
Report Issue

Trackmania combines easy-to-learn, hard-to-master gameplay with a wide diversity of tracks and skin customization, in addition to regular seasons & live events.

Contributors:
Docker Images (1)
Name Image
ghcr.io/ptero-eggs/yolks:debian ghcr.io/ptero-eggs/yolks:debian
Startup Command
./TrackmaniaServer /dedicated_cfg=dedicated_cfg.txt /game_settings={{GAME_CONFIG}} /noDaemon
Variables (6)

Master Server Login

Master Server username. Obtained from https://www.trackmania.com/player/dedicated-servers

Environment:
MASTERSERVER_LOGIN
Default:
None
User Viewable:
User Editable:
Rules:
string|max:30

Master Server Password

Password for the servers master server account. Obtained from Obtained from https://www.trackmania.com/player/dedicated-servers

Environment:
MASTERSERVER_PASSWORD
Default:
None
User Viewable:
User Editable:
Rules:
string|max:30

Game Config FIle

Location of the game config file

Environment:
GAME_CONFIG
Default:
MatchSettings\example.txt
User Viewable:
User Editable:
Rules:
required|string|max:255

Server Name

Environment:
SERVER_NAME
Default:
A Pterodactyl Hosted Server
User Viewable:
User Editable:
Rules:
required|string|max:255

Server Comment

Environment:
SERVER_COMMENT
Default:
A Pterodactyl Hosted Server
User Viewable:
User Editable:
Rules:
required|string|max:1024

Server Password

Environment:
SERVER_PASSWORD
Default:
None
User Viewable:
User Editable:
Rules:
nullable|string|max:30
Installation Script
Container: ghcr.io/ptero-eggs/installers:debian
Entrypoint: bash
cd /mnt/server || exit 1

echo "Downloading Trackmania Server."
wget http://files.v04.maniaplanet.com/server/TrackmaniaServer_Latest.zip -O TrackmaniaServer.zip

echo "Extracting Trackmania Server."
unzip -o TrackmaniaServer.zip
rm TrackmaniaServer.zip

echo "Setting file permissions."
chmod 755 TrackmaniaServer

echo "Setting up config."
if [ ! -f UserData/Config/dedicated_cfg.txt ] ; then
    echo "Creating default config file."
    cp UserData/Config/dedicated_cfg.default.txt UserData/Config/dedicated_cfg.txt
fi

if [ ! -f MatchSettings/example.txt ] ; then
    echo "Creating default match settings file"
    mkdir -p MatchSettings
    cp UserData/Maps/MatchSettings/example.txt MatchSettings/example.txt
fi