Docs / Garry's Mod and TF2
Garry's Mod and TF2
The basics for Source engine servers: connecting, maps, gamemodes and the settings that matter.
Connect
Copy your address from the client area or the panel's console page, like node1.skylithosting.com:26010.
- Console: enable the developer console in the game's settings, press ~ and type
connect node1.skylithosting.com:26010with your own port. - Server browser: Steam → View → Game Servers → Favorites → add the address. Then join from the list.
Steam login token (GSLT)
A Game Server Login Token lets your server show up properly in Steam's server lists. Make one on steamcommunity.com/dev/managegameservers with the game's App ID: 4000 for Garry's Mod, 440 for Team Fortress 2. Paste it in the panel under Startup (Garry's Mod: Steam Account Token, TF2: Steam) and restart. Each server needs its own token.
Garry's Mod
Under Startup you can change:
| Setting | What it does |
|---|---|
| Map | The map it starts on, like gm_flatgrass or gm_construct. |
| Gamemode | For example sandbox, terrortown or darkrp. The gamemode's files must be installed (see Workshop). |
| Max Players | How many players can join. |
| Workshop ID | The ID of a Steam Workshop collection. The server downloads everything in it, and players get it when they join. |
| Tickrate | How often the server updates per second. Keep the default unless you know you need more. |
Add Workshop content
- On Steam, make a public Workshop collection with the addons, maps and gamemode you want.
- Copy the number at the end of the collection's URL (
?id=123456789). - Paste it in Startup → Workshop ID and restart.
You can also upload addons by hand to garrysmod/addons with the file manager or SFTP.
Server name and password
Edit garrysmod/cfg/server.cfg (create it if it isn't there):
hostname "My Skylit server"
sv_password "" // fill in to make the server private
rcon_password "" // leave empty unless you use RCON
Team Fortress 2
Under Startup, Default Map sets the first map, like cp_dustbowl or ctf_2fort. Server settings go in tf/cfg/server.cfg:
hostname "My Skylit TF2 server"
sv_password ""
mp_timelimit 30
mp_maxrounds 0
Change the map while playing with the console command changelevel ctf_2fort in the panel. Custom maps go in tf/maps.
Game updates
When Valve updates the game, players with the new version can't join an old server. To download the update, make a backup and use Settings → Reinstall Server, or ask us to do it.