ROM Hack Question Extract save from NAND backup

  • Thread starter Thread starter redmagejosh
  • Start date Start date
  • Views Views 105,732
  • Replies Replies 69
I made a tool.

1.mount user data from nand
2.copy all files from save directory to tool/save directory
3.run.bat
4.you can find gamesave in the out directory

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.
 

Attachments

Last edited by James_E,
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,
Is it possible to extract saves from the switch itself without using sd card (sd reader died) ? I have all my keys
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.
 
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.
I've nothing in HDM (Admin mode) and on the switch memloader is attemping to commuunicate with usb host
 
I've nothing in HDM (Admin mode) and on the switch memloader is attemping to commuunicate with usb host
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.
 
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.
Is it possible to extract saves from the switch itself without using sd card (sd reader died) ? I have all my keys
 
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
Don't use GUI, use command line.

TegraRcmSmash.exe .\memloaderv3\memloader.bin --dataini=.\memloaderv3\sample\ums_emmc.ini
Path is just for example.
 
  • Like
Reactions: MushroomGod
Don't use GUI, use command line.

TegraRcmSmash.exe .\memloaderv3\memloader.bin --dataini=.\memloaderv3\sample\ums_emmc.ini
Path is just for example.
Using this line memloader should use directly the ini file from my computer and mount the emmc ?
 
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)
Thank you, I will try tommorow (11:07pm in france)
I will notice you if I succeed or if I doubt about something
 
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?

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.
 
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.
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.
 

Site & Scene News

Popular threads in this forum