26 août 2009 – 21:13
Hello,
Cela fait un petit moment que je n’avais pas posté de tuto
me revoili me revoilou ^^
Tout est dans le titre, aujourd’hui je vous explique comment installer et lancer un serveur counter-strike 1.6
PARTIE 1 : Installation de HLDS
PARTIE 2 : Mettre a jour steam
PARTIE 3 : Téléchargement du mod
PARTIE 4 : Lancement du jeu (pour tester qu’il se lance bien …)
PARTIE 5 : Configuration du serveur
—
PARTIE 1 : Installation de HLDS :
Tout d’abord logguez vous sur votre serveur avec un compte utilisateur (pas en root en plus clair)
Dans le « home » de celui-ci, téléchargez l’outil dédié steam :
wget http://www.steampowered.com/download/hldsupdatetool.bin
donnez les droits d’exécution dessus
chmod +x hldsupdatetool.bin
puis lancez le :
./hldsupdatetool.bin
Lisez attentivement le contrat et validez :
Enter ‘yes’ to accept this agreement, ‘no’ to decline: yes
L’extraction commence !
extracting steam.tar.Z…done
—
PARTIE 2 : Mettre a jour steam
Toujours en étant dans le même dossier, la commande est :
./steam -command update -game valve -dir .
Le client se met a jour :
Checking bootstrapper version …
Getting version 18 of Steam HLDS Update Tool
Downloading. . . . . . . . . . . .
Steam Linux Client updated, please retry the command
Puis il faut relancer la même commande pour mettre à jour le noyau :
./steam -command update -game valve -dir .
Mise à jour du noyau en cours :
Checking bootstrapper version …
Updating Installation
No installation record found at .
Checking/Installing ‘Linux Server Engine’ version 35
Downloading: .\core_i386.so
Downloading: .\engine_amd.so
Downloading: .\engine_amd64.so
Downloading: .\engine_i486.so
Downloading: .\engine_i686.so
Downloading: .\filesystem_stdio_amd64.so
Downloading: .\filesystem_stdio_i386.so
Downloading: .\hlds_amd
Downloading: .\hlds_amd64
Downloading: .\hlds_i486
Downloading: .\hlds_i686
Downloading: .\hlds_run
Downloading: .\hltv
Downloading: .\libSteamValidateUserIDTickets_amd64.so
Downloading: .\libSteamValidateUserIDTickets_i386.so
Downloading: .\linuxreadme.txt
Downloading: .\proxy_i386.so
Downloading: .\steam_api_i486.so
Downloading: .\steamclient_i486.so
Downloading: .\tier0_s_i486.so
Downloading: .\vstdlib_s_i486.so
No installation record found at .
Checking/Installing ‘Half-Life Base Content’ version 8
Downloading: .\valve\cl_dlls\client.dll
Downloading: .\valve\dlls\hl.dll
…ZzZ vous endormez pas
…
Downloading: .\valve\violence.cfg
Downloading: .\valve\xeno.wad
HLDS installation up to date
—
PARTIE 3 : Téléchargement du mod :
Ici il s’agit de counter strike 1.6
la commande est donc :
./steam -command update -game cstrike -dir .
PS : pour cs-source il aurait fallu télécharger dans un sous dossier ! et oui c’est comme ca ^^ (./steam -command update -game “counter-strike source” -dir css)
—
PARTIE 4 : Lancement du jeu (pour tester qu’il se lance bien …) :
./hlds_run -console -game cstrike -port 27015 +map de_dust2 +maxplayers 4 -autoupdate -tickrate 100 -pingbooster 3
Ce qui doit vous donner ceci :
votre_user@votre_serveur:~/cs16$ sh startserv.sh
Auto detecting CPU
Using Pentium II Optimised binary.
Auto-restarting the server on crash
Updating server using Steam.
Checking bootstrapper version …
Updating Installation
Checking/Installing ‘Counter-Strike Base Content’ version 25
Checking/Installing ‘Linux Server Engine’ version 42
Checking/Installing ‘Half-Life Base Content’ version 12
HLDS installation up to date
Console initialized.
scandir failed:/home/votre_user/cs16/./valve/SAVE
scandir failed:/home/votre_user/cs16/./platform/SAVE
Protocol version 48
Exe version 1.1.2.6/Stdio (cstrike)
Exe build: 18:05:13 Oct 24 2008 (4383)
STEAM Auth Server
couldn’t exec language.cfg
Server IP address x.x.x.x:27015
scandir failed:/home/votre_user/cs16/./valve/SAVE
scandir failed:/home/votre_user/cs16/./platform/SAVE
[S_API FAIL] SteamAPI_Init() failed; unable to update local steamclient. Continuing with current version anyway.
Adding master server x.x.x.x:27010
Adding master server x.x.x.x:27010
couldn’t exec listip.cfg
couldn’t exec banned.cfg
Server logging data to file logs/L1203001.log
L 12/03/2008 – 01:10:53: Log file started (file « logs/L1203001.log ») (game « cstrike ») (version « 48/1.1.2.6/Stdio/4383″)
Connection to Steam servers successful.
VAC secure mode is activated.
L 12/03/2008 – 01:11:01: World triggered « Round_Start »
…
Bien évidement je vous conseille d’automatiser le lancement du serveur via un « .sh » dont voici un model 
…(aussi voir l’article du blog sur teamspeak)
—
PARTIE 5 : Configuration du serveur :
Pour cela il faut modifier le fichier server.cfg
cd cstrike
vi server.cfg
Exemple de configuration serveur : http://ipced.free.fr/downl.ad/server.cfg
Vous n’avez plus qu’a le mettre à votre sauce : password et compagnie ! go go go hf & gl
Petit cadeau : ma config player : http://ipced.free.fr/downl.ad/config.cfg
Popularity: 24% [?]
Posted in Serveur | No Comments »