Hacking RELEASE nspBuild - Build NSP files

  • Thread starter Deleted-451877
  • Start date
  • Views 117,312
  • Replies 142
  • Likes 25
D

Deleted-451877

Guest
OP
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.
 

Attachments

  • nspBuild.zip
    837 bytes · Views: 8,067
Last edited by ,

BlastedGuy9905

where's the updated autopsy report
Member
Joined
Apr 13, 2017
Messages
2,334
Trophies
1
Age
32
Location
under your desk
XP
3,827
Country
United States
No, we'll need sigpatching for that. As the OP said.
Edit: ME TOO heh
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.
SX OS does sigpatching, right? So theoretically, if we made a homebrew to install .nsp files while in SX OS...
Would that work?
 

Lacius

Well-Known Member
Member
Joined
May 11, 2008
Messages
17,756
Trophies
2
XP
17,491
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?
SX OS only applies signature patching to its method of loading cartridge backups. It won't apply signature patching to anything else.
 
D

Deleted-451877

Guest
OP
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...
 
D

Deleted-442439

Guest
OP
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...

It helps to create installable packages, once sig patches are out we can use dev menu to install them. Very helpful tool.
 
D

Deleted-451877

Guest
OP
It helps to create installable packages, once sig patches are out we can use dev menu to install them. Very helpful tool.
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.
 
D

Deleted-442439

Guest
OP
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.

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 ,
  • Like
Reactions: zillld and Memoir
D

Deleted-451877

Guest
OP
anyway to reverse nsp to xci?
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 ,

Jaimy

Well-Known Member
Member
Joined
Dec 2, 2016
Messages
135
Trophies
0
Age
41
XP
391
Country
United States
This tool just became a hell of a lot more useful now that we can launch installed NPSs.
 
General chit-chat
Help Users
    AncientBoi @ AncientBoi: Omg Psi. may I "borrow" some? :blush::blush: