After fights with the server browser and entirely too many buggy prop hunt servers, I decided to set up my own dedicated server for Garry’s Mod. Documentation for this does exist, but I had to start from scratch a few times in order to get everything just right. This is the information I wish I had when setting it up the first time.
Oct 08, 2009 Prop hunt server hosting Hi i operate 3 team fortress 2 servers in Sweden and would love to dedicate one to prophunt Been searching on the net to download the plugin but cant find it. 01:24 Re: CSS/CSGO Hide and Seek (Prop Hunt) Download the zip file and extract it into your cstrike folder. Restart the server. A config file has been generated in cfg/sourcemod/plugin.hideandseek.cfg which you can edit as you like. Downloaded Maps Playable in HnS Prop Hunt Cod4 May 12 2015 Server Side Coding Tutorial 1 comment. This tut is how to use maps that you have downloaded and make it playable in HnS Prop Hunt (only mp maps work no zombie maps death run maps ect ect will. Go to 'C: srcds orangebox garrysmod cfg' and open up the server.cfg file with notepad, if the file does not exist, create it using notepad and save the file as 'server.cfg' NOT 'server.cfg.txt'. Go here to create the server.cfg file's code. Only worry about the Server Name, Rcon Password, and Server Password.
Operating systems
This guide covers setup on Linux, but should be applicable to other platforms with minor tweaks.0. Don’t run things as root
Steamcmd, dedicated servers, and other tools mentioned in this article should absolutely NOT be run as root
. These programs are perfectly capable of running under an unprivileged user. Do yourself a favor and create an entirely separate user to run everything. We’re going to create a user that doesn’t have SSH or sudo
privileges. If you absolutely must have SSH access for this user, consider using SSH keys instead of adding a password.
From this point forward, we’ll assume our current user is archie
, with a home directory of /home/archie
.
1. Get steamcmd
How To Host A Prop Hunt Server Gmod
Steamcmd is the command-line version of the Steam client. You’ll need this tool if you want to download dedicated servers for steam games without using the graphical steam client.
Download the latest steamcmd for Linux. Need downloads and instructions for other platforms? See Steamcmd (Valve Developer Community Wiki). Since the .tar.gz
file does not contain a directory of its own, I recommend creating a new directory and extracting the archive there.
2. Create directory for games
If you want most of the popular Garry’s Mod game types to work, you’ll need a few additional games. It’s nice to explicitly set the installation directories for each of them, in my opinion. Ultimately, we’ll end up with something like this:
However, we’ll just make the containing directory for now:
For reasons that will become clear later, refrain from using spaces and capital letters in your directory names.
3. Update steamcmd
When running steamcmd
for the first time, it will likely require an update before you can download the dedicated server programs.
Once you reach the Steam>
prompt, simply type quit
or press Ctrl+C to end the program.
4. Download games
This step requires approximately 13GB of network download & disk space. Please mind your bandwidth caps (ugh) or disk space limitations for those of us on tiny cloud servers.
We’ll be downloading the dedicated servers for three games: Garry’s Mod, Counter-Strike: Source, and Team Fortress 2. For convenience, I’ve prepared a steamcmd script that downloads and installs these games. You’ll need to tweak the force_install_dir
paths to match your chosen user. Again, refrain from spaces and capital letters in directory names.
Download the above script, and use the +runscript
argument for steamcmd to run all the commands in the file. Note that steamcmd
will complain if you don’t specify an absolute path to the script file.
Wait patiently. Since you’re at the mercy of both your internet connection and Valve’s content distribution speed, you might as well take a caffeine break. The script will automatically exit the steamcmd
shell upon completion.
5. Configure server
Q: So what’s your deal with the spaces and capital letters?
A: Here are some caveats regarding paths in the mount.cfg
file on Linux:
How To Make A Private Prop Hunt Server With Friends
- Linux paths might behave incorrectly if they contain spaces (this comes strictly from my personal experience, YMMV).
- Paths must not end with a slash
Mount paths
Did you use spaces or capital letters in any of those install directories in steps two or four? Start over. Seriously.Otherwise, head on over to /home/archie/source-games/garrys-mod-ds/garrysmod/cfg
and open up mount.cfg
in your favorite editor. Fill in the entries for cstrike
and tf
as shown below.
How To Make A Private Prop Hunt Server Cs 1.6
In the same directory, open server.cfg
and insert the following barebones settings. You’ll need to substitute hostname
and ip
with your server’s hostname and public IP address, respectively.
6. Run server
You can find the Garry’s Mod dedicated server binary at /home/archie/source-games/garrys-mod-ds/srcds_run
. If you’d like to host workshop content, check out Workshop for Dedicated Servers. Here’s an example launcher for the “Prop Hunt” gametype:
7. Configure fast downloads using sv_downloadurl
(optional)
How To Make A Private Prop Hunt Server Cs 1 6
SharpGMad is a tool that can be used to extract individual files from .gma
(Garry’s Mod Addon) files. In order to run it on Linux, you’ll need to install mono and xvfb from your distribution’s package manager.
You can download and compile SharpGMad as follows:
Download the following helper script that automatically extracts .gma
addons and compresses them in a sv_downloadurl
compatible fashion. Per usual, adjust the paths at the top to fit your preference.
Using your favorite webserver, create a virtualhost that points to EXTRACT_DIR
from the script above. Be sure to enable directory indexes. Finally, add the sv_downloadurl
configuration option to your server.cfg
file.
Run the gma-extract.sh
script and wait patiently.
Now that you’ve got a boatload of .bz2
files in your EXTRACT_DIR
, clients that connect to your server should be able to download files from your server with blazing speed!
8. Updates
Team Fortress 2 and Garry’s Mod push out updates pretty frequently. You can stay up-to-date by simply running the steamcmd
setup script again.
Don’t forget to restart your dedicated server after the update. (Kill and restart the srcds_run
binary, that is. You don’t need to restart your whole system.)
Happy gaming!