RELEASE hacPack - Build and Repack NCAs and NSPs

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by The-4n, Oct 2, 2018.

  1. Valdrrak

    Valdrrak Member

    Newcomer
    1
    Sep 15, 2016
    Ah fair enough, makes sense. Just wondering is it even possible to add mods to the game in the way I am trying to achieve or am I wasting my time? It seems RomFS doesnt wanna work with dragons dogma even with the tiniest change.
     
  2. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    It works
     
  3. Valdrrak

    Valdrrak Member

    Newcomer
    1
    Sep 15, 2016
    Hey sorry for the no reply decided to give it some days then try again, So I am looking at the hacpack readme and I cant see the input I would need to do to specify the version number? would I need to make the version number the same as the one that the patch updates to or just 1.0.0 to get past the switch telling me I have to update it? Its in the metadata section in the readme right?
     
  4. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    Same as update, in hex
    --titleversion
     
  5. Valdrrak

    Valdrrak Member

    Newcomer
    1
    Sep 15, 2016
    ok I did find the version it seems to be the same as most switch games in there 1.01 update, however with that command --titleversion how do I use it, its it in hactool or hacpack and do I just do the usual hactool -t nca --titleversion 65536 cnmt.nca ?
     
  6. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    Use it with hacpack
    convert 65536 to hex which is 0x10000 and use --titleversion to set it
    It'll be like hacpack.exe --type nca --ncatype meta --titletype program --titleversion 0x10000 and so on
     
  7. Valdrrak

    Valdrrak Member

    Newcomer
    1
    Sep 15, 2016
    Ok awesome so I did:

    E:\aaSwitch Tools\hactool> .\hacpack --keyset "E:\aaSwitch Tools\hactool\keys.txt" -o "E:\aaSwitch Tools\hactool\repackedNCA\new meta" --type nca --ncatype meta --titletype appli
    cation --titleversion 0x10000 --titleid 010032C00AC58000 --cnmt "E:\aaSwitch Tools\hactool\repackedNCA\3afbe7fa0180975fb65f04600c0485e8.cnmt.nca"

    it seemed to work, it made a new meta witch was 8kb instead of 4kb like the old one, so now I should be able to rebuild and install right?
     
  8. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    No thats wrong
    You have to set your control, legalinformation and program ncas
    https://github.com/The-4n/hacPack#cli-options
     
  9. tomi1578

    tomi1578 GBAtemp Regular

    Member
    3
    Sep 12, 2018
    Israel
  10. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    Yes
     
  11. tomi1578

    tomi1578 GBAtemp Regular

    Member
    3
    Sep 12, 2018
    Israel
    how?
     
  12. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    With hactool:
    Extract the game's nsp, extract its program nca

    Apply lfs to romfs

    With hacpack:
    repack program nca, rebuild metadata nca, rebuild nsp
     
  13. tomi1578

    tomi1578 GBAtemp Regular

    Member
    3
    Sep 12, 2018
    Israel
    thank you so much
    i made a super luigi odyssey nsp
     
  14. ressit

    ressit GBAtemp Regular

    Member
    2
    Jun 4, 2018
    Vietnam
    Atms can load hbl.nsp
    With hacpack
    Can rebuild nsp and run it same hbl.nsp ???
     
  15. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    Exefs nsps, yes
     
    ressit likes this.
Loading...