ROM Hack Question I extraced romfs.bin from a game - how do I get a folder from it?

nmkd

Well-Known Member
OP
Member
Joined
Oct 25, 2016
Messages
554
Trophies
0
Age
24
XP
753
Country
Germany
I want to mod a game but I was only able to get the romfs folder from the base game.

For the update, I used a tool that can extract romfs.bin (file, not folder) from base+update, but now I don't know how to extract romfs.bin to look at the game's files.

Any ideas?
 

jonyluke

Well-Known Member
Member
Joined
Aug 22, 2018
Messages
145
Trophies
0
Age
22
XP
1,121
Country
Spain
Use this program

https://gbatemp.net/attachments/nca-nsp-xci_to_layeredfs_v1-6-rar.136644/

Select:

- 2. eShop NSP
- 1. Extract Eshop NSP

Then you have the nca files in Extracted_NSP folder

- 1. NCA
- 2. Extract Ecrypted NCA
- 2. Romfs folder
(Use the biggest nca file)

Enter the title key that is located at the .tik file, open it with Hxd and copy the line at 0x180 offset (in hexadecimal), without spaces

You have your files in Extracted_NCA folder


Also if you use the option BASE.nsp + Update.nsp to LayeredFs instead of Extract Eshop NSP it will be already a "Decrypted.nca" in Extracted_Base_Game_NSP folder, so you can use Extract Decrypted NCA and not use Hxd, the files will be in Extracted_NCA folder.
 
Last edited by jonyluke,
  • Like
Reactions: werneck14

Bigjokker

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
115
Trophies
0
Age
45
XP
331
Country
United States
I want to mod a game but I was only able to get the romfs folder from the base game.

For the update, I used a tool that can extract romfs.bin (file, not folder) from base+update, but now I don't know how to extract romfs.bin to look at the game's files.

Any ideas?

You can use this batch program I made if your using windows. Just put it in the same folder as hactool and keys.txt and Drag NSP, NCA or XCI from any folder on your computer onto the bat.

It will extract everything in a similar folder structure as the file. Which is helpful if you want to repack back to NSP or XCI.
 

Attachments

  • EXTRT_v2.1.rar
    3.6 KB · Views: 1,040

werneck14

Well-Known Member
Member
Joined
Jan 19, 2017
Messages
121
Trophies
0
Age
23
XP
265
Country
Brazil
Use this program

https://gbatemp.net/attachments/nca-nsp-xci_to_layeredfs_v1-6-rar.136644/

Select:

- 2. eShop NSP
- 1. Extract Eshop NSP

Then you have the nca files in Extracted_NSP folder

- 1. NCA
- 2. Extract Ecrypted NCA
- 2. Romfs folder
(Use the biggest nca file)

Enter the title key that is located at the .tik file, open it with Hxd and copy the line at 0x180 offset (in hexadecimal), without spaces

You have your files in Extracted_NCA folder


Also if you use the option BASE.nsp + Update.nsp to LayeredFs instead of Extract Eshop NSP it will be already a "Decrypted.nca" in Extracted_Base_Game_NSP folder, so you can use Extract Decrypted NCA and not use Hxd, the files will be in Extracted_NCA folder.
Thank you! I couldn't find what was the "enter the title key" and you tutorial helped me.
 
  • Like
Reactions: jonyluke
General chit-chat
Help Users
  • KenniesNewName @ KenniesNewName:
    You could always buy a ticket and attempt to get him that way but it didn't end well for the last guy
    Gift
  • Gift
  • Dark_Phoras @ Dark_Phoras:
    If you don't want to get into his shoes and understand his perspective, you can't speak of him with knowledge. I won't say he's always right or that his character is flawless; he uses a tribal logic I dislike and that was the base for at least the special I watched. But he doesn't need tokens to express his opinions, and I felt honesty from the way he spoke about his friend
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I don't use social media, I don't know the social aspects surrounding him. I just watched the special because a cousin told me he was his favourite. Mine are John Mulaney and Taylor Tomlinson, btw
    Gift
  • KenniesNewName @ KenniesNewName:
    It's almost like you don't have to like what everyone else likes to enjoy what you like
    Gift
  • KenniesNewName @ KenniesNewName:
    People have differences about things and get their panties in a twist about it when they have disagreements on people instead of finding a medium
    Gift
  • Veho @ Veho:
    It really depends on the opinions and actions of each individual, doesn't it?
    Gift
  • Veho @ Veho:
    What if one of them is (Godwin's Law) literally Hitler?
    Gift
  • Dark_Phoras @ Dark_Phoras:
    Is it Godwin's Law, or Ad Hitlerum, in this case?
    Gift
  • Veho @ Veho:
    Both.
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I just googled, I didn't know what Godwin's Law was
    Gift
  • Veho @ Veho:
    Since I wasn't arguing for or against any specific point, it's not really reductio ad Hitlerum.
    Gift
  • Gift
  • Gift
  • Veho @ Veho:
    Reductio ad ovo.
    Gift
  • Gift
  • KenniesNewName @ KenniesNewName:
    We're all planted semen
    Gift
  • Veho @ Veho:
    Or seaman.
    Gift
  • Veho @ Veho:
    Huh, my dad served in the navy, technically I am a planted seaman :creep:
    Gift
  • Gift
  • Veho @ Veho:
    That's cool.
    Gift
  • KenniesNewName @ KenniesNewName:
    Time to buy perfectly good DSs
    Gift
  • Veho @ Veho:
    I have a perfectly good DS, only slightly cracked along the hinge, as they do. Perfectly good though. Turns on and everything. Flickering lights and all that.
    Gift
  • KenniesNewName @ KenniesNewName:
    Chop it in half
    Gift
  • KenniesNewName @ KenniesNewName:
    I need more devices to run gba
    Gift
    KenniesNewName @ KenniesNewName: I need more devices to run gba