-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
185 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Dev Menu | ||
|
||
{ align=right , width="30%" } | ||
|
||
The Dev Menu is a debug menu included with [RSDKv3](../README.md), disabled by default. The menu includes several features useful for debugging games in the engine. | ||
|
||
## Enabling | ||
=== "Blit" | ||
|
||
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`). | ||
|
||
=== "RSDKv3 Decompilation" | ||
|
||
The Dev Menu can be enabled by setting `DevMenu` to `true` in the settings.ini file, like so: | ||
|
||
<div class="annotate" markdown> | ||
|
||
``` ini hl_lines="3" | ||
[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 | ||
... | ||
``` | ||
|
||
</div> | ||
|
||
1. 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 | | ||
| ------------------------------------ | ----------------------------------------------------------------------------------------------------- | | ||
| ++escape++ | 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++ / ++insert++ (++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. Holding ++control++ while pressing this will also reload all active mods. | | ||
| ++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](../Decompilation.md), you can also open it at any time by pressing ++escape++. | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Dev Menu | ||
|
||
{ align=right , width="50%" } | ||
|
||
The Dev Menu is a debug menu included with [RSDKv4](../README.md), disabled by default. The menu includes several features useful for debugging games in the engine. | ||
TODO: Get a proper screenshot, preferably from an official build if possible | ||
|
||
## Enabling | ||
The Dev Menu is normally inaccessible, however in the [RSDKv4 Decompilation](../Decompilation.md), it can be enabled by setting `DevMenu` to `true` in the settings.ini file, like so: | ||
|
||
<div class="annotate" markdown> | ||
|
||
``` ini hl_lines="3" | ||
[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 | ||
... | ||
``` | ||
|
||
</div> | ||
|
||
1. 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 | | ||
| ------------------------------------ | ----------------------------------------------------------------------------------------------------- | | ||
| ++escape++ | 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++ / ++insert++ (++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. Holding ++control++ while pressing this will also reload all active mods. | | ||
| ++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 at any time in the [RSDKv4 Decompilation](../Decompilation.md) by pressing ++escape++ or by selecting it in the Help & Options or pause menus. | ||
|
||
TODO: explain each submenu | ||
|
||
## Other Effects | ||
|
||
When the Dev Menu is enabled in the [RSDKv4 Decompilation](../Decompilation.md), the global variable `options.devMenuFlag` is set to `true` upon loading the GameConfig, if such global variable exists. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Dev Menu | ||
|
||
{ align=right , width="50%" } | ||
|
||
The Dev Menu is a debug menu included with [RSDKv5](../README.md), disabled by default. The menu includes several features useful for debugging games in the engine. When the Dev Menu is enabled, other developer features are accessible as well. | ||
|
||
## Enabling | ||
|
||
The Dev Menu can be enabled by adding the line `devMenu=y` under the `Game` category of the engine's settings.ini file, like so: | ||
|
||
<div class="annotate" markdown> | ||
|
||
``` ini hl_lines="4" | ||
; Retro Engine Config File | ||
|
||
[Game] | ||
devMenu=y (1) | ||
language=0 | ||
|
||
... | ||
``` | ||
|
||
</div> | ||
|
||
1. The setting names in settings.ini are case-sensitive; the Dev Menu setting will not apply if the capitalization is incorrect. | ||
|
||
Alternatively, running the game in [Data Folder Mode](TODO) will automatically enable the Dev Menu. | ||
|
||
!!! note | ||
The entirety of the Dev Menu is removed in [Sonic Origins](/Games/SonicOrigins/README.md); as such, it's not possible to enable it normally. However, you can use the [OriginsDevMode](https://gamebanana.com/mods/473043) mod to restore it. Read the mod's description for more information and known issues. | ||
|
||
## Debug Controls | ||
|
||
### General | ||
| Key | Command | | ||
| -------------------- | --------------------------------------------------- | | ||
| ++escape++ | Opens/closes the Dev Menu. | | ||
| ++backspace++ | While held down, speeds up the game to 8x speed. | | ||
| ++f12++ / ++pause++ | Toggles step-over mode. | | ||
| ++f11++ / ++insert++ | If in step-over mode, steps over to the next frame. | | ||
|
||
### Decomp Only | ||
| Key | Command | | ||
| ------- | ----------------------------------------------------------------------------------------------------- | | ||
| ++f1++ | Loads the previous scene in the scene list. If pressed in the first scene, it will load the last one. | | ||
| ++f2++ | Loads the next scene in the scene list. If pressed in the last scene, it will load the first one. | | ||
| ++f4++ | Toggles displaying object info for visible entities. Not available in v5U's Legacy Modes. | | ||
| ++f5++ | Reloads the current scene. Holding ++control++ while pressing this will also reload all active mods. | | ||
| ++f6++ | Decrements the screen count by 1. | | ||
| ++f7++ | Increments the screen count by 1. | | ||
| ++f8++ | Toggles visualizing update ranges for visible entities. Not available in v5U's Legacy Modes. | | ||
| ++f9++ | Toggles visualizing active hitboxes. | | ||
| ++f10++ | Toggles displaying the currently loaded palettes. | | ||
|
||
## Menu | ||
|
||
You can open the Dev Menu at any time in-game by pressing ++escape++. In the [RSDKv5(U) Decompilation](../Decompilation.md), you can also tap/click the top left corner of the screen. | ||
|
||
TODO: explain each submenu | ||
|
||
## Other Effects | ||
|
||
When the Dev Menu is enabled, `SceneInfo->debugMode` is set to `true` upon engine initialization. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters