Difference between revisions of "Console"

From Wurmpedia
Jump to navigation Jump to search
m (more)
(More details about console changes)
Line 10: Line 10:
 
; bind <key> "<text>" : Binds the key to a console command. Pressing the key will act as if you had typed the text into the console.
 
; bind <key> "<text>" : Binds the key to a console command. Pressing the key will act as if you had typed the text into the console.
 
; cmd <num> : Raw fight commands, use with care.
 
; cmd <num> : Raw fight commands, use with care.
; dump (skills) : Saves the specified data to a file in the wurm directory.
+
; dump (debug | skills) : Saves the specified data to a file in the player's dumps directory.
 +
; dump (binds | options) : Dumps the specified data to the console.
 
; exec <filename> : Executes each line in the file as a console command.
 
; exec <filename> : Executes each line in the file as a console command.
 
; fightmove<1-5> : Use fight special move 1-5. (No space in the command.)
 
; fightmove<1-5> : Use fight special move 1-5. (No space in the command.)
Line 19: Line 20:
 
; refresh: Reloads the game graphics
 
; refresh: Reloads the game graphics
 
; say <text> : Sends the specified text to the local chat window. (Access other chat windows using /tell, /shout, /village)
 
; say <text> : Sends the specified text to the local chat window. (Access other chat windows using /tell, /shout, /village)
; screenshot : Creates a screenshot (in the screenshot folder)
+
; screenshot : Creates a screenshot (in the player's screenshot directory)
 
; sensitivity <0-10> : Changes mouse sensitivity to the given value. Note that this only changes the senstivity when looking around.
 
; sensitivity <0-10> : Changes mouse sensitivity to the given value. Note that this only changes the senstivity when looking around.
 +
; setoption <option_name> <option_value> : Changes a game option without restarting. Not all options can be changed while playing. Look in gamesettings.txt for option names and value hints.
 
; showbml <filename> : Parses the file as [[BML]] and displays it
 
; showbml <filename> : Parses the file as [[BML]] and displays it
 
; switchlight : toggles between old and new light code
 
; switchlight : toggles between old and new light code
; toggle (console | inventory | keyboard_hints | skills | stats | gui | fps) : Toggles display of the specified [[HUD]] component
+
; toggle (console | fightspam | fps | gui | health | improve | inventory | keyboard_hints | skills | spelleffects | stats | target) : Toggles the specified feature. Most control display of [[HUD]] components.
 
; wiki <title> : Opens a window with the specified wiki page.
 
; wiki <title> : Opens a window with the specified wiki page.
  
Line 32: Line 34:
 
The bind commands require special values as input.
 
The bind commands require special values as input.
  
<key> is based on Java key constants. Letters and numbers represent themselves. For other keys, search [http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/KeyEvent.html the full KeyEvent list] if you can't guess the correct name.
+
<key> is based on Java key constants. Letters and numbers represent themselves. For other keys, search [http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/KeyEvent.html the full KeyEvent list] if you can't guess the correct name. Meta keys can also be specified, e.g. <tt>shift-tab</tt> or <tt>ctrl-alt-w</tt>. Available meta keys are Ctrl, Shift and Alt. The "Alt Gr" key is treated as Alt (if your keyboard has one). The non-meta key must always be the last key in the combination. It is not possible to bind only meta keys.
  
 
<action> is based on an internal client list. The known values are based on autorun.txt. They are: <tt>NEXT_TAB, TOGGLE_CHAT, AUTORUN, CENTER_VIEW, TURN_DOWN, TURN_UP, TURN_LEFT, TURN_RIGHT, MOVE_FORWARD, MOVE_BACK, MOVE_LEFT, MOVE_RIGHT, STRAFE</tt>
 
<action> is based on an internal client list. The known values are based on autorun.txt. They are: <tt>NEXT_TAB, TOGGLE_CHAT, AUTORUN, CENTER_VIEW, TURN_DOWN, TURN_UP, TURN_LEFT, TURN_RIGHT, MOVE_FORWARD, MOVE_BACK, MOVE_LEFT, MOVE_RIGHT, STRAFE</tt>
  
In November 2007, more "keys" were added: <tt>FIGHT_DEFENSIVE, FIGHT_NORMAL, FIGHT_AGGRESSIVELY, TOGGLE_CLIMB, TOGGLE_FAITHFUL, TOGGLE_LAWFUL</tt> (there is no key option for spam mode)
+
In November 2007, more "keys" were added: <tt>FIGHT_DEFENSIVE, FIGHT_NORMAL, FIGHT_AGGRESSIVELY, TOGGLE_CLIMB, TOGGLE_FAITHFUL, TOGGLE_LAWFUL, ACTIVATE_TOOL1, ACTIVATE_TOOL2, ACTIVATE_TOOL3, ACTIVATE_TOOL4, ACTIVATE_TOOL5</tt> (there was no key option for spam mode)
  
In March 2008, more "keys" were added: <tt>GLANCE_LEFT, GLANCE_RIGHT, NO_TARGET, PREVIOUS_TAB, NEXT_WINDOW, PREVIOUS_WINDOW</tt>
+
In March 2008, more "keys" were added: <tt>TOGGLE_FIGHT_SPAM, GLANCE_LEFT, GLANCE_RIGHT, NO_TARGET, PREVIOUS_TAB, NEXT_WINDOW, PREVIOUS_WINDOW, EXAMINE, TAKE, DROP</tt>
  
 
[[Category:Technical Details]]
 
[[Category:Technical Details]]
 
[[Category:Babel/C]]
 
[[Category:Babel/C]]

Revision as of 12:39, 27 March 2009

Main Page :: Console

The console is a window for entering text commands to the client. It can be opened using F1 in the default key bindings. Console commands are different from chat commands, which are typed in the chat and sent directly to the server.

List of commands

Console commands are small commands to use in the console, to change settings. These commands can also be used in autorun.txt for defining key bindings.

bind <key> <action> 
Binds the key to the specified action. See the key section for <key> and <action> values.
bind <key> "<text>" 
Binds the key to a console command. Pressing the key will act as if you had typed the text into the console.
cmd <num> 
Raw fight commands, use with care.
dump (debug | skills) 
Saves the specified data to a file in the player's dumps directory.
dump (binds | options) 
Dumps the specified data to the console.
exec <filename> 
Executes each line in the file as a console command.
fightmove<1-5> 
Use fight special move 1-5. (No space in the command.)
irc [server] [port] 
Connects to the specified IRC network. Defaults are irc.heavenlyplace.net and 6667.
ircsay <text> 
Sends the text to the topmost IRC window.
quit 
Opens the quit dialog
reallyquit 
Quits the client without asking for confirmation
refresh
Reloads the game graphics
say <text> 
Sends the specified text to the local chat window. (Access other chat windows using /tell, /shout, /village)
screenshot 
Creates a screenshot (in the player's screenshot directory)
sensitivity <0-10> 
Changes mouse sensitivity to the given value. Note that this only changes the senstivity when looking around.
setoption <option_name> <option_value> 
Changes a game option without restarting. Not all options can be changed while playing. Look in gamesettings.txt for option names and value hints.
showbml <filename> 
Parses the file as BML and displays it
switchlight 
toggles between old and new light code
toggle (console | fightspam | fps | gui | health | improve | inventory | keyboard_hints | skills | spelleffects | stats | target) 
Toggles the specified feature. Most control display of HUD components.
wiki <title> 
Opens a window with the specified wiki page.

Legend: <name> is a mandatory argument, [name] is an optional argument, (name|other) is an argument which requires one of the listed values.

Key binds

The bind commands require special values as input.

<key> is based on Java key constants. Letters and numbers represent themselves. For other keys, search the full KeyEvent list if you can't guess the correct name. Meta keys can also be specified, e.g. shift-tab or ctrl-alt-w. Available meta keys are Ctrl, Shift and Alt. The "Alt Gr" key is treated as Alt (if your keyboard has one). The non-meta key must always be the last key in the combination. It is not possible to bind only meta keys.

<action> is based on an internal client list. The known values are based on autorun.txt. They are: NEXT_TAB, TOGGLE_CHAT, AUTORUN, CENTER_VIEW, TURN_DOWN, TURN_UP, TURN_LEFT, TURN_RIGHT, MOVE_FORWARD, MOVE_BACK, MOVE_LEFT, MOVE_RIGHT, STRAFE

In November 2007, more "keys" were added: FIGHT_DEFENSIVE, FIGHT_NORMAL, FIGHT_AGGRESSIVELY, TOGGLE_CLIMB, TOGGLE_FAITHFUL, TOGGLE_LAWFUL, ACTIVATE_TOOL1, ACTIVATE_TOOL2, ACTIVATE_TOOL3, ACTIVATE_TOOL4, ACTIVATE_TOOL5 (there was no key option for spam mode)

In March 2008, more "keys" were added: TOGGLE_FIGHT_SPAM, GLANCE_LEFT, GLANCE_RIGHT, NO_TARGET, PREVIOUS_TAB, NEXT_WINDOW, PREVIOUS_WINDOW, EXAMINE, TAKE, DROP