Windows : Différence entre versions

De Free 4 Funs
Aller à : navigation, rechercher
(Page créée avec « =<font color="blue">Introduction</font>= Installer un serveur Rust sur Windows. =<font color="blue">Requis</font>= * Processeur avec 4 / 8 coeurs à 3.5 Ghz * 6 Go de... »)
 
(Installation)
Ligne 19 : Ligne 19 :
 
SteamCMD se met à jour :
 
SteamCMD se met à jour :
 
<blockquote>
 
<blockquote>
Redirecting stderr to 'B:\steamcmd\logs\stderr.txt'
+
Redirecting stderr to 'B:\steamcmd\logs\stderr.txt'<br />
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
+
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".<br />
ILocalize::AddFile() failed to load file "public/steambootstrapper_french.txt".
+
ILocalize::AddFile() failed to load file "public/steambootstrapper_french.txt".<br />
[  0%] Checking for available update...
+
[  0%] Checking for available update...<br />
[----] Downloading update (0 of 9,642 KB)...
+
[----] Downloading update (0 of 9,642 KB)...<br />
[  0%] Downloading update (210 of 9,642 KB)...
+
[  0%] Downloading update (210 of 9,642 KB)...<br />
[  2%] Downloading update (648 of 9,642 KB)...
+
[  2%] Downloading update (648 of 9,642 KB)...<br />
[  6%] Downloading update (1,046 of 9,642 KB)...
+
[  6%] Downloading update (1,046 of 9,642 KB)...<br />
[ 10%] Downloading update (1,394 of 9,642 KB)...
+
[ 10%] Downloading update (1,394 of 9,642 KB)...<br />
[ 14%] Downloading update (1,843 of 9,642 KB)...
+
[ 14%] Downloading update (1,843 of 9,642 KB)...<br />
[ 19%] Downloading update (2,212 of 9,642 KB)...
+
[ 19%] Downloading update (2,212 of 9,642 KB)...<br />
[ 22%] Downloading update (2,586 of 9,642 KB)...
+
[ 22%] Downloading update (2,586 of 9,642 KB)...<br />
[ 26%] Downloading update (3,002 of 9,642 KB)...
+
[ 26%] Downloading update (3,002 of 9,642 KB)...<br />
[ 31%] Downloading update (3,372 of 9,642 KB)...
+
[ 31%] Downloading update (3,372 of 9,642 KB)...<br />
[ 34%] Downloading update (3,788 of 9,642 KB)...
+
[ 34%] Downloading update (3,788 of 9,642 KB)...<br />
[ 39%] Downloading update (4,181 of 9,642 KB)...
+
[ 39%] Downloading update (4,181 of 9,642 KB)...<br />
[ 43%] Downloading update (4,597 of 9,642 KB)...
+
[ 43%] Downloading update (4,597 of 9,642 KB)...<br />
[ 47%] Downloading update (4,966 of 9,642 KB)...
+
[ 47%] Downloading update (4,966 of 9,642 KB)...<br />
[ 51%] Downloading update (5,337 of 9,642 KB)...
+
[ 51%] Downloading update (5,337 of 9,642 KB)...<br />
[ 55%] Downloading update (5,732 of 9,642 KB)...
+
[ 55%] Downloading update (5,732 of 9,642 KB)...<br />
[ 59%] Downloading update (6,101 of 9,642 KB)...
+
[ 59%] Downloading update (6,101 of 9,642 KB)...<br />
[ 63%] Downloading update (6,517 of 9,642 KB)...
+
[ 63%] Downloading update (6,517 of 9,642 KB)...<br />
[ 67%] Downloading update (6,924 of 9,642 KB)...
+
[ 67%] Downloading update (6,924 of 9,642 KB)...<br />
[ 71%] Downloading update (7,283 of 9,642 KB)...
+
[ 71%] Downloading update (7,283 of 9,642 KB)...<br />
[ 75%] Downloading update (7,623 of 9,642 KB)...
+
[ 75%] Downloading update (7,623 of 9,642 KB)...<br />
[ 79%] Downloading update (8,015 of 9,642 KB)...
+
[ 79%] Downloading update (8,015 of 9,642 KB)...<br />
[ 83%] Downloading update (8,387 of 9,642 KB)...
+
[ 83%] Downloading update (8,387 of 9,642 KB)...<br />
[ 86%] Downloading update (8,739 of 9,642 KB)...
+
[ 86%] Downloading update (8,739 of 9,642 KB)...<br />
[ 90%] Downloading update (9,153 of 9,642 KB)...
+
[ 90%] Downloading update (9,153 of 9,642 KB)...<br />
[ 94%] Downloading update (9,524 of 9,642 KB)...
+
[ 94%] Downloading update (9,524 of 9,642 KB)...<br />
[ 98%] Downloading update (9,642 of 9,642 KB)...
+
[ 98%] Downloading update (9,642 of 9,642 KB)...<br />
[100%] Download Complete.
+
[100%] Download Complete.<br />
[----] Applying update...
+
[----] Applying update...<br />
[----] Extracting package...
+
[----] Extracting package...<br />
[----] Extracting package...
+
[----] Extracting package...<br />
[----] Extracting package...
+
[----] Extracting package...<br />
[----] Extracting package...
+
[----] Extracting package...<br />
[----] Extracting package...
+
[----] Extracting package...<br />
[----] Installing update...
+
[----] Installing update...<br />
[----] Installing update...
+
[----] Installing update...<br />
[----] Installing update...
+
[----] Installing update...<br />
[----] Cleaning up...
+
[----] Cleaning up...<br />
[----] Update complete, launching...
+
[----] Update complete, launching...<br />
Redirecting stderr to 'B:\steamcmd\logs\stderr.txt'
+
Redirecting stderr to 'B:\steamcmd\logs\stderr.txt'<br />
[  0%] Recherche de nouvelles mises à jour...
+
[  0%] Recherche de nouvelles mises à jour...<br />
[----] Vérification de l'installation...
+
[----] Vérification de l'installation...<br />
[  0%] Téléchargement de la mise à jour...
+
[  0%] Téléchargement de la mise à jour...<br />
[  0%] Recherche de nouvelles mises à jour...
+
[  0%] Recherche de nouvelles mises à jour...<br />
[----] Téléchargement : (0 sur 6,216 Ko)
+
[----] Téléchargement : (0 sur 6,216 Ko)<br />
[  0%] Téléchargement : (151 sur 6,216 Ko)
+
[  0%] Téléchargement : (151 sur 6,216 Ko)<br />
[  2%] Téléchargement : (153 sur 6,216 Ko)
+
[  2%] Téléchargement : (153 sur 6,216 Ko)<br />
[  2%] Téléchargement : (153 sur 6,216 Ko)
+
[  2%] Téléchargement : (153 sur 6,216 Ko)<br />
[  2%] Téléchargement : (416 sur 6,216 Ko)
+
[  2%] Téléchargement : (416 sur 6,216 Ko)<br />
[  6%] Téléchargement : (911 sur 6,216 Ko)
+
[  6%] Téléchargement : (911 sur 6,216 Ko)<br />
[ 14%] Téléchargement : (1,316 sur 6,216 Ko)
+
[ 14%] Téléchargement : (1,316 sur 6,216 Ko)<br />
[ 21%] Téléchargement : (1,650 sur 6,216 Ko)
+
[ 21%] Téléchargement : (1,650 sur 6,216 Ko)<br />
[ 26%] Téléchargement : (1,985 sur 6,216 Ko)
+
[ 26%] Téléchargement : (1,985 sur 6,216 Ko)<br />
[ 31%] Téléchargement : (2,378 sur 6,216 Ko)
+
[ 31%] Téléchargement : (2,378 sur 6,216 Ko)<br />
[ 38%] Téléchargement : (2,728 sur 6,216 Ko)
+
[ 38%] Téléchargement : (2,728 sur 6,216 Ko)<br />
[ 43%] Téléchargement : (3,107 sur 6,216 Ko)
+
[ 43%] Téléchargement : (3,107 sur 6,216 Ko)<br />
[ 49%] Téléchargement : (3,687 sur 6,216 Ko)
+
[ 49%] Téléchargement : (3,687 sur 6,216 Ko)<br />
[ 59%] Téléchargement : (4,095 sur 6,216 Ko)
+
[ 59%] Téléchargement : (4,095 sur 6,216 Ko)<br />
[ 65%] Téléchargement : (4,441 sur 6,216 Ko)
+
[ 65%] Téléchargement : (4,441 sur 6,216 Ko)<br />
[ 71%] Téléchargement : (4,839 sur 6,216 Ko)
+
[ 71%] Téléchargement : (4,839 sur 6,216 Ko)<br />
[ 77%] Téléchargement : (5,200 sur 6,216 Ko)
+
[ 77%] Téléchargement : (5,200 sur 6,216 Ko)<br />
[ 83%] Téléchargement : (5,548 sur 6,216 Ko)
+
[ 83%] Téléchargement : (5,548 sur 6,216 Ko)<br />
[ 89%] Téléchargement : (5,940 sur 6,216 Ko)
+
[ 89%] Téléchargement : (5,940 sur 6,216 Ko)<br />
[ 95%] Téléchargement : (6,216 sur 6,216 Ko)
+
[ 95%] Téléchargement : (6,216 sur 6,216 Ko)<br />
[100%] Téléchargement terminé.
+
[100%] Téléchargement terminé.<br />
[----] Extraction du package...
+
[----] Extraction du package...<br />
[----] Extraction du package...
+
[----] Extraction du package...<br />
[----] Extraction du package...
+
[----] Extraction du package...<br />
[----] Extraction du package...
+
[----] Extraction du package...<br />
[----] Extraction du package...
+
[----] Extraction du package...<br />
[----] Installation de la mise à jour...
+
[----] Installation de la mise à jour...<br />
[----] Installation de la mise à jour...
+
[----] Installation de la mise à jour...<br />
[----] Installation de la mise à jour...
+
[----] Installation de la mise à jour...<br />
[----] Nettoyage des fichiers...
+
[----] Nettoyage des fichiers...<br />
[----] Mise à jour terminée. Lancement de Steamcmd...
+
[----] Mise à jour terminée. Lancement de Steamcmd...<br />
Redirecting stderr to 'B:\steamcmd\logs\stderr.txt'
+
Redirecting stderr to 'B:\steamcmd\logs\stderr.txt'<br />
[  0%] Recherche de nouvelles mises à jour...
+
[  0%] Recherche de nouvelles mises à jour...<br />
[----] Vérification de l'installation...
+
[----] Vérification de l'installation...<br />
Steam Console Client (c) Valve Corporation
+
Steam Console Client (c) Valve Corporation<br />
-- type 'quit' to exit --
+
-- type 'quit' to exit --<br />
Loading Steam API...OK.
+
Loading Steam API...OK.<br /><br />
  
 
Steam>
 
