Difference between revisions of "Riven debug shell"

From A look inside The Link @ wiki
Jump to: navigation, search
(a minimal credit)
(add note about the slideshow command)
Line 21: Line 21:
 
* dump: saves the current card picture to a bmp file
 
* dump: saves the current card picture to a bmp file
 
* ipmm
 
* ipmm
 +
* slideshow: show the images from b2_data.mhk with captions
  
 
See also the [http://www.mystcommunity.com/board/lofiversion/index.php/t19142.html original source].
 
See also the [http://www.mystcommunity.com/board/lofiversion/index.php/t19142.html original source].

Revision as of 00:55, 29 January 2009

The original Riven engine features a built-in debug shell with useful capabilities.

It can be activated by typing the string b3hn in the game and then pressing ctrl+tab. A green prompt should appear in the bottom left corner of the game window. This prompt accepts several commands, listed below. After each command the prompt disappears, but it comes out again by just pressing ctrl+tab.

  • g <id>: go to card <id>
  • gc <id>: go to card, using its RMAP identifier
  • gs <stack> [<id>]: go to stack <stack> (e.g. tspit) and to card <id>, if specified
  • get <variable>: get the value of a variable
  • set <variable> <value>: set the value of a variable
  • undo
  • enable <id>: enable an hotspot
  • disable <id>: disable an hotspot
  • p
  • c
  • pc
  • mem: returns total free memory
  • free: returns physical free memory (excludes virtual)
  • debug: toggles a line with useful debug info
  • hs: toggle hotspot display
  • autosave
  • dump: saves the current card picture to a bmp file
  • ipmm
  • slideshow: show the images from b2_data.mhk with captions

See also the original source.