Garry's Mod

Garry's Mod

35 个评价
How to mount a game to a Garry's Mod Server
由 Gweneg 制作
A guide to the WORKING way of mounting a game to a Garry's Mod Server
   
奖励
收藏
已收藏
取消收藏
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 条留言
giorgibob152 2024 年 12 月 20 日 上午 9:45 
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?
Yap Yap The Destroyer 2024 年 4 月 9 日 上午 11:26 
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  [作者] 2023 年 10 月 23 日 下午 9:49 
@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 2023 年 10 月 20 日 下午 3:56 
how would i mount portal 1 and 2?
Portal-Gamer-410 2023 年 7 月 2 日 上午 3:29 
The mount.cfg file is in the garrysmod\cfg folder
Gweneg  [作者] 2021 年 4 月 26 日 上午 4:21 
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 2021 年 4 月 24 日 上午 9:48 
i cant find C:\<server-directory>\garrysmod\
Gweneg  [作者] 2020 年 8 月 26 日 下午 6:02 
@IdontKnow 5 years out of date so probably not working lmao
Kolinski 2020 年 8 月 26 日 下午 4:49 
That thing fucking not work or im bad
echofooman 2020 年 7 月 25 日 下午 5:16 
it auto created mountdepots.txt with everythig in it? wow