11 guides to help you set up, configure, and troubleshoot your Team Fortress 2 server.
server.cfg and autoexec.cfg live in tf/cfg, and between them they set the hostname, the map rotation and the cvars your TF2 server runs at every boot.
Change hostname in server.cfg and the public TF2 server browser listing follows, so the name players see is the one you typed rather than the stock default.
changelevel swaps the map while the server is live, and mapcycle.txt decides the rotation order your TF2 server walks through between rounds automatically.
The slot count on a TF2 server goes up to 32, set through the panel or the maxplayers value, so choose a number your maps and hardware can actually fill.
App ID 440 needs a Game Server Login Token before a TF2 server can list publicly and enforce VAC, and generating the token on Steam takes about a minute.
Three ways in: the in-game server browser, the console connect command, or adding the IP to Steam favourites before you launch Team Fortress 2 once more.
sv_downloadurl points custom maps and content at a fast web host, so TF2 clients stop crawling through slow direct downloads from the game server itself.
MetaMod goes in first, then SourceMod, then your .smx plugins and their configs, and the TF2 server picks them all up on the next start or map change.
Map changes, kicks, bans and server cvars are all reachable through the TF2 server console and RCON, listed here with the syntax and an example for each one.
Run the update from the panel or through SteamCMD: the TF2 server binary moves to the latest build while your configs, custom maps and addons stay put.
A full reset wipes the TF2 install back to a clean state, so back up server.cfg, mapcycle.txt and any other custom content before you begin the reset.