Open main menu

Changes

Documentation/Engine/Console/Commands/Editor

2,936 bytes added, 13:58, 5 May 2023
Created page with "The page lists commands specific and/or useful for map editor users. {| class="wikitable" |- |'''Name'''||'''Parameters'''||'''Description''' |- |edit||[map_name]||Start edit..."
The page lists commands specific and/or useful for map editor users.

{| class="wikitable"
|-
|'''Name'''||'''Parameters'''||'''Description'''
|-
|edit||[map_name]||Start editor. The <span data-mce-mark="1" style="background-color: transparent;">map_name parameter is name of the map to be edited, if not set editor stars with empty map.</span>
|-
|edit_build||-||Rebuild map and check items in map editor.
|-
|edit_build_spawns||-||Rebuild all spawn points in map editor.
|-
|edit_save||-||Saves the map in map editor for loading in game.
|-
|edit_save_text||-||Save map in textual form for debugging purpose.
|-
|edit_free_camera_uplift
|[max_uplift]
|Set editor free camera's max uplift used when the camera is in "Drop free camera to ground" mode.
|-
|g_delete_idx||&lt;index&gt;||Delete item by given index in map editor
|-
|g_delete_uid||&lt;uid&gt;||Delete item by given unique index in map editor
|-
|g_dump||[asset_extension]||Dumps map.
|-
|g_dump_signs||-||Dumps traffic signs.
|-
|g_find_prefab||&lt;prefab_name&gt; [prefab_name] [prefab_name]...||Find prefabs by it's unit name suffix and dump them into bugs file.
|-
|g_item_count||&lt;(model, prefab, building, anim, mover)&gt;||Display count of the item. If no parameter is given this function prints summary about all the items.
|-
|g_next_border_node||-||Finds next border node.
|-
|g_replace_prefab||&lt;old_token&gt; &lt;new_token&gt;||Replace old prefab with new prefab. The token is unit name without "prefab." prefix.
|-
|g_sel_dist||(short, close, middle, far)||Selects all items of given distance type (add them to current selection).
|-
|g_sel_item||&lt;index&gt;||Select item by index.
|-
|g_sel_type||(Terrain, Buildings, Road, Prefab, Model, Company...)||Select item by type.
|-
|g_sel_uid||&lt;uid&gt;||Select item by unique index.
|-
|g_ui_recache||-||Recache ui draw buffers.
|-
|g_wander_output||[fps/vm/sb/dc [error_limit][warning_limit][far_plane][night][rain]]||<p>Sets which wander output will be shown.</p><ul><li>night [default 0]: -1 -&gt; show only day data, 0 -&gt; don't care, 1 -&gt; show only night data</li><li>rain [default 0]: -1 -&gt; show only goods weather data, 0 -&gt; don't care, 1 -&gt; show only bad weather data</li></ul>
|-
|mark_country||&lt;country_id&gt;||Marks roads and prefabs belong to specified country.
|-
|preview||[map_name] [(game, editor)] [profile_to_load]||Start game in preview mode.
|-
|g_save_curve_as_text||/path/filename||<p>exports selected road (or building...) nodes absolute coordinates and directions</p><p>it is useful while tweaking ui map ferry route - <span data-mce-mark="1" style="background-color: transparent;">create road between two ferry ports, tweak it for ui map, export, put to defs</span></p><p>example: g_save_curve_as_text /home/soubor.sii (text file exported to home folder)</p>
|-
|g_cut_plane_ignore
|1
|switching off cutplanes
|-
|g_colbox
|<1 or 0>
|show or hide collision boxes
|}