UI commands

From Spring
Revision as of 08:26, 28 April 2011 by Knorke (talk | contribs) (advances, still fail)
Jump to navigationJump to search

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

This Balanced Annihilation page lists some of the commonly used commands with parameters, examples etc.

select
selectunits
deselect
shadows
water
advshading
say
w
echo
setf
seti
sets
drawinmap
drawlabel
mouse[1-5]
viewselection
move[forward, back, left, right, up, down, fast, slow]
team
spectator
specteam
specfullview
ally
group[0-9]
lastmsgpos
char[, all, ally, spec]
track
trackoff
trackmode
showhealthbars
pause
debug
nosound
volume
unitreplyvolume
savegame
createvideo
updatefov
drawtrees
dynamicsky
gameinfo
hideinterface
hardwarecursor
[increase, decrease]viewradius
[more, less]trees
[more, less]clouds
speedup
slowdown
controlunit
showshadowmap
showstandard
showelevation
toggleradarandjammer
showmetalmap
showpathmap
yardmap4 (does nothing)
togglelos
sharedialog
quitwarn
quit
[inc, dec]guiopacity
screenshot
grabinput
clock - display how long the game is already running
cross
fps
info
techlevels
cmdcolors
ctrlpanel
font
aiselect
vsync
safegl
resbar toggle display of engines resource bar
tooltip
console
endgraph
fpshud
mapmarks
allmapmarks
luaui
minimap
grounddecals
maxparticles
gathermode
pastetext
buffertext
inputtextgeo
lodscale
wiremap
setgamma
crash
exception
divbyzero
give
send
save
atm gives you 1000 energy+metal
desync (debug only)
resync
take
luarules
teamhighlight toogle team color strobe on player leave: 0=disabled, 1=players only, 2=players&specs
airmesh shows a grid used by aircraft to decide flight height

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