ROM Hack Question Extract save from NAND backup

gnilwob

Well-Known Member
Member
Joined
Mar 16, 2008
Messages
204
Trophies
1
XP
644
Country
Hong Kong
Is there a way to order them by game (game title) and Users ?
I have never tried this tool so you have to figure it out.
I used jocover's script and I have to manually match what save folder are from what games.
It is a pain but better than losing a 300+ hours save files.
 
Last edited by gnilwob,
  • Like
Reactions: Xyphoseos

Xyphoseos

Hack or no games
Member
Joined
Jun 29, 2016
Messages
1,833
Trophies
0
Age
23
Location
Rivière
XP
3,256
Country
France
I have never tried this tool so you have to figure it out.
I used jcover's script and I have to manually match what save folder are from what games.
It is a pain but better than losing a 300+ hours save files.
Sorry but what's jcover's script ?
Edit : ignore it, I use it x)
Manualy is what I though yes
 
Last edited by Xyphoseos,

James_E

Member
Newcomer
Joined
Apr 17, 2019
Messages
6
Trophies
0
Age
28
XP
57
Country
Australia
Take a look at my modification to jocover's script, it extracts them into folders in the following format: out/<user_id>/<title_id>/<misc details>.


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

NightsEkim

Well-Known Member
Member
Joined
Mar 28, 2015
Messages
166
Trophies
0
XP
316
Country
United States
Is there any news on going back from checkpoint output back to nand so a save can be reinjected via the USER partition?

If not what does the conversion do? Does it just unsign the save so resigning would work to reinject?
 

NightsEkim

Well-Known Member
Member
Joined
Mar 28, 2015
Messages
166
Trophies
0
XP
316
Country
United States
Actually I figured this out, your going to need to use BISKEYDUMP, and Lockpick_RCM and get both sets of FULL keys (meaning you will need the sept folder and appropriate files present). Grab the latest hactoolnet release from the github (the one in the zips above throw errors, I assume because I was on a newer FW than when it was released).

Extract the save using the hactoolnet, remember the file structure here as that is present in the RAW save file, edit the save file (varies between games) and do --replacefile <path in raw save file> <path to edited save file> -k <keyfile that has ALL of your keys> this will put the edited file in the RAW save and resign the save file, inject the save back in to the switch and enjoy.

I take no risk for you getting banned yadda yadda.
 

MushroomGod

Member
Newcomer
Joined
Apr 22, 2019
Messages
21
Trophies
0
Age
38
Location
Chicago
Website
www.twitch.tv
XP
57
Country
United States
Actually I figured this out, your going to need to use BISKEYDUMP, and Lockpick_RCM and get both sets of FULL keys (meaning you will need the sept folder and appropriate files present). Grab the latest hactoolnet release from the github (the one in the zips above throw errors, I assume because I was on a newer FW than when it was released).

Extract the save using the hactoolnet, remember the file structure here as that is present in the RAW save file, edit the save file (varies between games) and do --replacefile <path in raw save file> <path to edited save file> -k <keyfile that has ALL of your keys> this will put the edited file in the RAW save and resign the save file, inject the save back in to the switch and enjoy.

I take no risk for you getting banned yadda yadda.
Could you create a batch that does this?
 

aarti

Killua Zoldyck
Member
Joined
Jul 24, 2017
Messages
523
Trophies
0
XP
980
Country
Germany
After extract and convert, can we revert back and re-encrypt save file ?
Yes, use the script from the first page and make a new batch file with the following lines:
Code:
hactoolnet.exe -k prod.keys -t save sav/savefilename --replacefile /savefile out/savefilename/savefile
pause
 
Last edited by aarti,
  • Like
Reactions: Xyphoseos

Xyphoseos

Hack or no games
Member
Joined
Jun 29, 2016
Messages
1,833
Trophies
0
Age
23
Location
Rivière
XP
3,256
Country
France
Yes, use the script from the first page and make a new batch file with the following lines:
Code:
hactoolnet.exe -k prod.keys -t save sav/savefilename --replacefile /savefile out/savefilename/savefile
pause
Sorry, I don't understand the command line, so I don't know what should I edit....
I do it with a pokemon save, in the folder 0000000000000189 (in my case), there are three files, poke_trade, main, backup

--------------------- MERGED ---------------------------

hactoolnet.exe -k prod.keys -t save sav/0000000000000189 --replacefile /savefile out/0000000000000189/savefile
pause

--------------------- MERGED ---------------------------

upload_2020-2-3_4-36-53.png upload_2020-2-3_4-37-15.png upload_2020-2-3_4-37-46.png
 
Last edited by Xyphoseos,

aarti

Killua Zoldyck
Member
Joined
Jul 24, 2017
Messages
523
Trophies
0
XP
980
Country
Germany
Sorry, I don't understand the command line, so I don't know what should I edit....
I do it with a pokemon save, in the folder 0000000000000189 (in my case), there are three files, poke_trade, main, backup

--------------------- MERGED ---------------------------

hactoolnet.exe -k prod.keys -t save sav/0000000000000189 --replacefile /savefile out/0000000000000189/savefile
pause

This should work
Code:
hactoolnet.exe -k prod.keys -t save sav/0000000000000189 --replacefile /main out/0000000000000189/main
pause
 
Last edited by aarti,

elhefegaming

Active Member
Newcomer
Joined
Jul 9, 2018
Messages
28
Trophies
0
Age
74
XP
113
Country
United States
I get this when i try to repackage after running the run command
I've re-arranged the out folder to my need and edited the command accordingly
This is my command

hactoolnet.exe -k prod.keys -t save save/000000000000003b --replacefile /main out/000000000000003b/main
pause

SN92Oc.jpg


/save/000000000000003b is my SW save from user
/out/000000000000003b/main is my SW i got after running the 'run.bat' (i tested it and works fine with PKHEX)
i have the prodkeys with all my keys (just extracted them using latest lockpick_rcm)

edit: solved by downloading latest libhac from repo and compiling.
 
Last edited by elhefegaming,

NotMyTempo

Active Member
Newcomer
Joined
Apr 7, 2020
Messages
36
Trophies
0
Age
46
XP
136
Country
United States
I get this when i try to repackage after running the run command
I've re-arranged the out folder to my need and edited the command accordingly
This is my command

hactoolnet.exe -k prod.keys -t save save/000000000000003b --replacefile /main out/000000000000003b/main
pause

SN92Oc.jpg


/save/000000000000003b is my SW save from user
/out/000000000000003b/main is my SW i got after running the 'run.bat' (i tested it and works fine with PKHEX)
i have the prodkeys with all my keys (just extracted them using latest lockpick_rcm)

edit: solved by downloading latest libhac from repo and compiling.

If I can ask, what game was the save for?
 

Sillybunnie

Well-Known Member
Newcomer
Joined
Feb 4, 2018
Messages
59
Trophies
0
Age
39
XP
638
Country
United States
if im getting these errors is it because i'm using an old version?

Failed to match key eticket_rsa_kek_source
Failed to match key eticket_rsa_kekek_source
Failed to match key master_kek_source_06
Failed to match key rsa_oaep_kek_generation_source
Failed to match key rsa_private_kek_generation_source
Failed to match key ssl_rsa_kek_source_x
Failed to match key ssl_rsa_kek_source_y
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    OctoAori20 @ OctoAori20: Nice nice-