Question Renaming NSP Files

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by godreborn, May 31, 2019.

  1. godreborn
    OP

    godreborn GBAtemp Guru

    Member
    11
    Oct 10, 2009
    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.
     
  2. Sumandora

    Sumandora Im using Parental Controls. Change my Mind!

    Member
    4
    Nov 13, 2018
    Germany
    First why do you want to rename the nsp?
     
  3. Sovikos

    Sovikos Advanced Member

    Newcomer
    2
    Mar 17, 2018
    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?
     
  4. godreborn
    OP

    godreborn GBAtemp Guru

    Member
    11
    Oct 10, 2009
    United States
    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.
     
  5. Sovikos

    Sovikos Advanced Member

    Newcomer
    2
    Mar 17, 2018
    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?
     
  6. godreborn
    OP

    godreborn GBAtemp Guru

    Member
    11
    Oct 10, 2009
    United States
    I think only the keys.txt needs to be updated. no games appear or only newer ones?
     
  7. Sovikos

    Sovikos Advanced Member

    Newcomer
    2
    Mar 17, 2018
    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.
     
  8. godreborn
    OP

    godreborn GBAtemp Guru

    Member
    11
    Oct 10, 2009
    United States
    try nx info. it will show all that info including if it's digitally signed and safe to install.

    — Posts automatically merged - Please don't double post! —

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

    Sovikos Advanced Member

    Newcomer
    2
    Mar 17, 2018
    Canada
    What is NX info?

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

    Screenshot_1.
     
  10. godreborn
    OP

    godreborn GBAtemp Guru

    Member
    11
    Oct 10, 2009
    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.
     
  11. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    19
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Mar 17, 2010
    Norway
    Alola
    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, Aug 11, 2019
  12. godreborn
    OP

    godreborn GBAtemp Guru

    Member
    11
    Oct 10, 2009
    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, Aug 11, 2019
  13. Sovikos

    Sovikos Advanced Member

    Newcomer
    2
    Mar 17, 2018
    Canada
    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.
     
  14. godreborn
    OP

    godreborn GBAtemp Guru

    Member
    11
    Oct 10, 2009
    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.
     
  15. Sovikos

    Sovikos Advanced Member

    Newcomer
    2
    Mar 17, 2018
    Canada
    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.
     
  16. godreborn
    OP

    godreborn GBAtemp Guru

    Member
    11
    Oct 10, 2009
    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.
     
  17. Sovikos

    Sovikos Advanced Member

    Newcomer
    2
    Mar 17, 2018
    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.
     
  18. godreborn
    OP

    godreborn GBAtemp Guru

    Member
    11
    Oct 10, 2009
    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.
     
  19. Sovikos

    Sovikos Advanced Member

    Newcomer
    2
    Mar 17, 2018
    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.
     
  20. godreborn
    OP

    godreborn GBAtemp Guru

    Member
    11
    Oct 10, 2009
    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?
     
Loading...