HLDS Server

How To Create HLDS Server In Windows

In order to install a Counter Strike 1. 6 dedicated server, you need :
a.Windows XP, processor 1000 ghz, memory 256 ram
b. Connexion to internet
c. 300 - 400 MB free space on disk
You shall have to follow a few steps :
1. Connect to the internet
2. Download Click Here the CS 1.6 Server Creator installer and unzipp it anywhere on disk.
3. Create an new directory on your disk and name it HLDS . It can be named      anyhow but we shall use HLDS because it`s classic .
 4. Now doubleclick on installer.exe and when the selection window appeares  you select the new directory HLDS . Hit OK and wait a few moments . A blue  window will appear on screen displaying the scroll of the installation . At this  point the installer downloads and installs all the server`s components in your  HLDS directory. It can take some time to do it, depending on the internet  connection , so have a little pacience .When the installer finishes his work ,      check out the HLDS directory and see if it has approximativly 315 MB .If it has ,    then everything it`s ok and if it hasn`t 315 MB you`ll have to repeat this step .     Open the HLDS directory ; it should look like this
Now open the cstrike folder , it should look like this 
5. Next step is to set the server up for accepting non steam clients . In order to do that download you can use one ofe these methods:
5.1 Rcommended - Use Dual protocol method (47+48). Download Dproto 0.4.1+Fix.exe, double click it and choose as installation folder, the main directory of your server (HLDS). Then go toHLDS\cstrike\addons\metamod, open plugins.ini and edit this line there:
win32 addons\dproto\dproto.dll 
5.2 The old swds.dll No Stream patcher. Download it fron this link . Double click the exe and chose as installationfolder, the main directory of your server (HLDS). 
If you want a Stem Only dedicated server, just skip this step ! 
6. Next step is to configure te server.cfg in order to make your server work on the internet . Go toHLDS\cstrike folder and open server.cfg with Wordpad or Notepad. Deleeverithing and paste this: 
                                                                                
                                                                                  sv_password ""
hostname "www.counterstriketools.webs.com"

// rcon passsword
rcon_password ""
sv_rcon_banpenalty 1
sv_rcon_maxfailures 20
sv_rcon_minfailures 20
sv_rcon_minfailuretime 30 

// server cvars
sv_allowupload 1
sv_allowdownload 1
sv_voicecodec voice_speex
sv_voicequality 2
sv_voiceenable 0
mp_footsteps 1
mp_autokick 0
mp_flashlight 0
mp_tkpunish 0
sv_alltalk "0"
mp_forcecamera 2
mp_forcechasecam 2
mp_logmessages 1
sv_pausable 0
sv_cheats 0
sv_aim 0
sv_maxspeed 320
mp_hostagepenalty 0
mp_allowspectators 1
mp_chattime 3
sv_gravity 800
sv_proxies 0
mp_autoteambalance 1
mp_limitteams 0
mp_friendlyfire 0

// round specific cvars
mp_freezetime "0"
mp_roundtime 2
mp_startmoney "2000"
mp_c4timer 35
mp_timelimit 0
mp_maxrounds 100
mp_fraglimit 0
mp_winlimit 0
mp_buytime 0.75

// bandwidth rates

sv_maxrate 0
sv_minrate 25000
sv_maxupdaterate 0
sv_minupdaterate 25
sv_lan 0
voice_enable 0  

// server logging
log off
sv_logbans 1
sv_logecho 0
sv_logfile 0
mp_logdetail 0

xp_gamename "counterstriketools.webs.com"

// operation
sv_contact counterstriketools.webs.com
setmaster add 91.150.72.233:27011 //kgb master server
//sv_downloadurl ""

//execs
exec listip.cfg
exec banned.cfg
exec dproto.cfg
//exec cycles.cfg 

amx_gamename "oldschool-cs.info"
8. No go to HLDS\cstrike\liblist.gam , open it with Notepad or Wordpad and add this line: 
gamedll "addons\metamod\dlls\metamod.dll"
In order to turn the server on, create a shortcut of hlds.exe file on your desktop and double click it. Edit the Server Name and chose your map, port and RCON Password and click Start Server. The hlds.exe file is located inside your main directory (HLDS).
The installer automatically installed Amx Mod X 1.8.1 on your server. Amx Mod X helps you to administrate your server ( change maps, set up cvars, kick players) and shows the game statistics .
To see if it runs properly go to the server console and type meta list . If the message recived is:
..then everything it`s OK.
Now,Enjoy your own server !



