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

Discussion in 'Switch - ROM Hacking, Saves, Translations & Tools' started by nmkd, Oct 20, 2018.

  1. nmkd
    OP

    nmkd GBAtemp Advanced Fan

    Member
    5
    Oct 25, 2016
    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?
     
  2. jonyluke

    jonyluke GBAtemp Regular

    Member
    4
    Aug 22, 2018
    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, Oct 21, 2018
    werneck14 likes this.
  3. Bigjokker

    Bigjokker GBAtemp Regular

    Member
    3
    Jan 4, 2015
    United States
    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.
     

    Attached Files:

    TerMinA21 likes this.
  4. werneck14

    werneck14 Advanced Member

    Newcomer
    2
    Jan 19, 2017
    Brazil
    Thank you! I couldn't find what was the "enter the title key" and you tutorial helped me.
     
    jonyluke likes this.
Loading...