UI commands: Difference between revisions

From Spring
Jump to navigationJump to search
Knorke (talk | contribs)
advances, still fail
Jk (talk | contribs)
Line 9: Line 9:
=List of commands, some are even explained=
=List of commands, some are even explained=


[http://springrts.com/wiki/Balanced_Annihilation:Chat This Balanced Annihilation page lists some of the commonly used commands with parameters, examples etc.]
For a complete (excluding Lua commands & some engine `actions`) use:
<code><pre>/commandlist</pre></code>


select<br>
Example output:
selectunits<br>
<code><pre>
deselect<br>
/Atm                            (synced)    Gives 1000 metal and 1000 energy to the issuing players team
shadows<br>
/Cheat                          (synced)    Enables/Disables cheating, which is required for a lot of other commands to be usable
water<br>
/Destroy                        (synced)    Destroys one or multiple units by unit-ID, instantly
advshading<br>
/Desync                          (synced)    Allows one to create an artificial desync of the local client with the rest of the participating hosts
say<br>
/DevLua                          (synced)    Enables/Disables Lua dev-mode (can cause desyncs if enabled)
w<br>
/EditDefs                        (synced)    Allows/Disallows editing of unit-, feature- and weapon-defs through Lua
echo<br>
/Give                            (synced)    Places one or multiple units of a single or multiple types on the map, instantly; by default to your own team
setf<br>
/GlobalLOS                      (synced)    Enables/Disables global line-of-sight, which makes the whole map permanently visible to everyone or to a specific allyteam
seti<br>
/GodMode                        (synced)    Enables/Disables god-mode, which allows all players (even spectators) to control all units (even during replays, which will DESYNC them)
sets<br>
/LuaGaia                        (synced)    Allows one to reload or disable Lua-Gaia, or alternatively to send a chat message to Lua-Gaia
drawinmap<br>
/LuaRules                        (synced)    Allows one to reload or disable Lua-rules, or alternatively to send a chat message to Lua-rules
drawlabel<br>
/NoCost                          (synced)    Enables/Disables everything-for-free, which allows everyone to build everything for zero resource costs
mouse[1-5]<br>
/NoHelp                          (synced)    Enables/Disables widgets (LuaUI control)
viewselection<br>
/NoSpecDraw                      (synced)    Allows/Disallows spectators to draw on the map
move[forward, back, left, right, up, down, fast, slow]<br>
/NoSpectatorChat                (synced)    Enables/Disables spectators to use the chat
team<br>
/ReloadCEGs                      (synced)    Reloads CEG scripts
spectator<br>
/ReloadCOB                      (synced)    Reloads COB scripts
specteam<br>
/Skip                            (synced)    Fast-forwards to a given frame, or stops fast-forwarding
specfullview<br>
/Take                            (synced)    Transfers all units of allied teams without any active players to the team of the issuing player
ally<br>
/AdvMapShading                  (unsynced)  Set or toggle advanced map shading mode
group[0-9]<br>
/AdvModelShading                (unsynced)  Set or toggle advanced model shading mode
lastmsgpos<br>
/AIControl                      (unsynced)  Creates a new instance of a Skirmish AI, to let it controll a specific team
char[, all, ally, spec]<br>
/AIKill                          (unsynced)  Kills the Skirmish AI controlling a specified team
track<br>
/AIList                          (unsynced)  Prints a list of all currently active Skirmish AIs
trackoff<br>
/AIReload                        (unsynced)  Reloads the Skirmish AI controlling a specified team
trackmode<br>
/AirMesh                        (unsynced)  Show/Hide the smooth air-mesh map overlay
showhealthbars<br>
/AllMapMarks                    (unsynced)  Show/Hide all map marks drawn so far
pause<br>
/Ally                            (unsynced)  Starts/Ends alliance of the local players ally-team with another ally-team
debug<br>
/ATM                            (unsynced)  Redirects command /ATM to its synced processor
nosound<br>
/Benchmark-Script                (unsynced)  Runs the benchmark-script for a given unit-type
volume<br>
/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
unitreplyvolume<br>
/Chat                            (unsynced)  Starts waiting for intput to be sent to
savegame<br>
/ChatAll                        (unsynced)  Starts waiting for intput to be sent to All
createvideo<br>
/ChatAlly                        (unsynced)  Starts waiting for intput to be sent to Ally
updatefov<br>
/ChatSpec                        (unsynced)  Starts waiting for intput to be sent to Spec
drawtrees<br>
/ClearMapMarks                  (unsynced)  Remove all map marks drawn so far
dynamicsky<br>
/Clock                          (unsynced)  Shows a small digital clock indicating the local time
gameinfo<br>
/CmdColors                      (unsynced)  Reloads cmdcolors.txt
hideinterface<br>
/CommandHelp                    (unsynced)  Prints info about a specific chat command (so far only synced/unsynced and the description)
hardwarecursor<br>
/CommandList                    (unsynced)  Prints all the available chat commands with description (if available) to the console
[increase, decrease]viewradius<br>
/Console                        (unsynced)  Enables/Disables the in-game console
[more, less]trees<br>
/ControlUnit                    (unsynced)  Start to first-person-control a unit
[more, less]clouds<br>
/Crash                          (unsynced)  Invoke an artificial crash through a NULL-pointer dereference (SIGSEGV)
speedup<br>
/CreateVideo                    (unsynced)  Start/Stop capturing a video of the game in progress
slowdown<br>
/Cross                          (unsynced)  Allows one to exchange and modify the appearance of the cross/mouse-pointer in first-person-control view
controlunit<br>
/CtrlPanel                      (unsynced)  Reloads ctrlpanel.txt
showshadowmap<br>
/Debug                          (unsynced)  Enable/Disable debug info rendering mode
showstandard<br>
/DebugColVol                    (unsynced)  Enable/Disable drawing of collision volumes
showelevation<br>
/DebugDrawAI                    (unsynced)  Enables/Disables debug drawing for AIs
toggleradarandjammer<br>
/DebugInfo                      (unsynced)  Print debug info to the chat/log-file about either: sound, profiling
showmetalmap<br>
/DebugPath                      (unsynced)  Enable/Disable drawing of pathfinder debug-data
showpathmap<br>
/DecGUIOpacity                  (unsynced)  Decreases the the opacity(see-through-ness) of GUI elements
yardmap4 (does nothing)<br>
/DecreaseViewRadius              (unsynced)  Decrease the view radius (higher performance, uglier view)
togglelos<br>
/Deselect                        (unsynced)  Deselects all currently selected units
sharedialog<br>
/Destroy                        (unsynced)  Destroys one or multiple units by unit-ID, instantly
quitwarn<br>
/Desync                          (unsynced)  Redirects command /Desync to its synced processor
quit<br>
/DistDraw                        (unsynced)  Set the distance between units and camera, at which they turn into far-textures (flat/texture-only representation) (Graphic setting)
[inc, dec]guiopacity<br>
/DistIcon                        (unsynced)  Set the distance between units and camera, at which they turn into icons (Graphic setting)
screenshot<br>
/DivByZero                      (unsynced)  Invoke an artificial crash by performing a division-by-Zero
grabinput<br>
/DrawInMap                      (unsynced)  Enables drawing on the map
clock - ''display how long the game is already running''<br>
/DrawLabel                      (unsynced)  Draws a label on the map at the current mouse-pointer position
cross<br>
/DrawTrees                      (unsynced)  Enable/Disable rendering of engine trees
fps<br>
/DumpState                      (unsynced)  dump game-state to file
info<br>
/DynamicSky                      (unsynced)  Enable/Disable dynamic-sky rendering
techlevels<br>
/DynamicSun                      (unsynced)  Enable/Disable dynamic-sun rendering
cmdcolors<br>
/Echo                            (unsynced)  Write a string to the log file
ctrlpanel<br>
/EndGraph                        (unsynced)  Enables/Disables the statistics graphs shown at the end of the game
font<br>
/Exception                      (unsynced)  Invoke an artificial crash by throwing an std::runtime_error
aiselect<br>
/Font                            (unsynced)  Reloads the fonts
vsync<br>
/FPS                            (unsynced)  Shows/Hides the frames-per-second indicator
safegl<br>
/FPSHud                          (unsynced)  Enables/Disables HUD (GUI interface) shown in first-person-control mode
resbar ''toggle display of engines resource bar''<br>
/GameInfo                        (unsynced)  Enables/Disables game-info panel rendering
tooltip<br>
/GatherMode                      (unsynced)  Enter/Leave gather-wait command mode
console<br>
/Give                            (unsynced)  Places one or multiple units of a single or multiple types on the map, instantly; by default to your own team
endgraph<br>
/GrabInput                      (unsynced)  Prevents/Enables the mouse from leaving the game window (windowed mode only)
fpshud<br>
/GroundDecals                    (unsynced)  Disable/Enable ground-decals rendering. Ground-decals are things like scars appearing on the map after an explosion.
mapmarks<br>
/Group                          (unsynced)  Allows modifying the members of a group
allmapmarks<br>
/Group0                          (unsynced)  Allows modifying the members of group 0
luaui<br>
/Group1                          (unsynced)  Allows modifying the members of group 1
minimap<br>
/Group2                          (unsynced)  Allows modifying the members of group 2
grounddecals<br>
/Group3                          (unsynced)  Allows modifying the members of group 3
maxparticles<br>
/Group4                          (unsynced)  Allows modifying the members of group 4
gathermode<br>
/Group5                          (unsynced)  Allows modifying the members of group 5
pastetext<br>
/Group6                          (unsynced)  Allows modifying the members of group 6
buffertext<br>
/Group7                          (unsynced)  Allows modifying the members of group 7
inputtextgeo<br>
/Group8                          (unsynced)  Allows modifying the members of group 8
lodscale<br>
/Group9                          (unsynced)  Allows modifying the members of group 9
wiremap<br>
/HardwareCursor                  (unsynced)  Enables/Disables hardware mouse-cursor support
setgamma<br>
/HideInterface                  (unsynced)  Hide/Show the GUI controlls
crash<br>
/IncGUIOpacity                  (unsynced)  Increases the the opacity(see-through-ness) of GUI elements
exception<br>
/IncreaseViewRadius              (unsynced)  Increase the view radius (lower performance, nicer view)
divbyzero<br>
/Info                            (unsynced)  Shows/Hides the player roster
give<br>
/InputTextGeo                    (unsynced)  Move and/or resize the input-text field (the "Say: " thing)
send<br>
/LastMsgPos                      (unsynced)  Moves the camera to show the position of the last message
save<br>
/LessClouds                      (unsynced)  Decreases the density of clouds (higher performance)
atm  ''gives you 1000 energy+metal''<br>
/LessTrees                      (unsynced)  Decreases the distance to the camera, in which trees are still shown (higher performance)
desync (debug only)<br>
/LODScale                        (unsynced)  Set the scale for either of: LOD (level-of-detail), shadow-LOD, reflection-LOD, refraction-LOD
resync<br>
/LuaGaia                        (unsynced)  Redirects command /LuaGaia to its synced processor
take<br>
/LuaModUICtrl                    (unsynced)  Allow/Disallow Lua to receive UI control events, like mouse-, keyboard- and joystick-events
luarules<br>
/LuaRules                        (unsynced)  Redirects command /LuaRules to its synced processor
teamhighlight ''toogle team color strobe on player leave: 0=disabled, 1=players only, 2=players&specs''<br>
/LuaUI                          (unsynced)  Allow/Disallow Lua to draw (GUI elements)
airmesh ''shows a grid used by aircraft to decide flight height''<br>
/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)  Show/Hide the mini-map provided by the engine
/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
/MTInfo                          (unsynced)  Shows/Hides the multi threading info panel
/NoLuaDraw                      (unsynced)  Allow/Disallow Lua to draw on the map
/NoSound                        (unsynced)  Enable/Disable the sound system
/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 save-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
/SetGamma                        (unsynced)  Set the rendering gamma value(s) through SDL
/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
/ShowHealthBars                  (unsynced)  Enable/Disable rendering of health-bars for units
/ShowMetalMap                    (unsynced)  Enable rendering of the auxiliary metal-map overlay
/ShowPathCost                    (unsynced)  Enable rendering of the path costs map overlay
/ShowPathHeat                    (unsynced)  Enable/Disable rendering of the path heat map overlay
/ShowPathTraversability          (unsynced)  Enable rendering of the auxiliary traversability-map (slope-map) overlay
/ShowRezBars                    (unsynced)  Enable/Disable rendering of resource-bars for features
/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
/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)  Set the speed-control mode to one of: 0=Default, 1=Average_CPU, 2=Maximum_CPU
/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)
</pre></code>


