Nintendo Switch Cleaner and Builder. A batchfile, python and html script based in hacbuild and Nut's python libraries. Designed initially to erase titlerights encryption from nsp files and make multicontent nsp/xci files, nowadays is a multicontent tool specialized in batch processing and file information, someone called it a Switch's knife and he may be right.
MIT License
Bot releases are hidden (Show)
Published by julesontheroad almost 6 years ago
Published by julesontheroad almost 6 years ago
v0.75- Added configuration from the bat, option to change keygeneration, corrected RSV readouts and more.
Note (v0.75.b) - Corrected minimum RSV for 6.2.0
Note it won't always work as the game can have other dependencies than the firmware. 6.2 to 6.0 seems to work and 6.2 to 5.0 works if basegame is 5.0
Where "batname" is a name of your choosing. You can add as many bats in the same folder as you want with different profiles this way.
You only need to load the file one time to get all reads and the functions will let you print each read to a text file in "INFO" folder at bat's route.
Published by julesontheroad almost 6 years ago
v0.70- Better RequiredSystemVersion patching, added Split Mode, added Update Mode
a.- Default config is set to process folders in auto-multi mode
b- Profiles don't do the patching by default
Split mode is set to repack DLC and Updates always as nsp.
You first set the base, which needs to be a multi-content file then make a list of things to update\upgrade the content.
Choose if you want to strip UPDATES\DLC or both from the base file, choose how you want to repack the resulting content and if you want to patch the meta and the program will process the file.
Published by julesontheroad almost 6 years ago
v0.65- Added RequiredSystemVersion patching
Published by julesontheroad almost 6 years ago
Mostly bugfixes.
- NSP:
auto-repack-> NSP
extract with deltas
pack files in folders individually for auto mode
work folder -> NSCB_ntemp
- XCI:
auto-repack-> XCI
extract without deltas
pack files in folders authomatically for auto mode
work folder -> NSCB_xtemp
Just take the content of the profile you want or both of them and put them in the program root folder. Several profiles can be together.
Published by julesontheroad almost 6 years ago
For nsp files they serve to transform old updates into new ones so they install faster and old update doesn't stay in your system
They're dissabled by default if you use nsp consider activating them.
Note: Missed erasing a pause in manual-individual mode. This one fixes that.
Published by julesontheroad almost 6 years ago
Published by julesontheroad about 6 years ago
NOTE: In case you run into issues try to use a minimal route to locate the bat, without weird characters or spaces. Spaces work for me now but it may still give issues depending on the configuration.
v0.41- Solved some issues present in v0.4 and made new options for the filenaming solution.
1.- Added "nstool.exe by jakcron" to ztools folder to be able to read data from
meta and control nca files.
2.- Solve issues originated by spaces in the program route.
3.- NEW OPTIONS ADDED TO "zconfig\nsp_cleaner_options.cmd"
a.) OPTION 9: Process files by temporarly renaming them to a safe name
* false->don't rename files
* true->rename temporarly to safename
* agro->"Agresive Output" rename temporarly to tempname and output as name set in nacp file.
-- DEFAULT OPTION IS "true" --
NOTE: DLCS DON'T HAVE NACP FILE SO AGRO WILL OUTPUT THEM AS [titleid]
b.) OPTION 10: Output final file as game real name looking at control nca
(If option 9 is set as "agro" it will allways output as the real name)
* false->output as original name/or original name corrected with safe characters
* true-> output as "real" name, stored in control nca.
* oinfo->"Only info"-> Use either original filename or safename and add only titleid, version, content tag ...
-- DEFAULT OPTION IS "oinfo" --
NOTE: DLCS DON'T HAVE NACP FILE SO "true" IN THIS CASE WILL BE REPLACED BY THE "oinfo" OPTION
Published by julesontheroad about 6 years ago
While I finish NX_Builder I solved couple of naming issues.
1.- Now you don't need [titleid] in filename.
2.- Solved issues with special characters like !,+,&,$... Added correction for
a bunch of them if you need to add more edit ztools/safename.bat
Example: If you want to replace @ for a input:
set fileinput=%fileinput:@=a%
Or to delete it:
set fileinput=%fileinput:@=%
You'll probably see the first version for NX_Builder either trough the weekend
or at the beginning of next week.
NOTE: This version is using a function of my modified NUT libraries for NX_Builder
so don't change the config to use the whole NUT.
Published by julesontheroad about 6 years ago
v0.30- Added new options in zconfig.
> Option 4: Way the items are organized.
* line: scattered in output folder
* folder: in folders according to game name
> Option 5 and option 6: Output folders for xci and nsp. As default using
a common folder for both.
> Option 7: Preserve stripped files from the nsp as a .zip file for future
restore function. (True by default)
> Option 8: Replace original file with clean/converted files.As default false.
TAKE CARE WITH THIS ONE. BETTER CHECK ALL WORKS FINE BEFORE ACTIVATING IT.
Added option to erase list.txt in manual mode.
Published by julesontheroad about 6 years ago
v0.21- Fixed issue with manual mode not detecting the user repacking input correctly
Added better check for dlcs and updates, according to id
Added another config parameter to "nsp_cleaner_options.cmd" (xnsp_ifnotgame)
> This parameter serves to repack dlcs and updates as nsp if processing list as xci only.
Options are:
* true: repack dlcs and updates as nsp
* false: skip dlc and update repacking when exporting as xci.
Published by julesontheroad about 6 years ago
v0.2 - Added xci repacking. You can now repack as:
*xci
*nsp
*both formats
- Added nsp_cleaner_options.cmd at zconfig. It'll let you configure the repack
option for auto-mode as (xci,nsp,both)
- If xci repacking filenames with [UPD] tag are skipped
- If with xci repacking an error is logged it activates a fallback and an
xci + [lc].nsp are build.
- Now we support subfolders, thanks to MadScript77 for the advice on how to
set it as in the other great advices he gave about the code.
- For manual mode you can allways choose what format to build from the current
list.
- More changes coming soon.
NOTE: STILL DIDN'T HAVE TIME TO FIX THE WEIRD CHARACTERS ERROR
also repacking a batch to get python libraries dependencies. I believe they're
only "urllib3" and unidecode but added commented the other ones from nut if
you want to install them take off the "::"
Published by julesontheroad about 6 years ago
Nut_batch_cleaner uses the awesome function "REMOVE_TITLE_RIGHTS" from nut by blawar
this function let's you erase the titlerights encryption from nsp files.
Tinfoil and SX installer will install the ticket either way so for it to not stay in
your system you need to erase the ticket and cert from the nsp, this batch will take
care of that.
This batch automates a process you can do yourself with nut and let's make clean nsp
files that you can also pass for XCI-Batch-Builder to generate xci files that don't
need a ticket.
This batch fetures numerous new options that will be implemented in the future version
of XCI-Batch-Builder.
The batch has 2 modes: