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.
1: Install hldsupdatetool
Download from:
http://www.steampowered.com/download/hldsupdatetool.exe
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:
cd C:\srcds
hldsupdatetool
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.
2: Install Garry's Mod Files
Type:
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.
3: Install Counter-Strike: Source Files
Type:
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.
ALTERNATIVE METHOD:
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.
4 (OPTIONAL): Install Half-Life: Episode 2 and/or Portal Files
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.
http://forums.facepunchstudios.com/s...d.php?t=480444
5: Installing the latest version of DarkRP with TortoiseSVN
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:
http://tortoisesvn.net/downloads
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:
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.
6: Editing server.cfg and autoexec.cfg
Go to your "C:\srcds\orangebox\garrysmod\cfg" folder. Open "autoexec.cfg" with notepad.
Enter the following line:
sv_defaultgamemode DarkRP
This will default the server to launch with DarkRP mode enabled. Now open your "server.cfg" file with notepad. Enter the following:
hostname "XXXXXXXXXX"
sv_defaultgamemode "DarkRP"
rcon_password "XXXXXXXXXX"
sbox_noclip "0"
sbox_godmode "0"
sbox_plpldamage "0"
rp_toolgun "1"
sbox_maxprops "1000"
sbox_maxragdolls "0"
sbox_maxeffects "0"
sbox_maxdynamite "0"
sbox_maxlamps "0"
sbox_maxthrusters "0"
sbox_maxwheels "4"
sbox_maxhoverballs "0"
sbox_maxvehicles "0"
sbox_maxbuttons "20"
sbox_maxemitters "0"
sbox_maxspawners "0"
sbox_maxturrets "0"
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.
7: Creating a Shortcut
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).
8: Allow others to join
Click this link:
http://portforward.com/english/appli...erverindex.htm
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".
9: Your done!
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
DoorSTool
Keypad
PCMOD - SVN Version
WeightSTool
NewAdmin - SVN Version