A way to inject SNES saves from blarg to VC?

Discussion in '3DS - Homebrew Development and Emulators' started by natanelho, Mar 29, 2016.

  1. natanelho
    OP

    natanelho GBAtemp Maniac

    Member
    1,390
    360
    Apr 25, 2015
    Antarctica
    Between the Sacred Silence and Sleep
    I have a cool save of loz alttp on blargsnes and on the retroarch emulators. is there a way to transfer the save file to my newly- installed VC loz alttp? I wanna use the "official" emulator, dont ask why...

    so... I need a way to transfer saves from- and to- a VC game on 3ds.... any way to do it?

    its SNES if its important...

    can I do it with other console VC, like GAMEBOY or NES?
     
  2. MushGuy

    MushGuy GBAtemp Advanced Fan

    Member
    896
    279
    Feb 11, 2010
    United States
    Same question here. As for Game Boy, it is possible, by replacing sav.dat with your emulation save, also renamed sav.dat. NES, no idea.
     
  3. Xiphiidae

    Xiphiidae

    Member
    2,085
    1,022
    Sep 13, 2009
    Australia
    Works fine for Gameboy, as GB VC games use raw saves, so you can just copy over emulator saves using any homebrew save manager.
    For SNES, this does not work, and as far as I know, there's no known way to convert emulator saves to VC saves or vice versa.
     
  4. natanelho
    OP

    natanelho GBAtemp Maniac

    Member
    1,390
    360
    Apr 25, 2015
    Antarctica
    Between the Sacred Silence and Sleep
    Sorry , but i dont understand... can you please step-by-step it?
     
  5. Xiphiidae

    Xiphiidae

    Member
    2,085
    1,022
    Sep 13, 2009
    Australia
    Using homebrew such as svdt or JKSV, you can extract save files from games on your system. When doing this with a GB(C) game, you'll get a .dat file, most likely sav.dat, which is actually identical to the .sav save file used by most emulators. Hence, by renaming an emulator save to sav.dat and injecting with the homebrew back into the system, you can get your emulator save files into VC games. You need to make sure that the Secure Value is overwritten when injecting the save back; I'm pretty sure that JKSV does this automatically, but svdt asks you to do it, so make sure you say yes.
    This only works with GB/C games, and I'm not even sure if it works with all of them.

    So the steps are:
    1. Use svdt or JKSV to extract your VC game's save file (backup this file, along with the secure value, if there is one).
    2. Get a save file from the same game that you've ben playing via an emulator.
    3. Rename this file to the same as the file that was extracted from the VC game (most often sav.dat)
    4. Make sure this file has the exact same file size as the extracted sav.dat (I know for Pokémon RBY it should be 32,768 bytes).
    5. Put the emulator sav.dat in the same location where the extracted original was.
    6. Run svdt or JKSV and inject the emulator save file into the VC game, making sure the secure value is overwritten.

    Hopefully this works for you. I've only done this with the VC Pokémon games, but it worked fine for me. Just make sure you rewrite the secure value, otherwise your save will be deemed unreadable by the VC game.

    Edit: I should note that I've never used GameYob or any other 3DS emulators, so I don't know how they handle save files. Assuming it's the same as most PC emulators like BGB, you should be fine.
     
    Last edited by Xiphiidae, May 8, 2016
  6. natanelho
    OP

    natanelho GBAtemp Maniac

    Member
    1,390
    360
    Apr 25, 2015
    Antarctica
    Between the Sacred Silence and Sleep
    Thx! Does this work on nes or other VCs? Like gba or something?
     
  7. Xiphiidae

    Xiphiidae

    Member
    2,085
    1,022
    Sep 13, 2009
    Australia
    It doesn't work for SNES, but I imagine it would work for NES games, but I've never tried. I'm not sure about GBA games.
    You're welcome to try, just backup your old saves.

    Edit: I should add that I've heard that having the restore point feature enabled might interfere with this process. The Pokémon VC games don't allow restore points, so I've obviously haven't had a problem. So if you face any problems, try turning off the restore point feature before backing up.
     
    Last edited by Xiphiidae, May 8, 2016
  8. natanelho
    OP

    natanelho GBAtemp Maniac

    Member
    1,390
    360
    Apr 25, 2015
    Antarctica
    Between the Sacred Silence and Sleep
    Ah ok "just try and see if it works for ya"...
    Btw is there a way to enable restore points in RBY?
     
  9. Xiphiidae

    Xiphiidae

    Member
    2,085
    1,022
    Sep 13, 2009
    Australia
    There's no way as far as I know. The only way it would be possible would be by making a modified .cia, I think.