Console Commands: различия между версиями
Материал из Metrostroi
м |
(cleanup) |
||
(не показаны 2 промежуточные версии 2 участников) | |||
Строка 6: | Строка 6: | ||
| kr = Console Commands/kr | | 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__ | ||
− | + | =Server-side= | |
− | |||
− | |||
− | |||
− | |||
− | |||
{| class="wikitable" style="font-size:105%;" | {| class="wikitable" style="font-size:105%;" | ||
− | ! width="200" | | + | ! width="200" | Name !! width="50" | Default !! Description |
|- | |- | ||
|metrostroi_current_limit | |metrostroi_current_limit | ||
|4000 | |4000 | ||
− | |Current limit on substation ( | + | |Current limit on substation (amps).<br>'''It is recommended to set a value of at least 10000''' |
|- | |- | ||
|metrostroi_maxtrains | |metrostroi_maxtrains | ||
− | | | + | |3 |
− | | | + | |Sets the maximum number of trains that will be allowed to be spawned. |
|- | |- | ||
|metrostroi_maxtrains_onplayer | |metrostroi_maxtrains_onplayer | ||
|1 | |1 | ||
− | | | + | |Sets the maximum number of train wagons that each player will be allowed to spawn. |
|- | |- | ||
|metrostroi_maxwagons | |metrostroi_maxwagons | ||
− | | | + | |3 |
− | | | + | |Sets the maximum number of wagons per train. |
|- | |- | ||
|metrostroi_train_requirethirdrail | |metrostroi_train_requirethirdrail | ||
|1 | |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.<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>''' | + | |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 | ||
− | | | + | |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. | |
− | To open | ||
{| class="wikitable" style="font-size:105%;" | {| class="wikitable" style="font-size:105%;" | ||
− | ! width="200" | | + | ! width="200" | Name !! width="50" | Default !! Description |
|- | |- | ||
|metrostroi_cabfov | |metrostroi_cabfov | ||
|75 | |75 | ||
− | | | + | |Sets the field of view (in degrees) that will be applied while sat in a metro cab |
|- | |- | ||
|metrostroi_disablecamaccel | |metrostroi_disablecamaccel | ||
|0 | |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 | |metrostroi_disablehovertext | ||
|0 | |0 | ||
− | | | + | |If this value is set to 1, the tooltips on buttons and switches will be hidden. |
|- | |- | ||
|metrostroi_drawdebug | |metrostroi_drawdebug | ||
|0 | |0 | ||
− | | | + | |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 | ||
− | | | + | |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 | ||
|"" | |"" | ||
− | | | + | |Sets the localization language of Metrostroi. |
|- | |- | ||
|metrostroi_rerail | |metrostroi_rerail | ||
|''No value'' | |''No value'' | ||
− | | | + | |Puts train back on rails. ''Pointer must be looking on train.''<br>'''Not recommended to use it on corners and track switches!''' |
|} | |} | ||
− | + | =Chat Commands= | |
− | |||
{| class="wikitable" style="font-size:105%;" | {| class="wikitable" style="font-size:105%;" | ||
− | ! width="200" | | + | ! width="200" | Name !! Description |
|- | |- | ||
|!sopen | |!sopen | ||
− | | | + | |Opens a signal or assembles a route.<br>''Example: '''!sopen MN4-2'''.'' |
|- | |- | ||
|!sclose | |!sclose | ||
− | | | + | |Closes a signal or disassembles a route.<br>''Example: '''!sclose MN4-2'''.'' |
|- | |- | ||
|!sopps | |!sopps | ||
− | | | + | |Opens an invitation signal.<br>''Example: '''!sopps MND'''.'' |
|- | |- | ||
|!sclps | |!sclps | ||
− | | | + | |Closes an invitation signal.<br>''Example: '''!sclps MND'''.'' |
|- | |- | ||
|!sactiv | |!sactiv | ||
− | |Enable | + | |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 | ||
− | | | + | |Disables the backup signals of autoblock. |
|- | |- | ||
|!station | |!station | ||
− | |Teleport to station.<br>''Example: '''!station avto''' or '''!station 108''' - | + | |Teleport to station.<br>''Example: '''!station avto''' or '''!station 108''' - Teleporting to station "[[Автозаводская]]" (Avtozavodskaya).'' |
|- | |- | ||
|!trains | |!trains | ||
− | |Outputs | + | |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. |