COMPLETED nspBuild - Build NSP files

Discussion in 'Switch - Backup Loaders & Modchips' started by rkk, Jul 1, 2018.

  1. rkk
    OP

    rkk Member

    Newcomer
    3
    Jun 16, 2018
    France
    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 by rkk, Jul 1, 2018
  2. JellyPerson

    JellyPerson JellyPerson#6885 on Discord, hmu!

    Member
    6
    Jul 26, 2017
    Korea, North
    Pyongyang
    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 Psycho!

    Member
    11
    Aug 6, 2017
    United States
    New York City
    So...this can effectively convert .XCI into .NSP?
     
  4. KiiWii

    KiiWii GBAtemp Guru

    Member
    14
    Nov 17, 2008
    United Kingdom
    Interesting, once free cfw is out this could be very useful :)
     
  5. rkk
    OP

    rkk Member

    Newcomer
    3
    Jun 16, 2018
    France
    Indeed. Simply extract the .xci, then build the .nsp.
     
    slaphappygamer and Draxzelex like this.
  6. BlastedGuy9905

    BlastedGuy9905 Ace Bricker

    Member
    8
    Apr 13, 2017
    United States
    Outside your windows ᕙ(◔ᗜ◔)ᕗ
    Is there currently a way to install .nsp files?
    EDIT: NVM I'M BLIND
     
  7. JellyPerson

    JellyPerson JellyPerson#6885 on Discord, hmu!

    Member
    6
    Jul 26, 2017
    Korea, North
    Pyongyang
    No, we'll need sigpatching for that. As the OP said.
    Edit: ME TOO heh
     
    BlastedGuy9905 likes this.
  8. Lacius

    Lacius GBAtemp Guru

    Member
    13
    May 11, 2008
    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 Ace Bricker

    Member
    8
    Apr 13, 2017
    United States
    Outside your windows ᕙ(◔ᗜ◔)ᕗ
    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 Guru

    Member
    13
    May 11, 2008
    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 Ace Bricker

    Member
    8
    Apr 13, 2017
    United States
    Outside your windows ᕙ(◔ᗜ◔)ᕗ
    Wow. Well, I guess that makes sense. Pushing people to buy your CFW.
     
  12. rkk
    OP

    rkk Member

    Newcomer
    3
    Jun 16, 2018
    France
    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. jjbredesen

    jjbredesen Developer

    Member
    11
    GBAtemp Patron
    jjbredesen is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Feb 16, 2018
    Norway
    Hyrule
    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. rkk
    OP

    rkk Member

    Newcomer
    3
    Jun 16, 2018
    France
    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. jjbredesen

    jjbredesen Developer

    Member
    11
    GBAtemp Patron
    jjbredesen is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Feb 16, 2018
    Norway
    Hyrule
    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 by jjbredesen, Jul 2, 2018
    zillld and Memoir like this.
  16. gameboy

    gameboy GBAtemp Advanced Maniac

    Member
    6
    Dec 9, 2015
    United States
    anyway to reverse nsp to xci?
     
    naddel81 likes this.
  17. rkk
    OP

    rkk Member

    Newcomer
    3
    Jun 16, 2018
    France
    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 by rkk, Jul 2, 2018
  18. Jaimy

    Jaimy GBAtemp Regular

    Member
    2
    Dec 2, 2016
    United States
    This tool just became a hell of a lot more useful now that we can launch installed NPSs.
     
  19. rkk
    OP

    rkk Member

    Newcomer
    3
    Jun 16, 2018
    France
    Just wait a little bit... ;^)
     
  20. TheZander

    TheZander King of the Level 7's

    Member
    8
    Feb 1, 2008
    United States
    Level 7
    Wait a minute
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice