Thursday, August 22, 2013

How to install a CS 1.6 2013 server with SteamCMD on Linux

This guide will show you how to a install CS 1.6 (Counter-Strike 1.6) 2013 server with SteamCMD on linux, because it's popular and windows is already straight forward. After that you may want to Install Metamod which is a plugin allowing you to run custom modifications for example AMX Mod X on Goldsource based game servers including CS 1.6, Half Life, Day of Defeat and Team Fortress classic.

We assume that you already have the Linux server installed with CentOS and you're in the directory you'd like the SteamCMD folder to be containing your new SteamCMD based server.

  • Make a new directory called SteamCMD
    mkdir SteamCMD
    cd SteamCMD
  • Download the SteamCMD update tool
    wget http://media.steampowered.com/client/steamcmd_linux.tar.gz
  • If you are running 64-bit linux you need to download 32-bit libs. Otherwise skip to step 4.
    yum install glibc.i686 libstdc++.i686
    ITo ensure we don't get a download failed error, let's allow the SteamCMD ports.
  • iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT
    iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT
  • Extract the contents of the SteamCMD .tar.gz archive
    tar xvfz steamcmd_linux.tar.gz
  • Now we're going to launch SteamCMD
    ./steamcmd.sh
    You'll see updates downloading and installing followed by Loading Steam#...OK.
     
  • To download most game servers you can login anonymously.
    login anonymous 
  • Now we set a directory for our first server to install in. We like to name after ports so called it 27020.
    force_install_dir ./27020/
  • Now we need to install the server by doing an app update command with the application ID of the server we want to install. The Counter-Strike 1.6 dedicated server has an application ID of 90.
    app_set_config 90 mod cstrike
    app_update 90 validate
    You'll see the server download. Eventually you'll see Success! App '90' fully installed. Adding the word validate would verify that all files are correct.

    To install the HLDS Beta you must do:
    app_update 90 -beta beta validate
  • You may now exit SteamCMD
    exit
  • The server can be started in the same way as before. 
    cd 27020​
    ./hlds_run -console -game cstrike +port 27015 +de_dust2 +maxplayers 32 -pingboost 1

Sunday, July 28, 2013

Download libSteamValidateUserIDTickets_i386.so For Counter Strike Servers

I was setting up a hlds non-steam server and I was getting an error regarding the absence of this file "libSteamValidateUserIDTickets_i386.so" and hence thought of uploading it so that others can download for their own server.

The error you will receive is something like below:

Error:Error:libSteamValidateUserIDTickets_i386.so: cannot open shared object file: No such file or directory

Download libSteamValidateUserIDTicket.so

Saturday, May 18, 2013

How to enable special commands in amx admin mod

After Install Amxmodx in Your Server 

Connect Ur Server And Type in Conosl "amxmodmenu" (you must be admin)

Then Chose From Menu Plugins And Make Sure This Plugin On :
-Statsx
-CS Misc. Stats

Go Back To Menu And Chose Stats Configuration 
And Make Sure that Stats On :
Say /rankstats
Say /rank
Say /top15
And All Option You Want To Make It On


And About /rs Command 
That Are A New Plugin Click Here And Download It If You Dont Know How To Put it in ur Server Follow my steps :
1.Download resetscore.amxx , resetscore.sma
2.Copy it and put in "HLDS/cstrike/addons/amxmodx/plugins"
3.Paste This resetscore.amxx in New line in "HLDS/cstrike/addons/amxmodx/config/plugins.ini"

