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

Материал из Metrostroi
Перейти к: навигация, поиск
(Made a translate)
 
(cleanup)
 
(не показано 7 промежуточных версий 4 участников)
Строка 1: Строка 1:
 
{{Langs
 
{{Langs
| lang =  
+
| lang = en
| title = Console Commands
+
| title =
 
| ru = Console Commands/ru
 
| ru = Console Commands/ru
 
| en = Console Commands
 
| en = Console Commands
 +
| kr = Console Commands/kr
 
}}
 
}}
 +
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:
 +
__TOC__
  
'''Console commands are divided into 3 groups:'''
+
=Server-side=
* '''Server-side''' - executing in server console or through RCON
 
* '''Client-side''' - executing in client's consols
 
* '''Chat''' - executing in chat
 
 
 
== Server-side commands ==
 
 
{| 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
 
|-
 
|-
|_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'''
 
|-
 
|-
|_maxtrains
+
|metrostroi_maxtrains
|''(?)''
+
|3
|Changing maximum number of trains in total.
+
|Sets the maximum number of trains that will be allowed to be spawned.
 
|-
 
|-
|_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.
 
|-
 
|-
|_maxwagons
+
|metrostroi_maxwagons
|2
+
|3
|Changing maximum number of wagons.
+
|Sets the maximum number of wagons per train.
 
|-
 
|-
|_train_requirethirdrail
+
|metrostroi_train_requirethirdrail
 
|1
 
|1
|Turning on/off necessity of third rail to power a train.
+
|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.
 
|-
 
|-
|_passengers_scale
+
|metrostroi_passengers_scale
 
|50
 
|50
|Amount of passengers on stations.<br>'''A very big amount causes lags 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!'''
 
|-
 
|-
|_voltage
+
|metrostroi_voltage
 
|750
 
|750
|Changing a voltage on third rail.
+
|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 a 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
 
|-
 
|-
|_cabfov
+
|metrostroi_cabfov
 
|75
 
|75
|Changing angle of view in cabin.
+
|Sets the field of view (in degrees) that will be applied while sat in a metro cab
 
|-
 
|-
|_disablecamaccel
+
|metrostroi_disablecamaccel
 
|0
 
|0
|Disabling "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.
 
|-
 
|-
|_disablehovertext
+
|metrostroi_disablehovertext
 
|0
 
|0
|Disabling hover text above buttons and switches.
+
|If this value is set to 1, the tooltips on buttons and switches will be hidden.
 
|-
 
|-
|_drawdebug
+
|metrostroi_drawdebug
 
|0
 
|0
|Enabling "Debug" mode for developers.<br>If you see green squares on train - disable 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.
 
|-
 
|-
|_drawcams
+
|metrostroi_drawcams
 
|1
 
|1
|Enabling cameras in 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.
 
|-
 
|-
|_language
+
|metrostroi_language
 
|""
 
|""
|Changing localization in
+
|Sets the localization language of Metrostroi.
 
|-
 
|-
|_rerail
+
|metrostroi_rerail
 
|''No value''
 
|''No value''
|Put train back on rails. ''Pointer must be looking on train.''<br>'''Not recommended to use it on corners and track switches!'''
+
|Puts train back on rails. ''Pointer must be looking on train.''<br>'''Not recommended to use it on corners and track switches!'''
 
|}
 
|}
  
== 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
|Open an invitation signal.<br>''Example: '''!sopps MND'''.''
+
|Opens an invitation signal.<br>''Example: '''!sopps MND'''.''
 
|-
 
|-
 
|!sclps
 
|!sclps
|Close an invitation signal.<br>''Example: '''!sclps MND'''.''
+
|Closes an invitation signal.<br>''Example: '''!sclps MND'''.''
 
|-
 
|-
 
|!sactiv
 
|!sactiv
|Enable reserve signals of automatic blocking system (autoblock).<br>''Example: '''!sactiv *''' - to enable all signals or<br>'''!sactiv 511-512''' - to enable between stations 511 and 512.''
+
|Enable backup signals of automatic blocking system (autoblock).<br>''Example: '''!sactiv *''' - to enable all signals or<br>'''!sactiv 511-512''' - to enable between stations 511 and 512.''
 
|-
 
|-
 
|!sdeactiv
 
|!sdeactiv
|Disable reserve signals of autoblock.
+
|Disables the backup signals of autoblock.
 
|-
 
|-
 
|!station
 
|!station
|Teleport to station.<br>''Example: '''!station avto''' or '''!station 108''' - Teleportating to station "[[Автозаводская]]" (Avtozavodskaya).''
+
|Teleport to station.<br>''Example: '''!station avto''' or '''!station 108''' - Teleporting to station "[[Автозаводская]]" (Avtozavodskaya).''
 
|-
 
|-
 
|!trains
 
|!trains
|Outputs an information about amount of trains and wagons on server.
+
|Outputs information about the number of trains and wagons on server.
 
|}
 
|}

Текущая версия на 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.