Homebrew RELEASE hacPack - Build and Repack NCAs and NSPs

masagrator

The patches guy
Member
Joined
Oct 14, 2018
Messages
5,731
Trophies
3
XP
10,708
Country
Poland
Hello,
I have an issue while trying to use this tool :

hacpack.exe -o=J:\Test\Repack --type=nca --ncatype=program --titleid=01008D300C50C000 --exefsdir=J:\Test\romUpdate\exefs --romfsdir=J:\Test\romUpdate\romfs

Result obtain:
hacPack v1.36 by The-4n

----> Preparing:
Removing existing temp directory
Creating temp directory
Creating out directory
Creating backup directory

----> Processing NPDM
Validating NPDM
Backing up main.npdm
Zeroing ACID sig
Zeroing ACID key

----> Creating Program NCA:
===> Creating NCA header
Writing NCA header placeholder to =J:\Test\Repack\Program.nca
Failed to create =J:\Test\Repack\Program.nca!

Same Result with GUI (also test with 32/64 version).
Any idea ?
Thanks in advance for your help :-)
Do you have J:/Test/Repack path created? It won't make folder on it's own in -o
 

MManatane

Active Member
Newcomer
Joined
Jun 21, 2018
Messages
44
Trophies
0
Age
43
XP
451
Country
France
Thanks for your reply .
Yes this folder is already created, I have at the end of the operation a "Program.nca" file created but with an unexpected size (very light as is the création process have been interrupted).
 

MManatane

Active Member
Newcomer
Joined
Jun 21, 2018
Messages
44
Trophies
0
Age
43
XP
451
Country
France
Thanks for masagrator for your advice, but it still don't works with the Command line. Meanwhile I have retried to make it works with the GUI and manage to make it works (but still can't explain why I have such result with the command line). Is it possible to extract the command line triggered by the GUI to spotted the difference ? Will be really helpful
 

GeovaneRMelo

New Member
Newbie
Joined
Oct 3, 2020
Messages
2
Trophies
0
Age
27
XP
33
Country
Brazil
here appears the message '' max size of string table reached '' is the maximum size 10gb? how to increase this? thanks for the tool.
 

GeovaneRMelo

New Member
Newbie
Joined
Oct 3, 2020
Messages
2
Trophies
0
Age
27
XP
33
Country
Brazil
I was trying to replace some game files with files that I modified to change the language of the dialogs, if you know an easy way to do that it helps me, because when I try to reconstruct the file the game does not work.
 

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
here appears the message '' max size of string table reached '' is the maximum size 10gb? how to increase this? thanks for the tool.
I guess you use too much folders (too huge directory depth) + too long file names.
In total the file locations (E:\trtreresv\rgserrse\segresser\srgfser......\drtert.......\ertertge......) are just muuuuuch tooooooo long.
 

ivoyko

Well-Known Member
Member
Joined
Sep 13, 2009
Messages
381
Trophies
0
Location
EOL DA ASCO
XP
409
Country
im very noob and very dumb too.
i have this and i dont know how do the next step bc i did one nsp but failed when i tried load it so i suppose i did something bad.
upload_2020-11-15_6-2-34.png
I am using the GUI.
 
Last edited by ivoyko,

LyuboA

Unknown Entity
Member
Joined
Jun 1, 2018
Messages
534
Trophies
0
XP
919
Country
Bulgaria
can anyone help me i get "Max size of stringtable reached." with command and gui with nca rebuild and nsp \
dosnt matter in what directory are the files and the program
 

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
can anyone help me i get "Max size of stringtable reached." with command and gui with nca rebuild and nsp \
dosnt matter in what directory are the files and the program
Perhaps you have a "bad" path- or filename. Or the path is too long.
Try it again without any special signs or spaces.
 
Last edited by 18Phoenix,

LyuboA

Unknown Entity
Member
Joined
Jun 1, 2018
Messages
534
Trophies
0
XP
919
Country
Bulgaria
Perhaps you have a "bad" path- or filename. Or the path is too long.
Try it again without any special signs or spaces.