Restart Server Or Change Map And Good Luck (Remmber Any Plugin You Want to put in ur server Search his name HereAnd Follow My Steps 
Exit Menu And Good Luck 

Install a Counter-Strike 1.6 Server Non-Steam

Connect by SSH to your VPN.

-Change directory to "/usr"
Code:
cd /usr
-Make a dir named "hlds"(it can be anything you want, but i used hlds in this tutorial)
Code:
mkdir hlds
-Download and run hldsupdatetool:
Code:
cd /usr/hlds
wget http://download.fioriginal.ro/cs/hldsupdatetool.bin
chmod +x hldsupdatetool.bin
./hldsupdatetool.bin
if you receive an error about "uncompress" run this:
Code:
ln -s /usr/bin/gunzip /usr/bin/uncompress
./hldsupdatetool.bin

now run this until it shows "HLDS Installation up to date"
Code:
./steam -command update -game valve -dir .

Now we have an empy, steam only cs 1.6 server.

run this until it shows "HLDS Installation up to date"
Code:
./steam -command update -game cstrike -dir .

No Steam Engine Download

cd /usr/hlds/
wget http://download.freakz.ro/engine.v15.tgz
rm -rf engine_amd.so 
rm -rf engine_i486.so 
rm -rf engine_i686.so 
tar xfvz engine.v15.tgz


install amxmodx
Code:
cd /usr/hlds/cstrike/
wget http://download.fioriginal.ro/cs/amxmodx-1.8.1-base.tar.gz
tar xzvf amxmodx-1.8.1-base.tar.gz
wget http://download.fioriginal.ro/cs/amxmodx-1.8.1-cstrike.tar.gz
tar xzvf amxmodx-1.8.1-cstrike.tar.gz
install metamod
Code:
cd /usr/hlds/cstrike/addons/
mkdir metamod
cd /usr/hlds/cstrike/addons/metamod
wget http://download.fioriginal.ro/cs/metamod-1.19-linux.tar.gz
tar xzvf metamod-1.19-linux.tar.gz

now open in a ftp client the file cstrike/liblist.gam from your hlds directory and replace this
Code:
gamedll_linux "dlls/cs_i386.so"
with this
Code:
gamedll_linux "addons/metamod/metamod_i386.so"

install dproto
Code:
cd /usr/hlds/cstrike/
wget http://download.fioriginal.ro/cs/dproto-0.9.87.zip
unzip dproto-0.9.87.zip

Enter in a FTP client in the /usr/hlds/cstrike/addons/metamod folder, create a file named "plugins.ini" and put these lines:
Code:
linux addons/amxmodx/dlls/amxmodx_mm_i386.so
linux addons/dproto/dproto_i386.so

now you need to configure your host by editing the server.cfg file from cstrike folder

an example:
Code:
// Server Name
hostname "server name"
rcon_password "rcon password"

// Server Cvars
mp_friendlyfire "0"
mp_footsteps "1"
mp_autoteambalance "1"
mp_autokick "0"
mp_flashlight "0"
mp_tkpunish "1"
mp_forcecamera "0"
mp_limitteams "2"
mp_hostagepenalty "5"
mp_allowspectators "1"
mp_timelimit "35"
mp_chattime "10"
sv_cheats "0"
sv_aim "0"
sv_allowupload "1"
sv_allowdownload "1"
sv_maxspeed "320"
sv_gravity "800"
pausable "0"

// Round Cvars
mp_freezetime "0"
mp_roundtime "2.5"
mp_startmoney "800"
mp_c4timer "45"
mp_fraglimit "0"
mp_maxrounds "0"
mp_winlimit "0"
mp_buytime 0.35

// Bandwidth Rates
sv_rate "5500"
sv_minrate "0"
sv_maxrate "0"
sv_maxupdaterate "0"
sv_minupdaterate "10"
decalfrequency "10"
sv_unlag 1
sv_maxunlag .1
sys_ticrate 1000

// Server logging
log "on"
sv_logbans "0"
sv_logecho "1"
sv_logfile "1"
sv_log_onefile "0"
sv_logdownloadlist "1"
sv_consistency 0

// Internet Settings
sv_lan "0"
sv_region "255"
sv_contact "adresa de email"
sys_ticrate 2000
sv_downloadurl "http://download.fioriginal.ro/cs/resurse/beta/"

exec listip.cfg
exec dproto.cfg

// Masters
setmaster add 65.73.232.251
setmaster add 65.73.232.253
setmaster add 67.132.200.140
setmaster add 68.142.72.250:27010
setmaster add 72.165.61.136:27010
setmaster add 69.28.151.162:27010
setmaster add 69.28.151.162:27013
setmaster add 72.165.61.136:27013
setmaster add 72.165.61.151:27013
setmaster add 188.40.40.201:27010
setmaster add 213.239.209.221:27010

now edit amxx.cfg

to add admins you should edit the users.ini file.
At the end of the file, delete
Code:
loopback
and add your admins, one per line:
Code:
"nick" "pwd" "acces" "a"
Replace nick with the nickname of the player, pwd with the password and access with the access flags.

Access flags:
a - imunity - can't get lua kick\ban\slay\llama\gag ...etc
b - reserved slot - has a reserved slot in that case the server is full
c - access to amx_kick command
d - accesss at ban and unban
e - access at slap and slay
f - access at amx_map
g - access at cvars
h - access at configurations
i - access at chat commands ( amx_chat , amx_psay..)
j - access at vote commands (amx_vote, amx_votemap)
k - access at server password - can change it
l - access at rcon password and the rcon commands
z - simple player - WARNING! Don't use this for admins!

You can start the server in 3 ways:

First,
Code:
cd /usr/hlds/

1. Run the server in console:
Code:
./hlds_run -game cstrike +ip your.external.ip +port 27015 -pingboost 1 -nomaster +maxplayers 22 +map de_dust

OR

2.Run the server in background:
Code:
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip your.external.ip +port 27015 -pingboost 1 -nomaster +maxplayers 22 +map de_dust

or

3.The most comode way:

Create a file named 'startserver' and type:
Code:
#!/bin/bash ./hlds_run -game cstrike +ip your.external.ip +port 27015 -pingboost 1 -nomaster +maxplayers 22 +map de_dust &

Now run
Code:
./startserver