Hey everybody! First tutorial here, but even so, it should be totally helpful to anybody wanting to make their own GMod server. I am going to write this tutorial in steps for Vista and XP, because they are slightly different. Sorry, but I will only have Vista screenies. I am also going to you to make a Dedicated Server using the Command Prompt, no flashy GUI Installer. [In example, armpit’s GUI Installer.] Even if you have never used the Command Prompt, it should be fairly easy for you to use. So, enough with the pre-talk, lets get onto the tutorial!
First off, you need to download the HLDS Update Tool from here: http://www.steampowered.com/download/hldsupdatetool.exe Be sure to save this, don’t just click on “Open”.
[Getting The Files] [XP Version][Scroll For Vista Version]
- Click on Start, [In the bottom-left corner of your screen.], and then click on Run. Then type, “cmd”. [Without the quotations of course.]
- Type in these commands, and end each line with an “Enter” key.
- This will update the HLDSUpdateTool. When it’s done updating, exit out of the Command Prompt.
- Go to Start, and then Run. Type in this following command:
[lua]hldsupdatetool -command update -game garrysmod -dir C:\srcds[/lua]
- This is going to download all of the necessary GMod files that your server will use to host a game. This is going to take a while, [Roughly 30-40 minutes, maybe more depending on your connection.] so go do something like watch TV.
[End of “Getting The Files” for XP Users. “Getting The Files” for Vista Users begins here.]
[Getting The Files] [Vista Version][Scroll Down For The Next Part Of The XP Tutorial]
- Click on “Computer” and go to “Local Disk (C)”.
- Create a folder called “srcds”.
- Put the HLDSUpdateTool in that folder.
- Go back to “Computer”. Press and hold “Shift”, and right-click the “srcds” folder. You should get a menu that has more options that normal. One of these new options is “Open Command Window Here”, click that. Your Command Prompt window should look like this:
- Type in this command:
[lua]hldsupdatetool -command update -game garrysmod -dir C:\srcds[/lua]
- This will download all of the GMod files your server needs to host a game. This will take roughly 30-40 minutes, so go watch TV.
[End of “Getting The Files” for Vista. “Server Configuration” for XP and Vista starts here.]
[Server Configuration] [XP and Vista Version]
- Open the program “Notepad”.
- Paste the following code into Notepad:
echo Protecting srcds from crashes…
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
echo (%time%) srcds started.
start /wait srcds.exe -console -game garrysmod +map X +maxplayers X
echo (%time%) WARNING: srcds closed or crashed, restarting.
- Replace the X’s in Line 8 with whatever map you want your server to run and how many players you want in your server.
- Save the file as “srcds.bat”. Be ABSOLUTELY SURE it isn’t a .txt file, otherwise it won’t work. Also, save it into this location: C:\srcds\orangebox\srcds.bat
- This script will automatically restart srcds.exe [Your server program] if it happens to crash.
- Now you need a Server Administration Tool. I highly recommend ASSMod, but you are free to use whatever you want. ASSMod link here: http://forums.facepunchstudios.com/showthread.php?t=412591 . It is a very easy to use SAT that uses an in-game GUI instead of an annoying in-game console. You don’t have to use it, I would just recommend it. I’m not going to explain installation any further than that you put the files in your “addons” folder. If you don’t know how to do that, you probably shouldn’t be making a server.
[“Server Configuration” for XP and Vista ends here. “Port Forwarding” for XP and Vistas starts here.]
[Port Forwarding] [XP and Vista Version]
First off, Port Forwarding is something that is different for every router, so don’t expect your routers inter-face to be exactly like mine, but fill it in accordingly. We’re going to start off by running srcds, and that’s just to get an IP, so don’t worry.
- Run “srcds” with the command:
[lua]srcds.exe -console -game garrysmod +map X +maxplayers X[/lua]
- Once again, replace the X’s with whatever you want.
- Open up Steam. Go to “Servers”. Click on the “LAN” tab.
- Your server should be in there, labeled defaultly as “Garrys Mod” unless you have already set your Server Name. [We will get to this later.]
- Right-click it, and you should see something like this:
- In my photo, my server’s ip is: 192.168.1.100:27015. Yours won’t necessarily be this, but its possible. I drew a red arrow under the 100, because that is the number that you are going to pay attention to for Port Forwarding. Mine happened to be 100, but yours could easily 101, 102, etc. The number you will need to know is the number that follows the 3rd period in the server address. Which, once again, is 100 for me.
- Open up Internet Explorer and go to the address: 192.168.1.1
- Don’t put anything for your username, but for the password put in “admin”. This is the default password and address for most routers, but it might not be the case for you, so be sure to check your router’s manual.
- I am using a WRT54G router from Linksys, which just happens to be a popular one for most people. Go to “Applications & Gaming” on the menu.
You should have someting similar to my screenshot.
- In the “Application” box, put in “Gmod Server”.
- In “Start” and “End”, put in the value “27015”.
- In “Protocol”, select “Both”.
- In “IP Address”, change the last value to whatever value you got in Step 6, mine was 100, so I put 100 there.
- Select “Enable”.
- Repeat this step, but change the “Start” and “End” box values to 27005. For some reason, my server only started to work after I put in that value.
- Congrats! Your Port Forwarding should be complete! If you still have trouble with this, find steps on how to forward your port here: http://www.portforward.com/english/routers/port_forwarding/routerindex.htm
[“Port Forwarding” ends here. “Server Administration” for XP and Vista Users begins here.]
[Server Administration] [XP and Vista Version]
ASSMod is a great Server Administration Tool. They have a guide on how to use it already on their forum thread, so I’ll just give you a link: http://forums.facepunchstudios.com/showthread.php?t=412591.
ULX is also a nice Server Administration Tool, you can find it here: http://www.ulyssesmod.net/
[“Server Administration” for XP and Vista Users ends here. “Extras” for XP and Vista Users begins here.]
[Extras] [XP and Vista Version]
Section 1: Addons
Addons are essential in servers. Some good/useful ones are listed here:
PHX Model Pack
56 Tools Pack
You can download all of these at http://www.garrysmod.org/, just give them a search!
Section 2: More SAT Help
The GMod Wiki has a vast amount of information about Server Administration, to find out more about this, follow this link: http://www.garrysmod.com/wiki/?title=Admin
Section 3: Credit
PortForward.com - For helping me figure out Port Forwarding.
ASSMod Team - For making a great SAT.
GMod - For being awesome.
Well, I guess that wraps it up! Contact me if you have questions or something that I left out in the tutorial.
I hope this helped everybody, so yeah.
Thanks for reading.