Homebrew RELEASE Legal NSP splitter for FAT32

DocKlokMan

Plugin Dev
OP
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
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
 
Last edited by DocKlokMan,

MattKimura

3DS & WiiU Enthusiast
Member
Joined
Jun 30, 2014
Messages
2,137
Trophies
1
XP
2,937
Country
United States
Question, can you install the .nsp folder by other means (Devmenu for example)?

(sxos nsp installer sucks because it causes the installs to show up as corrupt so I'd never use that.)
 
Last edited by MattKimura,
  • Like
Reactions: ShortBus47XYY

DocKlokMan

Plugin Dev
OP
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
Question, can you install the .nsp folder by other means (Devmenu for example)?

(sxos nsp installer sucks because it causes the installs to show up as corrupt so I'd never use that.)
Ot should work with DevMenuApp since that’s what the original script in the SDK was for. Apps based on TinFoil should work too.

It's 2018 and people still haven't realized that people don't like commandlines.
Make a GUI for it then, I don’t mind. If you’re one of ‘those people’ you can usually just drag and drop the file onto the script. Hope drag and drop isn’t too archaic?
 
Last edited by DocKlokMan,

CptPotato

Active Member
Newcomer
Joined
Jan 1, 2016
Messages
34
Trophies
0
Age
25
Location
Hell
XP
374
Country
Serbia, Republic of
It's 2018 and people still haven't realized that people don't like commandlines.

What a useless comment. For something as straightforward as this, there's no reason to have a GUI.

It's still early days for Switch hacking, if you can't use a simple command line, you honestly have no business using any kind of CFW presently.
 

NANASHI89

Well-Known Member
Member
Joined
May 3, 2012
Messages
2,473
Trophies
1
XP
5,358
Country
United States
Inputting the command through command prompt gives me a "'python3' is not recognized as an internal or external command, operable program, or batch file."

Sent from my SM-T280 using Tapatalk
 
  • Like
Reactions: godstriker8

stewacide

Well-Known Member
Member
Joined
Jun 22, 2018
Messages
247
Trophies
0
Age
40
XP
672
Country
Canada
Fantastic, just what I've been looking for to avoid (supposedly easy to corrupt) EXFAT. Split works on OSX for me.

Edit -- Also, for Mac users, EXFAT has the limitation that Finder can't create folders that the Switch can see, so another reason to avoid.
 
Last edited by stewacide,

stewacide

Well-Known Member
Member
Joined
Jun 22, 2018
Messages
247
Trophies
0
Age
40
XP
672
Country
Canada
To make things easy for yourself put the .py script and your NSPs in the same folder, and change to that folder before running it ('cd' command or whatever on Windows)
 

Chocola

GBAtemp Meowgular
Member
Joined
Sep 18, 2018
Messages
379
Trophies
0
Age
32
Location
Neko Paradise
XP
723
Country
Korea, South
(null) can't open file 'splitNSP.py': [Errno 2] No such file or directory

Sent from my SM-T280 using Tapatalk

You should navigate first to folder where splitNSP.py are located and then run the command, or use full path to the file, for example if you have the script on C://Users/Username/Downloads/splitNSP.py you should:

cd C://Users/Username/Downloads/
py splitNSP.py filename.nsp

Or use full path on the command:

py C://Users/Username/Downloads/splitNSP.py filename.nsp
 
  • Like
Reactions: CTBC

NANASHI89

Well-Known Member
Member
Joined
May 3, 2012
Messages
2,473
Trophies
1
XP
5,358
Country
United States
splitNSP.py: error: unrecognized arguments: Chronicles 2
You should navigate first to folder where splitNSP.py are located and then run the command, or use full path to the file, for example if you have the script on C://Users/Username/Downloads/splitNSP.py you should:

cd C://Users/Username/Downloads/
py splitNSP.py filename.nsp

Or use full path on the command:

py C://Users/Username/Downloads/splitNSP.py filename.nsp

Sent from my SM-T280 using Tapatalk
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    I @ idonthave: :)