Hacking NUSPacker - pack files into installable packages

timogus

Member
OP
Newcomer
Joined
Oct 28, 2016
Messages
22
Trophies
0
Age
36
XP
247
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
27
XP
1,573
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
36
XP
247
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
24
XP
258
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,856
Trophies
2
Age
30
Location
1.048596β
XP
2,719
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,856
Trophies
2
Age
30
Location
1.048596β
XP
2,719
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.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    That sums it up right.
  • Megadriver94 @ Megadriver94:
    I am not it the loop on this, why take it so personally, though? Its just a video game and a work of fiction, at the end of the day.
  • K3N1 @ K3N1:
    I'm sure the devs don't mind refunding my .torrent for it
  • K3N1 @ K3N1:
    @Megadriver94, because these devs take child hood movies and make them look like shit expecting to profit off it
  • SylverReZ @ SylverReZ:
    @K3N1, That's what happens to every movie franchise.
  • Megadriver94 @ Megadriver94:
    Oh alright then, I can see what you are getting at.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Sunday.... sunday dessert night :ninja:
  • K3N1 @ K3N1:
    With unreal engine their should be no excuse to make any animated figure look like complete shit whent hey have rights to it
  • K3N1 @ K3N1:
    The voice actor sounds like he didn't get casted for a tim Burton movie
  • linuxares @ linuxares:
    but you got to pay for the elvish voices
  • linuxares @ linuxares:
    and emotes... in a singleplayer game...
  • K3N1 @ K3N1:
    Damn the rights to LOTR is like all over the place lol
  • SylverReZ @ SylverReZ:
    Deserved
  • SylverReZ @ SylverReZ:
    At least we can point and laugh to an indie game that is not worth playing.
  • K3N1 @ K3N1:
    Last I read Amazon owns some rights you'd think a billion dollar company could fork more over for a decent game but their last game bricked GPUs so theirs that
    +1
  • linuxares @ linuxares:
    Be an e-commerce. Build a game that destroy the GPUs. Sell new GPUs. PROFITS!
  • K3N1 @ K3N1:
    Don't forget your 4090 we promise the next LOTR MMO will make it work for more than a year
  • K3N1 @ K3N1:
    Yay for user end replacement parts
  • SylverReZ @ SylverReZ:
    If your graphics card doesn't work with your game then don't blame us for shitty game performance.
  • K3N1 @ K3N1:
    At least @AncientBoi can run games released in his childhood
    +2
  • K3N1 @ K3N1:
    Marbles and pick up sticks 10/10
    SylverReZ @ SylverReZ: @K3N1, DOOM