Hacking Having trouble repacking decompressed files into a NCA

  • Thread starter Thread starter ItsTheSky
  • Start date Start date
  • Views Views 498
  • Replies Replies 2

ItsTheSky

New Member
Newbie
Joined
Aug 9, 2025
Messages
2
Reaction score
0
Trophies
0
Age
19
Location
France
XP
22
Country
France
Hello there I'm looking for help about hacPack; my goal is to edit a file inside an NSP game.

  1. I've extracted NSP's NCA files using NSC Builder
  2. Those NCAs has then been decompressed also using NSC Builder, into plain files
  3. I've edited what I wanted, but then I want to get back the modified NCA file to build the new NSP.
I've tried using hacPack but while the original NCA file (as well as the decompressed folder) is ~5Go (it's a Program NCA, thus it got exefs + romfs + logo), hacPack makes a new one that's only about ~20Mo, so I guess something's wrong, but I can't see what may be wrong. I've triple checked my keys from my switch, the folder pointed for the 3 NCA content and the title's ID (Krtdl deluxe), but nothing's changed. Any idea why I have this issue?

Also, I do not have any logs output (it's literally blank, before, during or after the process).
 
The issue is that the hacpack command seems to fail or shut down by itself without any further logs. Here are the details of what I'm doing:

Code:
B:\Kirby>hacpack --type nca --ncatype program --titleid 01006B601380E000 --exefsdir "NCA/exefs" --romfsdir "NCA/romfs" -o "./output" -k keys.txt
hacPack v1.36 by The-4n

----> Preparing:
[WARN]: Failed to match key "mariko_master_kek_source_10", (value "8dee9e11363a9b0a6ac7bbe9d103f780")
[WARN]: Failed to match key "mariko_master_kek_source_11", (value "4f413c3bfb6a012a689f83e953bd16d2")
[WARN]: Failed to match key "mariko_master_kek_source_12", (value "31be25fbdbb4ee495c7705c2369f3480")
[WARN]: Failed to match key "mariko_master_kek_source_13", (value "1a316287a809caf8691545c26baa5a8a")
[WARN]: Failed to match key "per_console_key_source", (value "4f025f0eb66d110edc327d4186c2f478")
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 ./output\Program.nca

---> Creating Section 0:
===> Building ExeFS
Writing NCA/exefs\main to hacpack_temp\program_sec0_exefs
Writing NCA/exefs\main.npdm to hacpack_temp\program_sec0_exefs
Writing NCA/exefs\rtld to hacpack_temp\program_sec0_exefs
Writing NCA/exefs\sdk to hacpack_temp\program_sec0_exefs
Writing NCA/exefs\subsdk0 to hacpack_temp\program_sec0_exefs
Calculating hash table

===> Writing ExeFS
Writing PFS0 hash table
Writing PFS0

===> Calculating Hashes:
Calculating Master hash
Calculating Section hash

---> Creating Section 1:
===> Building RomFS
Visiting directories
Calculating metadata

B:\Kirby>

And this is what my NCA folder looks like:
- exefs folder contains files:
1754833159075.png

- romfs folder contains tons of stuff (this is also where I edited my level's data). It's about 4,8GB in size (according to FileTree)
1754833184067.png


Once the command is executed and stops on the "Calculating metadata" line, I have a Program.nca file generated, which is only about 20MB (so I guess it only compiled stuff from exefs and skipped romfs' stuff?)
 

Site & Scene News

Popular threads in this forum