=Scripting=
=Scripting=

Revision as of 18:43, 1 January 2013

Development < Lua Scripting < UI commands

How to use the console

The ingame chat is the console. Open wit return key. If you enter these commands into ingame chat, you must add a /
for example:
/info
Some commands will also autocomplete if you press TAB.

List of commands, some are even explained

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

/commandlist

Example output:

/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
/Desync                          (synced)    Allows one to create an artificial desync of the local client with the rest of the participating hosts
/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
/Benchmark-Script                (unsynced)  Runs the benchmark-script for a given unit-type
/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
/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
/Desync                          (unsynced)  Redirects command /Desync to its synced processor
/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
/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)  Allow/Disallow Lua to draw (GUI elements)
/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)  Show/Hide the mini-map provided by the engine
/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
/MTInfo                          (unsynced)  Shows/Hides the multi threading info panel
/NoLuaDraw                       (unsynced)  Allow/Disallow Lua to draw on the map
/NoSound                         (unsynced)  Enable/Disable the sound system
/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 save-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
/SetGamma                        (unsynced)  Set the rendering gamma value(s) through SDL
/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
/ShowHealthBars                  (unsynced)  Enable/Disable rendering of health-bars for units
/ShowMetalMap                    (unsynced)  Enable rendering of the auxiliary metal-map overlay
/ShowPathCost                    (unsynced)  Enable rendering of the path costs map overlay
/ShowPathHeat                    (unsynced)  Enable/Disable rendering of the path heat map overlay
/ShowPathTraversability          (unsynced)  Enable rendering of the auxiliary traversability-map (slope-map) overlay
/ShowRezBars                     (unsynced)  Enable/Disable rendering of resource-bars for features
/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
/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)  Set the speed-control mode to one of: 0=Default, 1=Average_CPU, 2=Maximum_CPU
/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.

Engine Source

http://github.com/spring/spring/blob/ea3075e80cd756149c983d76a2f6b618f2f49697/Documentation/cmds.txt