1. Deleted-451877

    OP Deleted-451877 Newbie

    A .nsp (pfs0) is a simple file: a header that describes the files it contains, with said files appended to it, in plaintext.
    .nsp is the Switch format for installables, similar to what .cia was to the 3ds.
    However installing them is currently impossible, and would require signature patching.

    This scripts generates nsp files from whatever you tell it to. Anything goes, as long as it is a file. Even empty ones.

    To use it, simply drag the files you wish to repack over the script, then enter a name for your nsp.
    Alternativaly, use the command prompt and do: nspBuild.py file1 file2...

    If you want to see the result, use hactool (or nstools): hactool -t pfs0 path/to/nsp (--outdir=path/to/directory).
    No key is required, as the .nsp isn't encrypted.

    This script requires python 3, although I think porting it to python 2 shouldn't be too hard. No library download is required.
     

    Attached Files:

    Last edited Jul 1, 2018
  2. JellyPerson

    JellyPerson https://discord.gg/BMVma8j
    Banned

    Joined:
    Jul 26, 2017
    Messages:
    1,164
    Country:
    Korea, North
    Cool, and since it is basically a Switch CIA file, I assume we can also pack Homebrew into this file. Neat!
     
  3. Draxzelex

    Draxzelex GBAtemp Legend
    Member

    Joined:
    Aug 6, 2017
    Messages:
    11,580
    Country:
    United States
    So...this can effectively convert .XCI into .NSP?
     
  4. KiiWii

    KiiWii Reporter
    Reviewer

    Joined:
    Nov 17, 2008
    Messages:
    10,237
    Country:
    United Kingdom
    Interesting, once free cfw is out this could be very useful :)
     
  5. Deleted-451877

    OP Deleted-451877 Newbie

    Indeed. Simply extract the .xci, then build the .nsp.
     
  6. BlastedGuy9905

    BlastedGuy9905 where's the updated autopsy report
    Member

    Joined:
    Apr 13, 2017
    Messages:
    2,281
    Country:
    United States
    Is there currently a way to install .nsp files?
    EDIT: NVM I'M BLIND
     
  7. JellyPerson

    JellyPerson https://discord.gg/BMVma8j
    Banned

    Joined:
    Jul 26, 2017
    Messages:
    1,164
    Country:
    Korea, North
    No, we'll need sigpatching for that. As the OP said.
    Edit: ME TOO heh
     
    BlastedGuy9905 likes this.
  8. Lacius

    Lacius GBAtemp Legend
    Member

    Joined:
    May 11, 2008
    Messages:
    12,241
    Country:
    United States
    Technically, yes, but the install will fail without a CFW with signature patching, and we also wouldn't be able to run those games without signature patching.
     
    BlastedGuy9905 likes this.
  9. BlastedGuy9905

    BlastedGuy9905 where's the updated autopsy report
    Member

    Joined:
    Apr 13, 2017
    Messages:
    2,281
    Country:
    United States
    SX OS does sigpatching, right? So theoretically, if we made a homebrew to install .nsp files while in SX OS...
    Would that work?
     
  10. Lacius

    Lacius GBAtemp Legend
    Member

    Joined:
    May 11, 2008
    Messages:
    12,241
    Country:
    United States
    SX OS only applies signature patching to its method of loading cartridge backups. It won't apply signature patching to anything else.
     
  11. BlastedGuy9905

    BlastedGuy9905 where's the updated autopsy report
    Member

    Joined:
    Apr 13, 2017
    Messages:
    2,281
    Country:
    United States
    Wow. Well, I guess that makes sense. Pushing people to buy your CFW.
     
  12. Deleted-451877

    OP Deleted-451877 Newbie

    I'm not sure as to why this has been moved to Backup Loaders & Modchips?
    Right now, the script doesn't help loading anything at all...
    It just repacks file to a file container...
     
  13. Deleted-442439

    OP Deleted-442439 Newbie

    It helps to create installable packages, once sig patches are out we can use dev menu to install them. Very helpful tool.
     
    zillld, Centergaming and Solitario like this.
  14. Deleted-451877

    OP Deleted-451877 Newbie

    But in itself, it's not a piracy tool, far from it. It's like saying Atmosphère is a piracy tool because it will have signature patching.
    You're confusing the thing and its possible uses.
     
  15. Deleted-442439

    OP Deleted-442439 Newbie

    I never said it is a piracy tool, I am simply saying this subforum is the most natural place for the thread, as it will aid in the process of backup loading and installing dev / kiosk titles.
     
    Last edited Jul 2, 2018
    zillld and Memoir like this.
  16. gameboy

    gameboy GBAtemp Advanced Maniac
    Member

    Joined:
    Dec 9, 2015
    Messages:
    1,998
    Country:
    United States
    anyway to reverse nsp to xci?
     
    naddel81 likes this.
  17. Deleted-451877

    OP Deleted-451877 Newbie

    Extract the nsp, repack it to xci using the tool that was recently released.
    Be warned, the offsets in BBB's Yooka-Laylee dump are borked, and it won't extract properly.
    The data is still there, though, and you can "manually" extract it.
     
    Last edited Jul 2, 2018
  18. Jaimy

    Jaimy GBAtemp Regular
    Member

    Joined:
    Dec 2, 2016
    Messages:
    133
    Country:
    United States
    This tool just became a hell of a lot more useful now that we can launch installed NPSs.
     
  19. Deleted-451877

    OP Deleted-451877 Newbie

    Just wait a little bit... ;^)
     
  20. TheZander

    TheZander King of the Level 7's
    Member

    Joined:
    Feb 1, 2008
    Messages:
    1,933
    Country:
    United States
    Wait a minute
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - nspBuild, Build, files