A Garry's Mod server starts with srcds_run (Linux) or srcds.exe (Windows) and parameters: -game garrysmod, +map, +gamemode, +maxplayers… This tool assembles the correct line, one parameter per line.
How to use the tool
Pick Linux or Windows, the map (e.g. gm_construct), the gamemode (e.g. sandbox) and the slot count.
Set the port if you do not use 27015, and the numeric ID of your Workshop collection (optional).
Paste your GSLT token (created at steamcommunity.com/dev/managegameservers with AppID 4000).
Download the script, put it in the server root (next to srcds_run), make it executable (chmod +x) and run it. On Windows, rename it to .bat.
About the GSLT token
The Facepunch wiki states that +sv_setsteamaccount is mandatory and that skipping it penalizes the server's ranking. One token per server; never publish it. Workshop collections must be public or unlisted.
Frequently asked questions
- What is the maximum slot count?
- The Source engine accepts up to 128 players; in practice addon CPU load limits you well before that. Start at 16-32 and measure.
- Does the script work on Windows?
- Yes: pick “Windows”, download and rename the file to start.bat, then put it next to srcds.exe.
