Changes

Jump to navigation Jump to search

Documentation/Engine/Console/Commands

4,393 bytes added, 12:26, 22 November 2018
no edit summary
{{Tip|Be aware that this page is obsolete, it should be updated with all comments in the future time.}} __TOC__ Further configuration parameters are available on the [[Documentation/Engine/Configuration variables|cvar]] page.<br> =List={| class="wikitablesortable" width="100%"
!width="200px"|Name
!width="350px"|Parameters!|Purpose|-| cheat| -| Not available in final buildsDescription
|-
| check
| TODO<what>| TODOCheck 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
| TODO<cutscene_name>| TODOExport cutscene by name.
|-
| dispatch
| TODO-| TODOHandle entering initial state after game launch.
|-
| echo
|-
| 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-| TODORebuild editor in map editor.
|-
| edit_build_spawns
| TODO-| TODORebuild all spawn points in map editor.
|-
| edit_mark
| TODOSee description for parameters| TODOMarks or unmarks sector. * 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
| TODO| TODO|-| edit_save_backend| TODO| TODOSaves the map in map editor for loading in game.
|-
| edit_save_text
| TODO| TODO|-| edit_unit| TODO| TODOSave map in textual form for debugging purpose.
|-
| exec
| <script file name>
| Load and execute different command script.
 
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
| <reason>
| Exit game command in case of error. (unloads profile)
|-
| g_colbox
| <mode>
| Displays collision boxes while in editor. 1:on, 0:off
|-
| g_delete_idx
| TODO<index>| TODODelete item by given index in map editor
|-
| g_delete_uid
| TODO<uid>| TODODelete item by given unique index in map editor
|-
| g_dump
| TODO[asset extension]| TODODumps map.
|-
| g_dump_signs
| TODO-| TODODumps traffic signs.
|-
| g_find_prefab
| TODO<prefab name> [prefab name] [prefab name] ...| TODO|-| g_game_dump| TODO| TODOFind prefabs by it's unit name suffix and dump them into bugs file.
|-
| g_info
| TODO-| TODOPrints application info. Output depends if you are in game or using map editor.
|-
| g_item_count
| TODO(model, prefab, building, anim, mover)| TODODisplay count of the item. If no parameter is given this function prints summary about all the items.
|-
| g_mode
| TODOg_mode <driver> <device> <resolution> <fullscreen> [msaa]| TODOChange graphics mode.
|-
| g_msaa
| TODO<sample_count>| TODOChange [https://en.wikipedia.org/wiki/Multisample_anti-aliasing msaa] sample count.
|-
| g_next_border_node
| TODO| TODO|-| g_path| TODO| TODOFinds next border node.
|-
| g_replace_prefab
| TODO<old_token> <new_token>| TODOReplace old prefab with new prefab. The token is unit name without "prefab." prefix.
|-
| g_save_curve_as_text
| TODO<file_name>| TODOSave curve to text file.
|-
| g_sel_dist
| TODO(short, close, middle, far),| TODOAdd to selection all items of given distance type.
|-
| g_sel_item
| TODO<index>| TODOSelect item by index.
|-
| g_sel_type
| TODO(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)| TODOSelect item by type.
|-
| g_sel_uid
| TODO<uid>| TODOSelect item by unique index.|-| 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
| TODO-| TODORecache ui draw buffers.
|-
| g_wander_output
| TODO[fps/vm/sb/dc [error limit][warning limit][far plane]]"| TODOSets which wander output will be shown.
|-
| game
|-
| goto
| <x;y;z> or <cityname>| Teleport debug camera to place on map|-| key| TODO| TODO. Press <F9> to place truck at camera's location.
|-
| mark_country
| TODO<country_id>| TODOMarks roads and prefabs belong to specified country.
|-
| mm_check
| TODO-| TODOCheck integrity of resource manager system.
|-
| mm_defrag
| Run memory manager garbage collector.
|-
| mm_sys| TODO| TODO|-[[Documentation/Engine/Console/Commands/multimon| multimon]]| TODO<operation> <mixed>| TODOAllows configuration of multi monitor support.
|-
| pause
| -
| Toggle game pause state
|-
| phys_info
| -
| Display informations about physical subsystem.
|-
| preview
* preview_editor - editor = start editor, game = start game
* profile_to_load - Name of the profile to be loaded
|-
| profiler_autoshow
| TODO
| TODO
|-
| profiler_dump
| TODO
| TODO
|-
| quit
* unload - unload all plugins
* reload - reloads all plugins
|-
| set
| -
| -
|-
| spawn
| <object_type>
| Spawn traffic object
 
Allowed object types:
* vehicle - standard ai vehicle
* vehicle_forced - forced ai vehicle (ignoring traffic origin and density)
|-
| test
| uset
| <cvar> <value>
| Set value of the [[Documentation/Engine/Configuration variables|cvar ]] by name - in case cvar was not found creates new.
|-
| validate
| <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
|-
| 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.
developer
1,626
edits

Navigation menu