Homebrew RELEASE Ryjin: A NSZ Converter Mod

  • Thread starter Thread starter GnK23
  • Start date Start date
  • Views Views 115,413
  • Replies Replies 173
  • Likes Likes 12
@GnK23 New NSZ release: https://github.com/nicoboss/nsz/releases - see all this new features - I guess you should update RYJIN too. With nsz 2.1 the project got pip support so if you like you can fully separate NSZ and RYJIN by using NSZ as a library. Just enter "pip install nsz" to get NSZ. Also note NSZ 2.1.1 now finally officially includes a portable build for windows so the user no longer requires python.
Thank you. I haven't checked out your release but the latest ryjin already uses nsz.exe so I think it is compatible with your latest build. Thank you @nicoboss for keeping nsz updated. Your work and @blawar really made the scene move forward.
 
Hey there, thanks for the tools. Is there a way to disable the verification of NSZ? It freezes for me on 2.5 all the time and I have to restart the whole GUI.

--------------------- MERGED ---------------------------
 
I have made one last MOD for ryjin. This modded version skips the file checks at the beginning of each process that allows faster compression especially when dealing with large number of files.
Take note however of the following:
1. This will not check if you have a bad nsp or nsz so don't assume it will fix your problem. Always use working nsp or nsz during convertion. If your file is busted it's not the fault of the converter
2. This will definitely overwrite anything inside the folder that has already been converted if you plan to reconvert them.
https://gofile.io/?c=YjNG0J
 
Great work. Got most of my stuff converted on my hard drive thanks to the updates you guys have been working on. Kudos!

However in addition to most of my NSPs being converted to NSZ, I also have some NSX files. I'm not sure what these are for and can't find any info on them.
 
Great work. Got most of my stuff converted on my hard drive thanks to the updates you guys have been working on. Kudos!

However in addition to most of my NSPs being converted to NSZ, I also have some NSX files. I'm not sure what these are for and can't find any info on them.
NSX is an NSP equivalent file format generated by the NUT CDN downloader if you don't provide it with the titlekey required for the game you downloaded. Without somehow obtaining and applying the titlekey to your NSX using NUT, CDN downloads are completely useless as you don't have the titlekey required to decrypt it. I highly recommend against using NUT CDN downloader even if you somehow obtained the NUT CDN downloader patches for latest firmware as without much knowledge you will almost definitely get banned. The fact that you need the titlekeys usually requires you to buy the game anyways and if you have to buy the game it’s much safer to just download and dump it. NSX obviously can't be compressed as the large NCA files can't be decrypted without the titlekeys. You can dump titlekeys from your console using Lockpick and from NSPs using latest nsZip commit (not latest release) under Tools – I will probably add this feature to NSZ in the next few days.
 
Last edited by nicoboss,
Splatoon 2 NSP: 3281 MB
Splatoon 2 NSZ: 2600 MB

Not bad. Repacking Breath of the Wild now.
And when I'm home I can finally test whether NSZ files can be easily installed with the amazing Tinson + Tinfoil duo. :)
you mean the comressed NSZ files can be installed on ur switch with TINSON??!
 
you mean the comressed NSZ files can be installed on ur switch with TINSON??!
Yes. Put them in a Google Drive, share the link, paste it to your Tinson profile, setup your Tinson url in Tinfoil's file browser and have fun.
 
Hi All . Can anyone help me ? I cant run nsz files on my switch , i need to convert its in nsp . From nsz to nsp . How can i do it ?
 
How can i update my DBI ? I think , that this can help me to install nsz games...
 
Block compression technically supports playing compressed games in the future

Does that mean play the block compressed nsz file without installing it?

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

Could Ryjin work recursively and process all the files in sub folders?
Or I have to write script to call nsz itself if I want to do that?

Ryjin should be a easy to use front end for nsz right? if I call nsz directly there should be no difference for the results?
 
Nice but too bad that it is not for macOS.
Just use https://github.com/nicoboss/nsz for MacOS. A GUI version of nsz will be released later today.

Block compression technically supports playing compressed games in the future

Does that mean play the block compressed nsz file without installing it?

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

Could Ryjin work recursively and process all the files in sub folders?
Or I have to write script to call nsz itself if I want to do that?

Ryjin should be a easy to use front end for nsz right? if I call nsz directly there should be no difference for the results?
Block compressed games can technically be played without installing just nobody has implemented a sysmodule to do so yet. On February nsz 4.0 is planned to be released which is planned to support NSZ/XCZ mounting at least for PC so you can play them inside emulator without decompressing. For the sysmodule I guess it's just a question of time until somebody is willing to create and maintain one.

Just use the nsz script if you feel comfortable using command line arguments. Ryjin is just a wrapper around nsz for easy use. nsz 3.0 with its GUI which will be released later today will make Ryjin kind of obsolete in my opinion. To recursively process games, use nsz portable like:
nsz.exe -C pathToYourGames --level 22
 
Last edited by nicoboss,
  • Like
Reactions: spotanjo3
hi boss,
I used this for compressing all .nsp files in current folder and subfolders
forfiles /s /m *.nsp /c "cmd /c D:\nsz\nsz.exe -C --level 18 --block --threads 4 @path"

and used this for decompressing
forfiles /s /m *.nsz /c "cmd /c D:\nsz\nsz.exe -D --threads 4 @path"

Works very well.

However the verify part doesn't seem to work , stuck at 99% for ages
 
Why does compressing work for some NSPs and not others? I keep getting multiple error outs saying the file is in use and that maybe keys.txt is outdated. But other files compress fine. I'm only compressing as Solid.
 
hi boss,
I used this for compressing all .nsp files in current folder and subfolders
forfiles /s /m *.nsp /c "cmd /c D:\nsz\nsz.exe -C --level 18 --block --threads 4 @path"

and used this for decompressing
forfiles /s /m *.nsz /c "cmd /c D:\nsz\nsz.exe -D --threads 4 @path"

Works very well.

However the verify part doesn't seem to work , stuck at 99% for ages
If you aren’t using block compression your issue is caused by https://github.com/nicoboss/nsz/issues/31 and further discussed here https://github.com/nicoboss/nsz/issues/39. Basically, it's just a visual bug of the process bar caused by multithreaded solid compression. For block compression I have no idea. If that's the case please report a game where you experience this issue and let me know if it will eventually complete or if it is stuck forever.

Why does compressing work for some NSPs and not others? I keep getting multiple error outs saying the file is in use and that maybe keys.txt is outdated. But other files compress fine. I'm only compressing as Solid.
Update to latest firmware and dump your prod.keys using https://github.com/shchmue/Lockpick_RCM/releases. Games encrypted with keys for a higher firmware then inside your provided prod.keys/keys.txt can't be decrypted which is required to compress them.
 
  • Like
Reactions: MusicallyInspired
Oh yes of course. Many thanks.

EDIT: Well, so I don't recall how to get a new keys.txt with this method. I have prod.keys, title.keys, and device.keys. The old keys.py script doesn't seem to work for newer firmware nor is it supposed to. So how do I generate a new keys.txt? Is it just a copy/pasted combination from the contents of the aforementioned .keys files?
 
Last edited by MusicallyInspired,

Site & Scene News

Popular threads in this forum