Thread Status:
Not open for further replies.
  1. giwty

    OP giwty Advanced Member
    Newcomer

    Joined:
    Sep 8, 2019
    Messages:
    77
    Country:
    United States
    New Thread with a new name:

    https://gbatemp.net/threads/switch-library-manager-easily-manage-your-switch-game-backups.568639/

    old info:

    NSP Update - manage your local switch library files


    This utility lets you manage your local switch files (nsp/nsz), with the following capabilities:
    - Find if you are missing any game updates or DLC's
    - Delete old update files
    - Organize files in a folder per game structure

    This is a command line tool (Mac/Win/Linux), without fancy UI, but gets the job done.
    You can use it by downloading it and running it with the path to your local NSP folder.

    [​IMG]

    Download & instructions
    Download latest release on github - https://github.com/giwty/nsp-update
    Windows
    • Run cmd.exe
    • cd to the folder containing nsp-update.exe
    • Run nsp-update.exe -f "X:\folder\containing\nsp\files"
    • Optionally add -r to recursively scan for nested folders
    • Add -m dlc to show missing dlc's
    • Add -m u to show missing updates (default)
    • Add -m o to organize the files in a folder per game structure, where the folder will contains base/updates/dlc files in a flat structure.
    • Add -m d to delete outdated local update files
    macOS or Linux
    • Open your Terminal
    • cd to the folder containing nsp-update
    • chmod +x nsp-update to make it executable
    • Run ./nsp-update -f "/folder/containing/nsp/files"
    • Optionally add -r to recursively scan for nested folders
    • Add -m dlc to show missing dlc's
    • Add -m u to show missing updates (default)
    • Add -m o to organize the files in a folder per game structure, where the folder will contains base/updates/dlc files in a flat structure.
    • Add -m d to delete outdated local update files
    6/20 - new version 0.5:
    Changes:
    • Complete code refactor, it will be much easier to add features now
    • Better handling when no internet / corrupted json - will try to re-use local json file
    New capabilities
    • Added new command line option - "m" (stands for mode), will use this to add new capabilities
    Currently supported capabilities:
    • Add -m u to show missing updates (default)
    • Add -m dlc to show missing dlc's
    • (new) Add -m o to organize the files in a folder per game structure, where the folder will contains base/updates/dlc files in a flat structure.
      All folders will be created in the base NSP folder that was provided as the command line argumet
    • (new) Add -m d to delete outdated local update files


    Notes:This utility doesnt read your NSP files, but just scans the NSP file names, which means your NSP files need to contain the titleId and version
     
    Last edited by osaka35, Jun 29, 2020
    Fgamer, UnT7oh, falcorr and 11 others like this.
  2. masagrator

    masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    4,139
    Country:
    Poland
    You could use hactool to get titleids in two different way:
    - by getting name of *.tik or *.cert file and taking first 16 characters
    - by unpacking lightest NCA (less than 1MB) and scanning this NCA with hactool

    https://github.com/giwty/nsp-update
     
    Last edited by masagrator, Sep 8, 2019
    falcorr, andyhappypants and giwty like this.
  3. yyoossk

    yyoossk GBAtemp Regular
    Member

    Joined:
    Oct 18, 2017
    Messages:
    144
    Country:
    Japan
    Is there a tutorial?
    sorry for my bud english
     
  4. SaulFemm

    SaulFemm Member
    Newcomer

    Joined:
    Oct 25, 2018
    Messages:
    36
    Country:
    United States
    Very cool. I actually just finished up a very similar tool this morning. The only difference being that mine will look at a certain google drive and grab the missing updates/dlc for you. Don't know if I'll ever get mine to the point where I feel comfortable releasing it though so I'm glad this is out there.
     
  5. flowlapache

    flowlapache GBAtemp Regular
    Member

    Joined:
    Sep 7, 2010
    Messages:
    117
    Country:
    France
    Very nice to you to make it!! really usefull to have our games up to date!! thanks for your work!
     
  6. Vandes

    Vandes Member
    Newcomer

    Joined:
    Jul 12, 2014
    Messages:
    22
    Country:
    Zimbabwe
    Thanks for the nice tool!

    However your Windows build doesn't work. It doesn't parse the JSON files correctly, probably because it was built for 32bit architecture. MacOS version works fine.
    I've recompiled the program for Windows, MacOS and Linux using amd64 architecture, tested and working on all 3 OSs. Please include these builds in your releases or recompile them correctly.

    I've also PRed some usage and building instructions on your repo, if you want to accept it :D
     

    Attached Files:

    ber71 and giwty like this.
  7. giwty

    OP giwty Advanced Member
    Newcomer

    Joined:
    Sep 8, 2019
    Messages:
    77
    Country:
    United States
    Thanks @Vandes for PR and the builds! i only have mac, so that makes sense...
    I've updated the tool to use the new titledb file location, and now use etag to ensure the file is always updated.
    Enjoy
     
  8. JohNex

    JohNex Newbie
    Newcomer

    Joined:
    Oct 9, 2019
    Messages:
    1
    Country:
    United States
    Amazing work @giwty thanks a lot for taking the time to do this. Do you think you can do an addition if your time allows and is technically possible? It would be amazing if your tool could scan XCI files and find missing updates and DLCs, as you know a lot of people is using custom XCI files with updates and DLC in the same file. Another question, do you think your current tool version also works with DLCs or just updates? thanks again
     
    Last edited by JohNex, Oct 9, 2019
  9. Dust2dust

    Dust2dust GBAtemp Advanced Maniac
    Member

    Joined:
    Jun 17, 2010
    Messages:
    1,525
    Country:
    Canada
    I don't know if anybody else might run into this issue, but I scratched my head a few hours before solving this. I kept getting the message "All NSP's are up to date" even though they clearly weren't. The .json files downloaded properly. What I figured out is that both the base NSP file and the update NSP file MUST be in the same folder. I kept them in different folders, not mixed together. Now everything works as it should. Thanks for a useful tool, giwty! :grog:
     
  10. whateverg1012

    whateverg1012 GBAtemp Advanced Fan
    Member

    Joined:
    Sep 23, 2016
    Messages:
    572
    Country:
    United States
    Helpful tool, does this check updates for DLC content as well?
     
  11. giwty

    OP giwty Advanced Member
    Newcomer

    Joined:
    Sep 8, 2019
    Messages:
    77
    Country:
    United States
    New version is out that adds support for missing DLC's, and updates the versions db url
     
  12. Masamune3210

    Masamune3210 GBAtemp Regular
    Member

    Joined:
    Apr 23, 2016
    Messages:
    126
    Country:
    United States
    I think the titles json the program is trying to pull is encrypted, the program keeps erroring out when not finding what it was looking for in the file, and when opening the file, the file contains TINFOIL in all caps in the start, and then a bunch of garbage in the rest of the file instead of the normal contents
     
  13. giwty

    OP giwty Advanced Member
    Newcomer

    Joined:
    Sep 8, 2019
    Messages:
    77
    Country:
    United States
    Updated the urls again, new release is up on github
     
  14. Masamune3210

    Masamune3210 GBAtemp Regular
    Member

    Joined:
    Apr 23, 2016
    Messages:
    126
    Country:
    United States
    Program now fails while trying to rename versiondb.json to bak, due to not downloading versiondb.json
     
  15. giwty

    OP giwty Advanced Member
    Newcomer

    Joined:
    Sep 8, 2019
    Messages:
    77
    Country:
    United States
    Copy paste error, will fix latter.
    For now just create a dummy versions Json file so it won’t fail on the rename
     
  16. furion23

    furion23 Newbie
    Newcomer

    Joined:
    Dec 29, 2019
    Messages:
    1
    Country:
    East Timor
    Tried using the program but it gives me this error:
    upload_2019-12-29_13-50-16.png

    Any thoughts on this ?
     
  17. giwty

    OP giwty Advanced Member
    Newcomer

    Joined:
    Sep 8, 2019
    Messages:
    77
    Country:
    United States
    @furion23 - please try again, might be a momentary hiccup, it works fine on my end.
    I've pushed a new release that fixes the rename issue, you can skip it if things work well for you.
     
  18. CaptainHIT

    CaptainHIT GBAtemp Fan
    Member

    Joined:
    Mar 2, 2011
    Messages:
    367
    Country:
    Germany
    Wouldn't be a Switch tool wonderful too? So I could directly check on my Switch for updated on installed titles.
     
  19. Masamune3210

    Masamune3210 GBAtemp Regular
    Member

    Joined:
    Apr 23, 2016
    Messages:
    126
    Country:
    United States
    Could use tinfoil for that though, it already will tell you if any of your games or dlc need updates
     
  20. Marizzz95

    Marizzz95 Member
    Newcomer

    Joined:
    Jul 26, 2019
    Messages:
    15
    Country:
    Germany
    Hello, does this tool also work if you keep your game and update nsp's in their own folder for each game?
     
Loading...

Hide similar threads Similar threads with keywords - utility, updates, Update

Thread Status:
Not open for further replies.