Homebrew RELEASE Legal NSP splitter for FAT32

Tekimoto

Well-Known Member
Newcomer
Joined
Nov 24, 2018
Messages
68
Trophies
0
Age
34
XP
152
Country
Austria
As some have become aware, it's been found out that the official Nintendo SDK contains a PowerShell script for splitting NSP files into 4GiB chunks so that they can be installed from FAT32 filesystems. Seeing as the official script cannot be shared, I re-wrote it in Python3 (which makes it useable on more than just Windows) as well as added in an additional feature.

To run it you'll need Python3 installed. Once installed, call the script from Terminal or Command Prompt with the following:
Code:
python3 splitNSP.py filename.nsp
By default this will make a copy of the NSP and split it up into parts. Once created, you'll need to open the folder's properties and check the Archive flag. This is easily done on Windows, I'm still working on a way to do it for macOS since file flags aren't saved when copying to FAT32.

You can also activate quick mode with this command:
Code:
python3 splitNSP.py -q filename.nsp
This will not make a copy of the NSP and instead will split the original. This is useful if you're running low on space as it only requires that you have 4GiB of temporary space to run it. It's also much faster.

Once the folder is made and the archive flag is set copy it to your SD card (sdmc:/tinfoil/nsp/ if using tinfoil) and install it like any other NSP.

If you have any issues feel free to submit an issue on GitHub and I'll try my best to work it out.

Download Link: https://github.com/AnalogMan151/splitNSP/releases
I have a problem.If I try to put the 2 nsp's that I got from the spytnsp.py into my tinfoil/nsp folder in my fat32 sd card and try to enter the folder on tinfoil on my switch i get this error https://imgur.com/BH9Ah9C
However if I try to load the normal nsp in my exfat sd card it works normaly
So I am forced to use an exfat card but I dont want to.Any Ideas?
 

DocKlokMan

Plugin Dev
OP
Member
Joined
Apr 20, 2007
Messages
3,008
Trophies
2
Age
36
XP
4,570
Country
United States
I have a problem.If I try to put the 2 nsp's that I got from the spytnsp.py into my tinfoil/nsp folder in my fat32 sd card and try to enter the folder on tinfoil on my switch i get this error https://imgur.com/BH9Ah9C
However if I try to load the normal nsp in my exfat sd card it works normaly
So I am forced to use an exfat card but I dont want to.Any Ideas?
You put the actual folder the script made on to the SD card and set the archive flag for it, correct? You didn’t just put the 00 & 01 file?
 

Tekimoto

Well-Known Member
Newcomer
Joined
Nov 24, 2018
Messages
68
Trophies
0
Age
34
XP
152
Country
Austria
You put the actual folder the script made on to the SD card and set the archive flag for it, correct? You didn’t just put the 00 & 01 file?
That is exactly what I did,I just put the 00 and 01 files in the nsp folder.Then I tried keeping the files in the folder that the script made and put that folder in the nsp folder.
How do I set the archive flag for it?I dont even know what that means
 
Last edited by Tekimoto,

DocKlokMan

Plugin Dev
OP
Member
Joined
Apr 20, 2007
Messages
3,008
Trophies
2
Age
36
XP
4,570
Country
United States
That is exactly what I did,I just put the 00 and 01 files in the nsp folder.Then I tried keeping the files in the folder that the script made and put that folder in the nsp folder.
How do I set the archive flag for it?I dont even know what that means
Sorry, if you didn’t know what that meant you should have asked when you read that step in the original post’s instructions. The archive flag is a property of the folder you can set using Windows. Right click on the folder, go to Properties, click on Advanced and you’ll see the Archive option there. Make sure it’s checked.

You can also use the Homebrew NX-Shell to set the archive flag on a folder.
 

Tekimoto

Well-Known Member
Newcomer
Joined
Nov 24, 2018
Messages
68
Trophies
0
Age
34
XP
152
Country
Austria
I still dont understand...I can install normal nsp files in the nsp follder and i havent set any archive flag or anything...
Howver I have done what you sayd and now i get this a worst error.
Does the folder thatcontains the 2 files have to be in the nsp folder?And do I have to set only that specific folder achive folder?
What I done is set the whole tinfoil nsp folder as achieve folder
 
