ROM Hack Question Having trouble with Hactool's --basefake and --onlyupdated arguments

OkazakiTheOtaku

no thanks, I don't want a custom title
Member
Joined
Jul 20, 2016
Messages
1,466
Reaction score
1,371
Trophies
1
Location
127.0.0.1
XP
3,174
Country
Japan
I'm trying to extract the .nca of an update NSP and I'm having some difficulty. From what I understand, if I do not have the base game .nca file, I should use the either the --basefake argument to essentially pass fake data to the extractor, or use --onlyupdated to extract the files that changed. Neither of these options are giving any results.

If I pass the first argument like so:
hactool -x upd.nca --titlekey=XXXX --basefake

Then hactool helpfully lists the info about the file, ending with the Partition metadata, but nothing is extracted (not even the exefs Section0).

If I pass the second argument:
hactool -x upd.nca --titlekey=XXXX --onlyupdated

Then hactool prints the same data as before, but also appends a "Note: cannot save BKTR section without base romfs," which, unless I'm misunderstanding something, is exactly what the --onlyupdated flag is trying to fix.

Am I mistaken? Is what I'm trying to do (just extract the new files from the .nca that are in it with no regards to the base application) even possible?
 
How do you want to unpack anything when you didn't specify output folder? --section0dir, --romfsdir, etc. ?

--------------------- MERGED ---------------------------

And iirc basefake will give you updated files, but not changed data will be filled with 0xCC bytes. Only what you can get fully from update is exefs, new files and 100% updated files.
 
  • Like
Reactions: OkazakiTheOtaku
basefake will give you updated files, but not changed data will be filled with 0xCC bytes. Only what you can get fully from update is exefs, new files and 100% updated files.
Yeah, that's what I want. Just the 100% updated files. Currently if I do what you said, I can extract the exefs partition but still not section1.
 

Site & Scene News

Popular threads in this forum