UI commands: Difference between revisions

From Spring
Jump to navigationJump to search
Abma (talk | contribs)
showhealthbar / rezbar isn't supported in current development any more
Flozi (talk | contribs)
Line 13: Line 13:
<code><pre>/commandlist</pre></code>
<code><pre>/commandlist</pre></code>


Example output (95.0):
Example output (98.0):
<code><pre>
<code><pre>
/Atm                     (synced)    Gives 1000 metal and 1000 energy to the issuing players team
Chat commands plus description
/Cheat                   (synced)    Enables/Disables cheating, which is required for a lot of other commands to be usable
==============================
/Destroy                 (synced)    Destroys one or multiple units by unit-ID, instantly
/Atm                             (synced)    Gives 1000 metal and 1000 energy to the issuing players team
/DevLua                 (synced)    Enables/Disables Lua dev-mode (can cause desyncs if enabled)
/Cheat                           (synced)    Enables/Disables cheating, which is required for a lot of other commands to be usable
/EditDefs               (synced)    Allows/Disallows editing of unit-, feature- and weapon-defs through Lua
/Destroy                         (synced)    Destroys one or multiple units by unit-ID, instantly
/Give                   (synced)    Places one or multiple units of a single or multiple types on the map, instantly; by default to your own team
/DevLua                         (synced)    Enables/Disables Lua dev-mode (can cause desyncs if enabled)
/GlobalLOS               (synced)    Enables/Disables global line-of-sight, which makes the whole map permanently visible to everyone or to a specific allyteam
/EditDefs                       (synced)    Allows/Disallows editing of unit-, feature- and weapon-defs through Lua
/GodMode                 (synced)    Enables/Disables god-mode, which allows all players (even spectators) to control all units (even during replays, which will DESYNC them)
/Give                           (synced)    Places one or multiple units of a single or multiple types on the map, instantly; by default to your own team
/LuaGaia                 (synced)    Allows one to reload or disable Lua-Gaia, or alternatively to send a chat message to Lua-Gaia
/GlobalLOS                       (synced)    Enables/Disables global line-of-sight, which makes the whole map permanently visible to everyone or to a specific allyteam
/LuaRules               (synced)    Allows one to reload or disable Lua-rules, or alternatively to send a chat message to Lua-rules
/GodMode                         (synced)    Enables/Disables god-mode, which allows all players (even spectators) to control all units (even during replays, which will DESYNC them)
/NoCost                 (synced)    Enables/Disables everything-for-free, which allows everyone to build everything for zero resource costs
/LuaGaia                         (synced)    Allows one to reload or disable Lua-Gaia, or alternatively to send a chat message to Lua-Gaia
/NoHelp                 (synced)    Enables/Disables widgets (LuaUI control)
/LuaRules                       (synced)    Allows one to reload or disable Lua-rules, or alternatively to send a chat message to Lua-rules
/NoSpecDraw             (synced)    Allows/Disallows spectators to draw on the map
/NoCost                         (synced)    Enables/Disables everything-for-free, which allows everyone to build everything for zero resource costs
/NoSpectatorChat         (synced)    Enables/Disables spectators to use the chat
/NoHelp                         (synced)    Enables/Disables widgets (LuaUI control)
/ReloadCEGs             (synced)    Reloads CEG scripts
/NoSpecDraw                     (synced)    Allows/Disallows spectators to draw on the map
/ReloadCOB               (synced)    Reloads COB scripts
/NoSpectatorChat                 (synced)    Enables/Disables spectators to use the chat
/Skip                   (synced)    Fast-forwards to a given frame, or stops fast-forwarding
/ReloadCEGs                     (synced)    Reloads CEG scripts
/Take                   (synced)    Transfers all units of allied teams without any active players to the team of the issuing player
/ReloadCOB                       (synced)    Reloads COB scripts
/AdvMapShading           (unsynced)  Set or toggle advanced map shading mode
/Skip                           (synced)    Fast-forwards to a given frame, or stops fast-forwarding
/AdvModelShading         (unsynced)  Set or toggle advanced model shading mode
/Take                           (synced)    Transfers all units of allied teams without any active players to the team of the issuing player
/AIControl               (unsynced)  Creates a new instance of a Skirmish AI, to let it controll a specific team
/AdvMapShading                   (unsynced)  Set or toggle advanced map shading mode
/AIKill                 (unsynced)  Kills the Skirmish AI controlling a specified team
/AdvModelShading                 (unsynced)  Set or toggle advanced model shading mode
/AIList                 (unsynced)  Prints a list of all currently active Skirmish AIs
/AIControl                       (unsynced)  Creates a new instance of a Skirmish AI, to let it controll a specific team
/AIReload               (unsynced)  Reloads the Skirmish AI controlling a specified team
/AIKill                         (unsynced)  Kills the Skirmish AI controlling a specified team
/AirMesh                 (unsynced)  Show/Hide the smooth air-mesh map overlay
/AIList                         (unsynced)  Prints a list of all currently active Skirmish AIs
/AllMapMarks             (unsynced)  Show/Hide all map marks drawn so far
/AIReload                       (unsynced)  Reloads the Skirmish AI controlling a specified team
/Ally                   (unsynced)  Starts/Ends alliance of the local players ally-team with another ally-team
/AirMesh                         (unsynced)  Show/Hide the smooth air-mesh map overlay
/ATM                     (unsynced)  Redirects command /ATM to its synced processor
/AllMapMarks                     (unsynced)  Show/Hide all map marks drawn so far
/BufferText             (unsynced)  Write the argument string(s) directly to the console history, but not anywhere else. This is useful for fast manual issuing of the command, later on
/Ally                           (unsynced)  Starts/Ends alliance of the local players ally-team with another ally-team
/Chat                   (unsynced)  Starts waiting for intput to be sent to  
/ATM                             (unsynced)  Redirects command /ATM to its synced processor
/ChatAll                 (unsynced)  Starts waiting for intput to be sent to All
/BufferText                     (unsynced)  Write the argument string(s) directly to the console history, but not anywhere else. This is useful for fast manual issuing of the command, later on
/ChatAlly               (unsynced)  Starts waiting for intput to be sent to Ally
/Chat                           (unsynced)  Starts waiting for intput to be sent to  
/ChatSpec               (unsynced)  Starts waiting for intput to be sent to Spec
/ChatAll                         (unsynced)  Starts waiting for intput to be sent to All
/ClearMapMarks           (unsynced)  Remove all map marks drawn so far
/ChatAlly                       (unsynced)  Starts waiting for intput to be sent to Ally
/Clock                   (unsynced)  Shows a small digital clock indicating the local time
/ChatSpec                       (unsynced)  Starts waiting for intput to be sent to Spec
/CmdColors               (unsynced)  Reloads cmdcolors.txt
/ClearMapMarks                   (unsynced)  Remove all map marks drawn so far
/CommandHelp             (unsynced)  Prints info about a specific chat command (so far only synced/unsynced and the description)
/Clock                           (unsynced)  Shows a small digital clock indicating the local time
/CommandList             (unsynced)  Prints all the available chat commands with description (if available) to the console
/CmdColors                       (unsynced)  Reloads cmdcolors.txt
/Console                 (unsynced)  Enables/Disables the in-game console
/CommandHelp                     (unsynced)  Prints info about a specific chat command (so far only synced/unsynced and the description)
/ControlUnit             (unsynced)  Start to first-person-control a unit
/CommandList                     (unsynced)  Prints all the available chat commands with description (if available) to the console
/Crash                   (unsynced)  Invoke an artificial crash through a NULL-pointer dereference (SIGSEGV)
/Console                         (unsynced)  Enables/Disables the in-game console
/CreateVideo             (unsynced)  Start/Stop capturing a video of the game in progress
/ControlUnit                     (unsynced)  Start to first-person-control a unit
/Cross                   (unsynced)  Allows one to exchange and modify the appearance of the cross/mouse-pointer in first-person-control view
/Crash                           (unsynced)  Invoke an artificial crash through a NULL-pointer dereference (SIGSEGV)
/CtrlPanel               (unsynced)  Reloads ctrlpanel.txt
/CreateVideo                     (unsynced)  Start/Stop capturing a video of the game in progress
/Debug                   (unsynced)  Enable/Disable debug info rendering mode
/Cross                           (unsynced)  Allows one to exchange and modify the appearance of the cross/mouse-pointer in first-person-control view
/DebugColVol             (unsynced)  Enable/Disable drawing of collision volumes
/CtrlPanel                       (unsynced)  Reloads ctrlpanel.txt
/DebugDrawAI             (unsynced)  Enables/Disables debug drawing for AIs
/Debug                           (unsynced)  Enable/Disable debug info rendering mode
/DebugInfo               (unsynced)  Print debug info to the chat/log-file about either: sound, profiling
/DebugColVol                     (unsynced)  Enable/Disable drawing of collision volumes
/DebugPath               (unsynced)  Enable/Disable drawing of pathfinder debug-data
/DebugDrawAI                     (unsynced)  Enables/Disables debug drawing for AIs
/DebugTraceRay           (unsynced)  Enable/Disable drawing of traceray debug-data
/DebugInfo                       (unsynced)  Print debug info to the chat/log-file about either: sound, profiling
/DecGUIOpacity           (unsynced)  Decreases the the opacity(see-through-ness) of GUI elements
/DebugPath                       (unsynced)  Enable/Disable drawing of pathfinder debug-data
/DecreaseViewRadius     (unsynced)  Decrease the view radius (higher performance, uglier view)
/DebugTraceRay                   (unsynced)  Enable/Disable drawing of traceray debug-data
/Deselect               (unsynced)  Deselects all currently selected units
/DecGUIOpacity                   (unsynced)  Decreases the the opacity(see-through-ness) of GUI elements
/Destroy                 (unsynced)  Destroys one or multiple units by unit-ID, instantly
/DecreaseViewRadius             (unsynced)  Decrease the view radius (higher performance, uglier view)
/DistDraw               (unsynced)  Set the distance between units and camera, at which they turn into far-textures (flat/texture-only representation) (Graphic setting)
/Deselect                       (unsynced)  Deselects all currently selected units
/DistIcon               (unsynced)  Set the distance between units and camera, at which they turn into icons (Graphic setting)
/Destroy                         (unsynced)  Destroys one or multiple units by unit-ID, instantly
/DivByZero               (unsynced)  Invoke an artificial crash by performing a division-by-Zero
/DistDraw                       (unsynced)  Set the distance between units and camera, at which they turn into far-textures (flat/texture-only representation) (Graphic setting)
/DrawInMap               (unsynced)  Enables drawing on the map
/DistIcon                       (unsynced)  Set the distance between units and camera, at which they turn into icons (Graphic setting)
/DrawLabel               (unsynced)  Draws a label on the map at the current mouse-pointer position
/DivByZero                       (unsynced)  Invoke an artificial crash by performing a division-by-Zero
/DrawTrees               (unsynced)  Enable/Disable rendering of engine trees
/DrawInMap                       (unsynced)  Enables drawing on the map
/DumpState               (unsynced)  dump game-state to file
/DrawLabel                       (unsynced)  Draws a label on the map at the current mouse-pointer position
/DynamicSky             (unsynced)  Enable/Disable dynamic-sky rendering
/DrawTrees                       (unsynced)  Enable/Disable rendering of engine trees
/DynamicSun             (unsynced)  Enable/Disable dynamic-sun rendering
/DumpState                       (unsynced)  dump game-state to file
/Echo                   (unsynced)  Write a string to the log file
/DynamicSky                     (unsynced)  Enable/Disable dynamic-sky rendering
/EndGraph               (unsynced)  Enables/Disables the statistics graphs shown at the end of the game
/DynamicSun                     (unsynced)  Enable/Disable dynamic-sun rendering
/Exception               (unsynced)  Invoke an artificial crash by throwing an std::runtime_error
/Echo                           (unsynced)  Write a string to the log file
/Font                   (unsynced)  Reloads the fonts
/EndGraph                       (unsynced)  Enables/Disables the statistics graphs shown at the end of the game
/FPS                     (unsynced)  Shows/Hides the frames-per-second indicator
/Exception                       (unsynced)  Invoke an artificial crash by throwing an std::runtime_error
/FPSHud                 (unsynced)  Enables/Disables HUD (GUI interface) shown in first-person-control mode
/Font                           (unsynced)  Reloads the fonts
/GameInfo               (unsynced)  Enables/Disables game-info panel rendering
/FPS                             (unsynced)  Shows/Hides the frames-per-second indicator
/GatherMode             (unsynced)  Enter/Leave gather-wait command mode
/FPSHud                         (unsynced)  Enables/Disables HUD (GUI interface) shown in first-person-control mode
/Give                   (unsynced)  Places one or multiple units of a single or multiple types on the map, instantly; by default to your own team
/Fullscreen                      (unsynced)  Switches fullscreen mode
/GrabInput               (unsynced)  Prevents/Enables the mouse from leaving the game window (windowed mode only)
/GameInfo                       (unsynced)  Enables/Disables game-info panel rendering
/GroundDecals           (unsynced)  Disable/Enable ground-decals rendering. Ground-decals are things like scars appearing on the map after an explosion.
/GatherMode                     (unsynced)  Enter/Leave gather-wait command mode
/Group                   (unsynced)  Allows modifying the members of a group
/Give                           (unsynced)  Places one or multiple units of a single or multiple types on the map, instantly; by default to your own team
/Group0                 (unsynced)  Allows modifying the members of group 0
/GrabInput                       (unsynced)  Prevents/Enables the mouse from leaving the game window (windowed mode only)
/Group1                 (unsynced)  Allows modifying the members of group 1
/GroundDecals                   (unsynced)  Disable/Enable ground-decals rendering. Ground-decals are things like scars appearing on the map after an explosion.
/Group2                 (unsynced)  Allows modifying the members of group 2
/Group                           (unsynced)  Allows modifying the members of a group
/Group3                 (unsynced)  Allows modifying the members of group 3
/Group0                         (unsynced)  Allows modifying the members of group 0
/Group4                 (unsynced)  Allows modifying the members of group 4
/Group1                         (unsynced)  Allows modifying the members of group 1
/Group5                 (unsynced)  Allows modifying the members of group 5
/Group2                         (unsynced)  Allows modifying the members of group 2
/Group6                 (unsynced)  Allows modifying the members of group 6
/Group3                         (unsynced)  Allows modifying the members of group 3
/Group7                 (unsynced)  Allows modifying the members of group 7
/Group4                         (unsynced)  Allows modifying the members of group 4
/Group8                 (unsynced)  Allows modifying the members of group 8
/Group5                         (unsynced)  Allows modifying the members of group 5
/Group9                 (unsynced)  Allows modifying the members of group 9
/Group6                         (unsynced)  Allows modifying the members of group 6
/HardwareCursor         (unsynced)  Enables/Disables hardware mouse-cursor support
/Group7                         (unsynced)  Allows modifying the members of group 7
/HideInterface           (unsynced)  Hide/Show the GUI controlls
/Group8                         (unsynced)  Allows modifying the members of group 8
/IncGUIOpacity           (unsynced)  Increases the the opacity(see-through-ness) of GUI elements
/Group9                         (unsynced)  Allows modifying the members of group 9
/IncreaseViewRadius     (unsynced)  Increase the view radius (lower performance, nicer view)
/HardwareCursor                 (unsynced)  Enables/Disables hardware mouse-cursor support
/Info                   (unsynced)  Shows/Hides the player roster
/HideInterface                   (unsynced)  Hide/Show the GUI controlls
/InputTextGeo           (unsynced)  Move and/or resize the input-text field (the "Say: " thing)
/IncGUIOpacity                   (unsynced)  Increases the the opacity(see-through-ness) of GUI elements
/LastMsgPos             (unsynced)  Moves the camera to show the position of the last message
/IncreaseViewRadius             (unsynced)  Increase the view radius (lower performance, nicer view)
/LessClouds             (unsynced)  Decreases the density of clouds (higher performance)
/Info                           (unsynced)  Shows/Hides the player roster
/LessTrees               (unsynced)  Decreases the distance to the camera, in which trees are still shown (higher performance)
/InputTextGeo                   (unsynced)  Move and/or resize the input-text field (the "Say: " thing)
/LODScale               (unsynced)  Set the scale for either of: LOD (level-of-detail), shadow-LOD, reflection-LOD, refraction-LOD
/LastMsgPos                     (unsynced)  Moves the camera to show the position of the last message
/LuaGaia                 (unsynced)  Redirects command /LuaGaia to its synced processor
/LessClouds                     (unsynced)  Decreases the density of clouds (higher performance)
/LuaModUICtrl           (unsynced)  Allow/Disallow Lua to receive UI control events, like mouse-, keyboard- and joystick-events
/LessTrees                       (unsynced)  Decreases the distance to the camera, in which trees are still shown (higher performance)
/LuaRules               (unsynced)  Redirects command /LuaRules to its synced processor
/LODScale                       (unsynced)  Set the scale for either of: LOD (level-of-detail), shadow-LOD, reflection-LOD, refraction-LOD
/LuaUI                   (unsynced)  Allow/Disallow Lua to draw (GUI elements)
/LuaGaia                         (unsynced)  Redirects command /LuaGaia to its synced processor
/MapBorder               (unsynced)  Set or toggle map border rendering
/LuaModUICtrl                   (unsynced)  Allow/Disallow Lua to receive UI control events, like mouse-, keyboard- and joystick-events
/MapMarks               (unsynced)  Enables/Disables map marks rendering
/LuaRules                       (unsynced)  Redirects command /LuaRules to its synced processor
/MaxNanoParticles       (unsynced)  Set the maximum number of nano-particles (Graphic setting)
/LuaUI                           (unsynced)  Allows one to reload or disable LuaUI, or alternatively to send a chat message to LuaUI
/MaxParticles           (unsynced)  Set the maximum number of particles (Graphics setting)
/MapBorder                       (unsynced)  Set or toggle map border rendering
/MiniMap                 (unsynced)  Show/Hide the mini-map provided by the engine
/MapMarks                       (unsynced)  Enables/Disables map marks rendering
/MoreClouds             (unsynced)  Increases the density of clouds (lower performance)
/MaxNanoParticles               (unsynced)  Set the maximum number of nano-particles (Graphic setting)
/MoreTrees               (unsynced)  Increases the distance to the camera, in which trees are still shown (lower performance)
/MaxParticles                   (unsynced)  Set the maximum number of particles (Graphics setting)
/Mouse1                 (unsynced)  Simulates a mouse button press of button 1
/MiniMap                         (unsynced)  FIXME document subcommands
/Mouse2                 (unsynced)  Simulates a mouse button press of button 2
/MoreClouds                     (unsynced)  Increases the density of clouds (lower performance)
/Mouse3                 (unsynced)  Simulates a mouse button press of button 3
/MoreTrees                       (unsynced)  Increases the distance to the camera, in which trees are still shown (lower performance)
/Mouse4                 (unsynced)  Simulates a mouse button press of button 4
/Mouse1                         (unsynced)  Simulates a mouse button press of button 1
/Mouse5                 (unsynced)  Simulates a mouse button press of button 5
/Mouse2                         (unsynced)  Simulates a mouse button press of button 2
/MoveBack               (unsynced)  Moves the camera Back a bit
/Mouse3                         (unsynced)  Simulates a mouse button press of button 3
/MoveDown               (unsynced)  Moves the camera Down a bit
/Mouse4                         (unsynced)  Simulates a mouse button press of button 4
/MoveFast               (unsynced)  Moves the camera Fast a bit
/Mouse5                         (unsynced)  Simulates a mouse button press of button 5
/MoveForward             (unsynced)  Moves the camera Forward a bit
/MoveBack                       (unsynced)  Moves the camera Back a bit
/MoveLeft               (unsynced)  Moves the camera Left a bit
/MoveDown                       (unsynced)  Moves the camera Down a bit
/MoveRight               (unsynced)  Moves the camera Right a bit
/MoveFast                       (unsynced)  Moves the camera Fast a bit
/MoveSlow               (unsynced)  Moves the camera Slow a bit
/MoveForward                     (unsynced)  Moves the camera Forward a bit
/MoveUp                 (unsynced)  Moves the camera Up a bit
/MoveLeft                       (unsynced)  Moves the camera Left a bit
/NoLuaDraw               (unsynced)  Allow/Disallow Lua to draw on the map
/MoveRight                       (unsynced)  Moves the camera Right a bit
/NoSound                (unsynced)  Enable/Disable the sound system
/MoveSlow                       (unsynced)  Moves the camera Slow a bit
/PasteText               (unsynced)  Paste either the argument string(s) or if none given, the content of the clip-board to chat input
/MoveUp                         (unsynced)  Moves the camera Up a bit
/Pause                   (unsynced)  Pause/Unpause the game
/MuteSound                      (unsynced)  Mute/Unmute the current sound system
/Quit                   (unsynced)  Exits the game immediately
/NoLuaDraw                       (unsynced)  Allow/Disallow Lua to draw on the map
/QuitForce               (unsynced)  Alias for command "QuitForce"
/PasteText                       (unsynced)  Paste either the argument string(s) or if none given, the content of the clip-board to chat input
/QuitMenu               (unsynced)  Opens the quit-menu, if it is not already open
/Pause                           (unsynced)  Pause/Unpause the game
/QuitMessage             (unsynced)  Deprecated, see /Quit instead (was used to quite the game immediately)
/Quit                           (unsynced)  Exits the game immediately
/ReloadGame             (unsynced)  Restarts the game with the initially provided start-script
/QuitForce                       (unsynced)  Alias for command "QuitForce"
/ReloadShaders           (unsynced)  Reloads all engine shaders
/QuitMenu                       (unsynced)  Opens the quit-menu, if it is not already open
/ResBar                 (unsynced)  Shows/Hides team resource storage indicator bar
/QuitMessage                     (unsynced)  Deprecated, see /Quit instead (was used to quite the game immediately)
/Resync                 (unsynced)  Redirects command /Resync to its synced processor
/ReloadGame                     (unsynced)  Restarts the game with the initially provided start-script
/roam                   (unsynced)  Disables/Enables ROAM mesh rendering: 0=off, 1=on
/ReloadShaders                   (unsynced)  Reloads all engine shaders
/SafeGL                 (unsynced)  Enables/Disables OpenGL safe-mode
/ResBar                         (unsynced)  Shows/Hides team resource storage indicator bar
/Save                   (unsynced)  Save the game state to a specific file (BROKEN)
/Resync                         (unsynced)  Redirects command /Resync to its synced processor
/SaveGame               (unsynced)  Save the game state to QuickSave.ssf (BROKEN)
/roam                           (unsynced)  Disables/Enables ROAM mesh rendering: 0=off, 1=on
/Say                     (unsynced)  Say something in (public) chat
/SafeGL                         (unsynced)  Enables/Disables OpenGL safe-mode
/ScreenShot             (unsynced)  Take a screen-shot of the current view
/Save                           (unsynced)  Save the game state to a specific file (BROKEN)
/Select                 (unsynced)  <chat command description: Select>
/SaveGame                       (unsynced)  Save the game state to QuickSave.ssf (BROKEN)
/SelectCycle             (unsynced)  <chat command description: SelectUnits>
/Say                             (unsynced)  Say something in (public) chat
/SelectUnits             (unsynced)  <chat command description: SelectUnits>
/ScreenShot                     (unsynced)  Take a screen-shot of the current view
/Send                   (unsynced)  Send a string as raw network message to the game host (for debugging only)
/Select                         (unsynced)  <chat command description: Select>
/Set                     (unsynced)  Set a config key=value pair
/SelectCycle                     (unsynced)  <chat command description: SelectUnits>
/SetGamma                (unsynced)  Set the rendering gamma value(s) through SDL
/SelectUnits                     (unsynced)  <chat command description: SelectUnits>
/Shadows                 (unsynced)  Disables/Enables shadows rendering: -1=disabled, 0=off, 1=full shadows, 2=skip terrain shadows
/Send                           (unsynced)  Send a string as raw network message to the game host (for debugging only)
/ShareDialog             (unsynced)  Opens the share dialog, which allows you to send units and resources to other players
/Set                             (unsynced)  Set a config key=value pair
/ShowElevation           (unsynced)  Enable rendering of the auxiliary height-map overlay
/Shadows                         (unsynced)  Disables/Enables shadows rendering: -1=disabled, 0=off, 1=full shadows, 2=skip terrain shadows
/ShowMetalMap           (unsynced)  Enable rendering of the auxiliary metal-map overlay
/ShareDialog                     (unsynced)  Opens the share dialog, which allows you to send units and resources to other players
/ShowPathCost           (unsynced)  Enable rendering of the path cost-map overlay
/ShowElevation                   (unsynced)  Enable rendering of the auxiliary height-map overlay
/ShowPathFlow           (unsynced)  Enable/Disable rendering of the path flow-map overlay
/ShowMetalMap                   (unsynced)  Enable rendering of the auxiliary metal-map overlay
/ShowPathHeat           (unsynced)  Enable/Disable rendering of the path heat-map overlay
/ShowPathCost                   (unsynced)  Enable rendering of the path cost-map overlay
/ShowPathTraversability (unsynced)  Enable rendering of the path traversability-map overlay
/ShowPathFlow                   (unsynced)  Enable/Disable rendering of the path flow-map overlay
/ShowStandard           (unsynced)  Disable rendering of all auxiliary map overlays
/ShowPathHeat                   (unsynced)  Enable/Disable rendering of the path heat-map overlay
/SlowDown               (unsynced)  Decreases the simulation speed. The engine will try to simulate less frames per second
/ShowPathTraversability         (unsynced)  Enable rendering of the path traversability-map overlay
/SoundChannelEnable     (unsynced)  Enable/Disable specific sound channels: UnitReply, General, Battle, UserInterface, Music
/ShowStandard                   (unsynced)  Disable rendering of all auxiliary map overlays
/SpecFullView           (unsynced)  Sets or toggles between full LOS or ally-team LOS, if the local user is a spectator
/SlowDown                       (unsynced)  Decreases the simulation speed. The engine will try to simulate less frames per second
/Spectator               (unsynced)  Lets the local user give up controll over a team, and start spectating
/SoundChannelEnable             (unsynced)  Enable/Disable specific sound channels: UnitReply, General, Battle, UserInterface, Music
/SpecTeam               (unsynced)  Lets the local user specify the team to follow, if he is a spectator
/SoundDevice                    (unsynced)  Switch the sound output system (currently only OpenAL / NullAudio)
/Speed                   (unsynced)  Shows/Hides the simulation speed indicator
/SpecFullView                   (unsynced)  Sets or toggles between full LOS or ally-team LOS, if the local user is a spectator
/SpeedControl           (unsynced)  Sets how server adjusts speed according to player's load (CPU), 1: use average, 2: use highest,
/Spectator                       (unsynced)  Lets the local user give up controll over a team, and start spectating
/SpeedUp                 (unsynced)  Increases the simulation speed. The engine will try to simulate more frames per second
/SpecTeam                       (unsynced)  Lets the local user specify the team to follow, if he is a spectator
/Take                   (unsynced)  Redirects command /Take to its synced processor
/Speed                           (unsynced)  Shows/Hides the simulation speed indicator
/Team                   (unsynced)  Lets the local user change to another team
/SpeedControl                   (unsynced)  Sets how server adjusts speed according to player's load (CPU), 1: use average, 2: use highest,
/TeamHighlight           (unsynced)  Enables/Disables uncontrolled team blinking
/SpeedUp                         (unsynced)  Increases the simulation speed. The engine will try to simulate more frames per second
/ToggleLOS               (unsynced)  Enable rendering of the auxiliary LOS-map overlay
/Take                           (unsynced)  Redirects command /Take to its synced processor
/ToggleRadarAndJammer   (unsynced)  Enable/Disable rendering of the auxiliary radar- & jammer-map overlay
/Team                           (unsynced)  Lets the local user change to another team
/ToolTip                 (unsynced)  Enables/Disables the general tool-tips, displayed when hovering over units. features or the map
/TeamHighlight                   (unsynced)  Enables/Disables uncontrolled team blinking
/Track                   (unsynced)  Start following the selected unit(s) with the camera
/ToggleLOS                       (unsynced)  Enable rendering of the auxiliary LOS-map overlay
/TrackMode               (unsynced)  Shift through different ways of following selected unit(s)
/ToggleRadarAndJammer           (unsynced)  Enable/Disable rendering of the auxiliary radar- & jammer-map overlay
/TrackOff               (unsynced)  Stop following the selected unit(s) with the camera
/ToolTip                         (unsynced)  Enables/Disables the general tool-tips, displayed when hovering over units. features or the map
/TSet                    (unsynced)  Set a config key=value pair in the overlay, meaning it will not be persisted for future games
/Track                           (unsynced)  Start following the selected unit(s) with the camera
/ViewSelection          (unsynced)  Moves the camera to the center of the currently selected units
/TrackMode                       (unsynced)  Shift through different ways of following selected unit(s)
/VSync                   (unsynced)  Enables/Disables vertical-sync (Graphics setting)
/TrackOff                       (unsynced)  Stop following the selected unit(s) with the camera
/W                       (unsynced)  Say something in private to a specific player, by player-name
/TSet                            (unsynced)  Set a config key=value pair in the overlay, meaning it will not be persisted for future games
/Water                   (unsynced)  Set water rendering mode: 0=basic, 1=reflective, 2=dynamic, 3=reflective&refractive?, 4=bump-mapped
/ViewSelection                  (unsynced)  Moves the camera to the center of the currently selected units
/WByNum                 (unsynced)  Say something in private to a specific player, by player-ID
/VSync                           (unsynced)  Enables/Disables vertical-sync (Graphics setting)
/WireMap                 (unsynced)  Enable/Disable drawing of the map as wire-frame (no textures) (Graphic setting)
/W                               (unsynced)  Say something in private to a specific player, by player-name
/Water                           (unsynced)  Set water rendering mode: 0=basic, 1=reflective, 2=dynamic, 3=reflective&refractive?, 4=bump-mapped
/WByNum                         (unsynced)  Say something in private to a specific player, by player-ID
/WireMap                         (unsynced)  Enable/Disable drawing of the map as wire-frame (no textures) (Graphic setting)
</pre></code>
</pre></code>



