Hacking Super Mario Advance 4 VC Save File Injection

Wanderer0891

Well-Known Member
OP
Member
Joined
Dec 18, 2008
Messages
108
Trophies
0
XP
282
Country
United States
So... a while back Nintendo released Super Mario Advance 4 for the Wii U's Virtual Console in the U.S. which finally had all 38 of the e-Reader levels officially in English for the first time.

However... the VC release only added the e-Reader levels themselves and none of the other e-Reader features such as the e-Switches or being able to use the Cape or the Blue Boomerang outside of World-e among some other things as these features needed to be scanned through the e-Reader to work.

However, once the kernel exploit was able to be used on 5.5.1 I was able to make use of Saviine to dump my own SMA4 VC save and after looking around to see if anyone had done any research on the file structure and found nothing I decided I'd poke around in the hex editor HxD to see if I could find anything in the decrypted save file.

After comparing a normal 128 kb save file to the 145 kb data_008_0000.bin file that I obtained from Saviine I discovered where the save in the VC Save file was located.

Specifically in hexadecimal it starts at offset 4080 and ends at offset 2407F at the end of the file.

I then copy pasted a save file with e-Reader stuff into the data_008_0000.bin file with HxD and after deleting the data_012_0001.bin file as that was probably the suspend point data and would cause it load the previous save file instead of the injected one, I used Saviine to inject the save file and it loaded up successfully.

Unfortunately I'm not a programmer so as much as I'd like to make a tool to not have to use a hex editor for the save file extraction/injection I sadly can't, but perhaps someone who can might be interested in doing so.

Anyway I have attached a zip with two save files for anyone who would like to play through the game with the additional e-Reader stuff but would prefer not to use a hex editor.

Both saves are basically the same but with one important difference, the one in the folder labeled Red Switch has the Red Switch e-card scanned in which makes the game slightly harder but gives you double points.

Seeing as Saviine decrypts the save file these saves should work on any Wii U but please inform me if they do not.

I'm not sure if other VC Gba games also use this save file format as I didn't dump any other Gba saves but I'm sure that can be looked into if someone is interested for some reason.
 

Attachments

  • SMA4 VC Saves.zip
    4.5 KB · Views: 541
Last edited by Wanderer0891,

slickochet

Well-Known Member
Newcomer
Joined
Jan 3, 2010
Messages
81
Trophies
1
XP
509
Country
Got this to work with Metroid Fusion on Wii U Virtual Console! Many thanks!

Surprised that more people aren't trying to do this...
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, why did you start saying my pc has a hamster in the first place?
    +1
  • BigOnYa @ BigOnYa:
    Its actua!ly just a old joke, meaning its slow. Was just kidding around with you.
    +1
  • BigOnYa @ BigOnYa:
    I bet @AncientBoi has some hamsters hidden somewhere tho....
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I think Game streaming should work like this.... Local Hardware able the run the game fine, game engine and common assets stored locally, all FMV and music and textures could be streaming
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Some temporary storage
  • Xdqwerty @ Xdqwerty:
    also @BigOnYa im making some progress on my gdevelop project, implemented various mechanics
  • Psionic Roshambo @ Psionic Roshambo:
    They went all in on streaming, should have been more of a hybrid approach
    +1
  • BigOnYa @ BigOnYa:
    Or free government supplied high speed internet be nice also. Like Obama care. Xdqwerty that's cool, its time consuming but rewarding once done or playable, to see what you've made from scratch. Animations take forever, but worth it.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, although the bullets are a bit buggy
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not to mention this would be a massive pain to pirate
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    and the visual aspect of the game is quite crude (the sprite that looks best is that of the protagonist just because he is a stickman with sunglasses)
    +1
  • BigOnYa @ BigOnYa:
    There is a bullets behaviour you assign to your character, that makes the code easier, under "behaviours"
  • Xdqwerty @ Xdqwerty:
    i meant that when the character is pointing to the right, the bullets spawn where they should, but when he is on the right, they move to the right but the spawn point is incorrect
  • BigOnYa @ BigOnYa:
    Itch.io has lots of free assets also. Under the bullets behavior tab, there is a "rotate bullets" option, can try that. Or in the code can try
    - fire bullet Player.X(PlayerDirection)
  • Xdqwerty @ Xdqwerty:
    im taking a break for today anyway
    +1
  • BigOnYa @ BigOnYa:
    YEa gotta after a while, looking at code for long periods will bug your eyes.
    +1
  • BigOnYa @ BigOnYa:
    That's cool tho, I'm proud of you going back to it, not giving up. It is difficult at first to learn, but fun once you get the hang of it. I think I've watched every tutorial video there is, but I still struggle sometimes to get stuff to work right. But gotta keep trying dif things, and eventually you will get it right.
    +1
  • K3Nv2 @ K3Nv2:
    Lol McDonald's has a grandma mcflurry
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, furry grandma?
  • BigOnYa @ BigOnYa:
    It sounds good actually, I like butterscotch
  • K3Nv2 @ K3Nv2:
    It sucked don't know wtf these little bits and pieces are they use now
    +1
  • BigOnYa @ BigOnYa:
    I live maybe 3 minutes from a Dairy Queen, so I would just go there for ice cream anything anyways. I usually get the Oreo Blizzard, or a Peanut Buster Parfait.
    BigOnYa @ BigOnYa: I live maybe 3 minutes from a Dairy Queen, so I would just go there for ice cream anything...