reNXpack - Repack Nintendo Switch nsps to work on lower firmwares

reNXpack is a tool for repacking Nintendo Switch nsps to work on lower firmwares

Features:
  • Repack games, updates and dlcs with lowest encryption keys
  • Convert titlekey encrypted ncas to standard encrypted ncas
  • Patch required firmware version and required application version to zero
  • Support nsps containing multiple games, updates and dlcs

Some nsps may not work on lower firmwares due to lack of required IPCs
You can check games compatibility here:
https://wiki.gbatemp.net/wiki/Switch_games_firmware_requirement

Usage:
You should load your keyset file with -k or --keyset option followed by a path to it or place your keyset file with "keys.dat" filename in the same folder as reNXpack
By default, Created nsp files are located in the same folder as reNXpack with 'titleid_reNXpack.nsp' filename
You can change output directory with -o, --outdir option
reNXpack creates "renxpack_extracted_nsp" folder as a temp directory, It deletes the directory content before and after conversion
If you use -t, --tempdir option to choose a temporary directory, Make sure it's an empty directory and it's not the same as output directory otherwise reNXpack deletes it
Code:
*nix: ./renxpack [options...] <path_to_file.nsp>
Windows: .\renxpack.exe [options...] <path_to_file.nsp>
 
Options:
-k, --keyset             Set keyset filepath, default filepath is ./keys.dat
-h, --help               Display usage
-t, --tempdir            Set temporary directory path
-o, --outdir             Set output directory path

Current version: v1.16

https://github.com/The-4n/reNXpack/
https://github.com/The-4n/reNXpack/releases/

Changelog:
v1.16
Fixed a bug in file paths

v1.15
Added requiredsystemversion and keygeneration in summary
Fixed a bug in PFS0 validation
Fixed cnmt.xml invalid keygeneration

v1.11
Fixed a bug in exefs hash calculation

v1.10
Added NPDM(ACID/ACI0) kac minimum_kernel_version patching

v1.01
Fixed a bug in repacking updates
Fixed .cnmt.xml invalid RequiredSystemVersion value

v1.00
Initial release
 
Last edited by The-4n,

duckbill007

Well-Known Member
Member
Joined
May 5, 2011
Messages
381
Trophies
0
XP
1,282
Country
Russia
I wonder - how can nsp contain more than one title?
Does it contain multiple cnmt.nca? Is it normal? What nsp installer supports such nsp?
 

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
41
XP
2,738
Country
United States
I wonder - how can nsp contain more than one title?
Does it contain multiple cnmt.nca? Is it normal? What nsp installer supports such nsp?

Currently, no installer supports it and there's no nsp like this
But In theory, it can be
It's like a zip file containing multiple exes, it's possible for sure
 
  • Like
Reactions: Mothafuckka

crow132

Well-Known Member
Member
Joined
Jan 19, 2016
Messages
301
Trophies
0
Age
32
XP
1,286
Country
Saint Helena
This is really interesting, I recently updated to 7.01 because of game compatibility. Kinda late for me to test, but really interesting indeed.
 

duckbill007

Well-Known Member
Member
Joined
May 5, 2011
Messages
381
Trophies
0
XP
1,282
Country
Russia
@The-4n so, if I wanna create such nsp right now, all I need to do: get app nsp, update nsp, all dlc nsp, unpack all it's contents via hactoll to one folder and repack all that folder contents into single nsp via hacpack. Am I right? And hope that one day some installer will have support for such multiNSP?
 

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
41
XP
2,738
Country
United States
@The-4n so, if I wanna create such nsp right now, all I need to do: get app nsp, update nsp, all dlc nsp, unpack all it's contents via hactoll to one folder and repack all that folder contents into single nsp via hacpack. Am I right? And hope that one day some installer will have support for such multiNSP?

Yup, It's easy as you've mentioned
Idk why title installer don't support it, nsp is like xci, xci can contain multiple games, updates and dlcs, nsps can contain them too
 

duckbill007

Well-Known Member
Member
Joined
May 5, 2011
Messages
381
Trophies
0
XP
1,282
Country
Russia
I looked through code of all opensource installers - all of them at the moment just get first cnmt.nca, first tik and first cert file and processes them. Why not all such files in the nsp? I do not know.
Also installers reads and registers all ncas from nsp. So, if it process update cnmt.nca and not main app, it will allocate a lot of space in the nintendo/content/registered folder for app nca, but not create application record for them, so you can not delete this nca through system settings (it will be just a junk files in the filesystem)
 

tomi1578

Well-Known Member
Member
Joined
Sep 12, 2018
Messages
147
Trophies
0
XP
355
Country
Israel
Nop
If the game is encrypted with higher fw keys, you can't
Just try running power rangers on 6.2.0 or lower, it fails
but tinfoil also has the standard proxy option which does what this program does

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

@The-4n so, if I wanna create such nsp right now, all I need to do: get app nsp, update nsp, all dlc nsp, unpack all it's contents via hactoll to one folder and repack all that folder contents into single nsp via hacpack. Am I right? And hope that one day some installer will have support for such multiNSP?
sx album installer and goldleaf seemed tom work with my minecraft+update multinsp
 

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
41
XP
2,738
Country
United States
but tinfoil also has the standard proxy option which does what this program does

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


sx album installer and goldleaf seemed tom work with my minecraft+update multinsp

I've never tried that app
But there's no way to do it on homebrew unless you manually give it keys or the developer hardcoded keys in it
 

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
41
XP
2,738
Country
United States
you need the keys file to use it

As i've read, it just standard crypto title encrypted ncas, doesn't repack it for lower firmwares
And also, it requires acid patches

Anyway, I'm not interested in discussing about that app, everyone is free to choose what they want to use
 
Last edited by The-4n,
  • Like
Reactions: Garou

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
41
XP
2,738
Country
United States
How about a list with games that don't work with this method due to lack of IPCs?

I don't know any
Users should check and report
For example a 7.0.0 game may work on 6.2.0 but not 5.1.0
Some other 7.0.0 game may even work on 1.0.0
One other may only work on 7.0.0
 
Last edited by The-4n,
  • Like
Reactions: OrGoN3
General chit-chat
Help Users
    Xzi @ Xzi: this is church music, listen to the choir, to burn my kush you must use fire