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,

Philliyxx

Well-Known Member
Member
Joined
Sep 21, 2018
Messages
315
Trophies
0
Age
35
XP
912
Country
United States
new version is out, v1.10
https://github.com/The-4n/reNXpack/releases/tag/v1.10

Changelog:
Added NPDM(ACID/ACI0) kac minimum_kernel_version patching


This increases games compatibility
Please test it @Philliyxx @steven89

@The-4n
Tangledeep patched to 5.1 with reNX v1.11
  • ReiNX v2.1.1-- Error: "The software was closed because an error occurred" on ReiNX v2.11
    • Installed to SD card and NAND with Lithium 1.55 / Dev Menu / Tinfoil 883e3bd Error
  • Atmosphere 0.8.7 w/sweet patches -- NSP freezes at startup once the lower right nintendo switch logo flips, have to restart switch
    • Installed to SD card and NAND with Lithium 1.55 / Dev Menu / Tinfoil 883e3bd Error
Final Fantasy VII patched to 5.1 with reNX v1.11
  • ReiNX v2.1.1-- Error: "The software was closed because an error occurred" on ReiNX v2.11
    • Installed to SD card and NAND with Lithium 1.55 / Dev Menu / Tinfoil 883e3bd Error
  • Atmosphere 0.8.7 w/sweet patches -- NSP freezes at startup once the lower right nintendo switch logo flips, have to restart switch
    • Installed to SD card and NAND with Lithium 1.55 / Dev Menu / Tinfoil 883e3bd Error
FYI Dev Menu installs on the previous version would have an error msg at the end saying the nsp was corrupt. on V1.11 it doesn't but still does not work
 
Last edited by Philliyxx,
  • Like
Reactions: The-4n

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,746
Trophies
4
Age
45
Location
Engine room, learning
XP
15,563
Country
France
@Cyan Would it be helpful to add the SDK version of the game in question? XCI Explorer shows the version of a game!
Yes, I can add that information.
But, Is it really useful?

I mean, the end user doesn't have any relation to its own console's firmware version, and the SDK version used by the developer, does he?
how can the SDK version be useful to know if the game will be compatible or not? it would maybe require a new list of SDK version for each firmware to compare to.

If a game is using a specific SDK to build the game, can't it still use only old functions and IPC compatible with old firmwares?

that's just questions, if you think SDK is useful I can add it.
 
Last edited by Cyan,

KuranKu

I am KranK
Developer
Joined
Jan 13, 2019
Messages
370
Trophies
0
Age
33
Location
Israel
XP
1,177
Country
Israel
anyone has the same error as me when i try the update from cuphead ill will get this error
Error: PFS0 is corrupt!
its caused by Only one reason you trying instrall sdk7 game on sdk6 firmware.
solutions:
check SDK game/update version with XCI-EXplorer
if its SDK7 you must update firm to 7.0.1 if your below 7 ofcource.

otherwise if the SDK is below SDK7 it can be patched and maybe works
 
Last edited by KuranKu,
  • Like
Reactions: nraudigy2

Sunnyboy

Well-Known Member
Member
Joined
Mar 22, 2008
Messages
416
Trophies
1
XP
1,836
Country
United States
its caused by Only one reason you trying instrall sdk7 game on sdk6 firmware.
solutions:
check SDK game/update version with XCI-EXplorer
if its SDK7 you must update firm to 7.0.1 if your below 7 ofcource.

otherwise if the SDK is below SDK7 it can be patched and maybe works

i have the 7.0.1 keys but i think the update is corrupt
 

stick267

Well-Known Member
Member
Joined
Dec 17, 2018
Messages
598
Trophies
0
Age
32
XP
1,157
Country
United States
Worked perfectly fine for me on OG Tinfoil. Make sure you use USB install. My PC client was Aluminum Foil.
The update? Or the base game?

The base game installed just fine with OG Tinfoil/usb_install_pc.py script. I've been using that combo for months and haven't had a single issue. But both updates gave me an error when trying to install. Both USB install and just a regular install from SD.
 

Draxzelex

Well-Known Member
Member
Joined
Aug 6, 2017
Messages
18,689
Trophies
2
Age
28
Location
New York City
XP
12,648
Country
United States
The update? Or the base game?

The base game installed just fine with OG Tinfoil/usb_install_pc.py script. I've been using that combo for months and haven't had a single issue. But both updates gave me an error when trying to install. Both USB install and just a regular install from SD.
Base game was already installed. I was mainly referring to the update, 3.0 to be exact, which worked flawlessly with USB install with Tinfoil and Aluminum Foil on my Windows 7 laptop.
 
  • Like
Reactions: Don Jon

stick267

Well-Known Member
Member
Joined
Dec 17, 2018
Messages
598
Trophies
0
Age
32
XP
1,157
Country
United States
Base game was already installed. I was mainly referring to the update, 3.0 to be exact, which worked flawlessly with USB install with Tinfoil and Aluminum Foil on my Windows 7 laptop.
Yeah my base game has been installed since the release date, but the update from yesterday wouldn't work.

The quote below suggests that maybe our NSPs were from a different source, so maybe that's where my issue lies.

seems to be a twofold issue from chatter on discord:

apparently some of hbg's updates are showing as having modified nca files because they removed deltas

and

goldleaf works with the broken update because goldleaf ignores the cert and uses it’s own, which is actually kind of bad


I dont have Cuphead or the update to test.. so can anyone verify either / both of the above comments?
 

Draxzelex

Well-Known Member
Member
Joined
Aug 6, 2017
Messages
18,689
Trophies
2
Age
28
Location
New York City
XP
12,648
Country
United States
Yeah my base game has been installed since the release date, but the update from yesterday wouldn't work.

The quote below suggests that maybe our NSPs were from a different source, so maybe that's where my issue lies.
I downloaded the raw untouched 2 GB one, not the one HBG uploaded, and patched it myself.
 
  • Like
Reactions: stick267

bodyXY

Well-Known Member
Member
Joined
May 15, 2018
Messages
165
Trophies
0
Age
37
XP
979
Country
Germany
Confirm: Mortal Kombat 11 [0] & [v65536] works after standard encryption with 6.2 (SDK 6.5.x)

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

its caused by Only one reason you trying instrall sdk7 game on sdk6 firmware.
solutions:
check SDK game/update version with XCI-EXplorer
if its SDK7 you must update firm to 7.0.1 if your below 7 ofcource.

otherwise if the SDK is below SDK7 it can be patched and maybe works
Cuphead Update doesnt show anything with XCI-Explorer. I get the same massage with reNXpack, tested different sources.
 
Last edited by bodyXY,
General chit-chat
Help Users
  • Skelletonike @ Skelletonike:
    I'm an exemplary Christian, shame on you
  • SylverReZ @ SylverReZ:
    @Skelletonike, And a true pervert.
    +1
  • Skelletonike @ Skelletonike:
    Both things aren't mutually exclusive. :P
    +2
  • Skelletonike @ Skelletonike:
    3h left until work finishes, bah
  • Skelletonike @ Skelletonike:
    link doesn't work
    +2
  • Skelletonike @ Skelletonike:
    1H left, such a slow week.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Okay, I had spaghetti :P
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
    Psionic Roshambo @ Psionic Roshambo: Link I'm not the princess your looking for.... *Pulls a crying game*