ImperialHost.cc · Guides · Roleplay and shooters
Team Fortress 2 server: joining and setup
A Team Fortress 2 server's name and password are in the server.cfg file, the default map and the Steam token on the Startup tab. In-game admins come with SourceMod.
Before you start
- A Team Fortress 2 server with us and access to the game panel.
- Team Fortress 2 on Steam.
1. Join from the game
- The server's address is in the client area on the service's page under IP address, for example
node1.imperialhost.cc:30005. In the game panel it is at the top under the server's name, and the Copy button copies it. - In TF2 open the options, the keyboard tab, then the advanced settings, and tick the developer console.
- Open the console with the key below Esc and type
connect node1.imperialhost.cc:30005with your address and port.
2. Name and password
- In the game panel open the Files tab and the
tf/cfgfolder. If there is noserver.cfgfile in it, click New File, otherwise open the file. - Write or change the lines
hostname "My server"andsv_password "secret". For no password leave the quotes empty. - For a new file click Create File, type the name
server.cfgand confirm. Save a changed file with Save Content. - On the Console tab click Restart (the circular arrow at the top near the server's name).
Players type the password in the console as password secret and then join with connect.
3. Steam token and maps
- To have the server in the public server list, create a Steam token (GSLT) for App ID
440atsteamcommunity.com/dev/managegameservers. - Paste the token into STEAM on the Startup tab and restart the server.
- Upload your own maps (
.bspfiles) to thetf/mapsfolder on the Files tab with Upload. Type the default map in DEFAULT MAP without the extension, for examplecp_badlands. - To switch the map while the server runs, type
changelevel pl_badwaterin the panel's console.
4. Admins with SourceMod
- Download Metamod:Source from metamodsource.net and SourceMod from sourcemod.net, both for Linux.
- Unpack both archives on your computer and upload what is inside them over SFTP to the
tffolder on the server: Connect to your server with SFTP (FileZilla, WinSCP). - Restart the server and type
sm versionin the panel's console. If it prints the SourceMod version, it runs. - Join, type
statusin the panel's console and copy your Steam ID. TF2 prints it in the[U:1:…]form. In the filetf/addons/sourcemod/configs/admins_simple.iniadd a line with your Steam ID, for example"[U:1:12345678]" "99:z". Save and typesm_reloadadminsin the console.
99:z gives every right. In the game, the sm_admin console command opens the admin menu.
Troubleshooting
More slots
The number of slots is on the Startup tab in MAX PLAYERS. A new server gets it from its plan, 24 or 32. The official server does not support more than 32. Restart the server after a change.
The server is not in the server list
Check that STEAM holds a token for App ID 440 that no other server uses. Every server needs its own token. Restart the server after a change.
The console won't open in the game
Turn it on in the advanced keyboard options. It opens with the key below Esc, left of 1.
DEFAULT MAP won't save
The map name can have up to 20 characters, only letters, digits and underscores, without the .bsp extension.
SourceMod does not load
Metamod:Source must be uploaded too, both for Linux, and the addons folder must sit directly in the tf folder. Check it with the meta list command in the panel's console.
Still stuck?
Message us on Discord. The AI assistant Aurel answers first, and you can call an admin. Or open a ticket in the client area.