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,677
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,013
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,013
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
  • Mondooooo @ Mondooooo:
    you wanna know the worst night i had?
  • Mondooooo @ Mondooooo:
    you wanna know the worst night i had?
  • Xdqwerty @ Xdqwerty:
    @Mondooooo, there was a power outage while you were sleeping?
  • Mondooooo @ Mondooooo:
    no, but fucking cockroaches
  • Mondooooo @ Mondooooo:
    i had to sleep with one eye open
  • Mondooooo @ Mondooooo:
    after i restes peacfully
  • Mondooooo @ Mondooooo:
    *peacefully
  • Mondooooo @ Mondooooo:
    *peacefully
  • Mondooooo @ Mondooooo:
    sorry for misspell and posts
  • Mondooooo @ Mondooooo:
    i heard a buzzing sound from a flying cockroach and ran away
  • Mondooooo @ Mondooooo:
    and i have to sleep somewhere else
  • Xdqwerty @ Xdqwerty:
    @Mondooooo, I hate insects too
  • Mondooooo @ Mondooooo:
    i wish i can just get rid of them
  • Mondooooo @ Mondooooo:
    so i can rest peacefully
  • Mondooooo @ Mondooooo:
    i just worry about cockroaches entering my room
  • Mondooooo @ Mondooooo:
    my room is absolutely clean and a have an AC Conditioner
  • Mondooooo @ Mondooooo:
    and when i turn it on or not, they have a way to enter
  • Mondooooo @ Mondooooo:
    it pisses me off
  • Mondooooo @ Mondooooo:
    and my right eye is bloodshot from lack of sleep but damn. the full moon with the clouds is beautiful
  • Mondooooo @ Mondooooo:
    @Xdqwerty any tips?
  • Xdqwerty @ Xdqwerty:
    @Mondooooo, sadly I dont have any tips
  • K3Nv2 @ K3Nv2:
    A bug exterminator?
    +1
  • SylverReZ @ SylverReZ:
    @AncientBoi Somebody's asking for tips.
    +1
  • SylverReZ @ SylverReZ:
    Get a load from this guy lol.
    +1
  • K3Nv2 @ K3Nv2:
    You don't want ancientbois tip very flacid
    K3Nv2 @ K3Nv2: You don't want ancientbois tip very flacid