Homebrew Question Renaming NSP Files

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
I'm trying to mass rename nsp files. I've been using nsp tool (rename), but it errors on several of the files. with switch backup manager, it doesn't error, but it skips over the same nsp files. I think it has something to do with the titlekeys.txt. I'm using the latest one I could find. it finds mortal kombat 11, but none of its dlc.
 

Sovikos

Well-Known Member
Member
Joined
Mar 17, 2018
Messages
127
Trophies
0
XP
389
Country
Canada
I have the same problem. I use Switch Backup Manager, but it doesn't get the Game Title to rename the files correctly. Any idea how to mass rename tons of nsp files so I can tell if I have doubles or not?
 

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
I have the same problem. I use Switch Backup Manager, but it doesn't get the Game Title to rename the files correctly. Any idea how to mass rename tons of nsp files so I can tell if I have doubles or not?

the default tab is for xci. there's another tab for eshop stuff. also, adding keys to the keys file will allow it to read newer games.
 

Sovikos

Well-Known Member
Member
Joined
Mar 17, 2018
Messages
127
Trophies
0
XP
389
Country
Canada
Yeah it's the eshop/nsp files that I'm having trouble with. I have an updated keys.txt file I believe, up to master key 08. Not sure about the titlekeys.txt if that needs to be updated though?
 

Sovikos

Well-Known Member
Member
Joined
Mar 17, 2018
Messages
127
Trophies
0
XP
389
Country
Canada
All the games show up (unless they have a double), but some newer games don't get the Game Title, Languages, Developer, MasterKey Version, etc... What's weird is it will sometimes get the info for the base game, but not the DLC or the updates.
 

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
try nx info. it will show all that info including if it's digitally signed and safe to install.

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

also, try nsp verify to scan for corruption. it will tell you if there's a bad nca as it will error immediately. I've seen that happen with a few corrupted conversions of xci to nsp. neither that nor nx info rename games though. however, it will tell if something is wrong with it. it can even tell if the file has been converted just like switch backup manager.
 

Sovikos

Well-Known Member
Member
Joined
Mar 17, 2018
Messages
127
Trophies
0
XP
389
Country
Canada
What is NX info?

This is what my keys.txt looks like. Is that what yours looks like?

Screenshot_1.png
 

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
yes, except I don't have master key 8. I don't know much about switch hacking (haven't hacked mine), but I think master key 7 was technically 8, since there's a key 0.
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,351
Trophies
4
Location
Space
XP
13,937
Country
Norway
What is NX info?

This is what my keys.txt looks like. Is that what yours looks like?

View attachment 176121
NX Game Info. It's able to show all sorts of info and doesn't need any title keys, so I have no idea why this particular program seems to need them.

Both yours and @godreborn 's keys.txt is really short. Maybe the other keys aren't needed, but just to be sure, try dumping your own keys or finding a complete dump online. The full keys.txt (or prod.keys as it's sometimes called) has a shitload of keys in it.
And godreborn, you should definitely have master_key_08. Newer DLCs and updates (and maybe some games) will need it. Not sure if that's the newest one, or there's more.
 
Last edited by The Real Jdbye,

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
I don't believe it needs those extra keys. it's mostly the master keys that are required for newer games. XCI Builder has everything though.

edit: the games do have the title id, which you can get from hex. and, to my understand 800 at the end indicates an update. dlc is all over the place with its content id.
 
Last edited by godreborn,

Sovikos

Well-Known Member
Member
Joined
Mar 17, 2018
Messages
127
Trophies
0
XP
389
Country
Canada
NX Game Info. It's able to show all sorts of info and doesn't need any title keys, so I have no idea why this particular program seems to need them.

Both yours and @godreborn 's keys.txt is really short. Maybe the other keys aren't needed, but just to be sure, try dumping your own keys or finding a complete dump online. The full keys.txt (or prod.keys as it's sometimes called) has a shitload of keys in it.
And godreborn, you should definitely have master_key_08. Newer DLCs and updates (and maybe some games) will need it. Not sure if that's the newest one, or there's more.
Yeah I have that version of the keys.txt. I've heard that the keys need to be in ALL CAPS though, which mine are not. I've used notepad++ to uppercase them all, but then the program won't work because the "MASTER KEY 08" etc... is all uppercase. I'll need to go through each one and just uppercase the actual keys.
 

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
not sure if it's case sensitive, but mine are in upper case, but like I said, I only have until master key 7. I think it can read base games, because a lot of that info you can through hex. I had this same problem as you, and as it turns out, it's because I was missing a few master keys. it only affected updates and dlc like mortal kombat 11's.
 

Sovikos

Well-Known Member
Member
Joined
Mar 17, 2018
Messages
127
Trophies
0
XP
389
Country
Canada
the default tab is for xci. there's another tab for eshop stuff. also, adding keys to the keys file will allow it to read newer games.

Yeah I have that version of the keys.txt. I've heard that the keys need to be in ALL CAPS though, which mine are not. I've used notepad++ to uppercase them all, but then the program won't work because the "MASTER KEY 08" etc... is all uppercase. I'll need to go through each one and just uppercase the actual keys.
I just fixed it to all uppercases except the master_key_08, xci_header_key etc... But it still doesn't pick up the names of base games like Claybook for example. It gets Mutant Year Zero, but it doesn't get the Update nsp name or some of it's info.
 

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
not sure. @Garou or someone else should know what's going on. he's the one who told me to get the rest of the master keys if games aren't showing up. he didn't mention any other keys that were needed. they may be need if converting or extracting content from the nsp, but something as simple as trimming or renaming, it may not need them. like I said, you can tell it's update by looking at the .tik in hex. it will end with 800.
 

Sovikos

Well-Known Member
Member
Joined
Mar 17, 2018
Messages
127
Trophies
0
XP
389
Country
Canada
Yeah I can see which ones are updates easily enough because I sorted them out by BASE, DLC, and UPDATE lol, The new ones that come in will usually have a [vXXXXXXX] if it's an update, and Switch Backup Manager at least tells me that.

Could be the source I am getting the files from has been messing with them and stripping the metadata out? Not too sure how it all works.
 

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
if you run the nsp through nsp verify, it will probably tell you if the metadata is still there. I'm sure it will error or something.
 

Sovikos

Well-Known Member
Member
Joined
Mar 17, 2018
Messages
127
Trophies
0
XP
389
Country
Canada
Yeah I did that and had a few that had errors, but they all come up normally in SBM, so I was kind of confused why they didn't verify correctly.
 

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
not sure. someone told me that some rips are missing their tickets due to having been prepurchased. since I haven't hacked/exploited my system, I don't really know if that's true. can a hacked system play a game with no ticket?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: @K3Nv2, try SanDisk format tool?