Hacking NUSPacker - pack files into installable packages

timogus

Member
OP
Newcomer
Joined
Oct 28, 2016
Messages
22
Trophies
0
Age
37
XP
257
Country
United States
Hello,

NUSPacker is an open-source tool to pack files into an installable format for the WiiU. To install/use the created packages, you need to run a patched iosu (see: https://github.com/dimok789/iosuhax)

Download: https://bitbucket.org/timogus/nuspacker

To install/use the created packages, you'll need the newest iosuhax rednand version.
https://github.com/dimok789/iosuhax

This whole tool it still very experimental. Don't even think about trying to install shit on sysnand, only use it on rednand!

How to use

Its not really for end-users yet, but working if you know what you're doing. Make sure you're using the same titleID as you're using the .xml files (or let the tool parse it from the xml, which its the default case)

Setup
To use this, you'll a folder which contains a "code", "content" and "meta" folder.

Optional:
To save you some typing you can also create a text file "encryptKeyWith" which contains the common key as hexstring (32 characters). This will be used to encrypt the encryption key.

Pack files
To pack files, you can use these arguments:
Code:
-in  ; is the dir where you have your decrypted data. Make this pointing to the root folder with the folder code,content and meta.
-out  ; Where the installable package will be saves

(optional! will be parsed from app.xml if missing)
-tID  ; titleId of this package. Will be saved in the TMD and provided as 00050000XXXXXXXX
-OSVersion  ; target OS version
-appType  ; app type
-skipXMLParsing ; disables the app.xml parsing

(optional! defaults values will be used if missing (or loaded from external file))
-encryptionKey  ; the key that is used to encrypt the package
-encryptKeyWith ; the key that is used to encrypt the encryption key

In most cases the following command will be totally fine. (make sure to have a valid app.xml)
Code:
java -jar NUSPacker.jar -in "inputDir" -out "outputDir"
Without common key stored in file.
Code:
java -jar NUSPacker.jar -in "inputDir" -out "outputDir" -encryptKeyWith 12345678123456781234567812345678

--------------------

Notes:
  • To create a channel out of an .rpx you need valid .xml files and meta data. This tool is just packing everything together.
  • Don't use ddd dumps! The code folder is not working. Redump/get the code folder without ddd.

Credits:
timogus
 
Last edited by timogus,

KillzXGaming

Well-Known Member
Member
Joined
Jan 2, 2016
Messages
1,629
Trophies
0
Age
28
XP
1,618
Country
United States
Can we use this to convert Loadiine games into NUS games for installation?
Yeah this ideally does just that. We could also possibly make modded updates for those who wanna mod smash or mario kart 8, or even make full separate titles with custom meta files and stuff. Oh and i also heard you can get region free games by edting the meta file (as the wii u just checks the meta files for region checks).
 
  • Like
Reactions: CatmanFan

timogus

Member
OP
Newcomer
Joined
Oct 28, 2016
Messages
22
Trophies
0
Age
37
XP
257
Country
United States
Currently I guess its limited to 2gb. I need to figure out a smart way to split the content automatically between serveral .app files when they get bigger than 2gb.
I tested repacking NSMBU though. 1,7gb and 1000+ files. worked fine =)
 

Zarklord

Well-Known Member
Member
Joined
May 13, 2016
Messages
194
Trophies
0
Age
25
XP
268
Country
United States
Currently I guess its limited to 2gb. I need to figure out a smart way to split the content automatically between serveral .app files when they get bigger than 2gb.
I tested repacking NSMBU though. 1,7gb and 1000+ files. worked fine =)
smash has 2gb > .app files tho
 

driverdis

I am Justice
Member
Joined
Sep 21, 2011
Messages
2,867
Trophies
2
Age
31
Location
1.048596β
XP
2,838
Country
United States
Swap rpl/rpx with HBL (if it's been compiled as rpl/rpx), edit icons and meta, package and instal.

Worth a try!

won't work as the Wii U checks file signatures of the binary and meta (not sure about icons) and will fail. this is why region modding games does not work. since meta sig is invalid, it fails unless on sigpatched RedNAND.
 

driverdis

I am Justice
Member
Joined
Sep 21, 2011
Messages
2,867
Trophies
2
Age
31
Location
1.048596β
XP
2,838
Country
United States
Do you think that this being released will delay SALT's release, as they may want to incorporate a coldboot hack into their version of iosu/rednand??

No, what will delay SALT will be their mindset on the current status of the Wii U scene and how people treat them while they are working on it.

we should all not bother them to avoid delaying or cancelling any sort of release.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    S @ salazarcosplay: @BakerMan why does sonykill their games