Question Extract save from NAND backup

Discussion in 'Switch - ROM Hacking, Saves, Translations & Tools' started by nekojosh, Aug 8, 2018.

  1. James_E

    James_E Newbie

    Newcomer
    1
    Apr 17, 2019
    Australia
    Thanks for the awesome script, I've made a few changes (both to the script and LibHac) that make it slightly better. It now accepts variable names in the out dir, which are being used to better organize the output for Checkpoint. It saves them in out/{userid}/{titleid}/{saveid} {timestamp} {original save number}/ folder. It also only iterates the files in the save dir which reduces the errors (even though they are inconsequential) and it pauses at the end so users can review it if they wish.

    See PR 50 on LibHac repo for information on the binary changes. Edit: I built and packaged it for net4.6 (which if you don't have you'll need to install), if someone wants a build for netcore2.1 or a self contained version I can build that too. I also updated it with an Instructions.txt that should give a reasonable guide on how to completely do this with a NAND dump and over USB via memloader.
     

    Attached Files:

    Last edited by James_E, Apr 17, 2019
    MushroomGod and hippy dave like this.
  2. MushroomGod

    MushroomGod Member

    Newcomer
    1
    Apr 22, 2019
    United States
    Chicago
    James_E that's a great edition. I'm a n00b at this. Could you create a script that recompile the save back into the container? So you can put inject it back into your nand then restore?
     
    Last edited by MushroomGod, Apr 22, 2019
  3. Xyphoseos

    Xyphoseos Hack or no games

    Member
    7
    Jun 29, 2016
    France
    Rivière
    Is it possible to extract saves from the switch itself without using sd card (sd reader died) ? I have all my keys
     
  4. MushroomGod

    MushroomGod Member

    Newcomer
    1
    Apr 22, 2019
    United States
    Chicago
    Yes, you can mount your switch using memloader and Hacdiskmount in admin mode, grab your saves then extract them using hactoolnet. If you figure out how to repack them let me know lol.
     
  5. Xyphoseos

    Xyphoseos Hack or no games

    Member
    7
    Jun 29, 2016
    France
    Rivière
    I've nothing in HDM (Admin mode) and on the switch memloader is attemping to commuunicate with usb host
     
  6. MushroomGod

    MushroomGod Member

    Newcomer
    1
    Apr 22, 2019
    United States
    Chicago
    ok the contents of the sample folder in the memloader zip needs to be extracted to your sd card then you push the payload to your switch. Open HDM as admin, go to file, then physical drive, it's the option that has the work linux in it.
     
  7. Xyphoseos

    Xyphoseos Hack or no games

    Member
    7
    Jun 29, 2016
    France
    Rivière
     
  8. MushroomGod

    MushroomGod Member

    Newcomer
    1
    Apr 22, 2019
    United States
    Chicago
    Oh sorry didn't see that man. As far as I know there isn't a way then.
     
    Xyphoseos likes this.
  9. gnilwob

    gnilwob GBAtemp Regular

    Member
    5
    Mar 16, 2008
    Hong Kong
    @Xyphoseos how do you inject memloader payload ?
    Do you provide any ini file ?
     
    Last edited by gnilwob, Apr 23, 2019
  10. Xyphoseos

    Xyphoseos Hack or no games

    Member
    7
    Jun 29, 2016
    France
    Rivière
    I can't because sd can't be used and it is not an sd reader issu (motherboard problem)
    I inject memloader like any payload
    Using tegrasmash from my pc or nxloader from my phone
     
  11. gnilwob

    gnilwob GBAtemp Regular

    Member
    5
    Mar 16, 2008
    Hong Kong
    Don't use GUI, use command line.

    TegraRcmSmash.exe .\memloaderv3\memloader.bin --dataini=.\memloaderv3\sample\ums_emmc.ini
    Path is just for example.
     
    MushroomGod likes this.
  12. Xyphoseos

    Xyphoseos Hack or no games

    Member
    7
    Jun 29, 2016
    France
    Rivière
    Using this line memloader should use directly the ini file from my computer and mount the emmc ?
     
  13. gnilwob

    gnilwob GBAtemp Regular

    Member
    5
    Mar 16, 2008
    Hong Kong
    No, you have to open emmc in HDM manually.
    The command just provide ini (instead of reading it from sd card which your switch can't do it)
     
    MushroomGod likes this.
  14. Xyphoseos

    Xyphoseos Hack or no games

    Member
    7
    Jun 29, 2016
    France
    Rivière
    Thank you, I will try tommorow (11:07pm in france)
    I will notice you if I succeed or if I doubt about something
     
  15. gnilwob

    gnilwob GBAtemp Regular

    Member
    5
    Mar 16, 2008
    Hong Kong
    Feel free to let me know if you have any questions.
     
    Xyphoseos likes this.
  16. James_E

    James_E Newbie

    Newcomer
    1
    Apr 17, 2019
    Australia
    May look at this tonight, I don't think it would be easy. You'd probably have to manually use the --listfiles, --sign, --replacefile options from the original tool.
     
  17. MushroomGod

    MushroomGod Member

    Newcomer
    1
    Apr 22, 2019
    United States
    Chicago
    Thanks man and good luck, I would have no clue where to start. This would be powerful because you could extract, edit and inject saves back into nand without ever installing CFW by using 2 scripts for hactoolnet.
     
  18. Xyphoseos

    Xyphoseos Hack or no games

    Member
    7
    Jun 29, 2016
    France
    Rivière
    Save in user partition are the "save" folder, savemeta or both ?
     
  19. gnilwob

    gnilwob GBAtemp Regular

    Member
    5
    Mar 16, 2008
    Hong Kong
    Xyphoseos likes this.
  20. Xyphoseos

    Xyphoseos Hack or no games

    Member
    7
    Jun 29, 2016
    France
    Rivière
Quick Reply
Draft saved Draft deleted
Loading...