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,329
Last edited by James_E,

MushroomGod

Member
Newcomer
Joined
Apr 22, 2019
Messages
21
Trophies
0
Age
39
Location
Chicago
Website
www.twitch.tv
XP
67
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,834
Trophies
0
Age
23
Location
Rivière
XP
3,269
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
39
Location
Chicago
Website
www.twitch.tv
XP
67
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,834
Trophies
0
Age
23
Location
Rivière
XP
3,269
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
645
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
39
Location
Chicago
Website
www.twitch.tv
XP
67
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
  • Psionic Roshambo @ Psionic Roshambo:
    My 1500ish games is all hand picked and scraped it's taken me months but zero trash well except MAME.... Tried deleting clones and broke the originals uugghh
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I legit have been complaining about MAME for over 20 years... Hate the way they handle roms
  • BigOnYa @ BigOnYa:
    Yea is a pain sometimes
  • Psionic Roshambo @ Psionic Roshambo:
    Now that they decided to add Tiger handheld and fruit machines.... Newer sets are worthless
  • Psionic Roshambo @ Psionic Roshambo:
    Because who doesn't want to emulate Halo LCD by Tiger when the machine needed to emulate it... Could just play Halo....
  • K3Nv2 @ K3Nv2:
    Batocera has some tiger games
  • Psionic Roshambo @ Psionic Roshambo:
    I don't have them on mine Ken lol
  • K3Nv2 @ K3Nv2:
    Waste of the 128kb they take
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Tiger handhelds are good for one thing.... Occupying space in a landfill
  • K3Nv2 @ K3Nv2:
    They make good burning plastic
  • BigOnYa @ BigOnYa:
    Makes me wonder if the Pi5 can play PS2? If there's even a core for it yet.
  • K3Nv2 @ K3Nv2:
    Pi5 should be able to do ps2
  • Psionic Roshambo @ Psionic Roshambo:
    Try Dragon Quest VIII it ran perfectly on a core 2 Duo I had
  • Psionic Roshambo @ Psionic Roshambo:
    Easiest game to run I found
  • K3Nv2 @ K3Nv2:
    Ps2 emulation is cake compared to 3 years ago
  • Psionic Roshambo @ Psionic Roshambo:
    Hardest is probably Gran Turismo 4
  • Psionic Roshambo @ Psionic Roshambo:
    It's much better now yes but Gran Turismo 4 is still the hardest one to emulate that I have in my collection
  • Psionic Roshambo @ Psionic Roshambo:
    Runs perfectly fine but it's as if I can feel it always on the boarder line of dropping a frame lol
  • BigOnYa @ BigOnYa:
    I ordered a spin ball couple days ago to add to my arcade cabinet, will be nice for games like golden tee, or bowling
  • Psionic Roshambo @ Psionic Roshambo:
    I always wanted a controller for like Ikari Warriors, Time Soldiers, Heavy Barrel, Forgotten Worlds games like those
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not even sure what to call that controller
  • Xdqwerty @ Xdqwerty:
    an online friend I've known since 2021 left me :( bc my attitude is "cutty"
  • Psionic Roshambo @ Psionic Roshambo:
    Sylvester Stallone should have played Kyle Reese lol Arnold still as the Terminator
  • BakerMan @ BakerMan:
    TF DOES "CUTTY" EVEN MEAN?
  • Xdqwerty @ Xdqwerty:
    @BakerMan, he is peruvian so it's probably an idiom
    Xdqwerty @ Xdqwerty: @BakerMan, he is peruvian so it's probably an idiom