Last edited by Tekimoto,

Tekimoto

Well-Known Member
Newcomer
Joined
Nov 24, 2018
Messages
68
Trophies
0
Age
34
XP
152
Country
Austria
Nevermind I got it to work but I am getting this https://imgur.com/a/wkPF2x4
The file is installed but I get the messege ticket installation failed but I did not get this messeage when installing the same unsplited nsp on exfat
What is that?
 

yikkyon

Well-Known Member
Member
Joined
Sep 20, 2008
Messages
249
Trophies
0
XP
810
Country
United States
Nevermind I got it to work but I am getting this https://imgur.com/a/wkPF2x4
The file is installed but I get the messege ticket installation failed but I did not get this messeage when installing the same unsplited nsp on exfat
What is that?
I'm not someone who's familiar with the details of it but the ticket has something to do with having Nintendo Servers check to see if it's a legitimate purchase of the game.
 

_abysswalker_

Well-Known Member
Newcomer
Joined
Dec 8, 2018
Messages
96
Trophies
0
Age
41
XP
1,077
Country
Cyprus
Thank you very handy tool.

Worked great splitting Valkyria on Windows 7 + python 3.7

For failsafe running on Windows make sure you tick the checkbox to add Python to PATH during setup (so "py" works on cmd line) and run cmd.exe as administrator.
 

Wezaa

Well-Known Member
Member
Joined
Apr 29, 2015
Messages
169
Trophies
0
Age
36
XP
777
Country
sorry i am not familiar with Python.

I have it installed and i have downloaded the .py file.
How exactly do i use it?


Its alright, i have worked it out now.
Cheers
 
Last edited by Wezaa,
P

pasc

Guest
It's 2018 and people still haven't realized that people don't like commandlines.

Not necessarily. A For loop does wonders if correctly used...

Also a quick snippet that always does *exactly* what you want is preferred over having to call a GUI each time.

GUIs crash more often for me than command lines. (Source: me)
(Although Guis have CLIs in the background but still...)


Thank goodness the Switch has nothing I'm interested in right now... Since the 3DS Nintendo "hacking" has become unnecessary complex and time consuming.
Meh.
 
Last edited by ,

PikachuPrincess23

Well-Known Member
Member
Joined
Jun 22, 2015
Messages
1,160
Trophies
0
Age
32
XP
4,444
Country
Norway
So I have both splitNSP and Ys VIII Lacrimosa of DANA [01007f200b0c0000][v0].nsp in same folder as you can se in picture.
I have extracte Ys VIII Lacrimosa of DANA [01007f200b0c0000][v0].nsp to splitNSP and got a Ys VIII Lacrimosa of DANA [01007f200b0c0000][v0].nsp folder as you can se in picture and in that folder are 01 to 3 file, Did I do right or did i do something wrong?
J8IMC5.png
 

_abysswalker_

Well-Known Member
Newcomer
Joined
Dec 8, 2018
Messages
96
Trophies
0
Age
41
XP
1,077
Country
Cyprus
^ this is fine. Notice that the folder is called Ys VIII........nsp

To clarify the 01, 02 and so on files are the 4GB chunks that the original file is split to to fit into a FAT32 filesystem.

To finish off just make sure you flag the folder as archived as per the OP instructions and copy the whole folder on sdcard. You should be able to install normally (switch detects the folder as .nsp file)
 
Last edited by _abysswalker_,

rasqba

Member
Newcomer
Joined
Sep 25, 2015
Messages
14
Trophies
0
Age
29
XP
86
Country
Poland
Hello, I have a problem with the splitter.
After succefully splitting my .nsp file into 4 parts, I can only copy 3 of them. Part 01 when copying at first freezes and then after like 15 minutes gives an error at 18%, both when copying to SD or my other HDD. Im guessing the file might be corrupted? Tried splitting multiple times, as well as using the -q option.
Always the 01 file can't be copied.
Anyone knows where I should look for cause?

Im on Windows 10
 
Last edited by rasqba,

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,205
Country
United States
It is getting old. Use Tinfoil USB Install or Aluminumfoil and they can transfer one file to your Switch outwit splits the files. A piece of cake and less hassle.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Sicklyboy @ Sicklyboy: Can't wait for season 2