Steam>
Ligne 123 : Ligne 123 :
 
Pour le mettre à jour :
 
Pour le mettre à jour :
 
   {{command|app_update 258550}}
 
   {{command|app_update 258550}}
 
  
 
=<font color="blue">Démarrer le serveur / Configuration</font>=
 
=<font color="blue">Démarrer le serveur / Configuration</font>=

Version du 17 octobre 2017 à 11:24

Introduction

Installer un serveur Rust sur Windows.

Requis

* Processeur avec 4 / 8 coeurs à 3.5 Ghz
* 6 Go de mémoire minimum (la quantité de mémoire ne doit pas être celle de votre PC mais bien la quantité non utilisée par votre PC)
* un débit ascendant égale ou supérieur à 25mb/s (ce qui correspond environ à 2 à 3 Mo/s)
* Un logiciel de décompression (WinRar, 7Zip etc..)
* 15 Go d'espace disque libre (SSD de préférence)

Installation

Télécharger puis extraire l'archive SteamCMD

Double cliquez sur le fichier steamcmd.exe se situant dans le dossier steamcmd.

SteamCMD se met à jour :

Redirecting stderr to 'B:\steamcmd\logs\stderr.txt'
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
ILocalize::AddFile() failed to load file "public/steambootstrapper_french.txt".
[ 0%] Checking for available update...
[----] Downloading update (0 of 9,642 KB)...
[ 0%] Downloading update (210 of 9,642 KB)...
[ 2%] Downloading update (648 of 9,642 KB)...
[ 6%] Downloading update (1,046 of 9,642 KB)...
[ 10%] Downloading update (1,394 of 9,642 KB)...
[ 14%] Downloading update (1,843 of 9,642 KB)...
[ 19%] Downloading update (2,212 of 9,642 KB)...
[ 22%] Downloading update (2,586 of 9,642 KB)...
[ 26%] Downloading update (3,002 of 9,642 KB)...
[ 31%] Downloading update (3,372 of 9,642 KB)...
[ 34%] Downloading update (3,788 of 9,642 KB)...
[ 39%] Downloading update (4,181 of 9,642 KB)...
[ 43%] Downloading update (4,597 of 9,642 KB)...
[ 47%] Downloading update (4,966 of 9,642 KB)...
[ 51%] Downloading update (5,337 of 9,642 KB)...
[ 55%] Downloading update (5,732 of 9,642 KB)...
[ 59%] Downloading update (6,101 of 9,642 KB)...
[ 63%] Downloading update (6,517 of 9,642 KB)...
[ 67%] Downloading update (6,924 of 9,642 KB)...
[ 71%] Downloading update (7,283 of 9,642 KB)...
[ 75%] Downloading update (7,623 of 9,642 KB)...
[ 79%] Downloading update (8,015 of 9,642 KB)...
[ 83%] Downloading update (8,387 of 9,642 KB)...
[ 86%] Downloading update (8,739 of 9,642 KB)...
[ 90%] Downloading update (9,153 of 9,642 KB)...
[ 94%] Downloading update (9,524 of 9,642 KB)...
[ 98%] Downloading update (9,642 of 9,642 KB)...
[100%] Download Complete.
[----] Applying update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching...
Redirecting stderr to 'B:\steamcmd\logs\stderr.txt'
[ 0%] Recherche de nouvelles mises à jour...
[----] Vérification de l'installation...
[ 0%] Téléchargement de la mise à jour...
[ 0%] Recherche de nouvelles mises à jour...
[----] Téléchargement : (0 sur 6,216 Ko)
[ 0%] Téléchargement : (151 sur 6,216 Ko)
[ 2%] Téléchargement : (153 sur 6,216 Ko)
[ 2%] Téléchargement : (153 sur 6,216 Ko)
[ 2%] Téléchargement : (416 sur 6,216 Ko)
[ 6%] Téléchargement : (911 sur 6,216 Ko)
[ 14%] Téléchargement : (1,316 sur 6,216 Ko)
[ 21%] Téléchargement : (1,650 sur 6,216 Ko)
[ 26%] Téléchargement : (1,985 sur 6,216 Ko)
[ 31%] Téléchargement : (2,378 sur 6,216 Ko)
[ 38%] Téléchargement : (2,728 sur 6,216 Ko)
[ 43%] Téléchargement : (3,107 sur 6,216 Ko)
[ 49%] Téléchargement : (3,687 sur 6,216 Ko)
[ 59%] Téléchargement : (4,095 sur 6,216 Ko)
[ 65%] Téléchargement : (4,441 sur 6,216 Ko)
[ 71%] Téléchargement : (4,839 sur 6,216 Ko)
[ 77%] Téléchargement : (5,200 sur 6,216 Ko)
[ 83%] Téléchargement : (5,548 sur 6,216 Ko)
[ 89%] Téléchargement : (5,940 sur 6,216 Ko)
[ 95%] Téléchargement : (6,216 sur 6,216 Ko)
[100%] Téléchargement terminé.
[----] Extraction du package...
[----] Extraction du package...
[----] Extraction du package...
[----] Extraction du package...
[----] Extraction du package...
[----] Installation de la mise à jour...
[----] Installation de la mise à jour...
[----] Installation de la mise à jour...
[----] Nettoyage des fichiers...
[----] Mise à jour terminée. Lancement de Steamcmd...
Redirecting stderr to 'B:\steamcmd\logs\stderr.txt'
[ 0%] Recherche de nouvelles mises à jour...
[----] Vérification de l'installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.