i did all that several times and not gonna bother again i dont know why we have so many apps for extracting but not one up to date for rebuilding
 

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
All tools use hacktool, there aren't many only this one.
Extracting is relatively simple in contrast to building new files.

What exactly was your plan? Editing files? Adding files? What was your target ?
 
Last edited by 18Phoenix,

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,143
Trophies
2
XP
20,172
Country
United Kingdom
can anyone help me i get "Max size of stringtable reached." with command and gui with nca rebuild and nsp \
dosnt matter in what directory are the files and the program
IDK why you're getting this, I've built a few nsps with this by following the docs step by step and it's worked fine. I searched the github for the word "stringtable" from the error you mentioned, and found this file where it says the size of the stringtable can be increased - maybe try fucking with that if you can't get around it any other way.
 
  • Like
Reactions: 18Phoenix

LyuboA

Unknown Entity
Member
Joined
Jun 1, 2018
Messages
534
Trophies
0
XP
919
Country
Bulgaria
IDK why you're getting this, I've built a few nsps with this by following the docs step by step and it's worked fine. I searched the github for the word "stringtable" from the error you mentioned, and found this file where it says the size of the stringtable can be increased - maybe try fucking with that if you can't get around it any other way.

thats the thing i have used every program like that for Switch and many of them work on one PC but not on other doing the same thing with the exact same setup like this one it gives me same error on nca and nsp btw after it gave me this error for the 50th time it did made the entire nca without showing it has done so but i cant test this nca cause it dosnt build nsp so i wont even bother i want to rebuild a modded XC2 game but i can use the my mod on exfat card and i will stick with that i have to recompile the mod for 2 hours after every change anyway
 

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
Strange. Building a NSP out of the NCAs is much less complicated than building special NCAs.

hacpack.exe -k %KEY% -o %TARGETPATH% --keygeneration %KEYGEN% --type nsp --ncadir %SOURCEPATH% --titleid %ID%

%KEY% is the keyfile location
%KEYGEN% is an integer up to 11

Never had problems.
Is the problem coming only in this special case or did it never work for you?
 
Last edited by 18Phoenix,

LyuboA

Unknown Entity
Member
Joined
Jun 1, 2018
Messages
534
Trophies
0
XP
919
Country
Bulgaria
Strange. Building a NSP out of the NCAs is much less complicated than building special NCAs.

hacpack.exe -k %KEY% -o %TARGETPATH% --keygeneration %KEYGEN% --type nsp --ncadir %SOURCEPATH% --titleid %ID%

%KEY% is the keyfile location
%KEYGEN% is a integer up to 11

Never had problems.
Is the problem coming only in this special case or did it never work for you?

never tried any game other then XC2 have to check that later when i'm home
and yes i tried that command
 

Kyrbee

New Member
Newbie
Joined
Mar 16, 2021
Messages
2
Trophies
0
Age
27
XP
30
Country
Brazil
I'm trying to make this work but I get stuck on "Processing NPDM"
upload_2021-8-30_12-22-34.png


I renamed main to mainnpdm and now it's stuck in validating
 
Last edited by Kyrbee,

rizkysamudra595

New Member
Newbie
Joined
Nov 25, 2021
Messages
2
Trophies
0
Age
21
XP
22
Country
Indonesia
hacPack v1.36 by The-4n

----> Preparing:

Error: Bad TitleID: 0000000000000000
Valid TitleID range: 0100000000000000 - ffffffffffffffff
Usage: hacpack.exe [options...]


need help, why it showing this
 
General chit-chat
Help Users
  • Skelletonike @ Skelletonike:
    link doesn't work
    +2
  • Skelletonike @ Skelletonike:
    1H left, such a slow week.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Okay, I had spaghetti :P
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
  • K3N1 @ K3N1:
    Your favorite activity
    K3N1 @ K3N1: Your favorite activity