Dev Menu (RSDKv3)¶
The Dev Menu is a debug menu included with RSDKv3, disabled by default. The menu includes several features useful for debugging games in the engine.
Enabling¶
The Dev Menu can be enabled by editing the game's GameConfig.bin
file to set the default value of the Options.DevMenuFlag
global variable to 1 (true
).
The Dev Menu can be enabled by setting DevMenu
to true
in the settings.ini file, like so:
[Dev]
; Enable this flag to activate dev menu via the ESC key
DevMenu=true ; (1)!
; Enable this flag to activate features used for debugging the engine (may result in slightly slower game speed)
EngineDebugMode=false
; Enable this flag to force the engine to load from the scripts folder instead of from bytecode
TxtScripts=false
...
- Make sure that the decomp is not running while editing settings.ini; otherwise, your changes will be reverted upon closing the decomp.
Decomp Debug Controls¶
Key | Command |
---|---|
Esc | Opens the Dev Menu. |
Backspace | While held down, speeds up the game to 8x speed. |
F12 / Pause (F7 on Mac) | Toggles step-over mode. |
F11 / Ins (F6 on Mac) | If in step-over mode, steps over to the next frame. |
F1 | Loads the first scene in the Presentation stage list. |
F2 | Loads the previous scene in the scene list. If pressed in the first scene, it will load the last one. |
F3 | Loads the next scene in the scene list. If pressed in the last scene, it will load the first one. |
F5 | Reloads the current scene. |
F8 | Toggles visualizing active touchscreen hitboxes. |
F9 | Toggles visualizing active hitboxes. |
F10 | Toggles displaying the currently loaded palettes. |
Menu¶
You can open the Dev Menu in Sonic CD by selecting it the pause menu, as well as the Help & Options menu in the mobile version. In the RSDKv3 Decompilation, you can also open it at any time by pressing Esc.
TODO: explain each submenu
Other Effects¶
When the Dev Menu is enabled, the global variable Options.DevMenuFlag
is set to true
upon loading the GameConfig, if such global variable exists.