Steam>

On se connecte à Steam

Command
login anonymous

On installe le serveur dans B:\ServeurRust (peut être différent pour vous)

Command
force_install_dir B:\ServeurRust

On met à jour le serveur

Command
app_update 258550

Quand c'est terminé, on quitte

Command
quit


Pour le mettre à jour :

Command
app_update 258550

Démarrer le serveur / Configuration

Script de lancement du serveur

Script de lancement du serveur dédié

Mettre à jour automatiquement

Dans le répertoire B:\ServeurRust, créer les fichiers maj_rust.txt et maj_rust.bat:
maj_rust.bat
@ECHO OFF

set _path_steamcmd=B:\steamcmd set _path_server=B:\ServeurRust cd /d %_path_steamcmd% cmd /c steamcmd.exe +runscript %_path_server%\maj_rust.txt exit

maj_rust.txt
@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir B:\ServeurRust
app_update 258550 validate
quit


Ajouter ceci dans la ligne de lancement du serveur :

-steam_dir B:\steamcmd -steamcmd_script B:\ServeurRust\maj_rust.txt -autoupdate

Un exemple:
./srcds_run -console -game cstrike +maxplayers 18 +map de_dust2 -steam_dir /home/serveur/steamcmd_linux -steamcmd_script /home/serveur/serv_01/serv01_update.txt -autoupdate

