NCA-NSP-XCI to LayeredFS Extractor Switch

NCA-NSP-XCI to LayeredFS
Ncanspxcitolayeredfsnx.png
AuthorAssasin1990
TypePC Utilities
Version1.6.4
LicenseMixed
Last Updated2019/07/29
Download
Website

NCA-NSP-XCI to LayeredFS extractor and also includes update merging code.

Note: This tool (script) is deprecated. It is recommended to use DBI, it is more complex but also can be used to extract application files.

User guide

Add your keys.ini to the folder to use.

Notes:

  • You still need to patch the main.npdm.
  • You will have to extract the biggest NCA for Cart2 games yourself, since its a different partition than the original Cart1 games. You can use XCI-Explorer-v1.2.2.1 for it.

Extracting NCA files:

  • nca from a base nsp (1-2-2): 1 NCA - 2 Extract Ecrypted NCA - 2 Romfs folder.
  • nca from an update nsp (decrypted base nca needed) (1-3-2): 1 NCA - 3 Update (base.nca + update.nca) - 2 Romfs folder.

Extracting NSP files:

  • extract a Base NSP (2-4): 2 eShop NSP - 4 Extract GAME Files
  • extract an Update NSP (2-5): 2 eShop NSP - 5 Extract UPDATE Files
  • To combine both copy everything from the update to the base files overwriting all.​

Where to find title keys:

  • When you extract NSPs you get *.tik file that contain title key, also some XCI carts can have it but it's for update nca not for base game.
  • Open *.tik file with any Hex Editor and look at 0x180 where it's in 32 characters.

Notes on title key:

  • NCAs that come from XCI don't need title key except updates.
  • NCAs that come from NSP needs title key.
  • If Secure folder from XCI contains *.tik file then there should be update game NCA in there that needs title key.

Other versions

1.6.5 unofficial version made by avans (2023/03/11). Changes include:

  • The code page of this script has been changed to UTF-8 (65001).
  • Two parameters, extractPause and cleanup, have been added.
    • extractPause:
      • y: Extract will automatically check if the titlekey file exists, display a prompt message and wait for user confirmation.
      • n: Extract directly without waiting for user confirmation.
    • cleanup:
      • y: remove all temporary files.
      • n: don't delete anything.
  • The Setting option has been added, which allows modifying the values of extractPause and cleanup parameters during runtime.
  • The LayeredFS (romfs.bin, exefs) option has been added.
    • Extract Romfs to Files.
    • List files in RomFS.
    • Uncompressed Nintendo Shared Object (nso0).
    • Npdm to JSON.
  • Update hactool to the latest version 1.4.0.

Changelog

1.6.4 2019/07/29

  • Fix Get Titlekey from .tik file doesn't work if a foldername contains spaces.

1.6.3 2019/07/29

  • Quick fix <Extract UPDATE Files>. (was created empty files).

1.6.2 2019/07/29

  • New option "4. Extract GAME Files" will auto extract tk from "*.tik" file and will extract game resources, for now if you'll get any error that would mean, your keys.ini are (missing, too old for that game , etc...).

1.6.0 2018/11/16

  • Auto retrieve title key from nsp.
  • Also removed keys.

External links

ncG1vNJzZmivp6x7qK3MnpmrnadjvLOzjrCgpKFfg5CCea2Mh2aQc36stbu%2BhZiynaKasYefvn6vraqRmMGwvr6MrqKsk50%3D