Increase download speed of files from Server

Whenever a player connects to a new server on the Internet he has to download various files like sounds,maps,models from the server, which takes too much time . Players disconnect from servers that take too much time for downloading files. You can set-up your server for faster downloads with this simple guide to HTTP download with sv_download url CVAR.If the server is not configured for HTTP download, the gameserver will use the normal slow download process.

Advantages:

  • Players download custom resources at their maximum download speed resulting in faster downloads.
  • Players who are downloading files do not take up player slot on the server.
  • Reduces lag from server by saving the bandwidth required for file downloads.

Configuring your server for Fast Downloads

  1. Make a list of all the custom files used in your server.(like .bsp,wav,mdl  genrally in cstrike/ fold er)
  2. Upload these files to a Web server keeping layout of files same as in cstrike/ folder . (for eg cstrike/maps/de_abc  remains <host address> /maps/de_abc)
  3. To display a “banner image” to players that are downloading files, place a 340×56 pixel image in the folder <host address>/gfx/banner.gif
  4. Open server.cfg file in cstrike folder and paste the following code

sv_downloadurl “http://<host address>/”
sv_allowdownload 1
sv_allowupload 1

The maximum length of the sv_downloadurl is 127 characters.

You can find many free web hosts on the net. If you have your own server or HLDS is on LAN then you can setup your HTTP server by installing Wamp or Xampp  and placing the files in www or htdocs folder respectively .

Make sure your IP is static.

Starting CS 1.6 HLDS Server

There are two ways to run CS 1.6 HLDS Server , through GUI or Console.

Both have their advantages and disadvantages.

GUI

If you are new to CS then GUI is the easiest way to start HLDS server.

Advantages:

  • Easiest way to start
  • Very easy to manage CVARs, Change maps, kick/ban players etc
  • Graphical stats for players, cpu usage, ping and FPS.

Disadvantages:

  • Consumes more CPU and RAM
  • Cannot be used in Service mode or in Windows Startup
  • Cannot use parameters

Starting:

  • Go to your HLDS Directory(for eg. E:/HLDS/ or C:\Program Files\Valve\HLServer).
  • Double click the hlds.exe icon.
  • If you have steam installed , than you can start Dedicated Server from your Steam Games Menu.

Console

Running HLDS via Console is best and most efficient way to start server

Advantages:

  • Consumes less RAM and CPU.
  • Can be used in Service mode and loaded on Windows Startup.

Disadvantages:

  • Difficult to use for beginners.

Starting:

  • Right Click on hlds.exe and click “Create a Shortcut”
  • Now right click the created shortcut and click properties.
  • Enter Parameters of your choice after the Target Location(for eg. “E:/HLDS/hlds.exe” parameters)

Parametes/Console variables that can be used in HLDS are

-console

Specifies to HLDS to run in console mode

-game <game name>

Specifies which HLDS game (mod) to run (for eg. -game cstrike)

-ip <ipaddress>

Specifies the IP address on which server will start

+port
Which port to use

-sport <port>
Specifies the VAC2 port the server should use.

+hostname “SERVERNAME”
Specifies the name of the server. Replace “SERVERNAME” by your server’s name.

+map
Specifies which map to start.

+maxplayers
Specifies  maximum player slots in the server.

-autoupdate
Specifies  HLDS to update itself.

-insecure
Disables Valve Anti-Cheat technology

-pingboost <1/2/3>
Selects between optimized HLDS network code stack. Set this on 2 usually reduces latency toward 1ms without loss of activity input packets.

Examples

“E:\HLDS\hlds.exe” -console -game cstrike -insecure -port 27016 -pingboost 3 +sys_ticrate 1000 -heapsize 500000 +maxplayers 20 +map de_dust2

“C:\HLDS\hlds.exe” -console -game cstrike +ip 69.68.67.66 +sv_lan 1 +maxplayers 22 +map de_dust2 -nomaster

Creating Counter Strike 1.6 Dedicated server

Guide to setup and install Counter Strike 1.6 HLDS (Half life dedicated server).

  • Download HLDS Update tool  (Click here to dowload)
  • Start hldsupdatetool.exe and select a Destination folder to install HLDSupdatetool .

  • Select a region where your server will be located and complete the installation.
  • Open Command Prompt (Go to Start->Run and type cmd)
  • Type  cd E:\Valve\HLserver (Replace “E:\Valve\HLserver” with the folder you chose above)
  • Now type the following command after E:\Valve\HLserver>

HldsUpdateTool.exe -command update -game cstrike -dir E:/HLDS/

where “E:/HLDS/” is Folder where you want your Server to be installed.

  • Installer will begin downloading files
  • Do not close the command window and wait for it to finish downloading the files (about 300MB)
  • After it is finished, you will see a “HLDS installation up to date” message.

Continue Reading next guide on ” Starting CS 1.6 HLDS server “

Customise MOTD for your Counter Strike 1.6 server

Editing MOTD (Message of the Day) for your Counter Strike 1.6 server.

MOTD is the welcome message displayed when you connect your HLDS server.

For Example the Default MOTD in Counter Strike 1.6 is

You can replace the default motd with text or image in html format.

Source file motd.txt is located in cstrike folder

Text Motd

Open motd.txt (in cstrike folder) with text editor like notepad/wordpad.

Delete all text in that file and replace it with following code.

Replace “YOUR MESSAGE HERE” with your custom message in following code.

<html>
<head>
<title>YOUR TITLE</title>
<style type=”text/css”>
pre     {
font-family:Verdana,Tahoma;
color:#FFB000;
}
body    {
background:#000000;
margin-left:8px;
margin-top:0px;
}
</style></head>
<body scroll=”no”>
<pre>

“YOUR  MESSAGE HERE”

</pre>
</body>
</html>

Image Motd

To display Image as MOTD.

Open motd.txt (in cstrike folder) with text editor like notepad/wordpad.

Delete all text in that file and replace it with this code.

Replace YOUR IMAGE LINK in the following code with link of your image(for eg. http://www.noobstrike.com/images/stories/motd.jpg).

You can use any image from internet or use your own edited image and upload it to image hosting websites like imageshack, photobucket etc.

<html>
<head>
<title>YOUR TITLE</title>
<style type=”text/css”>
<!–
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #000000;
}
–>
</style>
</head>
<body>
<img src=”YOUR IMAGE LINK” width=”100%” height=”100%” border=”0″ align=”center”>
</body>
</html>

You can put text directly on your image with editors like Paint .

Open Webpage or Redirect

If you want to load a website instead of text/ image motd then copy the following code in motd.txt

<head>

<meta http-equiv=’refresh’ content=’0; url=http://www.noobstrike.com’>

</head>

Replace it with any link of your choice

Music

If you want to play background music in your MOTD then add the link to your audio file in the following code and paste it in motd.txt

<head>
<NOEMBED><BGSOUND src=”http://www. yourlink. com/audio.mp3″></NOEMBED>
</head>

If you are hosting server on LAN(Local Area Network) and do not have access to internet then you can install local server like Wamp/ Xampp and use your IP as links to files , For eg. http://192.168.0.1/image.jpg