hacpack and basenca/romfs

KurosuDesu

New Member
OP
Newbie
Joined
Feb 12, 2024
Messages
3
Trophies
0
Age
54
XP
25
Country
France
I am trying to recreate with hacpack an update NSP file ("patch romfs" according to hactool) using either of the basenca/baseromfs options, without success. I suspect the BKTR section remains incorrect.

hacpack rebuilds a regular (base) NSP from its NCA files in a way that is succesfull to an emulator (but obviously not a Switch). And by fail, it is eg LibHac.Tools.FsSystem.NcaUtils.Nca.OpenRawStorageWithPatch throwing a failure.

All were basically extracted with nstool (not sure the basenca is useful here but specified it) and modified to plaintext by hactool.

I've tried using as base NCA the extracted cyphered version as well as its plaintext version, and for baseromfs "hactool --raw --romfs=rom" from these 2 versions as well, and no success.

Maybe I failed one of these tests, but has anyone an idea how I'm using wrong nstool/hacinfo/hacpack, or what would be the correct workflow.

I'm wondering if the BKTR section couldn't be kept verbatim, or it is just a matter to specify an offset corresponding to the (program NCA in the) rebuilt base NSP.
 
Last edited by KurosuDesu,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Sonic Angel Knight @ Sonic Angel Knight: Funny bone is the name of a chocolate and peanut butter cake :P