Homebrew RELEASE Ryjin: A NSZ Converter Mod

GnK23

Well-Known Member
OP
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
@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.
 

bubble22

Member
Newcomer
Joined
Sep 17, 2009
Messages
5
Trophies
1
XP
796
Country
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 ---------------------------
 

GnK23

Well-Known Member
OP
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
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
 

Rahkeesh

Well-Known Member
Member
Joined
Apr 3, 2018
Messages
2,178
Trophies
1
Age
42
XP
3,260
Country
United States
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.
 

nicoboss

Well-Known Member
Member
Joined
Feb 1, 2019
Messages
132
Trophies
0
Age
26
XP
1,196
Country
Switzerland
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,

leon315

POWERLIFTER
Member
Joined
Nov 27, 2013
Messages
4,097
Trophies
2
Age
124
XP
4,075
Country
Italy
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??!
 

ddr3

New Member
Newbie
Joined
Dec 8, 2019
Messages
3
Trophies
0
Age
39
XP
55
Country
Russia
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 ?
 

byanime

Well-Known Member
Newcomer
Joined
May 3, 2010
Messages
62
Trophies
0
XP
284
Country
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?
 

nicoboss

Well-Known Member
Member
Joined
Feb 1, 2019
Messages
132
Trophies
0
Age
26
XP
1,196
Country
Switzerland
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

byanime

Well-Known Member
Newcomer
Joined
May 3, 2010
Messages
62
Trophies
0
XP
284
Country
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
 

MusicallyInspired

Well-Known Member
Newcomer
Joined
Nov 7, 2017
Messages
99
Trophies
0
Age
39
XP
321
Country
Canada
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.
 

nicoboss

Well-Known Member
Member
Joined
Feb 1, 2019
Messages
132
Trophies
0
Age
26
XP
1,196
Country
Switzerland
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

MusicallyInspired

Well-Known Member
Newcomer
Joined
Nov 7, 2017
Messages
99
Trophies
0
Age
39
XP
321
Country
Canada
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

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: yawn