GBC 3DS inject save backup?

Discussion in '3DS - Homebrew Development and Emulators' started by aos10, Dec 24, 2016.

  1. aos10
    OP

    aos10 how i fotochop?

    Member
    3,212
    797
    Apr 10, 2012
    Saudi Arabia
    hi,i tried to use JKSM to back up the save game from pokemon prism to use it on PC and vice versa.
    but the results was 3 files
    rsm1.dat
    rsm2.dat
    sav.dat

    the sav.dat is 32.02 KB

    the save game used on emulator is pokemon.sav and the size is 32.0 KB
    so it won't work.

    any way to backup the save game and use it on other emulators?
     
  2. Asdolo

    Asdolo the Hedgehog

    Member
    506
    928
    Apr 29, 2016
    Argentina
    Buenos Aires
    Which PC emulator are you using, and how did you obtain the .sav file from PC?
     
  3. aos10
    OP

    aos10 how i fotochop?

    Member
    3,212
    797
    Apr 10, 2012
    Saudi Arabia
    i am using gambatte,also bgb use the same type of save.
     
  4. JinTrigger

    JinTrigger Asentrix Studios

    Member
    1,564
    47
    Jun 25, 2008
    United States
    Lunesta/Mysteria
    I tried the same with the latest VBA-M

    my sav.dat from my 3DS is 32,784MB
    my battery save from VBA-M is 32,816MB
     
  5. aos10
    OP

    aos10 how i fotochop?

    Member
    3,212
    797
    Apr 10, 2012
    Saudi Arabia
    did that worked?
     
  6. MichiS97

    MichiS97 "Leftist snowflake milennial"

    Member
    GBAtemp Patron
    MichiS97 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,359
    759
    Jun 14, 2011
    Germany
    Munich
    It has something to do with RTC data I think. You should be able to just add the missing bytes to the sav.dat file with a HEX Editor to get it to the same size (32,812kB should work) as a VBA/BGB/Gambatte save file to make it work. At least that's what I always did with Crystal
     
  7. Asdolo

    Asdolo the Hedgehog

    Member
    506
    928
    Apr 29, 2016
    Argentina
    Buenos Aires
    Try File>Export battery from VBA
     
  8. JinTrigger

    JinTrigger Asentrix Studios

    Member
    1,564
    47
    Jun 25, 2008
    United States
    Lunesta/Mysteria
    Well Im trying to get a PC save on the 3DS but that didn't work.
     
  9. JinTrigger

    JinTrigger Asentrix Studios

    Member
    1,564
    47
    Jun 25, 2008
    United States
    Lunesta/Mysteria
    I got it to work by doing what MichiS97 suggested. VBA-M save files are bigger than the 3DS ones, but trimming them down in a HEX editor got it to work. To further verify, I took a save from my Android emulator, My OldBoy!, and found it to be smaller. Adding bytes to that save got it to work. So I'm assuming as long as the file size matches the 3DS one it should work.
     
  10. aos10
    OP

    aos10 how i fotochop?

    Member
    3,212
    797
    Apr 10, 2012
    Saudi Arabia
    where should i add the bytes? or it doesn't matter where i add them?
     
  11. JinTrigger

    JinTrigger Asentrix Studios

    Member
    1,564
    47
    Jun 25, 2008
    United States
    Lunesta/Mysteria
    Both my trims/extensions were done at the end of the file. When I had to add bytes I just added FF or 00s....Some of my saves were padded with FF while others were padded with 00. Did matter to the 3DS though as long as they were the same file size.