March 28, 2017, 01:34:25 pm
0 Members and 1 Guest are viewing this topic.
Looking over it again, another odd track name is 「かち４」 Victory 4, which follows the three standard victory themes (Trainer Battle, Wild Pokémon, and Gym Leader). This track is used for Mt. Moon Square (confusingly called Mt. Moon on the HG/SS soundtrack, whereas the music played inside Mt. Moon is Rock Tunnel). If it was originally written as a victory theme, that would certainly explain why it’s so short.
It’s worth noting that it is used as a victory theme in Stadium 2.
Unused(3F:656E)Displays the Mobile Adapter connection prompt with an incorrect palette. Maybe it would do more than that if a connection could be made.
Quick-start (3F:5983)Function 3F:5983 seems to be intended as some sort of accelerated start for debugging purposes. It does a bewildering variety of peculiar things:…Sets bit 7 of $D83F (StatusFlags). (Pokecrystal identifies this as ENGINE_BUG_CONTEST_ON, but I don’t think it’s related to the Bug-Catching Contest at all. The only place I see that it’s used is in MainMenu_GetWhichMenu, which checks this flag but then does the same thing whether it’s set or not. The flag is set in-game when the Mystery Egg is given to Prof. Elm.)
These are incredible finds! Well done Háčky! There are a number of sound effects in the sound test I don't recognize, such as 45, 146, 175, 176-178, 205, 206. Are any of those used?
I see. Thanks for that. Regarding the sound test, may I ask how would we go about activating it with arbitrary code execution (with a trick such as TM15 ACE)? Would it be as simple as bringing up the menu, or are there pointers within the menu code that were changed in the final game?
Quote from: Torchickens on June 15, 2016, 02:59:59 pmI see. Thanks for that. Regarding the sound test, may I ask how would we go about activating it with arbitrary code execution (with a trick such as TM15 ACE)? Would it be as simple as bringing up the menu, or are there pointers within the menu code that were changed in the final game?The sound test makes several calls to functions in the upper part of bank 0 that are offset by $3D bytes, including important ones like PlayMusic and PlaySFX In order to run it with ACE, you’d have to copy the code (from 3F:72C3–73B1) into RAM and patch those calls. And once the code is moved into RAM, you’d also need to patch calls to the sound test’s own subroutines so they point to the new addresses in RAM. Probably the simplest patching method would be to loop through the code looking for the bytes $CD (call) and $C3 (jp) and checking the high byte of the address that follows. If it’s ≥ $40, then it’s pointing to its own code in bank $3F and needs to be offset to wherever you’ve put the patched code in RAM. If it’s ≥ $2B, then it’s pointing to the upper part of bank 0 and you need to subtract $003D. If it’s < $2B, then the address is fine. (This might not work properly if the bytes $CD or $C3 appeared as an operand rather than an instruction, but luckily they don’t in the sound test code.)
Predef1: ; 7e79 callba $fd6db jp StartTitleScreen.TitleScreen
This is not the same debug menu from other GSC Pokemon game?
Page created in 0.074 seconds with 17 queries.