Skip to content

Ahl2server

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

Action: Source

This guide covers the ahl2server module in AlphaGSM.

ahl2server is currently PASSED on the documented Ubuntu 24.04 Linux baseline. The current GitHub integration lane exercises both process and Docker runtime selection, and the validated Linux lifecycle stays aligned across both backends while local runs remain process-backed by default unless you opt into the Docker backend. The current Linux payload does not expose a working empty-server A2S surface or the usual Source log markers, so readiness, query, info, and info --json use the runtime-resolved TCP game port consistently in both backends.

Requirements

  • screen
  • SteamCMD runtime libraries (lib32gcc-s1, lib32stdc++6)
  • Python packages from requirements.txt

Quick Start

Create the server:

alphagsm myahl2serv create ahl2server

Run setup:

alphagsm myahl2serv setup

Start it:

alphagsm myahl2serv start

Check it:

alphagsm myahl2serv status

Stop it:

alphagsm myahl2serv stop

Setup Details

Setup configures:

  • the game port (default 27015)
  • the install directory
  • the executable name
  • SteamCMD downloads the server files
  • default configuration and backup settings

Useful Commands

alphagsm myahl2serv update
alphagsm myahl2serv backup

Notes

  • Module name: ahl2server
  • Default port: 27015

Server variables

After create ahl2server, inspect or change these with set:

alphagsm myserver set --list
alphagsm myserver set KEY --describe
alphagsm myserver set KEY VALUE
Key Aliases Type What it does
map gamemap, startmap, level, worldname string The currently selected map or level. Example: act_airport.
maxplayers users integer Maximum number of player slots. Example: 20.
port gameport integer The primary game port. Example: 27015.
rconpassword rconpass, querypassword, query_administrator_password string Remote console password for administrative access. Stored as a secret.
servername hostname, name string The server's public name shown to players. Example: AlphaGSM Action: Source.
serverpassword sv_password, password string Password required for players to join the server. Stored as a secret.

Developer Notes

Run File

  • Executable: srcds_run
  • Location: <install_dir>/srcds_run
  • Engine: Source
  • SteamCMD App ID: 985050
  • Launch mode: AlphaGSM uses Source's -console -steam flags for the Steam-installed Linux payload in both process and Docker runtimes.

Server Configuration

  • Config file: ahl2/cfg/server.cfg
  • Key settings:
    • hostname — Server name
    • sv_maxrate — Max network rate
    • rcon_password — Remote console password
  • Default port: 27015
  • Default map: act_airport
  • Max players: 20
  • Health contract: TCP on the managed game port; the current Linux payload does not answer A2S while empty
  • Ports:
    • Game port: 27015 (UDP)
    • Client port: 27005 (UDP)
    • SourceTV port: 27020 (UDP)
  • Template: See server-templates/ahl2server/

Maps and Mods

  • Map directory: ahl2/maps/
  • Mod directory: ahl2/addons/
  • Workshop support: No
  • Mod notes: AlphaGSM now supports manifest, direct archive url, gamebanana, and moddb addon sources for this server through the shared Source addon flow. The built-in manifest currently includes metamod and sourcemod. mod cleanup removes only AlphaGSM-tracked addon files and keeps cache/state under .alphagsm/mods/ahl2/.
  • Map install: Copy .bsp files into ahl2/maps/ and add to ahl2/cfg/mapcycle.txt.
  • Mod install: Copy addon folders into ahl2/addons/.

Clone this wiki locally