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] | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
rubixcuber

Red Goomba
Level: 12

Posts: 20/46
EXP: 6125
For next: 1796

Since: 10-13-04
From: St. Louis, MO USA

Since last post: 331 days
Last activity: 293 days
Posted on 11-18-04 04:43 AM Link | Quote
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.
BMF98567
BLACK HAS BUILT A SILLY DICE-MAZE!
GO!

Current list of BURNING FURY >8( recipients:
- Yiffy Kitten (x2)
- Xkeeper
Level: 53

Posts: 474/1261
EXP: 1094149
For next: 62970

Since: 03-15-04
From: Blobaria
Special Move: Rising Meatloaf Backhand Combo

Since last post: 21 hours
Last activity: 1 hour
Posted on 11-18-04 12:44 PM Link | Quote
I can't recall where the code is, but look for writes to $700xxx (SRAM). That should lead you right to it.
rubixcuber

Red Goomba
Level: 12

Posts: 23/46
EXP: 6125
For next: 1796

Since: 10-13-04
From: St. Louis, MO USA

Since last post: 331 days
Last activity: 293 days
Posted on 11-18-04 10:12 PM Link | Quote
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?


(edited by rubixcuber on 11-18-04 10:48 PM)
Sokarhacd

Ball and Chain Trooper
Resistance is Futile
You Will Be Assimilated
Hab SoSlI' Quch
Level: 61

Posts: 713/1757
EXP: 1799888
For next: 76708

Since: 03-15-04

Since last post: 6 days
Last activity: 4 hours
Posted on 11-18-04 10:28 PM Link | Quote
what are you trying to do with it anyway?, or are you just trying to find out where it was.
rubixcuber

Red Goomba
Level: 12

Posts: 24/46
EXP: 6125
For next: 1796

Since: 10-13-04
From: St. Louis, MO USA

Since last post: 331 days
Last activity: 293 days
Posted on 11-19-04 07:51 AM Link | Quote
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.
Glyph Phoenix

Level: 39

Posts: 17/745
EXP: 385876
For next: 18895

Since: 11-07-04

Since last post: 2 hours
Last activity: 2 hours
Posted on 11-19-04 06:35 PM Link | Quote
Sounds like you might give Super Mario Odyssey a run for its money.
Sokarhacd

Ball and Chain Trooper
Resistance is Futile
You Will Be Assimilated
Hab SoSlI' Quch
Level: 61

Posts: 734/1757
EXP: 1799888
For next: 76708

Since: 03-15-04

Since last post: 6 days
Last activity: 4 hours
Posted on 11-19-04 07:41 PM Link | Quote
indeed, if you can do all that, that will be sweet, good luck, and hope you can do it


(edited by Dcahrakos on 11-19-04 10:41 AM)
knuck

Hinox
Banned until 19-58-5815: trolling, flaming, spamming, being a general fucktard...
Level: 62

Posts: 875/1818
EXP: 1894574
For next: 90112

Since: 03-15-04

Since last post: 14 hours
Last activity: 9 hours
Posted on 11-19-04 07:46 PM Link | Quote
You say that because you people dont know my project.
Sokarhacd

Ball and Chain Trooper
Resistance is Futile
You Will Be Assimilated
Hab SoSlI' Quch
Level: 61

Posts: 740/1757
EXP: 1799888
For next: 76708

Since: 03-15-04

Since last post: 6 days
Last activity: 4 hours
Posted on 11-19-04 09:45 PM Link | Quote
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.
rubixcuber

Red Goomba
Level: 12

Posts: 25/46
EXP: 6125
For next: 1796

Since: 10-13-04
From: St. Louis, MO USA

Since last post: 331 days
Last activity: 293 days
Posted on 11-20-04 05:43 AM Link | Quote
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?
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 2114/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 11-20-04 06:22 AM Link | Quote
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

Red Goomba
Level: 12

Posts: 26/46
EXP: 6125
For next: 1796

Since: 10-13-04
From: St. Louis, MO USA

Since last post: 331 days
Last activity: 293 days
Posted on 11-20-04 06:28 AM Link | Quote
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.
Sokarhacd

Ball and Chain Trooper
Resistance is Futile
You Will Be Assimilated
Hab SoSlI' Quch
Level: 61

Posts: 760/1757
EXP: 1799888
For next: 76708

Since: 03-15-04

Since last post: 6 days
Last activity: 4 hours
Posted on 11-20-04 08:03 PM Link | Quote
cool, now that you got that out of the way, cant wait to see what your gonna do next.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
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.017 seconds.