<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.metrostroi.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ElectricityMachine</id>
	<title>Metrostroi - Вклад участника [ru]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.metrostroi.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ElectricityMachine"/>
	<link rel="alternate" type="text/html" href="https://wiki.metrostroi.net/wiki/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%92%D0%BA%D0%BB%D0%B0%D0%B4/ElectricityMachine"/>
	<updated>2026-05-07T18:39:38Z</updated>
	<subtitle>Вклад участника</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.metrostroi.net/index.php?title=Console_Commands&amp;diff=1802</id>
		<title>Console Commands</title>
		<link rel="alternate" type="text/html" href="https://wiki.metrostroi.net/index.php?title=Console_Commands&amp;diff=1802"/>
		<updated>2019-04-26T23:37:55Z</updated>

		<summary type="html">&lt;p&gt;ElectricityMachine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Langs&lt;br /&gt;
| lang = en&lt;br /&gt;
| title =&lt;br /&gt;
| ru = Console Commands/ru&lt;br /&gt;
| en = Console Commands&lt;br /&gt;
| kr = Console Commands/kr&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
'''Console commands are divided into 3 groups:'''&lt;br /&gt;
* '''Server-side''' - Executes in the server console or through RCON&lt;br /&gt;
* '''Client-side''' - Executes through the client's console&lt;br /&gt;
* '''Chat''' - Executes through the in-game chat&lt;br /&gt;
&lt;br /&gt;
== Server-side Commands ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size:105%;&amp;quot;&lt;br /&gt;
! width=&amp;quot;200&amp;quot;  | Command  !! width=&amp;quot;50&amp;quot;  | Def. value !! Description&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_current_limit&lt;br /&gt;
|4000&lt;br /&gt;
|Current limit on substation (А).&amp;lt;br&amp;gt;'''Recommended to set value greater than 10000!'''&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_maxtrains&lt;br /&gt;
|''(?)''&lt;br /&gt;
|Changing maximum number of trains in total.&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_maxtrains_onplayer&lt;br /&gt;
|1&lt;br /&gt;
|Changing maximum trains per player.&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_maxwagons&lt;br /&gt;
|2&lt;br /&gt;
|Changing maximum number of wagons.&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_train_requirethirdrail&lt;br /&gt;
|1&lt;br /&gt;
|Turns the requirement of train power to be supplied through 3rd rail on or off&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_passengers_scale&lt;br /&gt;
|50&lt;br /&gt;
|Amount of passengers on stations.&amp;lt;br&amp;gt;'''A very big amount causes lag and can crash a server!'''&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_voltage&lt;br /&gt;
|750&lt;br /&gt;
|Changing voltage of the third rail power supply.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Client-side Commands ==&lt;br /&gt;
&lt;br /&gt;
To open the console, enable ''&amp;quot;Enable developer console&amp;quot;'' and press '''~''' or '''''shift + esc'''''.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size:105%;&amp;quot;&lt;br /&gt;
! width=&amp;quot;200&amp;quot;  | Command  !! width=&amp;quot;50&amp;quot;  | Def. value !! Description&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_cabfov&lt;br /&gt;
|75&lt;br /&gt;
|Changes the field of view (in degrees) in the cabin&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_disablecamaccel&lt;br /&gt;
|0&lt;br /&gt;
|Disables &amp;quot;camera acceleration&amp;quot; on player.&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_disablehovertext&lt;br /&gt;
|0&lt;br /&gt;
|Disables the hover text on buttons and switches.&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_drawdebug&lt;br /&gt;
|0&lt;br /&gt;
|Enables the &amp;quot;Debug&amp;quot; mode for developers. &amp;lt;br&amp;gt;If you see green squares on train, then disable the debugger.&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_drawcams&lt;br /&gt;
|1&lt;br /&gt;
|Enables the CCTV cameras in the 81-722.&amp;lt;br&amp;gt;Disable if you have low FPS.&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_language&lt;br /&gt;
|&amp;quot;&amp;quot;&lt;br /&gt;
|Changes the localization language of Metrostroi&lt;br /&gt;
|-&lt;br /&gt;
|metrostroi_rerail&lt;br /&gt;
|''No value''&lt;br /&gt;
|Puts train back on rails. ''Pointer must be looking on train.''&amp;lt;br&amp;gt;'''Not recommended to use it on corners and track switches!'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Chat Commands ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size:105%;&amp;quot;&lt;br /&gt;
! width=&amp;quot;200&amp;quot;  | Command  !! Description&lt;br /&gt;
|-&lt;br /&gt;
|!sopen&lt;br /&gt;
|Open a signal or assemble a route.&amp;lt;br&amp;gt;''Example: '''!sopen MN4-2'''.''&lt;br /&gt;
|-&lt;br /&gt;
|!sclose&lt;br /&gt;
|Close a signal or disassemble a route.&amp;lt;br&amp;gt;''Example: '''!sclose MN4-2'''.''&lt;br /&gt;
|-&lt;br /&gt;
|!sopps&lt;br /&gt;
|Opens an invitation signal.&amp;lt;br&amp;gt;''Example: '''!sopps MND'''.''&lt;br /&gt;
|-&lt;br /&gt;
|!sclps&lt;br /&gt;
|Closes an invitation signal.&amp;lt;br&amp;gt;''Example: '''!sclps MND'''.''&lt;br /&gt;
|-&lt;br /&gt;
|!sactiv&lt;br /&gt;
|Enable backup signals of automatic blocking system (autoblock).&amp;lt;br&amp;gt;''Example: '''!sactiv *''' - to enable all signals or&amp;lt;br&amp;gt;'''!sactiv 511-512''' - to enable between stations 511 and 512.''&lt;br /&gt;
|-&lt;br /&gt;
|!sdeactiv&lt;br /&gt;
|Disable backup signals of autoblock.&lt;br /&gt;
|-&lt;br /&gt;
|!station&lt;br /&gt;
|Teleport to station.&amp;lt;br&amp;gt;''Example: '''!station avto''' or '''!station 108''' - Teleporting to station &amp;quot;[[Автозаводская]]&amp;quot; (Avtozavodskaya).''&lt;br /&gt;
|-&lt;br /&gt;
|!trains&lt;br /&gt;
|Outputs information about the number of trains and wagons on server.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>ElectricityMachine</name></author>
	</entry>
	<entry>
		<id>https://wiki.metrostroi.net/index.php?title=Server_configuration&amp;diff=1801</id>
		<title>Server configuration</title>
		<link rel="alternate" type="text/html" href="https://wiki.metrostroi.net/index.php?title=Server_configuration&amp;diff=1801"/>
		<updated>2019-04-15T23:07:29Z</updated>

		<summary type="html">&lt;p&gt;ElectricityMachine: /* Turbostroi */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Langs&lt;br /&gt;
| lang = en&lt;br /&gt;
| title =&lt;br /&gt;
| ru = Настройка_сервера&lt;br /&gt;
| en = Server configuration&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Important|Turbostroi is only supported on Windows. Servers hosted on other platforms will perform poorly.}}&lt;br /&gt;
= Installing SteamCMD =&lt;br /&gt;
SteamCMD is a command line tool that makes setting up servers for Garry's Mod (and most other Source engine based games) very easy. You can download it for Windows and Linux from the [https://developer.valvesoftware.com/wiki/SteamCMD#Downloading_SteamCMD Valve Developer Wiki]. &lt;br /&gt;
= Installing the Server (Windows) =&lt;br /&gt;
To download and install your server enter the following script into command prompt or save it as a batch file (paste it into notepad, click &amp;quot;Save As..&amp;quot;, set the &amp;quot;Save as type&amp;quot; to &amp;quot;All Files (*.*)&amp;quot; and append &amp;quot;.bat&amp;quot; or &amp;quot;.cmd&amp;quot; to the filename). &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;PATH_TO_STEAMCMD\steamcmd.exe&amp;quot; +login anonymous +force_install_dir &amp;quot;PATH_FOR_SERVER&amp;quot; +app_update 4020 validate +quit&lt;br /&gt;
pause&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Running the batch file will start to download a Garry's Mod to the &amp;quot;PATH_FOR_SERVER&amp;quot; directory you specified. This process may take some time depending on the speed of your internet connection.&lt;br /&gt;
= Creating a Collection =&lt;br /&gt;
The most straightforward way to add mods to your server is to create a steam workshop collection. You can do this by navigating to the [http://steamcommunity.com/workshop/browse/?section=collections&amp;amp;appid=4000 Garry's Mod Steam Workshop &amp;quot;Collections&amp;quot; section] and clicking [http://steamcommunity.com/workshop/editcollection/?appid=4000 &amp;quot;Create Collection&amp;quot;]. When you've named and branded your collection head over to the Workshop pages for any of the mods you want to add and click &amp;quot;Add to Collection&amp;quot; then choose the name of your server collection. To install Metrostroi you add the following mods to your collection:&lt;br /&gt;
* [http://steamcommunity.com/workshop/filedetails/?id=261801217 Metrostroi (Subway Simulator)]&lt;br /&gt;
* Metrostroi Subway Simulator - Content Pack part (1 to 6)&lt;br /&gt;
* [https://steamcommunity.com/workshop/filedetails/?id=1095130789 Metrostroi Subway Simulator -  Scripts]&lt;br /&gt;
* A Metrostroi map you want to use (mostly listed [https://wiki.metrostroi.net/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D0%BA%D0%B0%D1%80%D1%82 here])&lt;br /&gt;
= Installing Mods =&lt;br /&gt;
Using command line arguments you can configure your server to automatically install/ update all of the items in a collection. Save the following script as a batch file in the same path as your Garry's Mod server is installed.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srcds.exe +maxplayers 20 -console +host_workshop_collection YOUR_COLLECTION_ID +gamemode sandbox +map NAME_OF_THE_MAP_YOU_WANT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can find the names of most metrostroi maps [https://wiki.metrostroi.net/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D0%BA%D0%B0%D1%80%D1%82 here] to replace &amp;quot;NAME_OF_THE_MAP_YOU_WANT&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Please note that the &amp;quot;gm_metrostroi_b50&amp;quot; has a lighting issue that may cause your server fail when starting up due to a &amp;quot;Engine hunk overflow!&amp;quot;. To fix this add &amp;quot; +r_hunkalloclightmaps 0&amp;quot; to the end of your command line arguments.'''&amp;lt;br&amp;gt;&lt;br /&gt;
If you have followed the above steps correctly you should now have a fully functional Metrostroi server. If you don't, for whatever reason, the Garry's Mod wiki has a more general (but more detailed guide) on how to set one up [https://wiki.garrysmod.com/page/Category:Server_Owners here].&lt;br /&gt;
&lt;br /&gt;
= Turbostroi =&lt;br /&gt;
You can download the &amp;quot;Turbostroi&amp;quot; binary from [http://metrostroi.net/turbostroi here]. Without it, your server will perform quite poorly. Unzip the downloaded file and then place the &amp;quot;.dll&amp;quot; file into your &amp;quot;garrysmod\lua\bin&amp;quot; directory as the README directs. Make sure to do this for your game client as well if you haven't already.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Turbostroi Convars ==&lt;br /&gt;
Turbostroi offers even better performance when configured correctly. It offers 2 primary convars available to change:&lt;br /&gt;
&lt;br /&gt;
'''turbostroi_main_cores''': SRCDS thread allocation. Turbostroi changes the SRCDS thread to the specified thread.&lt;br /&gt;
&lt;br /&gt;
'''turbostroi_train_cores''': Train thread allocation. Most, if not all, Metrostroi systems will register in Turbostroi and will receive the benefit of multithreading. This is the main benefit of Turbostroi being installed.&lt;br /&gt;
&lt;br /&gt;
The value for each of these convars is converted into a binary, or bitwise, value. A simple process is described below.&lt;br /&gt;
&lt;br /&gt;
#First, figure out how many cores your processor has. We will assume our processor has '''4''' cores.&lt;br /&gt;
#Represent each core with a binary digit. Our processor will be represented as such: 0000&lt;br /&gt;
#Which cores do you want dedicated to train threads? I will use the first 3 cores, which means I &amp;quot;turn them on&amp;quot; and represent them as follows: 1110&lt;br /&gt;
#Any remaining core(s) may be used for the SRCDS thread. This will be represented as 0001&lt;br /&gt;
#Now, you must convert those bitwise values into decimal values. It is recommended to use the built-in Windows calculator in the &amp;quot;Programmer&amp;quot; mode. When doing this, you may enter the bitwise values by clicking on &amp;quot;BIN&amp;quot; and type in the bitwise values for each convar. For example, I will type in 1110, which results in the decimal value 14. I will then type in 0001, which results in the decimal value 1.&lt;br /&gt;
#Next, take your decimal values and input them into the console for your desired convar. I wanted to use the first 3 cores for trains, so I will type in the console &amp;quot;turbostroi_train_cores 14&amp;quot;. The same procedure follows with the other convar.&lt;br /&gt;
&lt;br /&gt;
After this is all done, you should restart the server. If Turbostroi starts outputting a bunch of errors about affinity and whatnot, you have configured the convars incorrectly.&lt;br /&gt;
&lt;br /&gt;
= Connecting to the Server =&lt;br /&gt;
You should be able to connect to your server using the &amp;quot;LAN&amp;quot; tab in your Garry's Mod server browser or by using the &amp;quot;LAN&amp;quot; tab in the steam &amp;quot;Servers&amp;quot; window. If you use any form of firewall or your router has a built in firewall other players probably won't be able to connect to your server. To solve this you need to tell your firewall to allow certain network traffic though to your game server. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Do not complete the following steps unless you know what you are doing- adding firewall exceptions can make your computer and network less secure.'''&amp;lt;br&amp;gt;&lt;br /&gt;
The exact process of adding &amp;quot;exceptions&amp;quot; to your networks firewalls depends heavily on what hardware/ software you are using. You are probably best looking up a guide of how to &amp;quot;Port Forward&amp;quot; on your specific router and how to add firewall exceptions to your antivirus. By default Garry's Mod will use the ports 27005 and 27015 (UDP and TCP) however if you choose to run more than one server at the same time you will need to unblock two ports for each server (eg 27006 and 27016)&lt;br /&gt;
&lt;br /&gt;
= Tips =&lt;br /&gt;
== Server.cfg ==&lt;br /&gt;
You can set the name, password, wagon limit and other important things by editing the &amp;quot;server.cfg&amp;quot; in &amp;quot;garrysmod\cfg&amp;quot;. Below are some useful lines to put in this file:&lt;br /&gt;
* hostname &amp;quot;SERVER_NAME_HERE&amp;quot;&lt;br /&gt;
* metrostroi_maxwagons &amp;quot;WAGON_LIMIT_HERE&amp;quot;&lt;br /&gt;
* metrostroi_maxtrains &amp;quot;TRAIN_LIMIT_HERE&amp;quot;&lt;br /&gt;
* metrostroi_maxtrains_onplayer &amp;quot;MAX_TRAINS_PER_PLAYER_HERE&amp;quot;&lt;br /&gt;
A more extensive list of console commands [[Console_Commands|here]].&lt;br /&gt;
&lt;br /&gt;
== ULX ==&lt;br /&gt;
[http://steamcommunity.com/sharedfiles/filedetails/?id=557962280 ULX] is an admin tool that will make dealing with players and changing maps much easier.&lt;br /&gt;
== WUMA ==&lt;br /&gt;
[http://steamcommunity.com/sharedfiles/filedetails/?id=1117436840 WUMA] allows server administrators to restrict entities and loadouts to particular usergroups or players.&lt;br /&gt;
== Garry's Mod Wiki ==&lt;br /&gt;
Check out the [https://wiki.garrysmod.com/page/Category:Server_Owners &amp;quot;Server Owners&amp;quot; section on the Garry's Mod Wiki]. It has some helpful tutorials on [https://wiki.garrysmod.com/page/Loading_URL setting a loading screen] and other more advanced topics not covered here.&lt;/div&gt;</summary>
		<author><name>ElectricityMachine</name></author>
	</entry>
</feed>