Console
Console
------------
Graphics Options:
ResolutionWindowed=1
ResolutionX=800
ResolutionY=600
AnimationBlending=1 // control use of blending between
transitioning animations
ViewInterpolation=1 // control position and orientation
interpolation for movement
TerrainSpecularEnabled=1 // control use of specular lighting on the
terrain
UI Options:
CameraScrollSpeed=2
CameraLocked=0
CameraScalePan=10
CameraScalePitch = 10
CameraScaleYaw=10
CameraScaleZoom=0.5
SunScaleDimmer=0.25
1) create a "start.txt" in the run folder, it will run these script commands
whenever you run the RTSE, so
you can predefine CAMERA, CREATE, TERRAIN, etc
USING COMMANDS
--------------
Script commands can be commented out by prefixing the line with "#" or "//"
# this is a comment
// don't do the next command
#changeres 640 480 1
Multiple script commands can be submitted on one line by using a ";" seperator.
EDITING:
Tab: Auto-completes the command, or displays a list of possible command
completions.
Left arrow: move cursor left
Right arrow: move cursor right
Home: Move cursor to start of line.
End: Move cursor to end of line.
Delete: Delete character at cursor position.
Esc: Clear the current line of text.
Backspace: Delete character before cursor position.
COMMAND HISTORY:
Up arrow: Cycle backwards through the last 20 lines entered into the
console.
Down arrow: Cycle forwards through the last 20 lines entered into the
console.
LOG CONTROL:
Page Up: Scroll 10 lines backwards through log messages.
Page Down: Scroll 10 lines forwards through log messages.
COMMAND REFERENCE
-----------------
// application
EXEC scriptname
HELP - list all commands
HELP command - list usage for command
? - same as "HELP"
WAIT seconds
WAITORDERS
WAITSTATE state
ECHO string
LOG level
ALIAS newcommand command - create new commands
QUIT - end the program (also use Alt-Q or Alt-F4)
// application - resources
ADDDEPOT depot
REMDEPOT depot
// renderer
SCREENSHOT - take screenshot (or press ctrl-s)
// renderer - debugging
SHOWTIMING - toggles onscreen stats, also shows average fps at
program exit
// main menu
REQUESTGAME
REQUESTEDITOR
OPENOPTIONSMENU
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
XXXX obsolete list below
// application
UI [0/1] - turns off or on the display of the user
interface screens
INTERFACE [0/1] - turns off or on all interface
components (UI, mouse, etc.). escape key turns back on.
// simulation
TERRAIN [worldsize=128] [quadsize=2] [texturesize=8] [heightmap TGA] [texture TGA]
RESET
CREATE object x y [instance IDS]
DESTROY name
ANIM name animationname [looping=1]
GAMESPEED [speed=1] - range is 0.05 to 16
GAMEPAUSE [1/0] - default is toggle
PLACEMENTMODE [unit] - turns on placement mode for the specified unit type
DESTROYSELECTED - destroyed selected unit(s)
// kingdoms
CREATE kingdom 0 0 [name]
PLAYERKINGDOM [name] - set the user to control this kingdom (by default
the user controls the first kingdom)
PLACEMENTKINGDOM [name] - all subsequent placement of actors uses this as the
owner kingdom
// actor commands
ORIENT name x y
MOVE name x y [speed=1]
STOP name
SUICIDE name
ATTACK name targetname
GUARD name
FOLLOW name targetname [relativex=0] [relativey=0]
CAST name spell targetname
// camera
FOV [angle=15]
ZOOM [level=1] = 0.5 (out) ... 20 (in)
DELTAZOOM = -1 (out) ... +1 (in)
LOOKAT x y
PITCH [pitch=40]
YAW [yaw=-45]
HEIGHT [height=80]
CAMERASCROLLSPEED [speed = 2]
// renderer
CHANGERES w h [fullscreen=0]
WIREFRAME [1 or 0 = toggle]
SCREENSHOT
LETTERBOX [on/off/roll_on/roll_off] [seconds=2]
// sun
SunDimmer [intensity=1.5] - lower = darker
SunDiffuse r [g=r] [b=r]
SunSpecular r [g=r] [b=r]
SunAmbient r [g=r] [b=r]
// equipment
HIDE_EQUIPMENT [instance] [body_part]
UNHIDE_EQUIPMENT [instance] [body_part]
FLIP_EQUIPMENT [instance] [body_part]
REMOVE_EQUIPMENT [instance] [body_part]
ADD_EQUIPMENT [instance] [body_part] [equipment_nif]
REPLACE_EQUIPMENT [instance] [body_part] [equipment_nif] - copies the old
transforms
// rain
START_RAIN
STOP_RAIN
ZOOM_RAIN zoom
SCALE_RAIN scale
// debugging
SHOWBLOCKING - toggles objects and blocking information
HOTKEYS
-------
Using the MAP command, hotkeys can be bound like macros to a script command. There
are three
parameters to the MAP command:
- key = the name of the key. Typically the ASCII representation, although there are
some named keys
such as "left" for arrow left. Modified keys can also be mapped, e.g. "Ctrl-x".
Note that
"+key" maps the event to when the key is pressed (which is actually the default).
You can
use "-key" to map the event to when the key is released. [More detail is
available.]
- context = the context which has to be true for the key to work.
dev = only works in a dev build when dev mode is enabled
editordev = works in any build in the editor, or a dev build running in dev
mode
- widget = the widget which has to exist and receive input (visible, enabled, etc.)
for the hotkey
to work. Common widgets include root, vworld, game, and editor.
- command = the script command to execute when the event happens. This can also be
activating
or deactivating an impulse command (see below). Not specifying a command makes
the hotkey
activate the widget.
Examples:
map ctrl-x dev|vworld "height 90"
map w vworld wireframe
map +t vworld "wireframe 1"
map -t vworld "wireframe 0"
map numpad-home vworld camerascrollspeed 10;wireframe
map Alt-O MainMenuButtonToOpenOptionsMenu
IMPULSE COMMANDS
----------------
These are commands that are toggled active/inactive. While they are active they
repeatedly
perform some function, such as panning the screen or changing the pitch.
Typically, hotkeys
are bound to impulses so the impulse is activated when the key is pressed ("+key")
and the impulse
is inactivated when the key is released ("-key"). A key can be mapped to an
impulse command with
one line:
Note that this is equivalent to binding the key up and key down events separately:
SCENE PROFILING
---------------
CHEATS
-----
You can use "name" or "alias" in development builds. Type in the console or the
chat window.
NOTES
-----
- all values are in meters so if worldize=64 and quadsize=2 then you get a 32x32
quad world