Go Back   FileForums > Game Backup > Nintendo > Wii Games

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 30-03-2022, 13:05
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 264
Thanks: 190
Thanked 321 Times in 118 Posts
elit is on a distinguished road
Switchtor - Nintendo Switch NSP repacker

[Admin, we need a nintendo switch thread ]

Switchtor is my new tool to help me (un)repack Nintendo Switch games. Features:
Code:
-scan nca|nsp|xci files(or whole dir) for information
-extract nca|nsp|xci files:
  -nca and nsp are extracted fully
  -xci are extracted into nca files it contain
-create nsp files from fully extracted game files
-automatic detection of titlekey and titleID
-use hacpack and hactool executables as a backend
-maintain its own text(editable) db file about extracted nca's
-one of the simplest tools out there for this task
To keep things simple, switchtor work with its own directory structure and a text db file. During unpacking of nsp, directory named "__extracted" and file named "__data_db.txt" are created inside newly created directory named same as nsp file minus extension. It is created in same dir as switchtor. Other files in that dir can be deleted.

When creating nsp, you point to a directory where this db file(and __extracted directory) are located. This directory can now be anywhere you prefer, so just point to the full path. Directories "__nsp_out" and "__nca_out" will be created. NCA's are just temporary files to create nsp and can be deleted. NSP inside "__nsp_out" is newly created nsp.

Key revision is maintained but can be simply overwritten in db file(as anything else there). Newly created nsp contain nca's created with '--plaintext' - unencrypted form and title key removed. These nsp's are intended for emulators.

During scan or extracting, titlekey is automatically detected, extracted and used, as well as title ID. Main point of switchtor is simplicity:
Code:
scan:
switchtor.exe -s file.(nca|nsp|xci) | dir

extract:
switchtor.exe -x file.(nca|xci)
switchtor.exe -x file.nsp [ --basenca=base_program.nca | --plaintext=plain_export.nca ]

repack:
switchtor.exe -c dir  (dir with '__data_db.txt' file and '__extracted' directory)
Switchtor works with DLC's and updates, for updates however same limitation apply as for hactool and hacpack which switchtor rely on. You first use --plaintext on a base nsp(the game v1.0) and then use --basenca when extracting update - pointing to previously created base plaintext nca file. Extracted update will be in fact full sized updated game because that is how it works. Refer to hactool documentation. Also you should delete 'fragment'(data) files(whole nca dirs and their references in db file).

This tool is extremely simple thanks to way it works, no need to type(and figuring out) which nca is what, no multi-command options etc. Just a simple -x -c -s and in case you dealing with updates also --plaintext and --basenca. Tool is mainly to deal with nsp, for xci its better to use another tool to convert it to nsp first. It is reliable, I already repacked 18 games with it + tested and working on both emulators.

switchtor_v1.0.7z

Last edited by elit; 30-03-2022 at 13:22.
Reply With Quote
The Following 2 Users Say Thank You to elit For This Useful Post:
Gehrman (28-06-2022), Masquerade (28-06-2022)
Sponsored Links
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM Switch frenchscottie Hardware 7 05-03-2006 18:02
Submini Toggle Switch question/problem spawn1980 XBox Games 14 01-09-2005 15:04
Adding on/off switch to Magic2.... rubber2k1 PS2 Games 5 26-02-2004 09:24
installing a switch on my messiah2ed ps2 modyouup PS2 Games 4 23-12-2003 06:08
Does it matter if you use a hub instead of a router?? devilsminion XBox Games 5 21-04-2003 14:05



All times are GMT -7. The time now is 03:36.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright 2000-2020, FileForums @ https://fileforums.com