Difference between revisions of "Documentation/Engine/Console/Commands"

From SCS Modding Wiki
Jump to navigation Jump to search
(54 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Tip|Be aware that this page is obsolete, it should be updated with all commands in the future.}}
+
{| class="wikitable" width="100%"
 
 
__TOC__
 
 
 
Further configuration parameters are available on the [[Documentation/Engine/Configuration variables|cvar]] page.<br>
 
 
 
=List=
 
{| class="wikitable sortable" width="100%"
 
 
!width="200px"|Name
 
!width="200px"|Name
!width="350px"|Parameters
+
!|Parameters
!|Description
+
!|Purpose
 +
|-
 +
| cheat
 +
| -
 +
| Not available in final builds
 
|-
 
|-
 
| check
 
| check
| <what>
+
| TODO
| 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.
+
| TODO
 
|-
 
|-
 
| cs_export
 
| cs_export
| <cutscene_name>
+
| TODO
| Export cutscene by name.
+
| TODO
 
|-
 
|-
 
| dispatch
 
| dispatch
| -
+
| TODO
| Handle entering initial state after game launch.
+
| TODO
 
|-
 
|-
 
| echo
 
| echo
| <message>
+
| TODO
| Prints message to console.
+
| TODO
 
|-
 
|-
 
| edit
 
| edit
| <map_name>
+
| TODO
| Start editor
+
| TODO
 
 
map_name parameter is name of the map to be edited, if not set editor stars with empty map.
 
 
|-
 
|-
 
| edit_build
 
| edit_build
| -
+
| TODO
| Rebuild editor in map editor.
+
| TODO
 
|-
 
|-
 
| edit_build_spawns
 
| edit_build_spawns
| -
+
| TODO
| Rebuild all spawn points in map editor.
+
| TODO
 
|-
 
|-
 
| edit_mark
 
| edit_mark
| See description for parameters
+
| TODO
| Marks or unmarks sector.
+
| TODO
 
 
* edit_mark [set_filtered (base|dlc_foo|any) (dev|rel|any) [hexacolor]]
 
* edit_mark [set sector_files [hexacolor]]
 
* edit_mark [set_all hexacolor]
 
* edit_mark [intersect first_file second_file [hexacolor]]
 
* edit_mark [clear_all]
 
* edit_mark [lock [sector_files]]
 
* edit_mark [unlock [sector_files]]
 
 
|-
 
|-
 
| edit_save
 
| edit_save
| -
+
| TODO
| Saves the map in map editor for loading in game.
+
| TODO
 +
|-
 +
| edit_save_backend
 +
| TODO
 +
| TODO
 
|-
 
|-
 
| edit_save_text
 
| edit_save_text
| -
+
| TODO
| Save map in textual form for debugging purpose.
+
| TODO
 +
|-
 +
| edit_unit
 +
| TODO
 +
| TODO
 
|-
 
|-
 
| exec
 
| exec
| <script file name>
+
| TODO
| Load and execute different command script.
+
| TODO
 
 
For example if you put this script into My Documents/Euro Truck Simulator 2:
 
<pre>
 
# P3D Screenshot script.
 
 
 
echo "Taking screenshot.."
 
screenshot
 
echo "Screenshot has been taken"
 
</pre>
 
Run the game and then write in console "exec /home/script_file_name" it will execute.
 
 
|-
 
|-
 
| exit
 
| exit
| <reason>
+
| TODO
| Exit game command in case of error. (unloads profile)
+
| TODO
|-
 
| g_colbox
 
| <mode>
 
| Displays collision boxes while in editor. 1:on, 0:off
 
 
|-
 
|-
 
| g_delete_idx
 
| g_delete_idx
| <index>
+
| TODO
| Delete item by given index in map editor
+
| TODO
 
|-
 
|-
 
| g_delete_uid
 
| g_delete_uid
| <uid>
+
| TODO
| Delete item by given unique index in map editor
+
| TODO
|-
 
| g_disable_beacons
 
| <mode>
 
| Changes behaviour of flashing beacons on AI vehicles/trucks  (accessibility feature for epileptic people).
 
* 0 - default
 
* 1 - disables spot lights of strobes and beacons
 
* 2 - as 1 and also disables their flares blinking by switching them on all the time
 
 
|-
 
|-
 
| g_dump
 
| g_dump
| [asset extension]
+
| TODO
| Dumps map.
+
| TODO
 
|-
 
|-
 
| g_dump_signs
 
| g_dump_signs
| -
+
| TODO
| Dumps traffic signs.
+
| TODO
 
|-
 
|-
 
| g_find_prefab
 
| g_find_prefab
| <prefab name> [prefab name] [prefab name] ...
+
| TODO
| Find prefabs by its unit name suffix and dump them into bugs file.
+
| TODO
 +
|-
 +
| g_game_dump
 +
| TODO
 +
| TODO
 
|-
 
|-
 
| g_info
 
| g_info
| -
+
| TODO
| Prints application info. Output depends if you are in game or using map editor.
+
| TODO
 
|-
 
|-
 
| g_item_count
 
| g_item_count
| (model, prefab, building, anim, mover)
+
| TODO
| Display count of the item. If no parameter is given this function prints summary about all the items.
+
| TODO
 
|-
 
|-
 
| g_mode
 
| g_mode
| g_mode <driver> <device> <resolution> <fullscreen> [msaa]
+
| TODO
| Change graphics mode.
+
| TODO
 
|-
 
|-
 
| g_msaa
 
| g_msaa
| <sample_count>
+
| TODO
| Change [https://en.wikipedia.org/wiki/Multisample_anti-aliasing msaa] sample count.
+
| TODO
 
|-
 
|-
 
| g_next_border_node
 
| g_next_border_node
| -
+
| TODO
| Finds next border node.
+
| TODO
 +
|-
 +
| g_path
 +
| TODO
 +
| TODO
 
|-
 
|-
 
| g_replace_prefab
 
| g_replace_prefab
| <old_token> <new_token>
+
| TODO
| Replace old prefab with new prefab. The token is unit name without "prefab." prefix.
+
| TODO
 
|-
 
|-
 
| g_save_curve_as_text
 
| g_save_curve_as_text
| <file_name>
+
| TODO
| Save curve to text file.
+
| TODO
 
|-
 
|-
 
| g_sel_dist
 
| g_sel_dist
| (short, close, middle, far),
+
| TODO
| Add to selection all items of given distance type.
+
| TODO
 
|-
 
|-
 
| g_sel_item
 
| g_sel_item
| <index>
+
| TODO
| Select item by index.
+
| TODO
 
|-
 
|-
 
| g_sel_type
 
| g_sel_type
| (Terrain, Buildings, Road, Prefab, Model, Company, Services, Cut plane, Mover, No weather area, City, Hinge, Parking, Animated Model, Map Overlay, Ferry, Sound, Garage, Camera point, Walker, Trigger, Services, Sign, bus_stop, Traffic area, Bezier Patch, Compound Model)
+
| TODO
| Select item by type.
+
| TODO
 
|-
 
|-
 
| g_sel_uid
 
| g_sel_uid
| <uid>
+
| TODO
| Select item by unique index.
+
| TODO
|-
 
| g_set_skybox
 
| <skybox_idx>
 
| Set current skybox by index.
 
|-
 
| g_set_climate
 
| <nowiki><climate name> [i|f]</nowiki>
 
| Set climate.
 
 
 
Parameter explanation:
 
* i - interpolated change,
 
* f - forced change
 
|-
 
| g_set_weather
 
| <nowiki><weather_index> [i|f]</nowiki>
 
| Set weather.
 
 
 
Parameter explanation:
 
* weather_index
 
**0 - nice
 
**1 - bad
 
* i - interpolated change,
 
* f - forced change
 
|-
 
| g_set_time
 
| <nowiki><hours> [minutes] [remove_traffic]</nowiki>
 
| Set game time.
 
 
 
Parameters explanation:
 
*remove_traffic
 
**0 - no
 
**1 - yes
 
 
|-
 
|-
 
| g_ui_recache
 
| g_ui_recache
| -
+
| TODO
| Recache ui draw buffers.
+
| TODO
 
|-
 
|-
 
| g_wander_output
 
| g_wander_output
| [fps/vm/sb/dc [error limit][warning limit][far plane]]"
+
| TODO
| Sets which wander output will be shown.
+
| TODO
 
|-
 
|-
 
| game
 
| game
| <save_slot>
+
| TODO
| Start game.
+
| TODO
 
|-
 
|-
 
| goto
 
| goto
| <x;y;z> or <cityname>
+
| TODO
| Teleport debug camera to place on map. Press <code>CTRL</code> + <code>F9</code> to place your truck at the camera's location.
+
| TODO
 +
|-
 +
| key
 +
| TODO
 +
| TODO
 
|-
 
|-
 
| mark_country
 
| mark_country
| <country_id>
+
| TODO
| Marks roads and prefabs belong to specified country.
+
| TODO
 
|-
 
|-
 
| mm_check
 
| mm_check
| -
+
| TODO
| Check integrity of resource manager system.
+
| TODO
 
|-
 
|-
 
| mm_defrag
 
| mm_defrag
| -
+
| TODO
| Run memory manager defragmentation.
+
| TODO
 
|-
 
|-
 
| mm_dump
 
| mm_dump
| [?bim] (help, blocks, items, mlru) [c] (children)
+
| TODO
| Dump memory manager content.
+
| TODO
 
|-
 
|-
 
| mm_flush
 
| mm_flush
| -
+
| TODO
| Run memory manager garbage collector.
+
| TODO
 
|-
 
|-
 
| mm_flush_repeatedly
 
| mm_flush_repeatedly
| -
+
| TODO
| Run memory manager garbage collector.
+
| TODO
 +
|-
 +
| mm_sys
 +
| TODO
 +
| TODO
 
|-
 
|-
| [[Documentation/Engine/Console/Commands/multimon|multimon]]
+
| multimon
| <operation> <mixed>
+
| TODO
| Allows configuration of multi monitor support.
+
| TODO
 
|-
 
|-
 
| pause
 
| pause
| -
+
| TODO
| Toggle game pause state
+
| TODO
 +
|-
 +
| preview
 +
| TODO
 +
| TODO
 
|-
 
|-
| phys_info
+
| profiler_autoshow
| -
+
| TODO
| Display informations about physical subsystem.
+
| TODO
 
|-
 
|-
| preview
+
| profiler_dump
| <map_name> <preview_editor> <profile_to_load>
+
| TODO
| Start game in preview mode
+
| TODO
 
 
Parameters:
 
* map_name - Name of the map to preview
 
* preview_editor - editor = start editor, game = start game
 
* profile_to_load - Name of the profile to be loaded
 
 
|-
 
|-
 
| quit
 
| quit
| -
+
| TODO
| Closes the game
+
| TODO
 
|-
 
|-
 
| route
 
| route
| <start company name> <end company name>
+
| TODO
| Command runs navigation between two given points and marks examined road network for visual preview
+
| TODO
 
|-
 
|-
 
| s_info
 
| s_info
| -
+
| TODO
| Reports informations about sound subsystem
+
| TODO
 
|-
 
|-
 
| save
 
| save
| -
+
| TODO
| Forces game save
+
| TODO
 
|-
 
|-
 
| screenshot
 
| screenshot
| <custom_name>
+
| TODO
| Makes a screenshot.
+
| TODO
 
 
The <custom_name> parameter sets custom name of screenshot file name. This parameter is optional.
 
 
|-
 
|-
 
| sdk
 
| sdk
| <operation>
+
| TODO
| Perform SDK operation
+
| TODO
 
+
|-
<operation> parameter can be:
+
| set
* reinit - reinitializes the SDK
+
| -
* unload - unload all plugins
+
| -
* reload - reloads all plugins
 
 
|-
 
|-
 
| spawn
 
| spawn
| <object_type>
+
| [object_type]
 
| Spawn traffic object
 
| Spawn traffic object
 
Allowed object types:
 
* vehicle - standard ai vehicle
 
* vehicle_forced - forced ai vehicle (ignoring traffic origin and density)
 
 
|-
 
|-
 
| test
 
| test
Line 291: Line 241:
 
|-
 
|-
 
| uset
 
| uset
| <cvar> <value>
+
| [cvar] [value]
| Set value of the [[Documentation/Engine/Configuration variables|cvar]] by name - in case cvar was not found creates new.
+
| Set value of the cvar by name - in case cvar was not found creates new.
 
|-
 
|-
 
| validate
 
| validate
Line 299: Line 249:
 
|-
 
|-
 
| warp
 
| warp
| <speed>
+
| [speed <0.0001 .. 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
+
| Set speed of the gameplay
|-
 
| ui
 
| <command[[:flags] name[:class] ["parameters"]]>
 
| Internal ui operations command.
 
 
 
*command
 
**'s'(how)    - shows a window. Parameters [ui_script [left=0 bottom=0]]
 
**'h'(ide)    - hides a window
 
**'t'(oggle)  - toggles window. For parameters see 's'
 
**'i'(nsert)  - inserts a window. For parameters see 's'
 
**'r'(emove)  - removes a window
 
**'c'(ommand) - commands ui component. Parameters [component_name parameters]
 
*flags
 
**'v'(iew)  - hides a pointer atop this window
 
**'l'(ock 0) - doesn't lock input when showing this window
 
**'m'(odular)- makes a window modular
 
**'f'(ocus 0)- doesn't grab focus when showing this window
 
**'e'(vfiltr)- create as eventfilter
 
**'t'(opmost)- create as topmost
 
**'b'(ottomm)- create as bottommost
 
 
|}
 
|}
 
=Legend=
 
'''Command parameters'''
 
*Parameters surrounded by <> are required.
 
*Parameters surrounded by [] are optional.
 
*Parameters surrounded by () are values that can be used as this parameter - other values effect depends on the command.
 

Revision as of 17:06, 14 January 2016

Name Parameters Purpose
cheat - Not available in final builds
check TODO TODO
cs_export TODO TODO
dispatch TODO TODO
echo TODO TODO
edit TODO TODO
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 TODO TODO
exit TODO TODO
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 TODO TODO
goto TODO TODO
key TODO TODO
mark_country TODO TODO
mm_check TODO TODO
mm_defrag TODO TODO
mm_dump TODO TODO
mm_flush TODO TODO
mm_flush_repeatedly TODO TODO
mm_sys TODO TODO
multimon TODO TODO
pause TODO TODO
preview TODO TODO
profiler_autoshow TODO TODO
profiler_dump TODO TODO
quit TODO TODO
route TODO TODO
s_info TODO TODO
save TODO TODO
screenshot TODO TODO
sdk TODO TODO
set - -
spawn [object_type] Spawn traffic object
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 <0.0001 .. 60.0>] Set speed of the gameplay