Self-hosted Gaming
Tutorials for Dedicated Game Servers View on Github

Trouble in Terrorist Town

This section deals with setting up a Garry's Mod server for the game mode Trouble in Terrorist Town (TTT). Before you start with this setup, please make sure you followed the instructions for Garry's Mod server.

Installation§ 

Since TTT builds upon CS:Source game content, the game won't work properly without downloading and installing these files.

  1. Go to this link
  2. Download the Counter Strike: Source Game Content.
  3. Unzip the downloaded file into $GAME_DIR/garrys/addons/ It should look something like this afterwards.
$GAME_DIR
    └─garrys
        └─addons
            └─css-content-gmodcontent

Configuration§ 

TTT offers some extensive docs on which variables exist and what they do. You can also find a mirror of complete configuration description over here.

Many mods and workshop collections bring their own variables for configuration. You have to read those and inform yourself about the possible configuration options.

Run the Server§ 

For the server to run, you have to know the map name of at least one map that's compatible with TTT. An example map name is ttt_rooftops_a2. They usually begin with ttt_. This will be referred to as $MAP_NAME.

Starting the server with a steam workshop collection:

cd $GAME_DIR

./srcds_run \
    -game garrysmod \
    -usercon \
    -authkey $STEAM_WEB_API_KEY \
    +gamemode terrortown \
    +hostname IN_GAME_THE_SERVER \
    +map $MAP_NAME \
    +host_workshop_collection $WORKSHOP_ID

Starting the server without steam workshop collection:

cd $GAME_DIR

./srcds_run \
    -game garrysmod \
    -usercon \
    +gamemode terrortown \
    +hostname IN_GAME_THE_SERVER \
    +map $MAP_NAME