|
Introduction
|
|
This guide will walk you through extracting the HldsUpdateTool and and updating it, downloading the core files and then extracting and configuring your NS installation for basic operation.
For better or for worse steam is here and is here to stay. Once the WON servers go down for good there will be no other way to authenticate Half-life, Counter-Strike and Day of Defeat Retail users to play on your servers. As you may or may not know the auth server is important for two main reasons. First, it allows you to ban users who are disruptive to your environment, second when Valve Anti-Cheat (VAC) becomes available for NS it will allow you to use the updated modules to help fight cheating.
|
Downloading the Proper Files
|
|
You'll want to download the server files onto your machine so that they can be extracted and set up. There are a ton of mirror sites for these files which can be found at natural-selection.org. Download the following files into a local directory on your server machine:
hlds_updatetool.exe (581 KB) - Location: ftp://hlserver:hlserver@ftp.valvesoftware.com/win32/hlds_updatetool.exe
ns_dedicated_server_v3.zip (136 MB) - Location: Check downloads page on http://www.unknownworlds.com/ns
ns_dedicated_server_patch_v305.zip (~2.5 MB) - Location: http://download.jarhedz.com/ns_beta/direct/ns_dedicated_server_patch_v305.zip
|
Extracting the Base Server File
|
|
Now that you have all the files in your local directory needed for the install we need to go through extracting the dedicated server update tool. Find the hlds_updatetool.exe and double click it to launch the installer.
- Select a location to install the Dedicated server, I suggest C:\HLServer or an equivalent drive with at least 2 GB of space free. The installation will not take 2GB but it is a good idea to have lots of space for logfiles.
- Next you will need to set your region. Set this to whatever is most appropriate for your area.
- The next screen will have mailing list information that you can sign up for. This will help keep you informed when new HLDS releases are pending and if there are other issues discovered by your fellow administrators. You should note this information if you would like to join the list in the future.
- Hit next until you can finish the installation, you can choose to read the readme file if you like.
Now we'll need to update the HLDS steam tool to the latest version and download the basic server files:
|
Updating the HldsUpdateTool
|
|
As of 03/10/05 you no longer need to create an account for your Half-Life dedicated server. So we no longer need to do that portion of the setup. However we still need to update all the tools and server files to the latest versions to ensure success. First thing's first, updating the HldsUpdateTool:
Open a DOS CLI Window:
- Click Start >> Run...
- Type in "cmd" (without quotes) and hit enter to get a DOS window.
Change to your HLServer directory:
We need to update the HldsUpdateTool to the latest version, to do this type the following command:
|
Code
|
HldsUpdateTool.exe -update
|
|
When it's done it may give you a "WARNING!" message that the command is deprecated. Just hit the Enter/return key on your keyboard to get the command line prompt back. Keep the command line open, we'll need it in the next section.
The HldsUpdateTool should be ready to go, go to the next section to learn how to download the latest server files.
|
Downloading, Extracting and Updating HLDS and NS
|
|
Now we have an updated HldsUpdateTool/steam tool Next we will need to actually get the HLDS core files needed to run the server. In the same command window you left open from the last section you'll want to type the following line:
|
Code
|
HldsUpdateTool.exe -command update -game valve -dir c:\HLServer
|
|
This could take 10 minutes or several hours depending on how much bandwidth you have and how busy the steam content servers are. Doing it this way ensures that you have the latest, most up-to-date server files.
Once it's done downloading you should then extract the NS files to the c:\HLServer directory. You should see an "ns" folder be created in there.
After the base ns server files are extracted you need to update the server dll to the latest version. Extract the ns_dedicated_server_patch_v305.zip into the c:\HLServer folder to update overwriting existing files. Usually it will prompt you to overwrite old files, if it doesn't double check to make sure it extracted them in the correct place.
If you want to double check to make sure the files are extracted properly, inside the c:\HLServer directory there should be an "ns" folder, inside the "ns" folder there should be a bunch of various files. If that is true, the basics are all taken care of, you just need to do a little custom configuration to make the server your own.
|
Custom Configuration
|
|
You should now edit the server.cfg file, which will be in the "ns" folder, to replace the default hostname with one you want such as "Bobo's Love Shack". Use Notepad (do not use Word or Wordpad) to edit your files since it will not leave any metadata in there which might mess up how the server reads the configuration.
Normally you would need to enter a long string of commands in order to get a hlds server to start up. Typing these commands every time you wanted to restart the server would be a big pain so we try to automate the task somewhat with a batch file. Batch files are simply files that run a series of commands in the order they are presented in the file. Before we can create a batch file we need to be able to change the file extension so it is recognized as a MS-DOS batch file.
To do this, open your c:\HLServer folder on your hard drive so that you can see the contents inside. Up on your menu bar click the "Tools" then click "Folder Options". Next click the "View" tab. Uncheck the checkbox next to "Hide extensions for known file types" and select "Show hidden files and folders" then click the OK button on the bottom.
Now you should see the contents of your HLServer folder again. Now, go to "File" menu, click "New" then "text document". It should create a new file called "New text document.txt" change this to "StartHLDS.bat". It might warn you about changing the file extension, just click okay to accept it.
Next thing you need to do is open the batch file so you can enter data into it. Since it is now an MS-DOS batch file, double clicking on it will run the batch file and give you nothing. We need to edit it, so we need to right-click the StartHLDS.bat file and select "Edit". If it asks what you want to edit it with, choose "NotePad".
Put this line in your file, (NOTE: This is all one line, it may word wrap in your file):
|
Code
|
hlds.exe -game ns -maxplayers 12 +map co_core -console +port 27015 +mapchangecfgfile "server.cfg" +exec banned.cfg
|
|
You should be able to start your server after this. Change directory back to you HLServer directory and double click on the "StartHLDS.bat" file, a black console window should appear.
If the server starts try typing "stat" in the console, it should feedback to you some server statistics like map, players, server build, etc...
That's it! You're Done! You should try to connect to your server to make sure that it can receive traffic, if possible look for it in a server browser to make sure everyone else can see it as well.
|
|