RELEASE Legal NSP splitter for FAT32

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by AnalogMan, Oct 7, 2018.

  1. AnalogMan
    OP

    AnalogMan ultraSuMoFramework Dev

    Member
    11
    Apr 20, 2007
    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 AnalogMan, Oct 8, 2018
  2. Draxzelex

    Draxzelex GBAtemp Guru

    Member
    16
    Aug 6, 2017
    United States
    New York City
    Goodbye NSP divider, hello NSP splitter!
     
    loler55 and HiD like this.
  3. MattKimura

    MattKimura 3DS & WiiU Enthusiast

    Member
    9
    Jun 30, 2014
    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, Oct 7, 2018
  4. whateverg1012

    whateverg1012 Fringe Weaver

    Member
    5
    Sep 23, 2016
    United States
    VA-11 Hall-A
    tinfoil
     
  5. MattKimura

    MattKimura 3DS & WiiU Enthusiast

    Member
    9
    Jun 30, 2014
    United States
    "copy it to your SD card (sdmc:/tinfoil/nsp/ if using tinfoil) "
    Suggesting that it may be used by other nsp installers. Just wanted to make sure this was what he meant by that.
     
    Last edited by MattKimura, Oct 7, 2018
    whateverg1012 likes this.
  6. TimeDevouncer

    TimeDevouncer Member

    Newcomer
    2
    Jun 7, 2018
    Spain
    Jojojojo:grog::grog::grog:

    Thank you so much!!:bow:
     
  7. Clydefrosch

    Clydefrosch GBAtemp Psycho!

    Member
    10
    Jan 2, 2009
    Germany
    It's 2018 and people still haven't realized that people don't like commandlines.
     
    BananaMuffinFrenzy likes this.
  8. AnalogMan
    OP

    AnalogMan ultraSuMoFramework Dev

    Member
    11
    Apr 20, 2007
    United States
    Ot should work with DevMenuApp since that’s what the original script in the SDK was for. Apps based on TinFoil should work too.

    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 AnalogMan, Oct 7, 2018
    XaneTenshi, BL4Z3D247, lahma and 12 others like this.
  9. CptPotato

    CptPotato Member

    Newcomer
    2
    Jan 1, 2016
    Serbia, Republic of
    Hell
    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.
     
    Meriadoc, lahma, gnmmarechal and 9 others like this.
  10. CptPotato
    This message by CptPotato has been removed from public view by x65943, Oct 7, 2018, Reason: Dupe.
    Oct 7, 2018
  11. Captain_N

    Captain_N GBAtemp Maniac

    Member
    6
    Mar 29, 2010
    United States
    I always wondered why no one writes guis with their code. I used to make them in the dos days from scratch before visual studio. Full menu and mouse control.
     
  12. jakkal

    jakkal GBAtemp Addict

    Member
    11
    Apr 27, 2018
    United States
    its 2018, if you cant use commandline you're an idiot
     
  13. Maupiti

    Maupiti GBAtemp Regular

    Member
    2
    Sep 16, 2018
    France
    Thanks a lot for your work @AnalogMan :bow:, no more reasons for me to stick to Exfat....:hateit:
     
    GarnetSunset likes this.
  14. ShadowOne333

    ShadowOne333 GBAtemp Guru

    Member
    17
    Jan 17, 2013
    Mexico
    Goodbye, exFat.
    Hello FAT32!
     
    lordelan and Maupiti like this.
  15. NANASHI89

    NANASHI89 GBAtemp Advanced Maniac

    Member
    8
    May 3, 2012
    United States
    Which python 3 do I use?

    There are so many...

    Sent from my SM-T280 using Tapatalk
     
  16. Chocola

    Chocola GBAtemp Regular

    Member
    1
    Sep 18, 2018
    Spain
    3.7.0 it's the last stable, phyton only have hard break diferences between 2.x and 3.x
     
  17. NANASHI89

    NANASHI89 GBAtemp Advanced Maniac

    Member
    8
    May 3, 2012
    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
     
  18. stewacide

    stewacide GBAtemp Regular

    Member
    2
    Jun 22, 2018
    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, Oct 8, 2018
  19. Chocola

    Chocola GBAtemp Regular

    Member
    1
    Sep 18, 2018
    Spain
    Use: py splitNSP.py filename.nsp

    If you are on Windows
     
  20. NANASHI89

    NANASHI89 GBAtemp Advanced Maniac

    Member
    8
    May 3, 2012
    United States
    (null) can't open file 'splitNSP.py': [Errno 2] No such file or directory

    Sent from my SM-T280 using Tapatalk
     
  21. stewacide

    stewacide GBAtemp Regular

    Member
    2
    Jun 22, 2018
    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)
     
  22. Chocola

    Chocola GBAtemp Regular

    Member
    1
    Sep 18, 2018
    Spain
    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
     
  23. NANASHI89

    NANASHI89 GBAtemp Advanced Maniac

    Member
    8
    May 3, 2012
    United States
    splitNSP.py: error: unrecognized arguments: Chronicles 2
    Sent from my SM-T280 using Tapatalk
     
Loading...