Homebrew RELEASE NSZ - Homebrew compatible NSP/XCI compressor/decompressor

nicoboss

Well-Known Member
OP
Member
Joined
Feb 1, 2019
Messages
122
Trophies
0
Age
25
XP
1,025
Country
Switzerland
I've got a folder of old NSPZ files i'd like to convert back to nsp, but they don't show up in the GUI. I read they should be supported?

Cool that you made use of my old file and long depreciated file format. Converting from NSPZ to NSP is quite easy however NSZ is the wrong tool for that. My old file format is implemented inside nsZip which you will find under https://github.com/nicoboss/nsZip. It has a nice GUI that will let you decompress your NSPZ files back to NSP. Once you have them as NSP you can use NSZ to compress them to the new NSZ file format if you want. NSZ is the successor of NSPZ and is an entirely different file format based on the same ideas. NSPZ files are only supported for file organization and extraction tasks with the new NSZ tool. If want to know more or have any questions about nsZip I recommend visiting it's gbatemp thread under https://gbatemp.net/threads/nszip-nsp-compressor-decompressor-to-reduce-storage.530313/
 

zxr750j

Well-Known Member
Member
Joined
Sep 29, 2003
Messages
870
Trophies
1
Location
Utrecht
XP
2,594
Country
Netherlands
Thanks @nicoboss , I think I used nszip to convert them back then! I also remember why I needed to shrink the files: I'll have to do the conversion to nsz in batches due to lack of storage...
 

wontell

New Member
Newbie
Joined
Dec 25, 2021
Messages
2
Trophies
0
Age
43
XP
23
Country
Jamaica
I'm trying to run the program in Windows but I can't. The released binary on github doesn't work well (gui crashes) so I tried the master but I kept getting
stderr: AttributeError: 'arguments' object has no attribute 'alwaysParseCnmt' so I tried to use pip and now I get: TypeError: 'int' object is not subscriptable

Can someone help me? I'm running python 3.6 and Windows 10
 

nicoboss

Well-Known Member
OP
Member
Joined
Feb 1, 2019
Messages
122
Trophies
0
Age
25
XP
1,025
Country
Switzerland
I'm trying to run the program in Windows but I can't. The released binary on github doesn't work well (gui crashes) so I tried the master but I kept getting
stderr: AttributeError: 'arguments' object has no attribute 'alwaysParseCnmt' so I tried to use pip and now I get: TypeError: 'int' object is not subscriptable

Can someone help me? I'm running python 3.6 and Windows 10

It is well known that the GUI is broken on latest release but this should be long fixed in latest master. I just tested latest master and indeed was able to replicate your "AttributeError: 'arguments' object has no attribute 'alwaysParseCnmt'" issue. Luckily it was very easy to fix. Just get latest master again and it will work. Sorry that this wasn’t caught during testing as the CI/CD pipeline only tests the CLI. I will try to create a new release as soon as possible. I was extremely busy with University in the past year but luckily I'm in my last semester.
 
  • Like
Reactions: wontell

wontell

New Member
Newbie
Joined
Dec 25, 2021
Messages
2
Trophies
0
Age
43
XP
23
Country
Jamaica
It is well known that the GUI is broken on latest release but this should be long fixed in latest master. I just tested latest master and indeed was able to replicate your "AttributeError: 'arguments' object has no attribute 'alwaysParseCnmt'" issue. Luckily it was very easy to fix. Just get latest master again and it will work. Sorry that this wasn’t caught during testing as the CI/CD pipeline only tests the CLI. I will try to create a new release as soon as possible. I was extremely busy with University in the past year but luckily I'm in my last semester.

thank you!!
 

Chrisssj2

Well-Known Member
Member
Joined
Feb 12, 2008
Messages
2,657
Trophies
1
XP
3,994
Country
Netherlands
This app often doesnt work and it hangs on certain files without any error msg leaving you to guess which files were done successfully or which caused the freeze.... Plz can we get an update?
 

Dust2dust

Well-Known Member
Member
Joined
Jun 17, 2010
Messages
2,112
Trophies
2
XP
3,621
Country
Canada
This app often doesnt work and it hangs on certain files without any error msg leaving you to guess which files were done successfully or which caused the freeze.... Plz can we get an update?
He doesn't update the first message, but the github is still updated. Last one was december 13th (v4.2.1).
 

Dust2dust

Well-Known Member
Member
Joined
Jun 17, 2010
Messages
2,112
Trophies
2
XP
3,621
Country
Canada
Idk what you are saying with CLi but im not a technical person. so yeah. im on windows 11
CLI=Command Line Interface. On linux, I would enter the command "python3 nsz --level 20 -C -V /home/switch" to compress all nsp files in the switch folder and then verify them. The Windows command is probably similar, but I haven't checked. It's probably in the documentation.
 

nicoboss

