The following documentation is also available at http://rpg.hamsterrepublic.com/ohrrpgce/Debug_keys ------------------------------------- The following are only available when a text box IS NOT being displayed: F1 Show Minimap 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) ------------------------------------- The following are only available when a text box IS being displayed: F1 Show text box debug info. The next textbox/script conditional is shown in detail. Any other enabled conditionals which happen after the textbox closes are only shown briefly: the tags that activate them, not their exact effects. Conditionals that happen as soon as the text box is displayed, such as 'Instead' checks and 'Set Tag', aren't shown. ------------------------------------- Everything else is always available: F4 Brings up the Tag Debugging menu, which shows you which tags are OFF and which are ON (and which are Autoset, e.g. an "Item equipped" tag), and lets you change them (+ and - scroll, TAB toggles, CTRL+ sets and CTRL- unsets). Press F4 again twice to close. 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. F6 NPC Debug Mode. Draw NPC type ID and reference numbers on top of NPCs. ID numbers at top, reference numbers below. The reference numbers are shown without the negative signs. NPCs that are hidden due to tag conditions are shown with darkened ID numbers. Move the mouse over an NPC to see some of the NPC type and instance data. (Hint: use the PAUSE key to examine at moving NPCs) Press F6 twice to also see dotted lines around each NPC indicating everything that's considered an obstruction. Press three times to disable this mode. CTRL+F7 Realign hero 0 with the tile grid F8 Bring up this debug menu (this option does nothing) CTRL+F8 Lets you switch graphics backend. This key combination works everywhere in Game and Custom. Try switching if you have graphical or keyboard/mouse/joystick problems or want certain features. Only gfx_sdl supports resolutions other than 320x200. CTRL+F9 Toggle script profiling. When profiling, the script interpreter collects statistics about how long each script ran for, how long the scripts it called ran for, and how many times it was run. These stats are printed to g_debug.txt (next to the .rpg file) when you quit, or when you turn off profiling. Note: If you turn profiling on and off several times, data from all profiling sessions gets printed. 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 Open the Macro record and replay menu, or if you're currently recording or replaying a macro, stops it. F12 Take a screenshot, saving it next to the .rpg. Hold down to take a screenshot every frame. CTRL+F12 Start recording a 'video' as a looping .gif file. Press again to stop. Saved alongside the screenshots. The files will be large; you can compress them to typically half the size with the free 'gifsicle' tool or similar. PAUSE Pauses the game; only debug keys can be used. CTRL + slows down and CTRL - speeds up the frame rate (adjusts milliseconds per tick). Holding down SHIFT+TAB increases the framerate greatly. (The menu option does nothing - you have to hold it down.) Toggle window resizability: Turning this on makes the window resizable by dragging the edges. Select again to disable. NOTE: This doesn't work if using gfx_directx (the default on Windows). Set zoom: These options change the window size without changing the resolution. List slices to g_debug.txt: Write a textual dump of the whole slice tree to g_debug.txt, next to the .rpg file. Edit backcompat bitsets: Lets you toggle backcompat bitsets to fix games broken by recent OHRRPGCE versions. It's not always possible for the engine to automatically turn on the correct bits. Show/test battle formations: Display the battle formation set for the tile the hero is standing on, and start any of the battles in it. Manipulate gen() array: 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. Manipulate gmap() array: 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. Email saved game (Only on Android): Saves the current game and then attaches it to an email to the game developer (opens an email client). Switch to debug/release mode: This toggles whether script and other errors are displayed. Games usually default to Release because lots of errors might occur in old games, but when playtesting it's better to use Debug mode. Mouse Options: These options for mouse-based control of the hero and menus aren't totally finished yet, but you can start to try them out.