стим кмд гаррис мод

Стим кмд гаррис мод

стим кмд гаррис мод

A tutorial on how to host a Garry’s Mod Server using SteamCMD, completely written from scratch. It will include: How to install the server, how to forward the port for it, and how to add workshop addons to it (and a bit more).

(Due to the amount of content in this guide, you might think that this is complicated, but trust me, it’s not. Once you have some good understanding, it’s very easy and you can run and manage a server flawlessly.)

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

стим кмд гаррис мод

First, you need to download SteamCMD, of course. This program is used to install the actual files for your server, and to install the Garry’s Mod files.

You can download SteamCMD here.
(Direct download link http ://media.steampowered(.)com/installer/steamcmd.zip)

Now, that SteamCMD is ready, we will begin installing the server.

First, you start off by logging in. Type this command in the command prompt that is currently open:

The command prompt should return this information:

After logging in, you have to determine the path where the server will be installed.
To do this, use this command:

If you want to set the path to something further than just the C:\ drive, then type out the path carefully, and make sure it contains no spaces, otherwise it will make seperate folders.

To install the Garry’s Mod files, type the following command in the prompt:

If you have quite slow internet, then this process could take about half an hour. Fast internet however can do this quickly in just a few minutes.

4020 is the ID of «Garry’s Mod Dedicated Server», not to be confused with 4000, which is the AppID of the game Garry’s Mod itself. http://steamdb.info/app/4020/

To add other game content to your server(e.g:TF2, DoD:S etc.), you have to use the app_update command again. You just have to change the ID 4020 to the ID of the game you want to mount, and change the force_install_dir as well (I recommend making a folder inside the server folder which you install it into). However, it is very likely that these install possibilities do not allow anonymous login. In this case, you have to login with your steam username and password.

Mostly copied from the valve developer wiki, only because it’s fairly useful material.
Only useful for updating your server.
You can also automate this process. There are 2 ways to do that:

Run the commands all at once:

+app_update 4020 validate +quit

If you are logging in with an account, use username password instead of «anonymous» at the +login command.

Then run this script with the +runscript command in SteamCMD:

Okay, our server is now installed. Now, we have to configure it, to make it fully work, and to keep things organized.
First thing you should do, is to configure the server.cfg file. This file is used to set the Sandbox limits, and to set all console commands that are getting automatically executed when the server is booting up.

This file is located here: drive name:/Program Files(x86)/yourfilepath/blah/steamcmd/garrysmod/cfg

An example of a server.cfg file would look like this:

//The lines are used to make big spaces, since using blank spaces does not work in Steam. Replace the lines with blank spaces, or press «TAB» around 6 times to make a big space.
«hostname»———————————————«My Garry’s Mod Sandbox Server»
«rcon_password»————————————-«serveradmin»
«sbox_noclip»——————————————«1» //Enables noclip
«sbox_maxprops»————————————«500»
«sbox_maxeffects»————————————«15»
«sbox_maxemitters»———————————«13»
«sbox_maxthrusters»———————————«30»
«sbox_maxsents»————————————«35»
//etc.
«sbox_playershurtplayers»————————-«1» //Enables PVP Damage
//And you can put in some different console commands which you want to be «autoexecuted»

(guys, just a note, you don’t have to necessarily use this one, it’s just an example :p
the minuses are there because you can’t have more than one space in a row in Steam, afaik. The spaces will work fine in any text editing program.)

Formated in a table:

An unconfigurated server.cfg file only contains 3 blank lines.

For better security, I recommend to put the RCON password into the parameter line of your srcds.exe shortcut with +rcon_password password.

To run your server, you must exit the «garrysmod» folder,and make a shortcut of the srcds.exe file.
Then, right click on the srcds.exe shortcut, click on «Properties», and enter this command line in the parameter line:

And then add the commands after it.
(Unfortunately I couldn’t change the language of Windows to English, becuase I don’t have the appropriate Windows 7 edition for that.)

Double-click the shortcut, and the server should run smoothly.

Simply doing these steps is not enough. The server seems to run, and you are able to join, but something else is missing. The server will not respond to your friends. When they try to join by joining your game, it will kick them because they «failed after 4 retries». This is because nobody but you, at the moment, has the permission to connect to your host. Port forwarding will not make your router settings accessible from anywhere, it will only make it possible for everyone to join your server, which is hidden behind a router wall.

What you have to do in steps:

1. Go to your desktop and open up your start menu.
2. Search for «cmd» in the search bar. A command prompt should open.
3. In the command prompt, type «ipconfig» and press ENTER.
4. A list of IPs, IDs and whatnot should appear. Search the «Ethernet Adaptor LAN» section.
5. When you found it, look up the Standard Gateway of that section, and remember it in any way.
6. Open up your web browser, type in the default gateway into the URL bar, and press enter. A login screen should appear, either a windows screen or a website login page.
7. Enter the login information for your router. If you don’t know the information, ask anyone who knows it or might know it, or look it up on your router box. If possible, use the default login «admin», for username and password.
8. Set up the port forward. For this, find a section for forwarding ports (it’s different on all router pages), and fill in all required values and information. You can set the Service Port as 27015-27016(Use 27015 only if only one port is required), the IP Address your IPv4 Address, and the Protocol «Any» or «All» or «TCP/UDP» (Again, depending on your router page).
9. Start up the port forward, and you’re done.

This step is entirely optional, it is not crucial for making anything work about your server. Setting up a static IP address is explained below.

Open up your command prompt, and run the command «ipconfig /all» without the quotes. Then, search the IPv4 Address of the Ethernet-Adaptor LAN Area or something like that, the Subnet Mask, and the Default Gateway. We will use this information later.

Next, open your start menu, and click on «Control Panel». Then, search the «Network and Internet» entry, and click on the button which should say something like «Show Network status».

After this, right click on «LAN-Connection», and then click on «Properties».
You should see a list of which Elements your connection uses. Double-click «Internet Protocol Version 4», and you should enter the IP Settings of it. After you have done this all, tick «Use the following IP-Address». Doing this should automaticly tick «Use the following DNS-Serveraddress:»
The IP-Address you insert is the static one. It should be very similiar to your actual IP address. Let’s say, your actual IP address is 192.168.2.255 (see what I did there?). In the box, you type in 192.168.2.248.
The Subnet Mask is the one you got from your ipconfig. Same with the Standard Gateway.
Now, you have to fill out the DNS Server addresses. To get the ones you need, you can log into your Router’s Webpage, and then view the Stats of your router. There should be an entry somewhere for DNS Servers.

To make it simple and clear, I listed up the steps you have to do to add workshop addons for your server:

An authkey is required to make +host_workshop_collection work. You can get one here.
You can use anything as the domain name.

You need to add the authkey to the parameter line as well. To do this, use this parameter:

Well, the addons might be on your server now, but all addons that have their own content will show error signs and checkerboard textures, and missing sounds, if the player doesn’t have the addon installed on their client. So we need to force a download of their content, in a way which will be explained below.

This is a list of the most commonly used and useful console commands which can be used to manage and configure your server to your likings.

That was all (or well, most) stuff I know about hosting a Garry’s Mod Server. If something went wrong during installing the server, then you can ask in the comments, and I, or someone else, can maybe help you solve the problem.

Italic = Question
Bold = Answer

What is the Parameter Line?
The Parameter Line is the «Target» line you have to type the parameters in.

IT IS NOT WORKING
That isn’t even a question, but well. If it doesn’t work, then point out WHAT doesn’t work, and I, or maybe someone can help you.

When I run app_update 4020 validate, it says «no subscription» and refuses to install the app. How do I fix that?
You have to log in anonymously by running the command «login anonymous» to make it work. You seem to have forgot to do this.

When I try to install the app, I get error «Error! App ‘4020’ is x after update job.» What does that mean?
That means, that the directory you determined with force_install_dir seems to be invalid. It may not be your client GMod directory, use a completely different one, and make sure it contains no spaces(this shouldn’t actually cause this error, but just to be safe, do not put any spaces into your directory). I recommend to use a completely new directory just for your server, to keep everything clean.

I get this error: [ERROR] lua/autorun/addons.lua:1: attempt to call field ‘AddWorkshop’ (a nil val
ue) when I make my lua file for downloading workshop content. What can I do about that?

Make sure the lua file is located in lua/autorun/server of your server files, and that you use «resource.AddWorkshop( «id» )» for marking all the workshop addons you want to be downloaded by the players.

My server is running, and I forwarded the port, but my friends still cannot join!
Seems like you port forwarded incorrectly. You can «experiment» with the values, try changing them a little, and it might work. I had this problem too, and I fixed it by doing this. Also, make sure that your Firewall is disabled. This isn’t required for everyone, but you should try disabling it.

Источник

SteamCMD

стим кмд гаррис мод стим кмд гаррис мод стим кмд гаррис мод стим кмд гаррис мод стим кмд гаррис мод стим кмд гаррис мод стим кмд гаррис модстим кмд гаррис мод стим кмд гаррис мод

Contents

Загрузка SteamCMD

Windows

1. Создайте папку для SteamCMD.

3. Извлеките содержимое zip-архива в созданную папку.

Linux

1. Сначала установите зависимости необходимые для запуска SteamCMD.

2. Рекомендуется создать отдельного пользователя для SteamCMD. В любом случае не запускайте из под root пользователя, это может быть не безопасно. Выполните следующие команды с root-правами чтобы создать пользователя steam и войти под ним:

3. Создайте директорию для SteamCMD и перейдите в неё.

3. Загрузите SteamCMD для Linux.

4. Извлеките содержимое в директорию.

1. Откройте Terminal.app и создайте директорию для SteamCMD.

2. Загрузите SteamCMD для OS X.

3. Извлеките содержимое в директорию.

Запуск SteamCMD

Windows

Откройте Командную строку и запустите SteamCMD.

Linux/OS X

Откройте терминал и запустите SteamCMD.

Вход в SteamCMD

Анонимно

Некоторые сервера можно загрузить анонимно.

С аккаунтом Steam

Однако большинство сервером требуют входа в аккаунт Steam.

Затем введите пароль.

Если Steam Guard активирован, то проверьте вашу электронную почту чтобы узнать код доступа Steam Guard и ввести его. Это требуется сделать только при первом входе (а также при удалении файлов где SteamCMD хранит регистрационную информацию).

Вы должны увидеть сообщение о том, что вы успешно вошли в свой аккаунт.

Загрузка приложения

1. Запустите SteamCMD и войдите.

2. Установите директорию установки приложения.

Например директорию с именем cs_go внутри текущей директории: т.е. директория с именеи cs_go Внутри данной директории:

HLDS это особый случай: App ID всегда 90 и мод должен быть выбран первым. Это делается путём установки параметра конфигурации приложения mod к запрашиваемому значению.

Пример: Установить и проверить выделенный сервер Counter-Strike: Global Offensive: Пример: Установить и проверить HLDS с Team Fortress Classic:

3. После завершения, введите quit чтобы правильно завершить сессию с серверами Steam.

Проверка целостности

Команда для проверки целостности всех файлов. Это полезно если они повреждены или отсутствуют.

Рекомендуется использовать эту команду только при начальной установке или если файлы сервера были изменены.

Поддерживаемые сервера

Список выделенных серверов содержит известные сервера, которые использует SteamCMD.

Автоматизация SteamCMD

Есть два способа для автоматизации SteamCMD.

Командная строка

Вводить команды в командной строке необходимо с символом плюс в качестве префикса, например:

Чтобы установить определённый мод для HL1, таких как Counter-Strike: Condition Zero:

Для игры которая требует авторизацию, такой как Killing Floor:

Создание сценариев

Кросс-платформенная установка

или использовать следующий сценарий:

Windows ПО/Сценарии

SteamCMD AutoUpdater

Установка и автоматическое обновление любого игрового сервера

condenser

condenser это загрузчик для установки, настройки, и запуска выделенных игровых серверов Steam.

SteamCMD GUI

Этот инструмент позволяет использовать SteamCMD на Windows, без командной строки и/или пакетных файлов.

SteamCMD Guardian 1.2

Посмотреть и загрузить можно здесь: http://pastebin.com/BRUbsGQh

Linux Сценарии

Linux Game Server Managers

стим кмд гаррис мод

Linux Game Server Managers приложение командной строки для быстрого, простого развёртывания и управления различных специализированных игровых серверов использующих SteamCMD.

Полный список серверов и инструкции: http://danielgibbs.co.uk/lgsm

SteamCMD Guardian 1.2

Следующий сценарий был протестирован на Debian Wheezy.

Посмотреть и загрузить можно здесь: http://pastebin.com/hcpMpmaZ

Для работы сценария необходимо достаточно свободного места. Предпочтительно использовать отдельно созданного пользователя (например steam) с его собственной домашней директорией (/home/steam). Необходимо войти под этим пользователем через SSH, tty или используя su.

Файл автоматически загрузит SteamCMD, обновит и установит все выбранные игры (до 4). Запустите файл повторно для обновления игр.

Известные проблемы

Failed to install app ‘xxxxxx’ (No subscription)

Если вы получаете ошибку ‘No subscription’, то необходимо войти под Steam аккаунтом в котором эта игра приобретена. См. Список выделенных серверов.

32-битные библиотеки на 64-битных дистрибутивах Linux

Так как SteamCMD это 32-битная программа, для запуска требуются некоторые 32-битные библиотеки, даже если у вас уже установлены 64-битные версии.

Может произойти следующая ошибка:

Решение зависит от вашего дистрибутива:

Дистрибутивы основанные на Debian (Ubuntu, Mint, и т.д.)

На Debian 7 «Wheezy» вы можете столкнуться с такой ошибкой:

Чтобы исправить это, выполните следующие действия:

Дистрибутивы основанные на Red Hat (RHEL, Fedora, CentOS, и т.д.)

Arch Linux

Не забудьте сначала включить репозиторий Multilib.

Login Failure: No Connection

На Linux вы можете получить ошибку «Login Failure: No Connection». Она связана с отсутствующими правилами iptables. Необходимо их прописать например вот так:

На серверах Windows вы можете столкнуться с ошибкой «SteamUpdater: Error: Download failed: http error 0» и «SteamUpdater: Error: Steam needs to be online to update. Please confirm your network connection and try again.». Это как правило решается установкой опции «Автоматическое определение параметров» в IE (Internet Explorer) через настройки локальной сети в меню Свойства браузера.

Попробуйте запустить SteamCMD снова. Если по-прежнему не работает, то попробуйте уменьшить свой Уровень безопасности для этой зоны на средний или ниже на вкладке Безопасность в Свойства браузера.

Ошибки запуска SteamCMD

Unable to locate a running instance of Steam

Вы можете получить следующее сообщение об ошибке при запуске сервера на Linux:

Решить проблему можно сделав символическую ссылку steamclient.so

Ошибка запуска ulimit Linux

Это может быть исправлено путём изменения ограничения на максимальное число открытых файлов ulimit:

В этом случае 1024 является текущим значением.

В большинстве случаев вы просто получите предупреждающее сообщение, однако это не остановит запуск SteamCMD.

Загрузка HLDS

При попытке скачать мод HL1, таких как TFC, сначала загружаются файлы HLDS, но не мод. Это происходит как с обычной версией так и с бета-версией. Вам, возможно, придётся пробовать скачать несколько раз, пока все необходимые файлы не будут загружены, но как только это будет сделано, файлы должны будут правильно обновиться в следующий раз.

Просто удалив файлы appmanifest, без загрузки замены из сторонних источников, это может сработать. Вы получите в начале сообщение об ошибке из-за удалённых файлов, но загрузка должна продолжится.

Источник

SteamCMD

стим кмд гаррис мод стим кмд гаррис мод стим кмд гаррис мод стим кмд гаррис мод стим кмд гаррис мод стим кмд гаррис мод стим кмд гаррис мод стим кмд гаррис мод

The Steam Console Client or SteamCMD is a command-line version of the Steam client. Its primary use is to install and update various dedicated servers available on Steam using a command-line interface. It works with games that use the SteamPipe content system. All games have been migrated from the deprecated HLDSUpdateTool to SteamCMD.

Contents

Downloading SteamCMD

Windows

1. Create a folder for SteamCMD.

3. Extract the contents of the zip to the folder.

Linux

1. As the root user, create the steam user:

2. Go into its home folder:

Package from repositories

1. It’s recommended to install the SteamCMD package from your distribution repositories, if available:

2. Link the steamcmd executable:

Docker

If your server is running Docker, you can simply use:

steamcmd.sh location: /home/steam/steamcmd

This image can be used as a base image for Steam-based dedicated servers. Example: https://hub.docker.com/r/cm2network/csgo/

You can find the associated Docker Hub page here: https://hub.docker.com/r/cm2network/steamcmd/

Manually

1. Before you begin, you must first install the dependencies required to run SteamCMD:

2. As the root user, escalate to the steam user:

If you’re not logging in as root and you instead use sudo to perform administration, escalate to the steam user as follows:

3. Create a directory for SteamCMD and switch to it.

4. Download and extract SteamCMD for Linux.

5. Install tmux and/or screen for easy server management

macOS

1. Open Terminal.app and create a directory for SteamCMD.

2. Download and extract SteamCMD for macOS.

Running SteamCMD

On first run, SteamCMD will automatically update and enter you into a Steam> prompt. Type help for more information.

Windows

Open a Command Prompt and start SteamCMD.

Linux/macOS

Open a terminal and start SteamCMD.

If you installed it using the package from repositories:

If you installed it manually:

SteamCMD Login

Anonymous

To download most game servers, you can login anonymously.

With a Steam account

Some servers require you to login with a Steam Account.

Next enter your password.

If Steam Guard is activated on the user account, check your e-mail for a Steam Guard access code and enter it. This is only required the first time you log in (as well as when you delete the files where SteamCMD stores the login information).

You should see a message stating that you have successfully logged in with your account.

Downloading an app

1. Start SteamCMD and log in.

2. Set your app install directory. (Note: use forward slashes for Linux/macOS and backslashes for Windows.)

e.g. a directory named cs_go inside the current directory:

For Windows: force_install_dir c:\cs_go\

HLDS is a special case: the App ID is always 90 and a mod must be chosen first. This is done by setting the app config option mod to the requested value.

Example: Install and validate the Counter Strike: Global Offensive dedicated server: Example: Install and validate HLDS with Team Fortress Classic:

3. Once finished, type quit to properly log off of the Steam servers.

Validate

Validate is a command that will check all the server files to make sure they match the SteamCMD files. This command is useful if you think that files may be missing or corrupted.

It is recommended you use this command only on initial installation and if there are server issues.

Supported Servers

A list of known servers that use SteamCMD to install is available on the Dedicated Servers List page. Note that any extra commands listed need to be executed before the app_update line.

Automating SteamCMD

Command line

Append the commands to the command line prefixed with plus characters, e.g.:

To install a specific game mod for HL1, such as Counter-Strike: Condition Zero:

For a game that requires logins, like Killing Floor:

Creating a script

2. Run SteamCMD with the +runscript option, referring to the file you created previously. Example:

Cross-Platform Installation

It is possible to choose the platform for which SteamCMD should download files, even if it isn’t the platform it is currently running on. This is done using the @sSteamCmdForcePlatformType variable. (Yes, those are two «s»es at the beginning of the variable name.) For example, to download the Windows CSGO dedicated server on Linux, you can run the following command:

or use the following script:

Windows Software/Scripts

condenser

condenser is a bootstrapper for installing, configuring, & launching Steam dedicated server apps.

SteamCMD AutoUpdater

Install and automatically update any game server

SteamCMD GUI

This tool allows the user to use SteamCMD on Windows without command lines and/or batch files.

SteamCMD Guardian 1.2

SteamPS

SteamPS is a PowerShell module that can be used to update servers, fetch server information. It also presents a workflow to update game servers.

Linux Scripts

LinuxGSM

LinuxGSM is the command-line tool for quick, simple deployment and management of Linux dedicated game servers.

Features

Supported Servers

There are now 100+ different game servers supported and rising. For a full list visit the website.

Links

SteamCMD Guardian 1.2

The following script was tested on Debian Wheezy.

To make this script work, we need a location. Preferably you created a user (e.g. steam) with it’s own home directory (/home/steam) and are logged in as it via SSH, tty or using su.

The file will auto-download SteamCMD, update it and install all chosen games (up to 4). Run the file again to update the games.

Known issues

ERROR! Failed to install app ‘xxxxxx’ (No subscription)

If you get the ‘No subscription’ error, the game/server you are trying to download either requires a login or that you have purchased the game. You will therefore have to log in with a Steam username and password – if that doesn’t help, you may need to purchase a copy of the game on Steam first. See Dedicated Servers List.

32-bit libraries on 64-bit Linux systems

Since SteamCMD is a 32-bit binary, 32-bit libraries are required.

The following error may occur:

The resolution depends on your distro:

Debian based distributions (Ubuntu, Mint, etc.)

With Debian 7 «Wheezy» you may encounter this error:

To fix this, do the following:

Red Hat based distributions (RHEL, Fedora, CentOS, etc.)

Arch Linux

Don’t forget to first enable the multilib repository.

Login Failure: No Connection

On linux servers, you may experience a «Login Failure: No Connection» error. This is related to missing iptables rules. You will want something along these lines:

On Windows servers, you may experience «SteamUpdater: Error: Download failed: http error 0» and «SteamUpdater: Error: Steam needs to be online to update. Please confirm your network connection and try again.». This is usually fixed by checking «Automatically detect settings» in IE (Internet Explorer) through the lan settings in the Internet option menu.

SteamCMD startup errors

Unable to locate a running instance of Steam

You may get the following error when starting a server with Linux:

Resolve the issue by linking steamclient.so to the

ulimit Linux startup error

This can be fixed by changing the file descriptor number ulimit:

In this case, 1024 is the current value.

root can also modify the limits in the /etc/security/limits.conf file.

In most instances you will simply get a warning message however it will not stop SteamCMD from running.

Getting a Linux 64-bit steamclient.so on a Windows Machine

WSL does not play nicely with 32-bit files. If you need the steamclient.so 64-bit file you can simply run the following command:

You will then find the file here:

Only the HLDS engine is downloaded

When trying to download a HL1 mod like TFC, initially it only downloads the engine files of the HLDS, but not the mod. This happens with both the regular version and the beta. You may have to try multiple times until all the required files are downloaded, but once this is done, the files should update correctly next time.

Just deleting the appmanifest files, without downloading replacements from a third party, may work as well! You will get an error at first though, complaining that something went wrong, which is due to the deleted files.

On a side note, for some reason CS is always installed as well.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *