ROM Hack Question Extract save from NAND backup

James_E

Member
Newcomer
Joined
Apr 17, 2019
Messages
6
Trophies
0
Age
28
XP
57
Country
Australia
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

  • LibHac with SaveExtractScript v2.zip
    352.3 KB · Views: 3,325
Last edited by James_E,

MushroomGod

Member
Newcomer
Joined
Apr 22, 2019
Messages
21
Trophies
0
Age
38
Location
Chicago
Website
www.twitch.tv
XP
57
Country
United States
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.
 

Xyphoseos

Hack or no games
Member
Joined
Jun 29, 2016
Messages
1,833
Trophies
0
Age
23
Location
Rivière
XP
3,257
Country
France
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
 

MushroomGod

Member
Newcomer
Joined
Apr 22, 2019
Messages
21
Trophies
0
Age
38
Location
Chicago
Website
www.twitch.tv
XP
57
Country
United States
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.
 

Xyphoseos

Hack or no games
Member
Joined
Jun 29, 2016
Messages
1,833
Trophies
0
Age
23
Location
Rivière
XP
3,257
Country
France
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
 

gnilwob

Well-Known Member
Member
Joined
Mar 16, 2008
Messages
204
Trophies
1
XP
644
Country
Hong Kong
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

James_E

Member
Newcomer
Joined
Apr 17, 2019
Messages
6
Trophies
0
Age
28
XP
57
Country
Australia
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.
 

MushroomGod

Member
Newcomer
Joined
Apr 22, 2019
Messages
21
Trophies
0
Age
38
Location
Chicago
Website
www.twitch.tv
XP
57
Country
United States
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

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: @OctoAori20, Thank you. Hope you're in good spirits today like I am. :)