что такое dedicated server в steam
Что такое dedicated server в steam
Данное руководство написано исключительно мной, и все пункты проделанные в данном руководстве работоспособные и лично выполнены мной, и привели к стабильно работающем серверу игры.
Исполнение данного руководства было выполнено на VDS (англ. virtual dedicated server), виртуальный выделенный сервер — у одного из выбранных мной хостинг провайдеров.
Данное руководство не гарантирует корректное подключение к серверу если сам сервер запущен на локальной машине (персональном ПК без белого IP).
Для начала скачиваем на свой ПК SteamCMD с официально сайта официального сайта developer valvesoftware или скачиваем его прямо с сервера.
Переходим в папку сервера и находим файл start_headless_server.bat копируем его в этой же папке и называем по другому (например start.bat)
Открываем его текстовым редактором и получаем следующее содержимое:
После открытия портов и настройки сервера время его запускать.
Возвращаемся в папку сервера и запускаем start.bat
После успешного запуска сервера в консоли вы должны увидеть надпись «Game server connected» и примерно следующее:
Обновление сервера производить когда тот отключен, так как возможна вероятность забаговывания сохранений.
Если сервер работает, к серверу можно подключиться двумя способами.
1. Перейдите в Steam > Вид > Серверы > Избранное > Добавить сервер.
2. Вбить IP адрес сервера
3. Зайти в игру для выбора героя, сворачиваем
4. Обновлять несколько раз до того момента пока не появится НАЗВАНТЕ_ВАШЕГО_СЕРВЕРА
5. Нажать два раза на сервер и вводим пароль (если он стоит на сервере) и нажимаем подключиться
6. Разворачиваем игру, нажимаем «Начать»
Что такое dedicated server в steam
1. Скачать в Steam’е инструмент из вашей библиотеки Don’t Starve Together Dedicated Server. Он добавляется автоматически в вашу библиотеку инструментов при покупке игры. Качайте его в ту же папку Стима, где хранятся все ваши игры (он будет отдельной папкой лежать около самой игры DST). Это ПО весит пару гигабайт.
3. Генерируйте серверный токен (файл) на сайте разработчиков игры (через консоль генерация не работала у меня в 2020 году, как просят делать в других мануалах).
Сайт разработчиков: https://accounts.klei.com/account/game/list
У игры DST выбрать «игровые серверы» и сгенерировать файл.
Вводите просто цифры, жметё ENTER, ВЫЛЕЗЕТ JavaScript-окошко с просьбой ввести логин и пароль от вашего маршрутизатора, чтобы предоставить вам доступ к его настройкам. Обычно производители как логин и пароль указывают admin и admin.
2. Заходите в соответствующий раздел для вычисления ip-адреса вашего ПК.
Нашли ip-адрес? Заходите в соответствующий раздел для добавления нового порта:
Это просто настройка порта. Здесь нужно будет ввести ip-адрес вашего ПК, на котором будет запущен dedicated-сервер DST.
Вот отсюда я брал номер порта, который добавлял в своём маршрутизаторе:
Готово.
Осталось прописать правила брандмаузеру. Я делал всё так, как по ссылке «https://ru.wargaming.net/support/ru/products/wows/article/15528/». Опишу свои действия подробно:
1. Открыть в окне «выполнить» команду «firewall.cpl» (правой кнопкой по кнопке Пуск->Выполнить и ввести firewall.cpl). Зайти в раздел «дополнительные параметры». И вот оно окно правил брандмаузера справа.
2. Вам нужно создать всего 4 правила.
Это 2 правила (TCP и UPD) для ВХОДЯЩИХ ПОДКЛЮЧЕНИЙ с именем DST TCP и DST UDP, и 2 правила для ИСХОДЯЩИХ ПОДКЛЮЧЕНИЙ с такими же именами (DST TCP и DST UDP).
Далее запускаете саму DST. Найти вашу игру можно в окне общих игр отсортировав «по лучшему соединению», у вас должен быть пинг около 3-15 мс.
Что такое dedicated server в steam
This is required to fix the «Unpure client detected» bug.
NOTE: DON’T uncomment net_ip and don’t set it. It is bugged and causes unexpected results, one of them being the server not appearing in Steam’s serverlist and not accepting connections, even direct connections.
This bug happens when the server stays alive for too much time. The server will use 100% of one core even when being inactive, thus overloading one of your VPS’s cores.
An easy way to prevent that, is automatically restarting the server every 24 hours. Easy batch script to close the server every 24 hours:
The server might stop working / crash for some reason. That just happens, like it could happen with many other game servers.
The problem is that when the server crashes, a window saying «Quake Live has stopped working» pops up in your server. This message waits for user input to click on «Close the program».
When this message appears, your autorestart script will stop working and won’t detect the crash until the user clicks on «Close the program».
If you have any problems or questions feel free to comment below.
Что такое dedicated server в steam
This guide will show you, how to setup a Dedicated Server with SteamCMD.
INFO: Please make sure, to have opened your Ports!
TCP/UDP: 27015-27050
I also created a tool, that automates the installation process. You can find this tool here:
https://steamcommunity.com/groups/ServerTool
Remember, that it needs to have this name: «server.cfg»
10) Thats it. Have fun!
Note:
Please keep in mind that you need to open your ports so that other players can connect or you simply use a VPN-Tool like Hamachi.
By now there should be an «addons» folder.
Now you need Sourcemod, you can get this here. [www.sourcemod.net]
You can also get the Plugins from there later.
Also extract that in this folder:
For the following you will need your SteamID, you can find yours out here:
http://steamidfinder.com
To configurate an admin, go to:
If you have configurate it, write in the chat «!admin» or in the console «sm_admin» to open the menu.
And that´s it! Have fun! ^_^
I can not see my server / No one can connect to my server
Please make sure, that you have opened all the required ports in your router. If the everything is set correctly, but the problem still occurs, please contact your internet provider.
Or look for your router model here:
https://portforward.com/router.htm
Is there another way instead of opening the ports?
Yes, you can also host your server through a VPN network like «Hamachi». Of course only the people in the VPN network will be able to join the server then.
If forwarding your ports doesn´t work, please contact your ISP, i won´t be able to help you.
How can i change my server port?
Just edit the bat file with «-port 27015»
The SteamCMD download failed! What should I do now?
Mostly you just need to retry the download, then the problem should be fixed.
How do I update my server?
Just open the SteamCMD and login again, then retry the Step «Downloading the files» it will be checked which files need to be updated.
Что такое dedicated server в steam
This guide is for anyone who wants to host their own Garry’s Mod server. It is quite technical in parts but should be simple enough to follow.
I made this guide so there is a complete, start to finish guide, covering the entire process.
Any sections surrounded by angled brackets «<>» should be modified to suit your use-case / need.
The first step of all Garry’s Mod server installations is to download SteamCMD. SteamCMD is a command line utility program created by Valve to making downloading and updating servers and content easy.
Instead of having to manually type out each command when downloading or updating your server it is a good idea to write a update script.
Create a file with a name like «update_gmod.txt»
Inside write the following:
app_update 4020 validate quit
Garry’s Mod dedicated servers don’t require you to own the game to allow installation. Therefore we get away with using «login anonymous».
If successful you will see «Success! App ‘4020’ fully installed.». Otherwise read the error, check the troubleshooting section and, if need be, google it.
To get content such as Counter Strike: Source you will need to download it through SteamCMD just like you downloaded the dedicated server.
It is advised that you make two different update files; one for anonymous downloads, and another for ones where login is required. See below for example layouts:
/sharedcontent app_update 232250 validate force_install_dir
/sharedcontent app_update 232330 validate exit
/sharedcontent app_update 420 validate force_install_dir
/sharedcontent app_update 220 validate force_install_dir
/sharedcontent app_update 380 validate exit
You may need to own the game on the account you use for the login-required content items
App IDs and other information
Locate the mount.cfg file. It is located at /garrysmod/cfg.
For each piece of content added you must add a new line with its path as shown below:
/sharedcontent/tf» //TF2 «episodic» «
/sharedcontent/episodic» //HL2 Episode 1 «cstrike» «
/sharedcontent/cstrike» //CSS «ep2» «
/sharedcontent/ep2″ //HL2 Episode 2 «hl2» «
IMPORTANT: Do not add slashes to the end of file paths
There are several ways of adding addons to your server and having it downloaded by players who connect; each has its strength and weaknesses. In order to be consise we will use the simplest method.
Advanced Usage
If you plan on adding lots of addons of various types you can make multiple collections, each of a separate type then add each of those collections to a parent collection.
To load the collection for your server you will need to register an API key.
DO NOT SHARE THIS KEY
Later, when you come to start the server, you will need to tell it which collection to load.
You will need the collection ID. You can find this in the page URL by looking at the URL bar or by clicking «Share» and copying the number at the end.
You will also need your API key.
These are the parameters you will need to add to your start script