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

OkazakiTheOtaku

no thanks, I don't want a custom title
OP
Member
Joined
Jul 20, 2016
Messages
1,461
Trophies
1
Location
127.0.0.1
XP
3,114
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?
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,297
Trophies
3
XP
12,073
Country
Poland
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

OkazakiTheOtaku

no thanks, I don't want a custom title
OP
Member
Joined
Jul 20, 2016
Messages
1,461
Trophies
1
Location
127.0.0.1
XP
3,114
Country
Japan
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

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    Slower speeds for gen4
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=1hp24nDVKvY