A Team Fortress 2 server starts with srcds_run -console -game tf followed by parameters (+map, +maxplayers, +sv_pure, +sv_setsteamaccount). The official TF wiki gives the example “+map ctf_2fort +sv_pure 1 +maxplayers 24”. This tool assembles the full line.
How to use the tool
Choose Linux or Windows, the start map (e.g. ctf_2fort) and the slot count.
Set sv_pure (1 in the official example) and the port if needed (27015 by default).
Paste your GSLT token, created at steamcommunity.com/dev/managegameservers: it is required to appear in the server browser.
Download the script, put it next to srcds_run, make it executable (chmod +x) and run it; on Windows, rename it to .bat.
Ports used
- 27015/udp: game traffic
- 27015/tcp: RCON
- 27020/udp: SourceTV
Frequently asked questions
- What is the maximum player count?
- The official example uses 24 slots. The exact ceiling is not stated on the page consulted; the field accepts up to 100, check what your build supports and the CPU load.
- Do I need to own TF2 on the server machine?
- No: the dedicated server (app 232250) installs with an anonymous SteamCMD login. A GSLT token is still needed to be listed.
