ROM Hack Question Extract NCA files from Update

Pedro250

Well-Known Member
OP
Newcomer
Joined
Sep 12, 2009
Messages
69
Trophies
1
XP
750
Country
Hi, i am trying to extract Pokemon Lets Go Pikachu RomFS files to edit them with pkNX but i am having a problem.

This is my folder:
pVZUyOK.png

As you can see i have hactool, my keys file (got it with LockPickRCM from my V9.0.1 switch), the NCA-NSP-XCI_TO_LayeredFS v 1.6.4 that i got here on GBATemp and two folders:

- Base with all folder that i extract from the stock game nsp
mWuamwc.png


- Update with all folder that i extracted from the 1.0.2 update
ebxiYC7.png


The base.nca and update.nca are just copies of the bigger files in each folder.

So far so good but when i try to extract the update to get the romfs files (the base game i can extract without problem and get all the exefs and romfs files) i get this error:
GluMRnH.png

I already tried a bunch of different applications that i got here on GBATemp but i all ways get this error. I can get the exefs files for the update but not the romfs files.

I am doing anything wrong?
 

Pedro250

Well-Known Member
OP
Newcomer
Joined
Sep 12, 2009
Messages
69
Trophies
1
XP
750
Country
Yes, you need to put decrypted NCA from base for update. Update doesn't contain romfs files, but diffs.
So you need to decrypt Base NCA with --plaintext and use it in --basenca

Hi, thanks.

I did as you said and decrypted the base game nca.
I also tested the decrypted file to be sure it is decrypted by trying to extract it without a key and it worked so the base.nca is not the issue.

Then i used this command:

hactool.exe -k keys.ini --titlekey=77xxxxxxxxxxxxxxxxxxxxxxxxxxxx83 --basenca="base.nca" --section1="romfs.bin" --exefsdir="exefs" "update.nca"

The titlekey is the key from the update, not the base game, cloud that be the problem? I got it from the .tik file in the update.nsp extracted files.


This is what i get:
ClyAYOd.png


Again i get the exefs for the update but not the romfs files.

I know i am doing somethign wrong, just not where.
 
Last edited by Pedro250,

masagrator

The patches guy
Member
Joined
Oct 14, 2018
Messages
5,731
Trophies
3
XP
10,708
Country
Poland
Why you are extracting it to bin? Just use --romfsdir
Put titlekey after basenca command
And you are using latest build of hactool or latest release? Last release is outdated.

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

Here you have compiled build that is compatible with latest games
https://github.com/SciresM/hactool/files/3317509/hactool.zip
 
  • Like
Reactions: Stepik

Pedro250

Well-Known Member
OP
Newcomer
Joined
Sep 12, 2009
Messages
69
Trophies
1
XP
750
Country
EDIT
Its working now, turns out that, because i decrypt it with the old hactool, it didn't do it properly. I decrypt it with the hactool that you provided and it worked. Thanks for the help.
_________________________________________________________________________________________________________________________________________

Why you are extracting it to bin? Just use --romfsdir
Put titlekey after basenca command
And you are using latest build of hactool or latest release? Last release is outdated.

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

Here you have compiled build that is compatible with latest games
https://github.com/SciresM/hactool/files/3317509/hactool.zip

I used the hacktool that you provided and made the changes you suggested.
This is the line now:

hactool.exe -k keys.ini --basenca="base.nca" --titlekey=77xxxxxxxxxxxxxxxxxxxxxxxxxxxx83 --romfsdir="romfs" --exefsdir="exefs" "update.nca"

It was working fine util about half of the extractio when this happened:
36zVjoq.png


Also i noted that in the extracted update nsp folder there are two nca files about the same size. I am using the largest one (one with 33 643 KB) but there is also one with 23 632 KB. Could that also be needed for this?

Do i need to decrypt the update nca also?
 
Last edited by Pedro250,

0N666

Active Member
Newcomer
Joined
Jan 4, 2016
Messages
38
Trophies
0
Age
39
XP
164
Country
i'M TRYING TO EXTRACT THE FILE FROM THE LATEST nso n64 UPDATE, SO i CAN FIND THE TITLE IDS FOR THE ADDED GAMES...

Can anyone help me with this?

No matter what program i use i can not extract anything from the nca file...
 

sax_hakulamatata

New Member
Newbie
Joined
Mar 25, 2023
Messages
1
Trophies
0
Age
29
XP
4
Country
United States
i'M TRYING TO EXTRACT THE FILE FROM THE LATEST nso n64 UPDATE, SO i CAN FIND THE TITLE IDS FOR THE ADDED GAMES...

Can anyone help me with this?

No matter what program i use i can not extract anything from the nca file...
use nsc_builder
input 6 into ADVANCED mode
choose nsp/xci file
input 1
input 4: extract nca contents from nsp\xci
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
  • BentlyMods @ BentlyMods:
    My fav actvity is:

    mario-dancing.gif
    BentlyMods @ BentlyMods: My fav actvity is: