Console Commands: различия между версиями

Материал из Metrostroi
Перейти к: навигация, поиск
м (enabled toc)
(cleanup)
 
Строка 6: Строка 6:
 
| kr = Console Commands/kr
 
| kr = Console Commands/kr
 
}}
 
}}
'''Console commands are divided into 3 groups:'''
+
Metrostroi has several commands and convars available for use and configuration by clients and server administrators. Console commands and convars are divided into 3 groups:
* '''Server-side''' - Executes in the server console or through RCON
 
* '''Client-side''' - Executes through the client's console
 
* '''Chat''' - Executes through the in-game chat
 
 
 
 
 
 
__TOC__
 
__TOC__
  
== Server-side Commands ==
+
=Server-side=
 
{| class="wikitable" style="font-size:105%;"
 
{| class="wikitable" style="font-size:105%;"
! width="200"  | Command  !! width="50"  | Def. value !! Description
+
! width="200"  | Name !! width="50"  | Default !! Description
 
|-
 
|-
 
|metrostroi_current_limit
 
|metrostroi_current_limit
 
|4000
 
|4000
|Current limit on substation (А).<br>'''Recommended to set value greater than 10000!'''
+
|Current limit on substation (amps).<br>'''It is recommended to set a value of at least 10000'''
 
|-
 
|-
 
|metrostroi_maxtrains
 
|metrostroi_maxtrains
|''(?)''
+
|3
|Changing maximum number of trains in total.
+
|Sets the maximum number of trains that will be allowed to be spawned.
 
|-
 
|-
 
|metrostroi_maxtrains_onplayer
 
|metrostroi_maxtrains_onplayer
 
|1
 
|1
|Changing maximum trains per player.
+
|Sets the maximum number of train wagons that each player will be allowed to spawn.
 
|-
 
|-
 
|metrostroi_maxwagons
 
|metrostroi_maxwagons
|2
+
|3
|Changing maximum number of wagons.
+
|Sets the maximum number of wagons per train.
 
|-
 
|-
 
|metrostroi_train_requirethirdrail
 
|metrostroi_train_requirethirdrail
 
|1
 
|1
|Turns the requirement of train power to be supplied through 3rd rail on or off
+
|If this is set to 1, trains will behave as if a 3rd rail is present and powered regardless of whether it actually is.<br>This can also be set through the GUI under Utilities, Metrostroi, Admin.<br>It is the only way to use Metrostroi trains on non-Metrostroi maps.
 
|-
 
|-
 
|metrostroi_passengers_scale
 
|metrostroi_passengers_scale
 
|50
 
|50
|Amount of passengers on stations.<br>'''A very big amount causes lag and can crash a server!'''
+
|Amount of passengers on stations as a relative value in arbitrary units.<br>'''High values can cause performance problems and instability!'''
 
|-
 
|-
 
|metrostroi_voltage
 
|metrostroi_voltage
 
|750
 
|750
|Changing voltage of the third rail power supply.
+
|Sets the current to be delivered along the 3rd rail (volts)
 
|}
 
|}
  
== Client-side Commands ==
+
=Client-side=
 
+
To open the console, enable ''"Enable developer console"'' in the "Advanced" settings under "Keyboard" and press '''~''' or '''''shift + esc'''''. Alternatively, everything here except the train rerailer is available in the GUI under Utilities, Metrostroi, Client.
To open the console, enable ''"Enable developer console"'' and press '''~''' or '''''shift + esc'''''.
 
  
 
{| class="wikitable" style="font-size:105%;"
 
{| class="wikitable" style="font-size:105%;"
! width="200"  | Command  !! width="50"  | Def. value !! Description
+
! width="200"  | Name !! width="50"  | Default !! Description
 
|-
 
|-
 
|metrostroi_cabfov
 
|metrostroi_cabfov
 
|75
 
|75
|Changes the field of view (in degrees) in the cabin
+
|Sets the field of view (in degrees) that will be applied while sat in a metro cab
 
|-
 
|-
 
|metrostroi_disablecamaccel
 
|metrostroi_disablecamaccel
 
|0
 
|0
|Disables "camera acceleration" on player.
+
|If this value is set to 1, the "camera acceleration" effect which simulates the forces of inertia on acceleration and deceleration by moving the camera around will be disabled.
 
|-
 
|-
 
|metrostroi_disablehovertext
 
|metrostroi_disablehovertext
 
|0
 
|0
|Disables the hover text on buttons and switches.
+
|If this value is set to 1, the tooltips on buttons and switches will be hidden.
 
|-
 
|-
 
|metrostroi_drawdebug
 
|metrostroi_drawdebug
 
|0
 
|0
|Enables the "Debug" mode for developers. <br>If you see green squares on train, then disable the debugger.
+
|If this value is set to 1, the "Debug" mode for developers is enabled.<br>If you see green squares on train, then make sure this is set to 0.
 
|-
 
|-
 
|metrostroi_drawcams
 
|metrostroi_drawcams
 
|1
 
|1
|Enables the CCTV cameras in the 81-722.<br>Disable if you have low FPS.
+
|If this value is set to 1, the CCTV cameras in the 81-722 will be enabled.<br>Set this to 0 if you have low FPS.
 
|-
 
|-
 
|metrostroi_language
 
|metrostroi_language
 
|""
 
|""
|Changes the localization language of Metrostroi
+
|Sets the localization language of Metrostroi.
 
|-
 
|-
 
|metrostroi_rerail
 
|metrostroi_rerail
Строка 83: Строка 77:
 
|}
 
|}
  
== Chat Commands ==
+
=Chat Commands=
 
 
 
{| class="wikitable" style="font-size:105%;"
 
{| class="wikitable" style="font-size:105%;"
! width="200"  | Command  !! Description
+
! width="200"  | Name !! Description
 
|-
 
|-
 
|!sopen
 
|!sopen
|Open a signal or assemble a route.<br>''Example: '''!sopen MN4-2'''.''
+
|Opens a signal or assembles a route.<br>''Example: '''!sopen MN4-2'''.''
 
|-
 
|-
 
|!sclose
 
|!sclose
|Close a signal or disassemble a route.<br>''Example: '''!sclose MN4-2'''.''
+
|Closes a signal or disassembles a route.<br>''Example: '''!sclose MN4-2'''.''
 
|-
 
|-
 
|!sopps
 
|!sopps
Строка 104: Строка 97:
 
|-
 
|-
 
|!sdeactiv
 
|!sdeactiv
|Disable backup signals of autoblock.
+
|Disables the backup signals of autoblock.
 
|-
 
|-
 
|!station
 
|!station

Текущая версия на 00:41, 26 марта 2021

Available languages: Русский · English · 한국어


Metrostroi has several commands and convars available for use and configuration by clients and server administrators. Console commands and convars are divided into 3 groups:

Server-side

Name Default Description
metrostroi_current_limit 4000 Current limit on substation (amps).
It is recommended to set a value of at least 10000
metrostroi_maxtrains 3 Sets the maximum number of trains that will be allowed to be spawned.
metrostroi_maxtrains_onplayer 1 Sets the maximum number of train wagons that each player will be allowed to spawn.
metrostroi_maxwagons 3 Sets the maximum number of wagons per train.
metrostroi_train_requirethirdrail 1 If this is set to 1, trains will behave as if a 3rd rail is present and powered regardless of whether it actually is.
This can also be set through the GUI under Utilities, Metrostroi, Admin.
It is the only way to use Metrostroi trains on non-Metrostroi maps.
metrostroi_passengers_scale 50 Amount of passengers on stations as a relative value in arbitrary units.
High values can cause performance problems and instability!
metrostroi_voltage 750 Sets the current to be delivered along the 3rd rail (volts)

Client-side

To open the console, enable "Enable developer console" in the "Advanced" settings under "Keyboard" and press ~ or shift + esc. Alternatively, everything here except the train rerailer is available in the GUI under Utilities, Metrostroi, Client.

Name Default Description
metrostroi_cabfov 75 Sets the field of view (in degrees) that will be applied while sat in a metro cab
metrostroi_disablecamaccel 0 If this value is set to 1, the "camera acceleration" effect which simulates the forces of inertia on acceleration and deceleration by moving the camera around will be disabled.
metrostroi_disablehovertext 0 If this value is set to 1, the tooltips on buttons and switches will be hidden.
metrostroi_drawdebug 0 If this value is set to 1, the "Debug" mode for developers is enabled.
If you see green squares on train, then make sure this is set to 0.
metrostroi_drawcams 1 If this value is set to 1, the CCTV cameras in the 81-722 will be enabled.
Set this to 0 if you have low FPS.
metrostroi_language "" Sets the localization language of Metrostroi.
metrostroi_rerail No value Puts train back on rails. Pointer must be looking on train.
Not recommended to use it on corners and track switches!

Chat Commands

Name Description
!sopen Opens a signal or assembles a route.
Example: !sopen MN4-2.
!sclose Closes a signal or disassembles a route.
Example: !sclose MN4-2.
!sopps Opens an invitation signal.
Example: !sopps MND.
!sclps Closes an invitation signal.
Example: !sclps MND.
!sactiv Enable backup signals of automatic blocking system (autoblock).
Example: !sactiv * - to enable all signals or
!sactiv 511-512 - to enable between stations 511 and 512.
!sdeactiv Disables the backup signals of autoblock.
!station Teleport to station.
Example: !station avto or !station 108 - Teleporting to station "Автозаводская" (Avtozavodskaya).
!trains Outputs information about the number of trains and wagons on server.