Difference between revisions of "Documentation/Engine/Console/Commands"
< Documentation | Engine | Console
Jump to navigation
Jump to search
(Update the g_mode command to reflect 1.53.x syntax.) |
|||
(35 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{| class="wikitable sortable" width="100%" | {| class="wikitable sortable" width="100%" | ||
!width="200px"|Name | !width="200px"|Name | ||
− | ! | + | !|Parameters |
!|Description | !|Description | ||
|- | |- | ||
Line 34: | Line 27: | ||
|- | |- | ||
| edit_build | | edit_build | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| edit_build_spawns | | edit_build_spawns | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| edit_mark | | edit_mark | ||
− | | | + | | TODO |
− | | | + | | TODO |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| edit_save | | edit_save | ||
− | | - | + | | TODO |
− | | | + | | TODO |
+ | |- | ||
+ | | edit_save_backend | ||
+ | | TODO | ||
+ | | TODO | ||
|- | |- | ||
| edit_save_text | | edit_save_text | ||
− | | - | + | | TODO |
− | | | + | | TODO |
+ | |- | ||
+ | | edit_unit | ||
+ | | TODO | ||
+ | | TODO | ||
|- | |- | ||
| exec | | exec | ||
Line 78: | Line 71: | ||
| <reason> | | <reason> | ||
| Exit game command in case of error. (unloads profile) | | Exit game command in case of error. (unloads profile) | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| g_delete_idx | | g_delete_idx | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_delete_uid | | g_delete_uid | ||
− | | | + | | TODO |
− | | | + | | TODO |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| g_dump | | g_dump | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_dump_signs | | g_dump_signs | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_find_prefab | | g_find_prefab | ||
− | | | + | | TODO |
− | | | + | | TODO |
+ | |- | ||
+ | | g_game_dump | ||
+ | | TODO | ||
+ | | TODO | ||
|- | |- | ||
| g_info | | g_info | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_item_count | | g_item_count | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_mode | | g_mode | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_msaa | | g_msaa | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_next_border_node | | g_next_border_node | ||
− | | - | + | | TODO |
− | | | + | | TODO |
+ | |- | ||
+ | | g_path | ||
+ | | TODO | ||
+ | | TODO | ||
|- | |- | ||
| g_replace_prefab | | g_replace_prefab | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_save_curve_as_text | | g_save_curve_as_text | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_sel_dist | | g_sel_dist | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_sel_item | | g_sel_item | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_sel_type | | g_sel_type | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_sel_uid | | g_sel_uid | ||
− | | | + | | TODO |
− | | | + | | TODO |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| g_ui_recache | | g_ui_recache | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| g_wander_output | | g_wander_output | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| game | | game | ||
Line 199: | Line 157: | ||
|- | |- | ||
| goto | | goto | ||
− | | <x;y;z | + | | <x;y;z> |
− | | Teleport debug camera to place on map | + | | Teleport debug camera to place on map |
+ | |- | ||
+ | | key | ||
+ | | TODO | ||
+ | | TODO | ||
|- | |- | ||
| mark_country | | mark_country | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| mm_check | | mm_check | ||
− | | | + | | TODO |
− | | | + | | TODO |
|- | |- | ||
| mm_defrag | | mm_defrag | ||
Line 226: | Line 188: | ||
| Run memory manager garbage collector. | | Run memory manager garbage collector. | ||
|- | |- | ||
− | | [[ | + | | mm_sys |
+ | | TODO | ||
+ | | TODO | ||
+ | |- | ||
+ | | [[Engine/Console/Commands/multimon|multimon]] | ||
| <operation> <mixed> | | <operation> <mixed> | ||
| Allows configuration of multi monitor support. | | Allows configuration of multi monitor support. | ||
Line 233: | Line 199: | ||
| - | | - | ||
| Toggle game pause state | | Toggle game pause state | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| preview | | preview | ||
Line 246: | Line 208: | ||
* preview_editor - editor = start editor, game = start game | * preview_editor - editor = start editor, game = start game | ||
* profile_to_load - Name of the profile to be loaded | * profile_to_load - Name of the profile to be loaded | ||
+ | |- | ||
+ | | profiler_autoshow | ||
+ | | TODO | ||
+ | | TODO | ||
+ | |- | ||
+ | | profiler_dump | ||
+ | | TODO | ||
+ | | TODO | ||
|- | |- | ||
| quit | | quit | ||
Line 292: | Line 262: | ||
| uset | | uset | ||
| <cvar> <value> | | <cvar> <value> | ||
− | | Set value of the | + | | Set value of the cvar by name - in case cvar was not found creates new. |
|- | |- | ||
| validate | | validate | ||
Line 301: | Line 271: | ||
| <speed> | | <speed> | ||
| Set speed of the gameplay. The correct value of the speed parameter is a floating point number in range from 0.0001 to 60.0 | | Set speed of the gameplay. The correct value of the speed parameter is a floating point number in range from 0.0001 to 60.0 | ||
+ | |- | ||
+ | | g_set_skybox | ||
+ | | TODO | ||
+ | | TODO | ||
+ | |- | ||
+ | | g_set_climate | ||
+ | | TODO | ||
+ | | TODO | ||
+ | |- | ||
+ | | g_set_weather | ||
+ | | TODO | ||
+ | | TODO | ||
+ | |- | ||
+ | | g_set_time | ||
+ | | TODO | ||
+ | | TODO | ||
+ | |- | ||
+ | | phys_info | ||
+ | | TODO | ||
+ | | TODO | ||
|- | |- | ||
| ui | | ui | ||
− | | | + | | TODO |
− | | | + | | TODO |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 10:27, 9 February 2016
Name | Parameters | Description |
---|---|---|
check | <what> | Check if data is correct. At the moment the <what> parameter can be only "company" and then the command will validate if all connections between companies are correct. |
cs_export | <cutscene_name> | Export cutscene by name. |
dispatch | - | Handle entering initial state after game launch. |
echo | <message> | Prints message to console. |
edit | <map_name> | Start editor
map_name parameter is name of the map to be edited, if not set editor stars with empty map. |
edit_build | TODO | TODO |
edit_build_spawns | TODO | TODO |
edit_mark | TODO | TODO |
edit_save | TODO | TODO |
edit_save_backend | TODO | TODO |
edit_save_text | TODO | TODO |
edit_unit | TODO | TODO |
exec | <script file name> | Load and execute different command script.
For example if you put this script into My Documents/Euro Truck Simulator 2: # P3D Screenshot script. echo "Taking screenshot.." screenshot echo "Screenshot has been taken" Run the game and then write in console "exec /home/script_file_name" it will execute. |
exit | <reason> | Exit game command in case of error. (unloads profile) |
g_delete_idx | TODO | TODO |
g_delete_uid | TODO | TODO |
g_dump | TODO | TODO |
g_dump_signs | TODO | TODO |
g_find_prefab | TODO | TODO |
g_game_dump | TODO | TODO |
g_info | TODO | TODO |
g_item_count | TODO | TODO |
g_mode | TODO | TODO |
g_msaa | TODO | TODO |
g_next_border_node | TODO | TODO |
g_path | TODO | TODO |
g_replace_prefab | TODO | TODO |
g_save_curve_as_text | TODO | TODO |
g_sel_dist | TODO | TODO |
g_sel_item | TODO | TODO |
g_sel_type | TODO | TODO |
g_sel_uid | TODO | TODO |
g_ui_recache | TODO | TODO |
g_wander_output | TODO | TODO |
game | <save_slot> | Start game. |
goto | <x;y;z> | Teleport debug camera to place on map |
key | TODO | TODO |
mark_country | TODO | TODO |
mm_check | TODO | TODO |
mm_defrag | - | Run memory manager defragmentation. |
mm_dump | [?bim] (help, blocks, items, mlru) [c] (children) | Dump memory manager content. |
mm_flush | - | Run memory manager garbage collector. |
mm_flush_repeatedly | - | Run memory manager garbage collector. |
mm_sys | TODO | TODO |
multimon | <operation> <mixed> | Allows configuration of multi monitor support. |
pause | - | Toggle game pause state |
preview | <map_name> <preview_editor> <profile_to_load> | Start game in preview mode
Parameters:
|
profiler_autoshow | TODO | TODO |
profiler_dump | TODO | TODO |
quit | - | Closes the game |
route | <start company name> <end company name> | Command runs navigation between two given points and marks examined road network for visual preview |
s_info | - | Reports informations about sound subsystem |
save | - | Forces game save |
screenshot | <custom_name> | Makes a screenshot.
The <custom_name> parameter sets custom name of screenshot file name. This parameter is optional. |
sdk | <operation> | Perform SDK operation
<operation> parameter can be:
|
spawn | <object_type> | Spawn traffic object
Allowed object types:
|
test | - | Not available in final builds |
uset | <cvar> <value> | Set value of the cvar by name - in case cvar was not found creates new. |
validate | - | Start validation |
warp | <speed> | Set speed of the gameplay. The correct value of the speed parameter is a floating point number in range from 0.0001 to 60.0 |
g_set_skybox | TODO | TODO |
g_set_climate | TODO | TODO |
g_set_weather | TODO | TODO |
g_set_time | TODO | TODO |
phys_info | TODO | TODO |
ui | TODO | TODO |