NUSPacker - pack files into installable packages

Discussion in 'Wii U - Hacking & Backup Loaders' started by timogus, Nov 7, 2016.

  1. timogus
    OP

    timogus Member

    Newcomer
    22
    48
    Oct 28, 2016
    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, Nov 25, 2016


  2. Zarklord

    Zarklord GBAtemp Regular

    Member
    191
    64
    May 13, 2016
    United States
    HOLY SHIET
     
  3. Wolfy

    Wolfy Person That Never Was

    Member
    545
    203
    Aug 18, 2015
    United States
    Somewhere In The Aether...
    So I am only guessing at this, but does this mean we can now decrypt a game, modify it, and then repack and install?

    If so.............SM4SH!
     
  4. Zarklord

    Zarklord GBAtemp Regular

    Member
    191
    64
    May 13, 2016
    United States
    yup
    im creating a second game with a different title id for having mods preinstalled
     
  5. Tigran

    Tigran GBAtemp Advanced Fan

    Member
    949
    448
    Nov 6, 2002
    United States
    Can we use this to convert Loadiine games into NUS games for installation?
     
    CatmanFan likes this.
  6. KillzXGaming

    KillzXGaming GBAtemp Advanced Maniac

    Member
    1,559
    654
    Jan 2, 2016
    United States
    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).
     
    CatmanFan likes this.
  7. timogus
    OP

    timogus Member

    Newcomer
    22
    48
    Oct 28, 2016
    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 =)
     
  8. Zarklord

    Zarklord GBAtemp Regular

    Member
    191
    64
    May 13, 2016
    United States
    smash has 2gb > .app files tho
     
  9. Don Jon

    Don Jon GBAtemp Fan

    Member
    460
    180
    Nov 20, 2015
    United States
    there is another release of this. is the other release also limited to 2gb?
     
  10. Billy Acuña

    Billy Acuña GBAtemp Addict

    Member
    2,164
    1,276
    Oct 10, 2015
    Mexico
    Unsure, but could this lead to homebrew packaging?
     
    KiiWii likes this.
  11. Tigran

    Tigran GBAtemp Advanced Fan

    Member
    949
    448
    Nov 6, 2002
    United States
    Damn.. Limited to 2 gig.. Still won't do the game I want then.
     
  12. Jayro

    Jayro MediCat DVD and Mini Windows 10 Developer

    Member
    GBAtemp Patron
    Jayro is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    4,842
    2,575
    Jul 23, 2012
    United States
    Octo Canyon
    Someone please make a GUI for this! :D
     
  13. Quantumcat

    Quantumcat Dead and alive

    Member
    10,357
    5,469
    Nov 23, 2014
    Australia
    Canberra, Australia
    I will right now
    Probably easier to use the command line though
     
    iVcU and Jayro like this.
  14. KiiWii

    KiiWii GBAtemp Psycho!

    Member
    3,779
    1,321
    Nov 17, 2008
    United Kingdom
    Swap rpl/rpx with HBL (if it's been compiled as rpl/rpx), edit icons and meta, package and instal.

    Worth a try!
     
  15. driverdis

    driverdis I am Justice

    Member
    2,383
    901
    Sep 21, 2011
    United States
    1.048596β
    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.
     
  16. KiiWii

    KiiWii GBAtemp Psycho!

    Member
    3,779
    1,321
    Nov 17, 2008
    United Kingdom
    Well yeah is needs sig patches.
     
    Billy Acuña likes this.
  17. driverdis

    driverdis I am Justice

    Member
    2,383
    901
    Sep 21, 2011
    United States
    1.048596β
    I am tired right now and missed the part about using this on RedNAND :sleep:
     
    KiiWii likes this.
  18. DaBlackDeath

    DaBlackDeath .::[ lone wolf ]::.

    Member
    326
    306
    Dec 22, 2007
    Germany
    Is this the same like the Wii U Installer Packer 0.4 ? But just a java port ?
     
    CatmanFan and Masterwin like this.
  19. nikeymikey

    nikeymikey This is now a Spiderman thread.........

    Member
    954
    130
    Nov 19, 2008
    Whoops
     
  20. driverdis

    driverdis I am Justice

    Member
    2,383
    901
    Sep 21, 2011
    United States
    1.048596β
    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.