Garry's Mod

Garry's Mod

评价数不足
Garry's Mod server tutorial
由 CxKapN 制作
In this guide you will learn everything you need to know about garry's mod dedicated servers.
   
奖励
收藏
已收藏
取消收藏
SteamCMD - Valve Developer Community
SteamCMD is a command-line version of the Steam client. Its primary use is to install and update various dedicated servers available on Steam using a command-line interface.

You will need SteamCMD to download to required server files, let's get started.
Downloading SteamCMD
Downloading SteamCMD Wiki[https//develohttps]
Direct Download
  1. Download SteamCMD
    (If you downloaded SteamCMD through console, skip step 2)

  2. Extract steamcmd.zip and place the folder in your C:\ drive.

  3. Open steamcmd.exe and wait until it finishes downloading it's files.
    Optional
    3a. Type quit in steamcmd and delete 'steamcmd.exe.old'
    3b. Open steamcmd.exe
Downloading Server Files
Type the following into steamcmd
  • Steam>login anonymous
  • Steam>force_install_dir C:\gmod
  • Steam>app_update 4020 validate
  • Steam>quit
Edit:: Do not include Steam> in the commands.
Starting the server
  1. Create a .bat file in C:\gmod
    Name the .bat something like launch;start;run etc

    1a. Creating a .bat file
    • Create a new .txt in C:\gmod
    • Save it
    • Rename the .txt to .bat

    1b. Can't see file extentions such as .bat, .txt, etc?
    • Open File Explorer Options
      Control Panel\Appearance and Personalization\File Explorer Options
    • Under view tab select 'Show hidden files, folders and drives'

  2. Paste the following in your .bat file
    start srcds.exe -console -game "garrysmod"
  3. Save the .bat
  4. Double click the .bat
  5. Enjoy your garry's mod server
Server.cfg
  1. Locate server.cfg in your GMOD folder (C:\gmod\garrysmod\cfg)
  2. Open server.cfg
  3. Paste the following in server.cfg
    # Logging log "on" # Server name hostname "" # Server rcon password rcon_password "" # Server password sv_password "" // Execute ban files \\ exec banned_ip.cfg exec banned_user.cfg
  4. Save server.cfg
Mounting Content
Helpful Information
Mounting Content on a Dedicated Server[wiki.garrysmod.com]
Dedicated Servers List[wiki.https]

Downloading CS:S content to mount
Type the following into steamcmd
  • Steam>login anonymous
  • Steam>force_install_dir c:\gmod\css
  • Steam>app_update 232330 validate
  • Steam>quit

Mounting CS:S
  • Go to the following directory C:\gmod\garrysmod\cfg
  • Open mount.cfg
  • Paste the following code
    "mountcfg" { "cstrike" "c:\gmod\css\cstrike" }
Downloads
Steamcmd C:\steamcmd
https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip

Premade Server C:\gmod
Link removed due to old content, will reupload if requested.

ULX/ULib used for user management
http://ulyssesmod.net/

Facepunch very useful website for server owners

Scriptfodder A place to buy premium gmod addons
https://scriptfodder.com/
Connecting to your server
Click here to get your IP[www.google.com]

Connecting via console
  • Open Garry's Mod
  • Open your console
  • Type 'connect <Paste the IP you copied here>'

Connect using legacy server browser
  • Open Garry's Mod
  • Find multiplayer server
  • Legacy Browser
  • Lan
  • If you port forwarded, your server will be listed in 'Lan'
Port Forwarding
I will not explain how to port forward, I will however give you this helpful link!
http://portforward.com/
40 条留言
CxKapN  [作者] 2017 年 9 月 11 日 下午 12:09 
If there is anything I can modify/add to this guide please send me a private message, thanks.
TSJ 2017 年 4 月 3 日 上午 6:03 
Thnaks :)
CxKapN  [作者] 2017 年 4 月 2 日 下午 11:34 
Guide has been updated! Enjoy
CxKapN  [作者] 2017 年 4 月 2 日 下午 11:20 
🔥TSJ_TJJ🔥
Just repeat the 'Downloading Server Files' section of the guide.
TSJ 2017 年 4 月 2 日 上午 9:11 
How can i update the server?
Furinaxi 2016 年 11 月 26 日 下午 1:13 
Do the players of the server have access to the owner's rout?
CxKapN  [作者] 2016 年 2 月 11 日 下午 7:37 
[( ͡° ͜ʖ ͡°)][GobalPotato]
Public IP
KQluy 2016 年 2 月 11 日 下午 6:04 
public or private IP?
CxKapN  [作者] 2016 年 2 月 11 日 下午 1:23 
[( ͡° ͜ʖ ͡°)][GobalPotato]
Add your IP and Server port to your legacy server browser favorites
KQluy 2016 年 2 月 10 日 下午 3:23 
Is there any other way of joining the server?