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,180
Trophies
1
Age
42
XP
3,270
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,100
Trophies
2
Age
124
XP
4,087
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
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +2
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
  • cearp @ cearp:
    It's nice to not have to have a lot of physical things though, saves space
    +1
  • AncientBoi @ AncientBoi:
    Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D
    AncientBoi @ AncientBoi: Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D