Search
Username:
Password:
Register or Reset Password
Remove the ads!
  
Setting Up A Standalone Server
Difficulty: Beginner
Category: SOURCE > Other/MiscAuthor(s): Neutral-Noise

Setting Up A Standalone Half-Life And Half-life 2 Based Game Server


Ok so you wish to host a dedicated server for a few friends or for the public to use. Thankfully Valve has given us the tools to do this. Now in this tutorial I will focus on the GUI control of the server but it is possible to control the server with command prompt. While this takes up less system resources it is harder for people just starting out as a server admin to use. Ok now it’s time to start the tutorial.

Now the first thing that your going to need is the HLDS Update Tool. That can be downloaded from here (http://storefront.steampowered.com/download/hldsupdatetool.exe). Next you have to install it. (Note: Do not install it in the steam folder.) Now you can choose to update the tool now or later. It doesn’t really matter when you do it as I believe it does it the first time it runs. But to do it now execute HldsUpdateTool.exe which is in where you installed it.

Now to install a game. To do this you will have to open a Command Prompt.

To do this click: Start -> Run -> type cmd and hit enter.

To install your game you have to run the HLDSupdatetool.exe to do this you must go to where you installed it. You do this by using the cd command. E.g.

cd c:\hldsupdatetool\vavle

Where c:\hldsupdatetool\vavle is you put where you installed the tool. Now to install the server we have to run the tool.

hldsupdatetool -command update -game -dir

So lets say you want to install a Counter-Strike Source server in E:\game server\files you would type this.

Hldsupdatetool –command update –game “Counter-Strike Source” –dir “E:\game server\files”

Note the “” where there is spaces, without these the Command Prompt will stop at the first space that it sees. Also that the server is installed on a different place then the update tool. You don’t have to even install it on the same drive it will still download the files.

Here is a full list of games that can be installed. (Taken from the steam website)
Source-engine Games

o Counter-Strike Source - Counter-Strike Source

o dods - Day of Defeat: Source

o hl2mp - Half-Life 2: Deathmatch

o tf - Team Fortress 2

GoldSrc-engine Games

o cstrike - Counter-Strike 1.6

o czero - Counters-Strike: Condition Zero

o dmc - Deathmatch: Classic

o dod - Day of Defeat

o gearbox - Opposing Force

o ricochet - Ricochet

o tfc - Team Fortress Classic

o valve - Half-Life Deathmatch

Third-party Game Content

o redorchestra - Red Orchestra

o ship - The Ship

o sin - Sin Episodes

o darkmessiah - Dark Messiah

o garrysmod - Garry's Mod


Once the files have been downloaded you will have to configure you server. This is done automatically or you can do it yourself.

But due to the large amount of settings that can be used I won’t go to deep into it. Instead I will copy paste the (cause I’m lazy and all) the main ones need off the steam web site.

• hostname "yourhostname" - Enter yourhostname as the server name which you would like to appear players' server browser

• rcon_password "yourpassword" - Enter yourpassword as the secure password you would like to use to authenticate so you may change the server's configuration while logged in to play as a client

• sv_aim # - Set auto-aiming for players where # is 1 for "on" and 0 for "off"

• sv_cheats # - Set single-player cheat options where # is 1 for "enabled" and 0 for "disabled"

• sv_contact "admin@yourdomain.com" - Sets the administrative contact e-mail address

• sv_maxrate # - Set the maximum rate of bytes per second which the server is allowed to transmit where # is at minimum: 1000 / at default: 10000 / at maximum 25000

• sv_region # - Sets the region which your server will report as its location where # is:

o -1 - World

o 0 - US East Coast

o 1 - US West Coast

o 2 - South America

o 3 - Europe

o 4 - Asia

o 5 - Australia

o 6 - Middle East

o 7 - Africa

These settings must be put in a file called server.cfg in the cfg folder where you installed it.

So for CS:S E:\game server\files\cstrike\cfg\server.cfg (yes it’s that simple.)

Here are two example server.cfg files from the Steam website

CS:S - https://support.steampowered.com/downloads/5386-HMJI-5162/cs_server_cfg_file.cfg

HL2:DM - https://support.steampowered.com/downloads/5386-HMJI-5162/hl2dm_server_cfg_file.cfg

Now that’s about it. Now for some basic trouble shooting.

1. Problem: I can’t open SRCDS.exe
Answer: Open up a Command Prompt and go to where the SRCDS.exe is and type in the command prompt “SRCDS –game this will lunch the GUI version of the server.

2. Problem: My Friends can’t connect to my server over the internet.
Answer: The reason for this is because the ports that are being used are being blocked by your firewall or you modem. For more information on this go to www.portforward.com.

3. Problem: My friends are compiling about lag even though the servers CPU usage is below 60%.
Answer: The reason for this is your servers FPS is low. A way to increase this is to open up Windows Media Player or Internet Explorer. Or something similar.


Links I used or that may be helpful
Setting up a Standalone Dedicated Server - https://support.steampowered.com/kb_article.php?ref=6758-TCMF-2234

Server Settings - https://support.steampowered.com/kb_article.php?ref=4975-UOPG-1608

Optimizing a Dedicated Server - https://support.steampowered.com/kb_article.php?ref=5386-HMJI-5162

Managing HLDS Server Resources - https://support.steampowered.com/kb_article.php?ref=7917-KIPM-5800


Now thats it. I hope that helps you in your way to greatness! Sorry about the links I will make them hyper links when im not so sleepy :D.
Added: 3 months agoTags: server, source, counter, strike, hl2, admin
Feedback (0)
None Found
Add Feedback
Feedback Instructions:
Feedback will help me improve this.

You cannot post yet!
Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login.
Assessment
The community's verdict.
No assessments made... please vote!
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This Tutorial in a nutshell...
No stamps recorded
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.

Brought to you by...
B3TA studio
If You Don't Like It You Can Do It Yourself
Membership: On Request
Primary Skills: Mapping, Modelling, Texturing
Inception: 8 months ago
Vote for Studio
Like this tut? Vote B3TA studio for one or more monthly awards.
You must login or register to access this!
Related Tutorials