Les commandes

Warning.pngEn cours de modification !Warning.png


Placez vous dans le répertoire /etc/init.d en ROOT :

  • ./css.sh start Démarre le serveur (Faite le uniquement si il n'est pas lancé.)
  • ./css.sh stop Stop le serveur
  • ./css.sh restart Redémarre le serveur

Astuces

  • Dans le répertoire /home/serveur/serv_01, un fichier screenlog.0 sera créé et il contiendra tout les logs du serveur.


F.A.Q

Q: Quels sont les ports à ouvrir ?

R: Voici la liste fournis par Valve :

Steam Client

UDP 27000 to 27015 inclusive (Game client traffic)
UDP 27015 to 27030 inclusive (Typically Matchmaking and HLTV)
TCP 27014 to 27050 inclusive (Steam downloads)
UDP 27031 and 27036 (incoming, for In-Home Streaming)
TCP 27036 and 27037 (incoming, for In-Home Streaming)
UDP 4380


Dedicated or Listen Servers

TCP 27015 (SRCDS Rcon port)


Steamworks P2P Networking and Steam Voice Chat

UDP 3478 (Outbound)
UDP 4379 (Outbound)
UDP 4380 (Outbound)


Additional Ports for Call of Duty: Modern Warfare 2 Multiplayer

UDP 1500 (outbound)
UDP 3005 (outbound)
UDP 3101 (outbound)
UDP 28960

Q: Le serveur ne redémarre pas lorsque j'exécute la commande quit.

R: Il vous faudra faire ceci :

A la racine de chaque serveur de jeu (là où il y a le fichier srcds_run), créez le fichier votre_fichier_update.txt :

 nano /home/wiki/serv00_l4d2/serv00_l4d2_update.txt

et copier/coller ceci :
@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir /chemin_de_votre_serveur
app_update 222860
quit

et la ligne de lancement devra contenir le paramètre -steam_dir et -steamcmd_script.

Un exemple : ./srcds_run -console -game left4dead2 +ip VOTRE_IP -port 27020 -nowatchdog +map c8m2_subway -steam_dir /home/wiki/steamcmd -steamcmd_script /home/wiki/serv00_l4d2/serv00_l4d2_update.txt -autoupdate

Pensez à modifier les chemins etc...


Q: J'obtiens le message /home/wiki/steamcmd/linux32/steamcmd: Permission non accordée lors de l'exécution de ./steamcmd.sh.

R: Appliquez un chmod : chmod -R 755 *

Q: Mon serveur reste figé sur Network: IP MON_IP, mode MP, dedicated Yes, ports MON_PORT SV / 27005 CL

R: Je n'ai pas réellement la solution mais vous pouvez vérifier que le port ne soit pas utilisé : lsof -i:27015 ou sudo lsof -i:27015

Si le port n'est pas utilisé, je ne peux pas vous en dire d'avantage ^^