Установка серверов через SteamCMD (Windows): различия между версиями
Nikita (обсуждение | вклад) (Новая страница: «== Загрузка и запуск утилиты SteamCMD == # Загрузите утилиту SteamCMD по следующей ссылке - [http://med…») |
(→Поддерживаемые App_ID в SteamCMD) |
||
(не показаны 2 промежуточные версии 1 участника) | |||
Строка 23: | Строка 23: | ||
app_update 90 validate | app_update 90 validate | ||
''где 90 - steam_app_id нашей игры, в данном случае это Half-Life Dedicated Server'' | ''где 90 - steam_app_id нашей игры, в данном случае это Half-Life Dedicated Server'' | ||
+ | |||
+ | == Поддерживаемые App_ID в SteamCMD == | ||
+ | |||
+ | Если Вы устанавливаете не Half-Life или Counte-Strike сервер, то в этом случае нужно изменить лишь App ID, на данный момент имеются следующие App ID | ||
+ | |||
+ | {| class="wide" border="0" | ||
+ | |- | ||
+ | ! Сервер | ||
+ | ! scope="col" style="width: 7em" | ID | ||
+ | ! Дополнительная команда | ||
+ | |- | ||
+ | | HLDS for [[Half-Life]] and [[Counter-Strike 1.6]] | ||
+ | | 90 | ||
+ | |- | ||
+ | | [[Counter-Strike: Condition Zero]] ''Beta'' dedicated server | ||
+ | | 90 | ||
+ | | +app_set_config "90 mod czero" | ||
+ | |- | ||
+ | | [[Deathmatch Classic]] ''Beta'' dedicated server | ||
+ | | 90 | ||
+ | | +app_set_config "90 mod dmc" | ||
+ | |- | ||
+ | | [[Day of Defeat]] dedicated server | ||
+ | | 90 | ||
+ | | +app_set_config "90 mod dod" | ||
+ | |- | ||
+ | | [[Half-Life: Opposing Force]] ''Beta'' dedicated server | ||
+ | | 90 | ||
+ | | +app_set_config "90 mod gearbox" | ||
+ | |- | ||
+ | | [[Ricochet]] ''Beta'' dedicated server | ||
+ | | 90 | ||
+ | | +app_set_config "90 mod ricochet" | ||
+ | |- | ||
+ | | [[Team Fortress Classic]] ''Beta'' dedicated server | ||
+ | | 90 | ||
+ | | +app_set_config "90 mod tfc" | ||
+ | |- | ||
+ | | [[Counter-Strike: Global Offensive]] dedicated server | ||
+ | | 740 | ||
+ | | | ||
+ | |- | ||
+ | | [[The Ship]] dedicated server | ||
+ | | 2403 | ||
+ | | | ||
+ | |- | ||
+ | | [[Garry's Mod]] dedicated server | ||
+ | | 4020 | ||
+ | | | ||
+ | |- | ||
+ | | [[Natural Selection 2]] dedicated server | ||
+ | | 4940 | ||
+ | | | ||
+ | |- | ||
+ | | [[Natural Selection 2]] ''Beta'' dedicated server | ||
+ | | 4940 | ||
+ | | -beta beta | ||
+ | |- | ||
+ | | [[Serious Sam 3]] dedicated server | ||
+ | | 41080 | ||
+ | | | ||
+ | |- | ||
+ | | [[Nuclear Dawn]] dedicated server | ||
+ | | 111710 | ||
+ | | | ||
+ | |- | ||
+ | | [[Red Orchestra: Ostfront 41-45]] Windows dedicated server | ||
+ | | 223240 | ||
+ | | | ||
+ | |- | ||
+ | | [[Red Orchestra: Ostfront 41-45]] Linux dedicated server | ||
+ | | 223250 | ||
+ | | | ||
+ | |- | ||
+ | | [[Red Orchestra 2: Heroes of Stalingrad]] and [[Rising Storm]] Windows dedicated server | ||
+ | | 212542 | ||
+ | | | ||
+ | |- | ||
+ | | [[Killing Floor]] Windows dedicated server | ||
+ | | 215350 | ||
+ | | | ||
+ | |- | ||
+ | | [[Killing Floor]] Linux dedicated server | ||
+ | | 215360 | ||
+ | | | ||
+ | |- | ||
+ | | [[Left 4 Dead 2]] dedicated server | ||
+ | | 222860 | ||
+ | | | ||
+ | |- | ||
+ | | [[Team Fortress 2]] dedicated server | ||
+ | | 232250 | ||
+ | | | ||
+ | |- | ||
+ | | [[Day of Defeat: Source]] dedicated server | ||
+ | | 232290 | ||
+ | | | ||
+ | |- | ||
+ | | [[Counter-Strike: Source]] dedicated server | ||
+ | | 232330 | ||
+ | | | ||
+ | |- | ||
+ | | [[Half-Life 2: Deathmatch]] dedicated server | ||
+ | | 232370 | ||
+ | | | ||
+ | |- | ||
+ | | [[Blade Symphony]] ''Beta'' dedicated server | ||
+ | | 228780 | ||
+ | | | ||
+ | |- | ||
+ | | Source SDK Base 2013 MP dedicated server | ||
+ | | 244310 | ||
+ | | | ||
+ | |- | ||
+ | | [[Half-Life Deathmatch: Source]] dedicated server | ||
+ | | 255470 | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | == Автоматизация == | ||
+ | |||
+ | Установку сервера можно автоматизировать, создав .bat файл в папке, в которое лежит файл steamcmd.exe | ||
+ | |||
+ | Создаем текстовый файл, вставляем в него содержимое ниже и переименовываем в server_install.bat | ||
+ | |||
+ | <pre> | ||
+ | ::=======================:: | ||
+ | :: SteamCMD Guardian 1.2 :: | ||
+ | :: ckynick254 :: | ||
+ | ::=======================:: | ||
+ | set programname=SteamCMD Guardian 1.1 | ||
+ | ::=======================:: | ||
+ | :: SET YOUR VARIABLES! :: | ||
+ | ::=======================:: | ||
+ | set servername= | ||
+ | set username= | ||
+ | set password= | ||
+ | ::=======================:: | ||
+ | :: Your folder :: | ||
+ | :: Replace after = :: | ||
+ | ::=======================:: | ||
+ | set runcmd=E:\Games\ | ||
+ | |||
+ | ::=======================:: | ||
+ | :: End of variables :: | ||
+ | ::=======================:: | ||
+ | |||
+ | :: This will keep the window clean and easy to read | ||
+ | @ECHO off | ||
+ | |||
+ | :: Sets the title of the window | ||
+ | title %programname% - %servername% | ||
+ | |||
+ | :: Clears the window incase there is anything there | ||
+ | cls | ||
+ | COLOR 1f | ||
+ | CD %runcmd% | ||
+ | |||
+ | :: Prints to the window what we are doing | ||
+ | ECHO %programname% has been started! | ||
+ | :start | ||
+ | ECHO. | ||
+ | ECHO. | ||
+ | ECHO ############################################################## | ||
+ | ECHO # Dedicated Server # | ||
+ | ECHO # 1 - Half-Life: Deathmatch and Counter-Strike # | ||
+ | ECHO # 2 - Counter-Strike: Global Offensive # | ||
+ | ECHO # 3 - Nuclear Dawn Dedicated Server # | ||
+ | ECHO # 4 - Red Orchestra Dedicated Server # | ||
+ | ECHO # 5 - Red Orchestra 2: Heroes of Stalingrad Dedicated Server # | ||
+ | ECHO # 6 - Killing Floor Dedicated Server # | ||
+ | ECHO # 7 - Team Fortress 2 Dedicated Server Beta # | ||
+ | ECHO # 8 - HELP! # | ||
+ | ECHO # 9 - Exit # | ||
+ | ECHO ############################################################## | ||
+ | ECHO. | ||
+ | ECHO. | ||
+ | |||
+ | :: Delete variable %A% | ||
+ | SET "A=" | ||
+ | SET /P A=Set Your Choice And Press Enter: | ||
+ | ECHO Loading ......... | ||
+ | IF "%A%"=="1" set app=90 | ||
+ | IF "%A%"=="2" set app=740 | ||
+ | IF "%A%"=="3" set app=111710 | ||
+ | IF "%A%"=="4" set app=223240 | ||
+ | IF "%A%"=="5" set app=212542 | ||
+ | IF "%A%"=="6" set app=215350 | ||
+ | IF "%A%"=="7" set app=229830 | ||
+ | IF "%A%"=="8" ECHO. | ||
+ | IF "%A%"=="8" ECHO https://developer.valvesoftware.com/wiki/SteamCMD | ||
+ | IF "%A%"=="8" ECHO. | ||
+ | IF "%A%"=="8" PAUSE | ||
+ | IF "%A%"=="8" goto start | ||
+ | IF "%A%"=="9" EXIT | ||
+ | |||
+ | :: This is a return point in case the server crashes or is closed | ||
+ | :restart | ||
+ | ECHO. | ||
+ | ECHO (%date%)(%time%) %servername% is now ONLINE | ||
+ | ECHO Watching %servername% for crashes... | ||
+ | >> "%servername%.log" ECHO. | ||
+ | >> "%servername%.log" ECHO (%date%)(%time%) %servername% is now ONLINE | ||
+ | >> "%servername%.log" ECHO (%date%)(%time%) Watching %servername% for crashes... | ||
+ | |||
+ | ::Start the actual update window | ||
+ | start /wait steamcmd +login %username% %password% +force_install_dir %runcmd%%app%Server\ +app_update %app% validate | ||
+ | ECHO (%time%) WARNING: srcds closed or crashed, restarting. | ||
+ | ECHO. | ||
+ | ECHO (%date%)(%time%) Crash or Close detected! | ||
+ | ECHO %servername% is now restarting... | ||
+ | >> "%servername%.log" ECHO. | ||
+ | >> "%servername%.log" ECHO (%date%)(%time%) Crash or Close detected! | ||
+ | >> "%servername%.log" ECHO (%date%)(%time%) %servername% is now restarting... | ||
+ | |||
+ | ::Server crashed or closed, so we point it to the return point to start the server again | ||
+ | GOTO restart | ||
+ | </pre> | ||
+ | |||
+ | == Ссылки == | ||
+ | * [https://developer.valvesoftware.com/wiki/SteamCMD Информация с официального сайта (англ.)] | ||
+ | * [https://developer.valvesoftware.com/wiki/SteamCMD:ru Информация с официального сайта (рус.)] |
Текущая версия на 16:53, 9 октября 2013
Содержание
Загрузка и запуск утилиты SteamCMD
- Загрузите утилиту SteamCMD по следующей ссылке - steamcmd_win32
- Распакуйте содержимое в любую удобную папку. Не стоит распаковывать в папку Steam
- Запустите файл steamcmd.exe
Установка сервера
Начнется скачивание и проверка последних обновлений для нашего SteamCMD. После завершения обновления, мы войдем в командную строку Steam
Теперь нужно войти в аккаунт Steam
login <логин> <пароль>
Если у Вас включен SteamGuard, то на электронную почту придет сообщение с кодом подтверждения, его нужно ввести.
Для скачивания серверов можно не входить в свой аккаунт Steam, а воспользоваться анонимом.
login anonymous
После этого указываем директорию, в которую нужно устанавливать сервер.
force_install_dir ./hl/
где hl - папка в которой будет находится сервер
Приступаем к установке самого сервера
app_update 90 validate
где 90 - steam_app_id нашей игры, в данном случае это Half-Life Dedicated Server
Поддерживаемые App_ID в SteamCMD
Если Вы устанавливаете не Half-Life или Counte-Strike сервер, то в этом случае нужно изменить лишь App ID, на данный момент имеются следующие App ID
Сервер | ID | Дополнительная команда |
---|---|---|
HLDS for Half-Life and Counter-Strike 1.6 | 90 | |
Counter-Strike: Condition Zero Beta dedicated server | 90 | +app_set_config "90 mod czero" |
Deathmatch Classic Beta dedicated server | 90 | +app_set_config "90 mod dmc" |
Day of Defeat dedicated server | 90 | +app_set_config "90 mod dod" |
Half-Life: Opposing Force Beta dedicated server | 90 | +app_set_config "90 mod gearbox" |
Ricochet Beta dedicated server | 90 | +app_set_config "90 mod ricochet" |
Team Fortress Classic Beta dedicated server | 90 | +app_set_config "90 mod tfc" |
Counter-Strike: Global Offensive dedicated server | 740 | |
The Ship dedicated server | 2403 | |
Garry's Mod dedicated server | 4020 | |
Natural Selection 2 dedicated server | 4940 | |
Natural Selection 2 Beta dedicated server | 4940 | -beta beta |
Serious Sam 3 dedicated server | 41080 | |
Nuclear Dawn dedicated server | 111710 | |
Red Orchestra: Ostfront 41-45 Windows dedicated server | 223240 | |
Red Orchestra: Ostfront 41-45 Linux dedicated server | 223250 | |
Red Orchestra 2: Heroes of Stalingrad and Rising Storm Windows dedicated server | 212542 | |
Killing Floor Windows dedicated server | 215350 | |
Killing Floor Linux dedicated server | 215360 | |
Left 4 Dead 2 dedicated server | 222860 | |
Team Fortress 2 dedicated server | 232250 | |
Day of Defeat: Source dedicated server | 232290 | |
Counter-Strike: Source dedicated server | 232330 | |
Half-Life 2: Deathmatch dedicated server | 232370 | |
Blade Symphony Beta dedicated server | 228780 | |
Source SDK Base 2013 MP dedicated server | 244310 | |
Half-Life Deathmatch: Source dedicated server | 255470 |
Автоматизация
Установку сервера можно автоматизировать, создав .bat файл в папке, в которое лежит файл steamcmd.exe
Создаем текстовый файл, вставляем в него содержимое ниже и переименовываем в server_install.bat
::=======================:: :: SteamCMD Guardian 1.2 :: :: ckynick254 :: ::=======================:: set programname=SteamCMD Guardian 1.1 ::=======================:: :: SET YOUR VARIABLES! :: ::=======================:: set servername= set username= set password= ::=======================:: :: Your folder :: :: Replace after = :: ::=======================:: set runcmd=E:\Games\ ::=======================:: :: End of variables :: ::=======================:: :: This will keep the window clean and easy to read @ECHO off :: Sets the title of the window title %programname% - %servername% :: Clears the window incase there is anything there cls COLOR 1f CD %runcmd% :: Prints to the window what we are doing ECHO %programname% has been started! :start ECHO. ECHO. ECHO ############################################################## ECHO # Dedicated Server # ECHO # 1 - Half-Life: Deathmatch and Counter-Strike # ECHO # 2 - Counter-Strike: Global Offensive # ECHO # 3 - Nuclear Dawn Dedicated Server # ECHO # 4 - Red Orchestra Dedicated Server # ECHO # 5 - Red Orchestra 2: Heroes of Stalingrad Dedicated Server # ECHO # 6 - Killing Floor Dedicated Server # ECHO # 7 - Team Fortress 2 Dedicated Server Beta # ECHO # 8 - HELP! # ECHO # 9 - Exit # ECHO ############################################################## ECHO. ECHO. :: Delete variable %A% SET "A=" SET /P A=Set Your Choice And Press Enter: ECHO Loading ......... IF "%A%"=="1" set app=90 IF "%A%"=="2" set app=740 IF "%A%"=="3" set app=111710 IF "%A%"=="4" set app=223240 IF "%A%"=="5" set app=212542 IF "%A%"=="6" set app=215350 IF "%A%"=="7" set app=229830 IF "%A%"=="8" ECHO. IF "%A%"=="8" ECHO https://developer.valvesoftware.com/wiki/SteamCMD IF "%A%"=="8" ECHO. IF "%A%"=="8" PAUSE IF "%A%"=="8" goto start IF "%A%"=="9" EXIT :: This is a return point in case the server crashes or is closed :restart ECHO. ECHO (%date%)(%time%) %servername% is now ONLINE ECHO Watching %servername% for crashes... >> "%servername%.log" ECHO. >> "%servername%.log" ECHO (%date%)(%time%) %servername% is now ONLINE >> "%servername%.log" ECHO (%date%)(%time%) Watching %servername% for crashes... ::Start the actual update window start /wait steamcmd +login %username% %password% +force_install_dir %runcmd%%app%Server\ +app_update %app% validate ECHO (%time%) WARNING: srcds closed or crashed, restarting. ECHO. ECHO (%date%)(%time%) Crash or Close detected! ECHO %servername% is now restarting... >> "%servername%.log" ECHO. >> "%servername%.log" ECHO (%date%)(%time%) Crash or Close detected! >> "%servername%.log" ECHO (%date%)(%time%) %servername% is now restarting... ::Server crashed or closed, so we point it to the return point to start the server again GOTO restart