Garry's Mod

Garry's Mod

35 ratings
How to mount a game to a Garry's Mod Server
By Gweneg
A guide to the WORKING way of mounting a game to a Garry's Mod Server
   
Award
Favorite
Favorited
Unfavorite
Introduction
I noticed many people were having issues with mounting games to their server. I did about 2 hours of testing and figured out the issue. Here's a complete guide to how to mount TF2 and CSS to your server.
mount.cfg
Step 1. Navigate to the cfg folder (Located in "C:\<go-to-your-server-directory>\garrysmod\").
Step 2. Open (or create if it doesn't exist) mount.cfg.
Step 3. Change the directory of "tf" and "cstrike" to the STEAM directory (point it to your client installation). It should look like this:

"mountcfg"
{
"cstrike" "C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Source\cstrike"
"tf" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf"
}
mountdepots.txt
Step 1. Create a file named "mountdepots.txt" in the cfg folder.
Step 2. Add the following to the file:

"gamedepotsystem"
{
"hl2" "1"
"cstrike" "1"
"dod" "1"
"tf" "1"
"ep2" "1"
"episodic" "1"
"hl2mp" "1"
"portal" "1"
}

Step 3. Launch the server and watch as the server mounts TF2 and CSS! (You need them installed and launched at least once for it to mount properly.)
End
-Notes-
  • The names in "mountdepots.txt" MUST match the ones in "mount.cfg".
  • To disable a game from being mounted change the "1" to "0" in "mountdepots.txt"
  • There must a be directory alongside the name of the the game (e.g. "portal" "C:\Program Files (x86)\Steam\steamapps\common\Portal\portal")

    Good Luck and Thanks for Reading!
27 Comments
giorgibob152 20 Dec, 2024 @ 9:45am 
what happens if i want to mount entropy zero 2 for tf2.. that is possible right? and dose it remove tf2 content if i remove it? and change it to entropy zero 2?
B1-series Battle Droid 9 Apr, 2024 @ 11:26am 
need some help.
i know you probably cant help but for some reason bm_c2a6a crashes on startup, its the level i wanted to play the most but for some reason its says engine error and something about a blend rock having a bad extent. i tried going into the files and manually porting that model but couldn't find it.
Gweneg  [author] 23 Oct, 2023 @ 9:49pm 
@LaymPuppeh You'd look in the game folder for each for a folder named like the game. For example, Portal 1 has a folder named "portal" inside the "Portal" folder. You'd name the left quote the name of that subfolder, and the right quote the path to that subfolder.

For example:
"mountcfg"
{
"portal" "C:\Program Files (x86)\Steam\steamapps\common\Portal\portal"
}

and

"gamedepotsystem"
{
"portal" "1"
}
Laym 20 Oct, 2023 @ 3:56pm 
how would i mount portal 1 and 2?
Portal-Gamer-410 2 Jul, 2023 @ 3:29am 
The mount.cfg file is in the garrysmod\cfg folder
Gweneg  [author] 26 Apr, 2021 @ 4:21am 
I'm not sure if this guide is still up to date but you need to go to the folder of the server (which is what "<server-directory>" means), then open the folder "garry's mod" inside of it. @GT3-001 (Neptune II)
[AR] Aperture 24 Apr, 2021 @ 9:48am 
i cant find C:\<server-directory>\garrysmod\
Gweneg  [author] 26 Aug, 2020 @ 6:02pm 
@IdontKnow 5 years out of date so probably not working lmao
Kolinski 26 Aug, 2020 @ 4:49pm 
That thing fucking not work or im bad
echofooman 25 Jul, 2020 @ 5:16pm 
it auto created mountdepots.txt with everythig in it? wow