ROM Hack Question Extract NCA files from Update

Pedro250

Well-Known Member
OP
Newcomer
Joined
Sep 12, 2009
Messages
69
Trophies
1
XP
870
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?
 

masagrator

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

Pedro250

Well-Known Member
OP
Newcomer
Joined
Sep 12, 2009
Messages
69
Trophies
1
XP
870
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
Developer
Joined
Oct 14, 2018
Messages
6,240
Trophies
3
XP
11,966
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
870
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
40
XP
176
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
30
XP
14
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
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    I only wish it was actually playable.
  • Veho @ Veho:
    There's a guy on the Tube of You that makes playable mechanical arcade games out of Lego. This could work on the same principle.
  • Veho @ Veho:
    Just a couple of guys taking their manatee out for some fresh air, why you have to molest them?
  • Veho @ Veho:
    Stupid Chinese shop switched their shipping company and this one is slooooooow.
  • LeoTCK @ LeoTCK:
    STOP BUYING CHINESE CRAP THEN
  • LeoTCK @ LeoTCK:
    SUPPORT LOCAL PRODUCTS, MAKE REVOLUTION
  • LeoTCK @ LeoTCK:
    THEY KEEP REMOVING LOCAL SHIt AND REPLACING WItH INFERIOR CHINESE CRAP
  • LeoTCK @ LeoTCK:
    THATS WHY MY PARTNER CANT GET A GOOTWEAR HIS SIZE ANYMORE
  • LeoTCK @ LeoTCK:
    HE HAS BIG FOOT AND BIG DUCK
  • LeoTCK @ LeoTCK:
    d*ck i mean*
  • LeoTCK @ LeoTCK:
    lol
  • Veho @ Veho:
    Mkay.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Communism lol
  • SylverReZ @ SylverReZ:
    OUR products
  • The Real Jdbye @ The Real Jdbye:
    @LeoTCK actually good quality products are dying out because they can't compete with dropshipped chinese crap
    +2
  • BakerMan @ BakerMan:
    @LeoTCK is your partner the sascrotch or smth?
  • Xdqwerty @ Xdqwerty:
    Good morning
  • Xdqwerty @ Xdqwerty:
    Out of nowhere I got several scars on my forearm and part of my arm and it really itches.
  • AdRoz78 @ AdRoz78:
    Hey, I bought a modchip today and it says "New 2040plus" in the top left corner. Is this a legit chip or was I scammed?
  • Veho @ Veho:
    @AdRoz78 start a thread and post a photo of the chip.
    +2
    Veho @ Veho: @AdRoz78 start a thread and post a photo of the chip. +2