Patch: Soft Reset
#1
author: SilentEnigma
Download


This patch implements the familiar soft reset feature found in other FF releases.

The player may command a soft reset by pressing Start+Select+L+R on the field and during battle.


Enjoy!


.zip   SoftReset_v1.1.zip (Size: 2.83 KB / Downloads: 13)
Reply
#2
This is especially useful on real hardware! no more walking across the room to hit the reset button when something goes terribly wrong at the colosseum. Smile

Will use this with my hack and credit you!
Reply
#3
Thank you for this! Yep definitely useful on real hardware.

Reply
#4
The patch has been updated to v1.1 for compatibility with @Madsiur's Music Player.
Reply
#5
Are these routines super game specific? Wondering how easy it would be to port this to FFIV...
Reply
#6
The bulk of the patch code is reproducing the entry point of the program in the C0 bank (see C0/0020), but it skips over the call that initializes the sound chip.

The skip prevents the sound from getting messed up in some emulators. (The echo effect would stop working. Same thing would happen if you got a game over on a new game before saving)

I remember FF2us having a different memory layout than FF3us, so there are probably several differences. But the same general idea should work.
  • Code injection in the controller input loop/check
  • Check for exempt condition(s), i.e. are we in the field menu -- this check will definitely look different in FF2us
  • Check for the button combo (I doubt there's any custom button mapping in FF2us)
  • SPC command to stop sounds
  • Reproduce game initialization code up to, but excluding, the sound chip initialization
  • Jump to the actual game initialization code just after sound chip initialization
Reply
#7
Thanks for the quick reply SilentEnigma. I'll have to do some more research. I'm very new to SNES assembly and programming languages in general. I've been looking through the FF4 disassembly (japanese version is my target btw), and seeing things like "init interrupt jump code, init hardware registers, clear ram, init sound/music" toward the beginning of the code so I'm guessing somewhere in there is a good place to jump to.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Debilitator Reset madsiur 3 3,402 11-25-2022, 10:06 PM
Last Post: Dev J

Forum Jump:


Users browsing this thread: 2 Guest(s)