Revision as of 14:50, 11 October 2014

Development < Lua Scripting < UI commands

How to use the console

The ingame chat is the console. Open with hitting the `return` or `enter` key. If you want to enter a command into ingame chat, you must add a / in front
for example: /commandhelp
Some commands will also autocomplete if you press TAB. So if you enter "/com" and then to press TAB, it will complete it to `/command` and tells you there is `/commandhelp` & `/commandlist`, if you now enter either `l` or `h` and press TAB again it will complete to one of them.

Also commands are not case-sensitive.

List of commands, some are even explained

For a complete (excluding Lua commands & some engine `actions`) use:

/commandlist

Example output (98.0):

Chat commands plus description
==============================
/Atm                             (synced)    Gives 1000 metal and 1000 energy to the issuing players team
/Cheat                           (synced)    Enables/Disables cheating, which is required for a lot of other commands to be usable
/Destroy                         (synced)    Destroys one or multiple units by unit-ID, instantly
/DevLua                          (synced)    Enables/Disables Lua dev-mode (can cause desyncs if enabled)
/EditDefs                        (synced)    Allows/Disallows editing of unit-, feature- and weapon-defs through Lua
/Give                            (synced)    Places one or multiple units of a single or multiple types on the map, instantly; by default to your own team
/GlobalLOS                       (synced)    Enables/Disables global line-of-sight, which makes the whole map permanently visible to everyone or to a specific allyteam
/GodMode                         (synced)    Enables/Disables god-mode, which allows all players (even spectators) to control all units (even during replays, which will DESYNC them)
/LuaGaia                         (synced)    Allows one to reload or disable Lua-Gaia, or alternatively to send a chat message to Lua-Gaia
/LuaRules                        (synced)    Allows one to reload or disable Lua-rules, or alternatively to send a chat message to Lua-rules
/NoCost                          (synced)    Enables/Disables everything-for-free, which allows everyone to build everything for zero resource costs
/NoHelp                          (synced)    Enables/Disables widgets (LuaUI control)
/NoSpecDraw                      (synced)    Allows/Disallows spectators to draw on the map
/NoSpectatorChat                 (synced)    Enables/Disables spectators to use the chat
/ReloadCEGs                      (synced)    Reloads CEG scripts
/ReloadCOB                       (synced)    Reloads COB scripts
/Skip                            (synced)    Fast-forwards to a given frame, or stops fast-forwarding
/Take                            (synced)    Transfers all units of allied teams without any active players to the team of the issuing player
/AdvMapShading                   (unsynced)  Set or toggle advanced map shading mode
/AdvModelShading                 (unsynced)  Set or toggle advanced model shading mode
/AIControl                       (unsynced)  Creates a new instance of a Skirmish AI, to let it controll a specific team
/AIKill                          (unsynced)  Kills the Skirmish AI controlling a specified team
/AIList                          (unsynced)  Prints a list of all currently active Skirmish AIs
/AIReload                        (unsynced)  Reloads the Skirmish AI controlling a specified team
/AirMesh                         (unsynced)  Show/Hide the smooth air-mesh map overlay
/AllMapMarks                     (unsynced)  Show/Hide all map marks drawn so far
/Ally                            (unsynced)  Starts/Ends alliance of the local players ally-team with another ally-team
/ATM                             (unsynced)  Redirects command /ATM to its synced processor
/BufferText                      (unsynced)  Write the argument string(s) directly to the console history, but not anywhere else. This is useful for fast manual issuing of the command, later on
/Chat                            (unsynced)  Starts waiting for intput to be sent to 
/ChatAll                         (unsynced)  Starts waiting for intput to be sent to All
/ChatAlly                        (unsynced)  Starts waiting for intput to be sent to Ally
/ChatSpec                        (unsynced)  Starts waiting for intput to be sent to Spec
/ClearMapMarks                   (unsynced)  Remove all map marks drawn so far
/Clock                           (unsynced)  Shows a small digital clock indicating the local time
/CmdColors                       (unsynced)  Reloads cmdcolors.txt
/CommandHelp                     (unsynced)  Prints info about a specific chat command (so far only synced/unsynced and the description)
/CommandList                     (unsynced)  Prints all the available chat commands with description (if available) to the console
/Console                         (unsynced)  Enables/Disables the in-game console
/ControlUnit                     (unsynced)  Start to first-person-control a unit
/Crash                           (unsynced)  Invoke an artificial crash through a NULL-pointer dereference (SIGSEGV)
/CreateVideo                     (unsynced)  Start/Stop capturing a video of the game in progress
/Cross                           (unsynced)  Allows one to exchange and modify the appearance of the cross/mouse-pointer in first-person-control view
/CtrlPanel                       (unsynced)  Reloads ctrlpanel.txt
/Debug                           (unsynced)  Enable/Disable debug info rendering mode
/DebugColVol                     (unsynced)  Enable/Disable drawing of collision volumes
/DebugDrawAI                     (unsynced)  Enables/Disables debug drawing for AIs
/DebugInfo                       (unsynced)  Print debug info to the chat/log-file about either: sound, profiling
/DebugPath                       (unsynced)  Enable/Disable drawing of pathfinder debug-data
/DebugTraceRay                   (unsynced)  Enable/Disable drawing of traceray debug-data
/DecGUIOpacity                   (unsynced)  Decreases the the opacity(see-through-ness) of GUI elements
/DecreaseViewRadius              (unsynced)  Decrease the view radius (higher performance, uglier view)
/Deselect                        (unsynced)  Deselects all currently selected units
/Destroy                         (unsynced)  Destroys one or multiple units by unit-ID, instantly
/DistDraw                        (unsynced)  Set the distance between units and camera, at which they turn into far-textures (flat/texture-only representation) (Graphic setting)
/DistIcon                        (unsynced)  Set the distance between units and camera, at which they turn into icons (Graphic setting)
/DivByZero                       (unsynced)  Invoke an artificial crash by performing a division-by-Zero
/DrawInMap                       (unsynced)  Enables drawing on the map
/DrawLabel                       (unsynced)  Draws a label on the map at the current mouse-pointer position
/DrawTrees                       (unsynced)  Enable/Disable rendering of engine trees
/DumpState                       (unsynced)  dump game-state to file
/DynamicSky                      (unsynced)  Enable/Disable dynamic-sky rendering
/DynamicSun                      (unsynced)  Enable/Disable dynamic-sun rendering
/Echo                            (unsynced)  Write a string to the log file
/EndGraph                        (unsynced)  Enables/Disables the statistics graphs shown at the end of the game
/Exception                       (unsynced)  Invoke an artificial crash by throwing an std::runtime_error
/Font                            (unsynced)  Reloads the fonts
/FPS                             (unsynced)  Shows/Hides the frames-per-second indicator
/FPSHud                          (unsynced)  Enables/Disables HUD (GUI interface) shown in first-person-control mode
/Fullscreen                      (unsynced)  Switches fullscreen mode
/GameInfo                        (unsynced)  Enables/Disables game-info panel rendering
/GatherMode                      (unsynced)  Enter/Leave gather-wait command mode
/Give                            (unsynced)  Places one or multiple units of a single or multiple types on the map, instantly; by default to your own team
/GrabInput                       (unsynced)  Prevents/Enables the mouse from leaving the game window (windowed mode only)
/GroundDecals                    (unsynced)  Disable/Enable ground-decals rendering. Ground-decals are things like scars appearing on the map after an explosion.
/Group                           (unsynced)  Allows modifying the members of a group
/Group0                          (unsynced)  Allows modifying the members of group 0
/Group1                          (unsynced)  Allows modifying the members of group 1
/Group2                          (unsynced)  Allows modifying the members of group 2
/Group3                          (unsynced)  Allows modifying the members of group 3
/Group4                          (unsynced)  Allows modifying the members of group 4
/Group5                          (unsynced)  Allows modifying the members of group 5
/Group6                          (unsynced)  Allows modifying the members of group 6
/Group7                          (unsynced)  Allows modifying the members of group 7
/Group8                          (unsynced)  Allows modifying the members of group 8
/Group9                          (unsynced)  Allows modifying the members of group 9
/HardwareCursor                  (unsynced)  Enables/Disables hardware mouse-cursor support
/HideInterface                   (unsynced)  Hide/Show the GUI controlls
/IncGUIOpacity                   (unsynced)  Increases the the opacity(see-through-ness) of GUI elements
/IncreaseViewRadius              (unsynced)  Increase the view radius (lower performance, nicer view)
/Info                            (unsynced)  Shows/Hides the player roster
/InputTextGeo                    (unsynced)  Move and/or resize the input-text field (the "Say: " thing)
/LastMsgPos                      (unsynced)  Moves the camera to show the position of the last message
/LessClouds                      (unsynced)  Decreases the density of clouds (higher performance)
/LessTrees                       (unsynced)  Decreases the distance to the camera, in which trees are still shown (higher performance)
/LODScale                        (unsynced)  Set the scale for either of: LOD (level-of-detail), shadow-LOD, reflection-LOD, refraction-LOD
/LuaGaia                         (unsynced)  Redirects command /LuaGaia to its synced processor
/LuaModUICtrl                    (unsynced)  Allow/Disallow Lua to receive UI control events, like mouse-, keyboard- and joystick-events
/LuaRules                        (unsynced)  Redirects command /LuaRules to its synced processor
/LuaUI                           (unsynced)  Allows one to reload or disable LuaUI, or alternatively to send a chat message to LuaUI
/MapBorder                       (unsynced)  Set or toggle map border rendering
/MapMarks                        (unsynced)  Enables/Disables map marks rendering
/MaxNanoParticles                (unsynced)  Set the maximum number of nano-particles (Graphic setting)
/MaxParticles                    (unsynced)  Set the maximum number of particles (Graphics setting)
/MiniMap                         (unsynced)  FIXME document subcommands
/MoreClouds                      (unsynced)  Increases the density of clouds (lower performance)
/MoreTrees                       (unsynced)  Increases the distance to the camera, in which trees are still shown (lower performance)
/Mouse1                          (unsynced)  Simulates a mouse button press of button 1
/Mouse2                          (unsynced)  Simulates a mouse button press of button 2
/Mouse3                          (unsynced)  Simulates a mouse button press of button 3
/Mouse4                          (unsynced)  Simulates a mouse button press of button 4
/Mouse5                          (unsynced)  Simulates a mouse button press of button 5
/MoveBack                        (unsynced)  Moves the camera Back a bit
/MoveDown                        (unsynced)  Moves the camera Down a bit
/MoveFast                        (unsynced)  Moves the camera Fast a bit
/MoveForward                     (unsynced)  Moves the camera Forward a bit
/MoveLeft                        (unsynced)  Moves the camera Left a bit
/MoveRight                       (unsynced)  Moves the camera Right a bit
/MoveSlow                        (unsynced)  Moves the camera Slow a bit
/MoveUp                          (unsynced)  Moves the camera Up a bit
/MuteSound                       (unsynced)  Mute/Unmute the current sound system
/NoLuaDraw                       (unsynced)  Allow/Disallow Lua to draw on the map
/PasteText                       (unsynced)  Paste either the argument string(s) or if none given, the content of the clip-board to chat input
/Pause                           (unsynced)  Pause/Unpause the game
/Quit                            (unsynced)  Exits the game immediately
/QuitForce                       (unsynced)  Alias for command "QuitForce"
/QuitMenu                        (unsynced)  Opens the quit-menu, if it is not already open
/QuitMessage                     (unsynced)  Deprecated, see /Quit instead (was used to quite the game immediately)
/ReloadGame                      (unsynced)  Restarts the game with the initially provided start-script
/ReloadShaders                   (unsynced)  Reloads all engine shaders
/ResBar                          (unsynced)  Shows/Hides team resource storage indicator bar
/Resync                          (unsynced)  Redirects command /Resync to its synced processor
/roam                            (unsynced)  Disables/Enables ROAM mesh rendering: 0=off, 1=on
/SafeGL                          (unsynced)  Enables/Disables OpenGL safe-mode
/Save                            (unsynced)  Save the game state to a specific file (BROKEN)
/SaveGame                        (unsynced)  Save the game state to QuickSave.ssf (BROKEN)
/Say                             (unsynced)  Say something in (public) chat
/ScreenShot                      (unsynced)  Take a screen-shot of the current view
/Select                          (unsynced)  <chat command description: Select>
/SelectCycle                     (unsynced)  <chat command description: SelectUnits>
/SelectUnits                     (unsynced)  <chat command description: SelectUnits>
/Send                            (unsynced)  Send a string as raw network message to the game host (for debugging only)
/Set                             (unsynced)  Set a config key=value pair
/Shadows                         (unsynced)  Disables/Enables shadows rendering: -1=disabled, 0=off, 1=full shadows, 2=skip terrain shadows
/ShareDialog                     (unsynced)  Opens the share dialog, which allows you to send units and resources to other players
/ShowElevation                   (unsynced)  Enable rendering of the auxiliary height-map overlay
/ShowMetalMap                    (unsynced)  Enable rendering of the auxiliary metal-map overlay
/ShowPathCost                    (unsynced)  Enable rendering of the path cost-map overlay
/ShowPathFlow                    (unsynced)  Enable/Disable rendering of the path flow-map overlay
/ShowPathHeat                    (unsynced)  Enable/Disable rendering of the path heat-map overlay
/ShowPathTraversability          (unsynced)  Enable rendering of the path traversability-map overlay
/ShowStandard                    (unsynced)  Disable rendering of all auxiliary map overlays
/SlowDown                        (unsynced)  Decreases the simulation speed. The engine will try to simulate less frames per second
/SoundChannelEnable              (unsynced)  Enable/Disable specific sound channels: UnitReply, General, Battle, UserInterface, Music
/SoundDevice                     (unsynced)  Switch the sound output system (currently only OpenAL / NullAudio)
/SpecFullView                    (unsynced)  Sets or toggles between full LOS or ally-team LOS, if the local user is a spectator
/Spectator                       (unsynced)  Lets the local user give up controll over a team, and start spectating
/SpecTeam                        (unsynced)  Lets the local user specify the team to follow, if he is a spectator
/Speed                           (unsynced)  Shows/Hides the simulation speed indicator
/SpeedControl                    (unsynced)  Sets how server adjusts speed according to player's load (CPU), 1: use average, 2: use highest,
/SpeedUp                         (unsynced)  Increases the simulation speed. The engine will try to simulate more frames per second
/Take                            (unsynced)  Redirects command /Take to its synced processor
/Team                            (unsynced)  Lets the local user change to another team
/TeamHighlight                   (unsynced)  Enables/Disables uncontrolled team blinking
/ToggleLOS                       (unsynced)  Enable rendering of the auxiliary LOS-map overlay
/ToggleRadarAndJammer            (unsynced)  Enable/Disable rendering of the auxiliary radar- & jammer-map overlay
/ToolTip                         (unsynced)  Enables/Disables the general tool-tips, displayed when hovering over units. features or the map
/Track                           (unsynced)  Start following the selected unit(s) with the camera
/TrackMode                       (unsynced)  Shift through different ways of following selected unit(s)
/TrackOff                        (unsynced)  Stop following the selected unit(s) with the camera
/TSet                            (unsynced)  Set a config key=value pair in the overlay, meaning it will not be persisted for future games
/ViewSelection                   (unsynced)  Moves the camera to the center of the currently selected units
/VSync                           (unsynced)  Enables/Disables vertical-sync (Graphics setting)
/W                               (unsynced)  Say something in private to a specific player, by player-name
/Water                           (unsynced)  Set water rendering mode: 0=basic, 1=reflective, 2=dynamic, 3=reflective&refractive?, 4=bump-mapped
/WByNum                          (unsynced)  Say something in private to a specific player, by player-ID
/WireMap                         (unsynced)  Enable/Disable drawing of the map as wire-frame (no textures) (Graphic setting)

Scripting

In Lua scripts, these commands can be used like this:
Spring.SendCommands("resbar 0")
notice the missing / when used like this.