Source · Free plugin

Discord relay for Garry's Mod

Two-way chat between your Garry's Mod server and Discord, with kills, joins and, in Trouble in Terrorist Town, rounds. The addon is free.

HomeGarry's Mod

What gets relayed

What Tunnelcast carries for Garry's Mod

Everything below goes to your Discord channel and the live Portal. Team chat stays in the game.

Chat in both directions

Public chat goes to Discord. Team chat is never relayed, and neither is a dead player's chat during a live TTT round. Messages from Discord show up in game chat tagged with where they came from, like [Discord] Bjorn: hi.

Kills

Kills and suicides, including kills by bots. First blood and eliminations in modes that have rounds, such as TTT.

Joins, leaves and teams

Players joining and leaving, name changes, team switches and spectators. Bots are left out of the player list.

Match state

Map and game mode for any gamemode, and round transitions in TTT.

Remote admin

Kick, ban, switch map, restart the map or restart the server from Discord or the Portal.

Live status and the Portal

One Discord message that keeps itself up to date with the server, and a live view of the server in the Tunnelcast Portal.

Setup

What your server needs

An addon folder and a socket module. The Garry's Mod addon isn't published yet. Request beta access to be among the first to run it.

Requirements

  • The BromSock socket module, installed by hand into garrysmod/lua/bin/.
  • On Windows, the Visual C++ 2013 x86 runtime, which BromSock needs.
  • The 32-bit server. There is no 64-bit socket module.
  • sv_hibernate_think 1. The addon sets it on every map load too, so an empty server keeps the relay connected.

Install in short

  1. Request beta access, then link your Discord server and register the game server in the Portal.
  2. Copy the addon into garrysmod/addons/tunnelcast/ and BromSock into garrysmod/lua/bin/.
  3. Set tc_token in server.cfg.
  4. Restart the server. It shows as online in the Portal and chat starts flowing.

Good to know

What it doesn't do

We'd rather you hear it here than find out on your server.

  • The addon isn't published yet.
  • Sandbox and other modes without rounds get chat, kills and players, but no score, objectives or rounds.
  • Name and team changes are picked up within a tick, not instantly.
  • Chat lines over 255 bytes are dropped by the game itself, so long lines from Discord are split.
Coming from Source Chat Relay?

Source Chat Relay is archived on GitHub

Its repository is a public archive on GitHub, which makes it read-only. Tunnelcast is actively maintained. The Garry's Mod plugin connects to Tunnelcast's relay, and you link your Discord server from the Portal, so there is no relay server of your own to run.

On top of chat in both directions you get kills, joins and leaves, TTT rounds and a live status message, and the server shows up live in the Portal.

Next step

Connect your Garry's Mod server

Request beta access to hear when the Garry's Mod addon is ready for your server.

Tunnelcast is not affiliated with or endorsed by Facepunch Studios. Game names are trademarks of their respective owners.