Homebrew WIP NSP Organizer and mass downloader

Vantis

Active Member
Newcomer
Joined
Feb 12, 2018
Messages
33
Trophies
0
Age
43
XP
216
Country
Canada
“nut.py -h” for help
“nut.py -U to update list
“nut.py -D to download All (games/dlc/updates)
“nut.py -so” to scan and organize files into folders as specified in the configuration file.
.nsx files are locked .nsp files (without titlekey)
When a titlekey becomes available, you are notified and you can unlock the nsx and convert to nsp by typing “nut.py —unlock-all”

You rock thank you
 
  • Like
Reactions: morrison22

gizmomelb

Well-Known Member
Member
Joined
Jul 13, 2006
Messages
926
Trophies
1
XP
1,658
Country
Australia
Re run the script and it will rename them all for you, same thing happens to me

I tried that.. doesn't make any difference, there are still a LOT of files in the DLC folder etc. with just the filename [titleID].nsp

Also I have a heap of files in my ''old'' folder and there appear to be the renamed files in the title\dlc etc. folder and windows complains it cannot rename the files in the old folder because there is a file with same name in destination.. ie: hasn't cleaned up very well.

thank you.
 

morrison22

Well-Known Member
Member
Joined
Nov 26, 2005
Messages
618
Trophies
0
XP
1,948
Country
United States
I tried that.. doesn't make any difference, there are still a LOT of files in the DLC folder etc. with just the filename [titleID].nsp

Also I have a heap of files in my ''old'' folder and there appear to be the renamed files in the title\dlc etc. folder and windows complains it cannot rename the files in the old folder because there is a file with same name in destination.. ie: hasn't cleaned up very well.

thank you.

in your nut.conf, change the titleDLC line and add {baseName} prior to [{name}] to get DLC game name followed by DLC name in the filename. Then run "nut.py -so" to scan and rename.

Example: "titleDLC": "/NSP/DLC/{baseName} [{name}][DLC][{id}][v{version}][{region}].nsp"
 
  • Like
Reactions: gizmomelb

gizmomelb

Well-Known Member
Member
Joined
Jul 13, 2006
Messages
926
Trophies
1
XP
1,658
Country
Australia
AWESOME! thank you @morrison22 that fixed that issue perfectly.

EDIT: ok I've discovered why I had file renaming failures and some files could not be moved - the filenames were not valid Windows filenames as they contained invalid characters like '':'' and "/" etc.

Would it please be possible to have a config option or config file (like the whitelist.txt and blacklist.txt) where you can filter / replace certain characters out of the filename?

eg: Bob's GUI removes the following characters from the filename: /\\:*?!"|™©®() so the filename is then Windows filename compliant.

Thank you.
 
Last edited by gizmomelb,
  • Like
Reactions: morrison22

Switch_Maniac

Well-Known Member
Member
Joined
Dec 16, 2018
Messages
183
Trophies
0
XP
652
Country
United States
Hi All. Awesome work on this. It seems very helpful! So I am new to python and want to set this up to read where my games are already stored just so that I can do network installs to my switch. I do not need it to download anything for me? Any tips on getting started? I downloaded the nut-master zip and extracted everything, but seem to be having trouble with what to do next. I edited my config so that all download options are false already. When I launch the .py it just appears then disappears. Nothing ever happens.
 

blawar

Developer
OP
Developer
Joined
Nov 21, 2016
Messages
1,708
Trophies
1
Age
40
XP
4,311
Country
United States
Hi All. Awesome work on this. It seems very helpful! So I am new to python and want to set this up to read where my games are already stored just so that I can do network installs to my switch. I do not need it to download anything for me? Any tips on getting started? I downloaded the nut-master zip and extracted everything, but seem to be having trouble with what to do next. I edited my config so that all download options are false already. When I launch the .py it just appears then disappears. Nothing ever happens.

you should read the readme. make sure the scan path contains your NSP.s run:

nut.py -s
nut.py --server

then test by going to http://127.0.0.1:9000/ in your web browser.
 
  • Like
Reactions: Switch_Maniac

plato79

New Member
Newbie
Joined
May 12, 2019
Messages
4
Trophies
0
Age
45
XP
74
Country
Turkey
I have a question. Is it not possible to read NSP file and find titleid, version and other parameters? AFAIS nut only parses these from the filename itself but if filename is not formatted correctly it cannot detect these parameters. Don't know any file renamers out there which reads and renames the files.
 

gizmomelb

Well-Known Member
Member
Joined
Jul 13, 2006
Messages
926
Trophies
1
XP
1,658
Country
Australia
I have a question. Is it not possible to read NSP file and find titleid, version and other parameters? AFAIS nut only parses these from the filename itself but if filename is not formatted correctly it cannot detect these parameters. Don't know any file renamers out there which reads and renames the files.

NSCB has a rename function which I've been using on scene releases. Switch Backup Manager also works.
 

gizmomelb

Well-Known Member
Member
Joined
Jul 13, 2006
Messages
926
Trophies
1
XP
1,658
Country
Australia
I remember the old version of nut move old version of NSP update file to duplicates folder, why newer version don't do that now?

I think it is still supposed to, but I've also had issues where files are moved to the duplicates folder and the other duplicate file in the base/updates/dlc folder is deleted (windows 7)
 

plato79

New Member
Newbie
Joined
May 12, 2019
Messages
4
Trophies
0
Age
45
XP
74
Country
Turkey
@blawar I'm happy that you're still maintaining titleDBs. Although I think you're not actively implementing new features or fixes. Do you plan to get back to developing nut?
 

plato79

New Member
Newbie
Joined
May 12, 2019
Messages
4
Trophies
0
Age
45
XP
74
Country
Turkey
@blawar where do you get titleid informations? Because there are a lot of missing titles ( some for baseNames, some for DLCs ).

BTW, maybe I'm reiterating myself but is it not possible to get the informations about the files from the files themselves? Or to put it plainly what information is stored in NSP files? I know that .CNMT file has some information about the NSP file structure but don't have much information about it.. I'll try to dig up switch backup manager to find how it finds all information about the games..
 
Last edited by plato79,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
  • K3Nv2 @ K3Nv2:
    Tell Kanye I need power
  • DinohScene @ DinohScene:
    Better start running in your hamster wheel
    DinohScene @ DinohScene: Better start running in your hamster wheel