So I've gotten rather sick of all the people who have no idea how to set up a server to run with DarkRP, as a result I am going to attempt to create an idiot proof guide to setting one up.
Before I get started I will state that a lot of this is derived from (or even right out copied from) the "dedicated Server Setup" page on the Garry's Mod Wiki.
[b]1: Install hldsupdatetool[/b]
During the install change the destination folder to "C:\srcds". The reason you do this is because when troubleshooting or following any other tutorials this is the folder that will be referred to. So this is to prevent further confusion. Leave everything else in the install untouched.
Now we need to open a CMD window. To do this click your Start Menu. It should be located in
"All Programs > Accessories > Command Prompt". For those of you who are a little more computer savy open "Run..." type "cmd" and press enter.
Type the following once the CMD window is open:
Wait for it to finish. It won't really say that it is finished. If you give it about two minutes and it's stopped doing anything it probably is. Press enter and you should see just:
Do NOT close the CMD window.
[b]2: Install Garry's Mod Files[/b]
hldsupdatetool -command update -game garrysmod -dir C:\srcds
This will download all the Garry's Mod files. This will take awhile but it does show the percentage.
[b]3: Install Counter-Strike: Source Files[/b]
hldsupdatetool -command update -game "Counter-Strike Source" -dir C:\srcds
Once again this will show a percentage. Wait till it is done, then open Windows Explorer.
Navigate to your "C:\srcds" folder. Cut the "C:\srcds\cstrike" folder and paste it inside of "C:\srcds\orangebox". You do this because otherwise your server will not be able to properly use Counter-Strike content.
I haven't tested this myself but theoretically it should work. In the CMD window instead type:
hldsupdatetool -command update -game "Counter-Strike Source" -dir C:\srcds\orangebox
If someone could confirm this works I'll replace the method I know works with these instructions.
[b]4 (OPTIONAL): Install Half-Life: Episode 2 and/or Portal Files[/b]
For this I'll refer you to another tutorial that did a great job telling me how to install the extra content. If you only want EP2 content then just ignore instructions about Portal, or vice versa.
[b]5: Installing the latest version of DarkRP with TortoiseSVN[/b]
If you haven't already you can close the CMD window now. TortoiseSVN is a program which will update addons that have an SVN repository to their latest version. First thing you'll want to do is download, install, and restart your computer. Here is the download page:
In this tutorial I will only show how to install the SVN versions of both the DarkRP folders. If you want SVN versions of other addons, just search for tutorials on those, they are not uncommon.
Go to your "C:\srcds\orangebox\garrysmod\addons" folder. Right-click, "New > Folder", name it "Simple RP Prop Protection". Right-click the folder you just made and click "SVN Checkout..." In the text box that says "URL of repository" enter this:
[url]http://darkrp.googlecode.com/svn/trunk/Simple[/url] RP Prop Protection
After that is finished it will say "Completed At revision: #". Now go to your "C:\srcds\orangebox\garrysmod\gamemodes" folder. Create another folder and name it "DarkRP". Right-click the folder you just made and click "SVN Checkout..." In the text box that says "URL of repository" enter this:
Once that is finished you are done installing the DarkRP gamemode.
[b]6: Editing server.cfg and autoexec.cfg[/b]
Go to your "C:\srcds\orangebox\garrysmod\cfg" folder. Open "autoexec.cfg" with notepad.
Enter the following line:
This will default the server to launch with DarkRP mode enabled. Now open your "server.cfg" file with notepad. Enter the following:
Change the "XXXXXXXXXX" values to something of your choosing. They represent the server name and console password, respectively. You can change the "sbox" values according to your liking.
[b]7: Creating a Shortcut[/b]
Almost done, now we need to create the shortcut to launch the server. Right-Click on your desktop, "New > Shortcut". Name it anything you want, for example "DarkRP Server". Right-click go to Properties. In the target textbox type:
C:\srcds\orangebox\srcds.exe -console -game garrysmod +map XXXXX +maxplayers XX -autoupdate
Replace the X's with your desired mapname and slot count, respectively. I'll assume you know how to put a map in the maps folder. For the map name do NOT include the file extension (.bsp).
[b]8: Allow others to join[/b]
Click this link:
Find your router model and follow the instructions there. You will need to find out what your local IP address is. To do this open up the CMD window again and type "ipconfig".
[b]9: Your done![/b]
Your done the basics of setting up a DarkRP server! Add on other addons as you see fit. Here are the other ones I use:
WireMod - SVN Version
PHX - SVN Version
Conna's Tools Pack
PCMOD - SVN Version
NewAdmin - SVN Version
Thank you for the guide, but I'm having a small problem. Every time I try to start the server, it just instantly crashes? Is there a certain fix for this? I don't get any error message, the command window just closes out the second it starts. I've ran dedicated servers before, but I still get new problems with them every time.
Whoops... just found my problem. I installed garrysmod first, then counter-strike into the same directory. Counter-strike over-wrote the bin files so where garrysmod was corrupt. Problem solved for anyone else who does the same thing I did.
what are the ports needed for a Gmod Server?
[QUOTE=xjimmy94]what are the ports needed for a Gmod Server?[/QUOTE]
27015, that's all. The link at the very end tells you that.
That link only shows how to port forward not the ports at least i could not find it. any ways i forwarded 27015 and 27005 but its still not working. is there another port i need to forward or some thing. (my firewall is not on.)
[QUOTE=xjimmy94]That link only shows how to port forward not the ports at least i could not find it. any ways i forwarded 27015 and 27005 but its still not working. is there another port i need to forward or some thing. (my firewall is not on.)[/QUOTE]
It actually does if you actually look and read everything on the pages. Most likely is that you are using the wrong local IP address. Or your didn't check an Enable box somewhere.
Can this be stickied?
Well any port can be used you just have to edit it in the batch file and the server.cfg :)
[QUOTE=nofear1999]Well any port can be used you just have to edit it in the batch file and the server.cfg :)[/QUOTE]
Correct, I just tried to make this guide stupid simple.
yeah if anyone would like to know how exactly Ill show you :)
It went wrong since my [code]''[/code] werent the same as the one in usa. Lame.
[url]http://darkrp.googlecode.com/svn/trunk/Simple[/url] RP Prop Protection won't work ! :/
Remove the simple RP prop protection from your guide, it's now merged with DarkRP
the counterstrike in srcds/orangebox doesnt work for me for some reason
heeeeyyyyy i dont have the server.cfg file?!?!?! do i makes it??
I always forward 27005 to 27015 TCP and UDP. It works with no problems
There are more ports than just those.
[QUOTE=Nori;16770079]There are more ports than just those.[/QUOTE]
i have no server.cfg too ???
create one ?
We dont need more darkrp servers and if people wish for one we dont need more dakrp servers that are run off laptops by little kids and also! we dont need more darkrp servers that are dedicated and use there mums credit card
Other than that good guide
[QUOTE=Infinity1995;17086173]We dont need more darkrp servers and if people wish for one we dont need more dakrp servers that are run off laptops by little kids and also! we dont need more darkrp servers that are dedicated and use there mums credit card
Other than that good guide
Ummm..... You do know that steam dedicated servers are free right? so I dont know what you mean by "we dont need more darkrp servers that are dedicated and use there mums credit card".
Quick QUestion... Would it be too much to run the server on my computer that I play Gmod on? Do people usually do this?
[QUOTE=Fallencf;18311595]Quick QUestion... Would it be too much to run the server on my computer that I play Gmod on? Do people usually do this?[/QUOTE]
You could do this. Advice: Dual processors or more required
Double advice: Try to run both server and game on different physical hard disks which each have their own SATA 2 connection to the mobo
Triple advice: Lots of ram.
How do i change the default map for which the server uses?
eek i hate to bump, but the port forwarding is killing me. i got the server all set up but i can not get the port forwarding right.
I follow all the steps on portforwarding.com right in tell i get to where it tells me to go to filters and then i go blank not knowing what to do.
I have a SOHO Router.
this is what it says (where i have no idea what the hell to do):
This page lets you block traffic into and out of your router. We need to make sure that the ports you are forwarding are not shown on this page. Remember, I am showing you how to use the page so you can remove the ports you are forwarding from it. Your port forwarding configuration will not work if the ports you are forwarding are on this page. Make sure that a port range here does not contain the ports you are forwarding. I'm going to go over the boxes on this page. The Filtering Layer drop down box will generally be set to Port Filtering to filter ports. The Proto Num box will be grayed out, so we will not do anything with it. The Direction drop down allows you to select traffic coming into or going out of your network. The Private Port Range box will let you enter the ports to block. The lowest port number in the range should go into the box on the left. The highest port number in the range should go into the box on the right. If you only plan on blocking one port enter that port number into both of these boxes. Use the Protocol drop down box to select the port protocol of the blocked ports.
my xfire: reversflux5352
help would beh nice!
So, when the Dedicated Server box opens on my screen, the UDP Port should be 27015 right?
when i log onto my server the f4 and door options dont work ANY HELP
great guide but i got a little problem about SVN...... its fucked itself now all i get is "URL 'http://darkrp.googlecode.com/svn/trunk/DarkRP' doesn't exist" any help?
this may seem like a noob question but how do you get the .bsp extension out whenever i load the darkrp server it just says map file not found or invalid....and when you launch your server do you launch gmod also or is only the desktop icon the one you have to use?
Sorry, you need to Log In to post a reply to this thread.