Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Super Mario World hacking: labmaster | 3 guests
Acmlm's Board - I2 Archive - Super Mario World hacking - Save and load routine [ASM Issue]
  
User name:
Password:
Reply:
 

UserPost
Sokarhacd
Posts: 760/1757
cool, now that you got that out of the way, cant wait to see what your gonna do next.
rubixcuber
Posts: 26/46
Thanks HyperHacker, that's a good idea. The save game routine is at ROM offset 1DC9 and the load game starts at 1EEF or maybe a little before. I'm pretty sure that the last value used in the save file is 70:0358 and by adding a subroutine to the save and load methods I have succesfully saved and loaded additional values.
HyperLamer
Posts: 2114/8210
Everything in the SRAM address range should be saved to the .srm file.

Any ideas where the Save Game routine is?

As for initializing, I would use a custom block right under/on Mario in the intro level (with the "bowser captured peach again ono" message). You can only visit that level when you start a new game, and it's mandatory. (You don't even need to erase the old values when deleting the file if you don't plan to display them on the file select screen.)
rubixcuber
Posts: 25/46
Alright, so I've managed to get it to save and load new values, but I have one more obstacle. I need the values to be initialized when you start a new game. Is there a routine for initializing all of the values when you start a new game?
Sokarhacd
Posts: 740/1757
exactly, if we knew about your project, and it was better, then no one probably would have said that...but we dont, so we can only assume now...cant we.
knuck
Posts: 875/1818
You say that because you people dont know my project.
Sokarhacd
Posts: 734/1757
indeed, if you can do all that, that will be sweet, good luck, and hope you can do it
Glyph Phoenix
Posts: 17/745
Sounds like you might give Super Mario Odyssey a run for its money.
rubixcuber
Posts: 24/46
Oh, I'm going to save some things to the file. I've added a second type of coins that I think I want to use for buying things, also I want it to save the number of lives you have instead of setting it to 5 every time. I'm writing an NPC system where you can interact with characters and make decisions, and these decisions could effect the progress of the game. But I need to be able to save it for it to be of any use.
Sokarhacd
Posts: 713/1757
what are you trying to do with it anyway?, or are you just trying to find out where it was.
rubixcuber
Posts: 23/46
Thanks, looks like the saving routine is at ROM offset 1DC9.

--- Edit ---

Hmm, I think I've got a good idea of what it's doing. The greatest value it ever seems to save is at 70:0358 I believe. If I store and load values to 70:0359 and on in groups of three for each file, will these get saved to the .srm, and how high can I go?
BMF98567
Posts: 474/1261
I can't recall where the code is, but look for writes to $700xxx (SRAM). That should lead you right to it.
rubixcuber
Posts: 20/46
Anyone know where the code for saving and loading your game is? I was trying to find it through tracing, but I haven't had any luck yet.
Acmlm's Board - I2 Archive - Super Mario World hacking - Save and load routine [ASM Issue]


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.002 seconds.