How To Create HLDS Server In Linux

First, Open A Terminal Then, Create A Directory Where We Will Run The hldsupdatetool, Run The Following Command:
code: mkdir hlds 

Now we switch to the hlds we just created and download the hldsupdatetool.bin 

code: 
1.)  cd hlds 

2.)  wget http://www.cstrike-planet.com/dls/hldsupdatetool.bin 
If all goes well you should now have the hldsupdatetool.bin in the srcds directory. Now we change the permission of hldsupdatetool.bin so we can execute it and extract the contents from hldsupdatetool.bin

code : 
1.)  chmod +x hldsupdatetool.bin 

2.)    ./hldsupdatetool.bin 
Note: after you run ./hldsupdatetool.bin you will get a prompt to agree with the terms and conditions, simply type yes and hit enter.
If all goes well, you should not have two files in the srcds directory, the hldsupdatetool.bin which we downloaded earlier, and asteam file the updatetool generated, this is the file we will use to install Counter-Strike:

Note: if you receive a 'uncompress: command not found' message it means your server does not have uncompress installed. You have two options to easily work around this, try the following while logged-in as root:
code:
ln -s /bin/gunzip /bin/uncompress


Then try to run ./hldsupdatetool.bin again. If that does not work, or you do not have root privileges you can download the binary file we have available:

code:
wget http://www.cstrike-planet.com/dls/steam
Now that you have the steam binary file, Type the following command to begin installing CS 1.6

code:
chmod +x steam ./steam -command update -game cstrike -dir .

Note the period after -dir 

By now, the Counter-Strike 1.6 install should have started: 
                 HLDS Install has started
Install times will vary anywhere between 15-30 minutes (~300MB) depending on your server connection speed and how congested the Steam network is. Once setup has finished it will display a "HLDS installation up to date" message. Now we are ready to start the server.

Counter-Strike command line options

Below is a list of options you can use when starting up the server.

-console
Initializes console mode

-autoupdate
Automatically update the server when Steam updates are released

-game <game name>
The HLDS mod you want to run

+maxplayers <number of players>
Amount of players to allow

+map <map name>
The map to start the server with

-port <port number>
The port number the server should run on. Can be left out if you plan on using the default port (27015).

-ip <ipaddress>
Useful if you have multiple IPs and want to assign a particular IP to the server.

There are a couple of ways to start the server; for simplicity we will start the server the easy way. We want the server to run in the background, so we issue the following command:
code:
./hlds_run -game cstrike -autoupdate +maxplayers 20 +map de_aztec > /dev/null 2>&1 &
If you are wondering what > /dev/null is; this will send no output, and the ending '&' will run the server in the background. This would be the most common way to start the server. Sometimes we like to see what is happening while the server is running, mostly for debugging purposes:

code:
./hlds_run -game cstrike -autoupdate +maxplayers 20 +map de_aztec > hlds.log 2>&1 & 
The above will start the server, send all output (logging) to a file called hlds.log and run in the background. Everything the server generates will be sent to hlds.log, very useful if you want to see any errors that are happening while the server is running.
Note: if you choose to send output to a file, remember to periodically delete the file, it can grow quite large on an active server. Keep in mind this should be used mostly for debugging and not for a production server.

Or If you Want To Run A Server In Terminal So Use These Commands:

code : 

cd hlds
./hlds_run -game cstrike +ip x.x.x.x +port 27015 +sys_ticrate 333 +fps_max 333 +maxplayers 32 +map de_dust2 -autoupdate

Note : Replace x.x.x.x With Your External IP.
You Can Found It Here : www.whatismyip.com

Note : Dont Close The Terminal. OtherWise Your Server Will ShutDown.

Hope You UnderStand.
Thanks :)

No comments:

Post a Comment