Well-Known Member
OP
Member
Joined
Feb 1, 2019
Messages
122
Trophies
0
Age
25
XP
1,025
Country
Switzerland
This app often doesnt work and it hangs on certain files without any error msg leaving you to guess which files were done successfully or which caused the freeze.... Plz can we get an update?
I actually planed on releasing an update tomorrow adding Bit-identical PFS0 recreation to comply with the no-intro standard but this won't fix your issue as you never reported it under Issues. I will delay this release to next weekend so I can investigate your issue and fix it if possible.

Feel free to provide more information regarding your issue here if you don't have a GitHub account.

In order to recreate and fix your issue please provide the following information:
  • What games are failing for you? Can you please provide some excamples?
  • What error do you get? Please post the log containing the error message. The error lof is shown as white text on a black window at the very end once all your games are processed. NSZ always gives you a summary of all errors that occurred once everything got processed.
  • Are you trying to compress games from the eShop (.nsp) or a Cartage (.xci)?
  • Are you using any NSZ settings different than the default?
  • What tool and settings are you using to dump your games?
  • You mentioned NSZ is freezing. This should never happen. Make sure you don't run out of RAM or Storage. Some large games can take up to an hour to compress (depending on your PC and compression settings). Make sure to wait long enough and check CPU usage. If it asks you to press Enter to exit this means that it's done and if you don't see any errors above that every game you requested it to process was processed successfully.
I saw a lot of users having similar issues because they forgot to dump thair latest keys using Lockpick_RCM. Make sure your keys inside %userprofile%/.switch/prod.keys are dumped from the firmware currently running on your Nintendo Switch and is not outdated. You can only compress games encrypted with keys you have dumped

NSZ is currently used by hundred thousand of persons and nobody ever reported this issue so far so you must do something different than the vast majority of NSZ users.

He doesn't update the first message, but the github is still updated. Last one was december 13th (v4.2.1).
Oh, you are right. I indeed neglected GBATemp as this thread got so inactive I thought nobody is looking at it anymore. NSZ is still in active development as a spare time project and my last commit was last weekend. I will update the first page again once I do the 4.3 release next weekend.
 
  • Like
Reactions: hippy dave

Chrisssj2

Well-Known Member
Member
Joined
Feb 12, 2008
Messages
2,657
Trophies
1
XP
3,994
Country
Netherlands
I actually planed on releasing an update tomorrow adding Bit-identical PFS0 recreation to comply with the no-intro standard but this won't fix your issue as you never reported it under Issues. I will delay this release to next weekend so I can investigate your issue and fix it if possible.

Feel free to provide more information regarding your issue here if you don't have a GitHub account.

In order to recreate and fix your issue please provide the following information:
  • What games are failing for you? Can you please provide some excamples?
  • What error do you get? Please post the log containing the error message. The error lof is shown as white text on a black window at the very end once all your games are processed. NSZ always gives you a summary of all errors that occurred once everything got processed.
  • Are you trying to compress games from the eShop (.nsp) or a Cartage (.xci)?
  • Are you using any NSZ settings different than the default?
  • What tool and settings are you using to dump your games?
  • You mentioned NSZ is freezing. This should never happen. Make sure you don't run out of RAM or Storage. Some large games can take up to an hour to compress (depending on your PC and compression settings). Make sure to wait long enough and check CPU usage. If it asks you to press Enter to exit this means that it's done and if you don't see any errors above that every game you requested it to process was processed successfully.
I saw a lot of users having similar issues because they forgot to dump thair latest keys using Lockpick_RCM. Make sure your keys inside %userprofile%/.switch/prod.keys are dumped from the firmware currently running on your Nintendo Switch and is not outdated. You can only compress games encrypted with keys you have dumped

NSZ is currently used by hundred thousand of persons and nobody ever reported this issue so far so you must do something different than the vast majority of NSZ users.


Oh, you are right. I indeed neglected GBATemp as this thread got so inactive I thought nobody is looking at it anymore. NSZ is still in active development as a spare time project and my last commit was last weekend. I will update the first page again once I do the 4.3 release next weekend.
1681600962473.png

1681600974456.png

These files for example don't want to seem to convert. they are all nsp files. Whenever the tool meets such file the entire que gets f*ked. and you wont be able to tell which files were done properly, getting me to redo the whole thing over again to be sure just to find the problematic files and ensure the other files are done properly. If I don't see the "DONE" message. i dont trust any work that may have been done.
I have 32 GB ram. top of the line computer. I do wait long enough, and check harddisk activity and cpu usage, thats why i say freeze, because it is not doing anything and the program "acts" like it is still busy and is counting time, but nothing is happening. These are files that are smaller then 1 gigabyte.... shouldnt take long normally. and i have let it stay on for hours a few times when this happens. I use max compression settings, other then that nothing changed


This is the error I get:
1681601631753.png


Also if I change the name of the file to something else i can't even seem to add it to the GUI list for example if I change the filename to "kut.nsp" i cant even add it to the list... I got the feeling something is up with the filenames somehow


1681601699045.png
 
Last edited by Chrisssj2,
General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: And it dropped in price I think nice! Lol