saving banks for my hack

Discussion in 'Discussion and Q&A Archive' started by Mike B Berry, Jun 30, 2012.

Thread Status:
Not open for further replies.
  1. Mike B Berry

    Mike B Berry A grandiose return Member

    Joined:
    Jun 6, 2012
    Messages:
    377
    Location:
    New places, newer motivation
    Found a glitch in the SRAm saving system. When you start a game that loads specific zone (dosent really matter which location it is saved from previously) when a demo plays, I interupted the gameplay and killed the game. When you reopen the rom (The same way RHS explained.) You start the game and play from the stage the demo was playing when the game ended. Is this just a glitch in the programming, or is it something that I caused in a one time only situation?
     
  2. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England

    I'm not sure how you're doing that, if you start a level with a save slot, how do you get a demo to play? Demos only play from Title screen, or have I got the wrong side of the stick?
     
  3. Mike B Berry

    Mike B Berry A grandiose return Member

    Joined:
    Jun 6, 2012
    Messages:
    377
    Location:
    New places, newer motivation
    Whoops, let me rephrase that. I saved my SRAM on LZ act 2. I reset the game with debug mode and let it go into demo mode. I hit alt+f4 and closed the rom. When I opened it during my next test of the rom, I started the game out on MZ act 1, since I deleted the demo for GHZ. (Sonic hit's the incincibility monitor in both the demo and credits, causing the music to loop forever.)
     
    Last edited by a moderator: Jul 7, 2012
  4. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    Oh, you're talking about Sonic 1. I'm not sure, could possibly be Regen. Best way to find out is try it with Kega (and Gens to be thoroughly sure). If the glitch still happens in Kega, it's the game. If not, it's Regen.
     
  5. Mike B Berry

    Mike B Berry A grandiose return Member

    Joined:
    Jun 6, 2012
    Messages:
    377
    Location:
    New places, newer motivation
    The glitch/bug happens on all three emulators.
     
  6. Crash

    Crash Well-Known Member Member

    Joined:
    Jul 15, 2010
    Messages:
    302
    Location:
    Australia
    There needs to be a check in the sram saving code to see if the 'demo running' word ($FFFFFFF0) is set to 1, and if so, skip saving.
     
  7. MainMemory

    MainMemory Well-Known Member Member

    Joined:
    Mar 29, 2011
    Messages:
    923
    What you should probably be doing is saving data to SRAM at the end of a level, after the score tally finishes and it's getting ready to send you to the next level.
     
Thread Status:
Not open for further replies.