What are the Debugging keys?

From OHRRPGCE-Wiki
Jump to: navigation, search

Debugging keys are special function keys that you can use to test certain things out in Game. The debugging keys can be disabled in the General bitsets menu in Custom to prevent cheating. You may find the debugging keys helpful when testing out your game, but you will probably want to disable them before you distribute your game.

Wip.png
This article discusses a brand new feature which is not included in the latest stable version, and may not even be in the next stable version. It can, however, be found in a nightly build, which can be found on the Downloads page. If you wish to discuss this feature, feel free to use the talk page.

This documents the debug keys in nightly builds, where they are substantially different. If you are using a stable version, look at the previous version.

Contents

[edit] Walkabout (on-map) Debugging Keys

  • F1 Show Minimap (See Also: Even if I disable the minimap, I can still display it with F1)
  • CTRL+F1 Pick a spot on the minimap of any map to teleport to.
  • F2 Quicksave anywhere
  • F3 Quickload anywhere (Warning: Do not quicksave or load during a script, especially if the suspend player command has been issued. The script will not continue when you quickload later)
  • F4 Calls up the Tag-debug screen, which shows you which tags are OFF and which are ON, and lets you change them (+ and - scroll, CTRL+ sets and CTRL- unsets)
  • CTRL+F4 Edit the slice tree (in the Slice Collection Editor). You can even save the slice tree to file.
  • F5 Menu for forcing reloading of edited data while running Game using "Test Game". If you are not editing while you play then this menu is only useful for reloading the map to undo changes made by scripts.
  • CTRL+F5 toggles the 'Simulate Old Levelup Bug' normally edited in the Preference Bitsets menu in Custom. This causes equipment's stat-bonuses to be added to your stats at each levelup. Included for compatibility with games made before 2001!
  • F6 Hold down F6 to allow you to pan the camera freely, using the arrow keys. Press F7 to return to the hero.
  • F7 Focus the camera on the next hero (Or on the first hero if none are in focus)
  • CTRL+F7 Realign hero 0 with the tile grid
  • F8 Raw-edit gen(), for engine developers. This gives you direct access to the data represented in the General Game Data menu, as well as an assortment of other data. Press Esc to exit.
  • CTRL+F8 Write a textual dump of the slice tree to g_debug.txt
  • F9 Raw-edit gmap(), for engine developers. This gives you direct access to the data represented in the General Map Data submenu of the map editor.
  • F10 Toggle script-debugging mode. Press once to draw some information on-screen while continuing to play, twice to pause and enter the script debugger, three times to exit.
  • CTRL+F10 Enable script trigger logging. Every time a script is triggered by an event like a keypress it is logged to a text file called script_log.txt. Also displays when triggered scripts are paused by a wait or finish, however this won't work for scripts started before the bdebug key was pressed (restart the game if needed).
  • F11 Toggle walking through walls (and other obstructions)
  • CTRL+F11 Draw NPC type ID and reference numbers on top of NPCs. ID numbers on top, reference numbers below. The reference numbers are shown without the negative signs. Negative ID numbers means an NPC that is hidden due to tag conditions.
  • CTRL + slows down and CTRL - speeds up the frame rate (adjusts milliseconds per tick).

[edit] In-Battle Debugging Keys

  • F4 Instantly Run (even from inescapable enemies)
  • F5 Gain a million Experience Points
  • F11 Press once to display Enemy ready-meters and state-variables, twice to show queued attacks, and again to hide.

[edit] Non-debugging Keys

  • F12 Take a screenshot, typically saved either in BMP or PNG format, depending on the graphics backend. If you are using gfx_directx, then you can adjust the file format in the backend Options menu by clicking on the window icon (top left of the window). Works everywhere in Game and Custom.
  • CTRL+~ (Ctrl and tilde) displays the current framerate. Works everywhere in Game and Custom.

[edit] See Also

Personal tools