HOWTO create a Counter-Strike 1.6 Non-Steam Game Server
Why do we need?
- A computer with Linux installed and ssh access with root privileges. - Approximate resources we need to keep 22 players on it without loss, lag, problems: - Processor 2 GB - 512 MB RAM - 1.2 GB HDD - An internet connection for about 1 - 1.5 MB / s upload and download as well! It is better to do a speed test HERE (preferably in NY Server). - Routable IP address (not dynamic, but routable)
I recommend using WinSCP for PuTTy and follow the steps below.
To download files do require: You will need to create a directory in which we work:
mkdir /usr/hlds
Then we will enter it:
cd /usr/hlds
Download the following: HLDSUpdateTool :
wget http://www.steampowered.com/download/hldsupdatetool.bin
Patch For NoSteam Server :
wget http://download.freakz.ro/engines_4352_prot48.tar.gz
AdminMoD & MetaMoD :
wget http://download.freakz.ro/halflife-admin-2.50.60-linux.tar.gz
To start installation: In /usr/hlds , execute commands:
chmod +x hldsupdatetool.bin
./hldsupdatetool.bin
It may give you an error related to uncompress. If so, run the following command:
ln -s /usr/bin/gunzip /usr/bin/uncompress
Rerun:
chmod +x hldsupdatetool.bin
./hldsupdatetool.bin
Then start to install the necessary files Server:
./steam -command update -game valve -dir .
He will do an update, you will be asked to execute the above command again. Click on the arrow above & press Enter. Begin installing the necessary files map, it may take depending on your bandwidth. Will end with the HLDS Installation Up to date. Press Enter.
Now, how to install the necessary files for Counter-Strike:
./steam -command update -game cstrike -dir .
This command, like the one above will take depending on your internet bandwidth and ends with the message HLDS Installation Up to date. Press ENTER again.
Patching the server fornosteam : Execute these commands:
rm -f engine_amd.so
rm -f engine_i486.so
rm -f engine_i686.so
rm -f steamclient_linux.so
tar -xzvf engines_4352_prot48.tar.gz
Server configuration:
1. With WinSCP, open / usr / hlds / cstrike / server.cfg. Delete all write there and add the following:
// Server's config ; by www.BuGy.biz !
mp_autokick 0
mp_autocrosshair 0
mp_autoteambalance 0
mp_buytime 0.15
mp_consistency 1
mp_c4timer 35
mp_fadetoblack 0
mp_falldamage 0
mp_flashlight 1
mp_forcecamera 3
mp_forcechasecam 2
mp_friendlyfire 0
mp_freezetime 3
mp_fraglimit 0
mp_hostagepenalty 0
mp_limitteams 1
mp_logfile 1
mp_logmessages 1
mp_logdetail 3
mp_maxrounds 0
mp_playerid 0
mp_roundtime 3
mp_startmoney 800
mp_timelimit 35
mp_tkpunish 0
mp_winlimit 0
sv_aim 0
sv_airaccelerate 10
sv_airmove 1
sv_allowdownload 1
sv_clienttrace 1.0
sv_clipmode 0
sv_allowupload 1
sv_cheats 0
sv_gravity 800
sv_lan 1
sv_maxrate 7000
sv_maxspeed 320
sv_maxupdaterate 101
sys_ticrate 10000
decalfrequency 60
pausable 0
log on
decalfrequency 60
edgefriction 2
host_framerate 0
exec listip.cfg
exec banned.cfg
exec settings.cfg
2. Also, in the same directory, create a file called "settings.cfg. Open it and write:
// Server's config ; by www.BuGy.Biz !
hostname *
rcon_password *
After hostname, delete asterisk and write server name between quotes ("name"). What we write here will appear when player parties will press the TAB key (+ showscores) top left.
After rcon_password, delete the asterisk and write to Server rcon password all quotes. This password will be used webmod, HDSW and other programs that we manage remote Server.
3. It is good to have a non secure server. To do this, go into /usr/hlds /cstrike/liblist.gam and look after line secure "1" . Replace it with secure "0" .
AdminMod + Metamod installation:
Extracts halflife-admin-2.50.60-linux.tar.gz anywhere:
tar xfvz halflife-admin-2.50.60-linux.tar.gz
We have a new directory, AdminMod.
cd Adminmod
./install_admin
Answer the first question whit Y .
We will ask who is the HLDS folder. Respond with /usr/hlds .
You will be asked how you want to install adminmod. Respond with 1 .
Answer to this questions whit Y.
Adminmod configuration file is found in /usr/hlds/cstrike/addons/adminmod/config/adminmod.cfg . We comment in English sites every CVar. Modify them as you want.
Admins we will add the file /usr/hlds/cstrike/addons/adminmod/config/users.ini .
Accounts will be as follows:
nick:password:acces
Example:
BuGy:mypass:131071
We can set access HERE. Check the boxes containing the controls you want to access that type of account and click Calculate fit right. Box will appear to access the Access Right for users.ini:. 131,071 have access to all commands. Greater access would be 262,142, used by some servers to access the owner. It is no different than 131,071. The only difference would be greater if it is set on 1 admin_highlander.
This was about. Server How to start?
Execute these commands:
cd /usr/hlds
./hlds_run -game cstrike +ip ip.extern +port 27015 +sv_lan 1 -nomaster +maxplayers 22 +map de_dust2
Replace ip.extern whit your server ip. .
The server to start when booting Linux, add to /etc/rc.local the following lines:
cd /usr/hlds
./hlds_run -game cstrike +ip ip.extern +port 27015 +sv_lan 1 -nomaster +maxplayers 22 +map de_dust2