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
Version 0.2!
- parsing values now directly from the app.xml (no hardcoded values anymore). This should also increase the compatibility.
- If no encryption key is provided, a default one will be used.
- the encryptWith key can be stored in an external file. Create a file called "encryptKeyWith" with the key as an hexstring.
- fixed bug in the FST creation. This should be finally working now.
- added proper error messages when unassigned files are found. Error message when code/content or meta folder is empty.
- tmp folder will be deleted automatically at the end
- fix support for files >2GB (stupid java for not having unsigned ints)
- fixed int underflow error in the first table of the FST
- outputing now the current progress for hashing and decrypting. Overall improvement of the output
- putting .jpg's file from the meta into an extra .app file.
- restructured the sources

Last but not least:
- splitting up the content file if its getting bigger then ~3GB. Limit can be increased but gives not advantages. Single files bigger than 3gb will still be packed.

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

Now you can simply use this after you set the common key in the encryptKeyWith file:
Code:
java -jar NUSPacker.jar -in "inputDir" -out "outputDir"
The other infos are grabbed directly from the app.xml

This should finally pack all kind of things. Tested it with SSBU (13GB, with 2 really big (3.9gb) files) and Xenoblade (19gb, with 20k files). Both packed and installed+booted fine.
 
Last edited by timogus,

LoganK93

Well-Known Member
Member
Joined
Dec 5, 2012
Messages
672
Trophies
1
Age
31
XP
1,992
Country
United States
Version 0.2!
This should finally pack all kind of things. Tested it with SSBU (13GB, with 2 really big (3.9gb) files) and Xenoblade (19gb, with 20k files). Both packed and installed+booted fine.

Can you maybe answer if it is currently possible to create a new title id and have it install correctly? I am currently using the newest release, and while it seems to pack everything just fine I am still getting error FFFBF442 on installation...
 

Tigran

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
1,628
Trophies
2
XP
3,672
Country
United States
Code:
java -jar NUSPacker.jar -in "inputDir" -out "outputDir"
The other infos are grabbed directly from the app.xml

This should finally pack all kind of things. Tested it with SSBU (13GB, with 2 really big (3.9gb) files) and Xenoblade (19gb, with 20k files). Both packed and installed+booted fine.

With or without sig patches?
 
  • Like
Reactions: CatmanFan

Txustra

Well-Known Member
Member
Joined
May 18, 2013
Messages
458
Trophies
1
Age
32
XP
2,007
Country
Spain
Version 0.2!
- parsing values now directly from the app.xml (no hardcoded values anymore). This should also increase the compatibility.
- If no encryption key is provided, a default one will be used.
- the encryptWith key can be stored in an external file. Create a file called "encryptKeyWith" with the key as an hexstring.
- fixed bug in the FST creation. This should be finally working now.
- added proper error messages when unassigned files are found. Error message when code/content or meta folder is empty.
- tmp folder will be deleted automatically at the end
- fix support for files >2GB (stupid java for not having unsigned ints)
- fixed int underflow error in the first table of the FST
- outputing now the current progress for hashing and decrypting. Overall improvement of the output
- putting .jpg's file from the meta into an extra .app file.
- restructured the sources

Last but not least:
- splitting up the content file if its getting bigger then ~3GB. Limit can be increased but gives not advantages. Single files bigger than 3gb will still be packed.

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

Now you can simply use this after you set the common key in the encryptKeyWith file:
Code:
java -jar NUSPacker.jar -in "inputDir" -out "outputDir"
The other infos are grabbed directly from the app.xml

This should finally pack all kind of things. Tested it with SSBU (13GB, with 2 really big (3.9gb) files) and Xenoblade (19gb, with 20k files). Both packed and installed+booted fine.

Still detecting too big files for me... :(
8eef8811ad.png


BTW, I put the Wii U Common Key in the file but the progam still does not detect it...

EDIT: Problem solved, its packig now
 
Last edited by Txustra,

ADS3500

Well-Known Member
Member
Joined
Jul 27, 2016
Messages
330
Trophies
0
XP
286
Country
Canada
I have tried with my TMS Uncensored and it didnt work... :(
You can install the normal version of TMS and use wupclient to move mod files from your SD card to the USB. If you do it this way you don't need sig patches and it works on sysnand.
 

Txustra

Well-Known Member
Member
Joined
May 18, 2013
Messages
458
Trophies
1
Age
32
XP
2,007
Country
Spain
You can install the normal version of TMS and use wupclient to move mod files from your SD card to the USB. If you do it this way you don't need sig patches and it works on sysnand.

Some files are >2gb, which would take like... 24 hours to upload via wupclient?
 
Last edited by Txustra,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: good night