Homebrew RELEASE hacPack - Build and Repack NCAs and NSPs

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
43
XP
2,764
Country
United States
I've already unpacked ALL files, I always unpack to romfs-folder, never to romfs.bin (for unpacking I use NCA-NSP-XCI_to_LayeredFS_v1.6).
I found many interesting files like a lot png's etc.
But no loading screen picture or a folders name giving a hint about it.

As I've told you, There's no standard for these kind of stuff.
It's in romfs section but I have no idea where it is
 
  • Like
Reactions: 18Phoenix

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
About my selfmade NES Online Collection Update NSP: If I have the Update installed it works fine.
But if I want to add roms from the SD card using LayeredFS (with correct and compatible lclassics.titlesdb),
it crashes immediately: error-code: 2001-0123. Before my selfmade NSP, I never had problem with adding roms like this. What could be the reason?
There should be no problem with LFS
But there is.
No probs with installing NSP and no prob with using the installation.
But adding one single file to SDCard://sxos/titles/0100.... ends in an immediate crash.
I know how to use LayeredFS correctly and it works fine with installing the unchanged NSP, so I'm wondering.
Can't you guess what could be a reason ?
 
Last edited by 18Phoenix,

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
43
XP
2,764
Country
United States
But there is.
No probs with installing NSP and no prob with using the installation.
But adding one single file to SDCard://sxos/titles/0100.... ends in an immediate crash.
I know how to use LayeredFS correctly and it works fine with installing the unchanged NSP, so I'm wondering.
Can't you guess what could be a reason ?

Invalid metadata nca is my only guess
 

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
Invalid metadata nca is my only guess
Ok, so I must continue there even if the NSP works without changing the Meta.
So after selecting Meta NCA, what must I choose? Please remember it's an Update NCA, not the base.
I have the changed program.nca and the changed control.nca.
Do I have to choose the other 3 aswell or is that enough and I mustn't selct all?
Anyway what is meant with the other 3 nca's ?
Legal Info , Html Doc , Data ???
In addition there are unchanged a META nca (*.cnmt.nca) and a MANUAL nca.
 
Last edited by 18Phoenix,

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
Ok, I tried to build the META nca by choosing only programm and control nca's.
And result has been build but it doesn't seem to b correct.
If I check the build result NSP, NSCB says it's a base game instead of an update
and shows absolut wrong title infos in values like RequiredSystemVersion, Version etc.
So the tool doesn't really work for UPDATES :(
When can we expect an update?
 

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
@The-4n
Hello. I noticed something.
My selfmade NSP is much bigger than the original one.
But when I checked the installed title size in the menu it still shows the old size, which is absolutely wrong and has to be much bigger.
So I guess that the installation size is written somewhere and the menu isn't checking the real size.
Does someone know where this value is writen so that I could fit it to the correct one ?
 
Last edited by 18Phoenix,

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
@The-4n
Hello again. I want to ask about 2 things:
1)
I made a NSP myself. But the system says that there is an update that I have to install first (software, not FW).
But I have included the update. I this it checks the version number in the cnmt files. But if I try to edit this number the NSP gets corrupt.
Could you exand the Meta NCA with the possibility to enter a version number and perhaps more values that are in there ?

2)
Aswell you could exand here the possibility to choose between app or patch (update).
I assume that the difference are only the beginning and the end,
switching between <Type>Application</Type> or <Type>Patch</Type> at the beginning
and between the different IDs on beginning and end:
for apps it's <Id>0xxxxxxxxxxxxxxx000</Id> + <PatchId>0xxxxxxxxxxxxxxx800</PatchId>,
for patches <Id>0xxxxxxxxxxxxxxx800</Id> + <OriginalId>0xxxxxxxxxxxxxxx000</OriginalId>.
 

acho

Well-Known Member
Newcomer
Joined
Apr 27, 2007
Messages
60
Trophies
1
XP
1,482
Country
Indonesia
is it possible to create a 9.2 firmware installer nsp (just like xecuter's firmware packs nsp) that can only be installed with sx installer? thank you.
 

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
Strange. Since today I always have to press "Build NCA" twice.
The first time happens nothing at all also no message.
But the result works that's the main thing.
 
Last edited by 18Phoenix,

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
@The-4n
Hello :)
I still like to use your tool(s). Nice to read that an update is planed.

This would be awesome for the next release:
- Using the GUI with a key file in the hacPack folder doesn't work, always "Keyset path is empty"
- Ignoring useless key error messages, there always appear many.
- Last used pathes should be saved for the GUI somehow (*** most important ***)
- OR: the possibility to insert a path by copying instead of browsing or make a browser with path line.

My special wish:
- possibility to generate a Meta NCA for title type: Update + input box for version number
 
Last edited by 18Phoenix,

masagrator

The patches guy
Member
Joined
Oct 14, 2018
Messages
5,731
Trophies
3
XP
10,708
Country
Poland
@The-4n
Hello :)
I still like to use your tool(s). Nice to read that an update is planed.

This would be awesome for the next release:
- Using the GUI with a key file in the hacPack folder doesn't work, always "Keyset path is empty"
- Ignoring useless key error messages, there always appear many.
- Last used pathes should be saved for the GUI somehow (*** most important ***)
- OR: the possibility to insert a path by copying instead of browsing or make a browser with path line.

My special wish:
- consideration of updates, they seem to have a bit different structure.
- possibility to generate a Meta NCA for title type: Update
Update Has meta "Program" iirc
 
  • Like
Reactions: 18Phoenix

MManatane

Active Member
Newcomer
Joined
Jun 21, 2018
Messages
44
Trophies
0
Age
43
XP
451
Country
France
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 :-)
 
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