Skip to content

Ets2server

github-actions[bot] edited this page Sep 11, 2026 · 3 revisions

Euro Truck Simulator 2

This guide covers the ets2server module in AlphaGSM.

ets2server is currently ENABLED (BYO) on the documented Ubuntu 24.04 Linux baseline. The current GitHub integration lane still exercises both process and Docker runtime selection around that exported-client prerequisite, while local runs remain process-backed by default unless you opt into the Docker backend.

Requirements

  • screen
  • SteamCMD runtime libraries (lib32gcc-s1, lib32stdc++6)
  • Exported ETS2 server packages/settings from an owned Euro Truck Simulator 2 client install; the anonymous dedicated-server payload alone is not enough to finish startup
  • Python packages from requirements.txt

Quick Start

Create the server:

alphagsm myets2serv create ets2server

Run setup:

alphagsm myets2serv setup

Start it:

alphagsm myets2serv start

Check it:

alphagsm myets2serv status

Stop it:

alphagsm myets2serv stop

Setup Details

Setup configures:

  • the game port (default 27015)
  • the query port (default 27016)
  • the install directory
  • SteamCMD downloads the server files

This server is supported in ENABLED (BYO) mode. The dedicated server still expects the exported server-packages/settings payload generated by the full game client. If startup logs report Server packages file not found, run export_server_packages from an owned ETS2 client and stage the resulting files before retrying AlphaGSM startup.

Place both server_packages.sii and server_packages.dat in <install_dir>/.local/share/Euro Truck Simulator 2/ before starting. AlphaGSM uses this directory as the dedicated server's home; set configdir selects another directory. Setup and set synchronize the native connection and query ports while preserving other server settings.

CI and smoke runners accept ALPHAGSM_ETS2_SERVER_PACKAGES_DIR pointing to a directory containing both exported files. Missing exports are a BYO prerequisite skip; a supplied directory with missing or empty files fails validation.

Useful Commands

alphagsm myets2serv update
alphagsm myets2serv backup

Notes

  • Module name: ets2server
  • Default game port: 27015
  • Default query port: 27016

Server variables

After create ets2server, inspect or change these with set:

alphagsm myserver set --list
alphagsm myserver set KEY --describe
alphagsm myserver set KEY VALUE

This module does not declare schema-backed keys. set --list after create is still the live source of truth.

Developer Notes

Run File

  • Executable: bin/linux_x64/eurotrucks2_server
  • Location: <install_dir>/bin/linux_x64/eurotrucks2_server
  • Engine: Custom (SteamCMD)
  • SteamCMD App ID: 1948160

Smoke and integration validation track readiness through alphagsm info --json returning protocol a2s instead of waiting for screen-log markers.

Server Configuration

Maps and Mods

  • Map directory: Check game documentation
  • Mod directory: Check game documentation
  • Workshop support: No

Clone this wiki locally