Giter VIP home page Giter VIP logo

sak's Introduction

SAK

Switch Army Knife (SAK)

PROJECT IS CLOSED, NO MORE UNDER MAINTENANCE

I WILL STOP ALL MY WORK FOR ALL PROJECTS

THANKS FOR THE TIME

You can always replace the binaries in the bin folder. As soon as there are updates. This should work in most cases

SAK_by_kempa_main

With Switch Army Knife you can easily juggle XCI / NSP content from your switch.

  • Patch XCI
  • Split / merge XCI
  • Update XCI with game update and dlc's
  • Convert XCI to NSP
  • Compress XCI to XCZ
  • Decompress XCZ to XCI
  • Extract Firmware from XCI
  • Patch NSP
  • Split / merge NSP
  • Update NSP with game update and dlc's
  • Convert NSP to XCI
  • Compress NSP to NSZ
  • Decompress NSZ to NSP
  • Extracting Switch savegames which you have copied from your User partition
  • Create NRO forwarder as installable NSP file
  • Format the SD card in FAT32

Copyright:

The code was completely developed by me. So the tool can be published completely free and legal!

Virus reports from SAK

It's a false positive. SAK.exe is completely free of virus or other malware. It nothing collect / share or do anything else.

Reports: 32 Bit Version: https://www.virustotal.com/gui/file/4ab48c10dd6e069f391f8a171a5d6991a516f4201ff158268a2d60781a7c9530/detection

64 Bit Version: https://www.virustotal.com/gui/file/781144c5d04c609ac86c5ddbdf2b2dcd1af98ebd08f8b7cc0093bb2cc2d940eb/detection

Report it to your AV manufacturer. Temporary add it to the ignore list of your AV tool. If you are unsure: You can also run it on a single minimal windows vm like virtualbox with nothing else installed.

Prerequisite for this:

The 7zip archive must not be changed Always with reference to the original forum thread (see Link below)

Important notices: (included tools that are not from me):

4NXCI (4nxci.exe)

The respect goes to The-4n and SciresM for developing and providing the tool. Source: https://github.com/The-4n/4NXCI

hacBrewPack / hptnacp (hacbrewpack.exe / hptnacp.exe) - The respect goes to The-4n for developing and providing the tool.

Source: https://github.com/The-4n/hacBrewPack

switchbrew (nx-hbloader) - The respect goes to switchbrew Team, R-YaTian and HookedBehemoth for developing and providing the nx-hbloader/forks.

Source: https://github.com/switchbrew/nx-hbloader Source: https://github.com/R-YaTian/nro-forwarder Source: https://github.com/HookedBehemoth/nx-hbloader Source: https://github.com/dezem/nx-hbloader

FAT32 Format (guiformat.exe)

Thanks goes to Ridgecrop Consultants Ltd for FAT32 Format as GUI version Source: http://www.ridgecrop.demon.co.uk/index.htm?guiformat.htm

hactool (hactool.exe)

The respect goes to SciresM for developing and providing the tool. Source: https://github.com/SciresM/hactool

NSC_BUILDER (squirrel.exe)

The respect goes to julesontheroad for developing and providing the tool. Source: https://github.com/julesontheroad/NSC_BUILDER

LibHac (hactoolnet.exe)

The respect goes to Thealexbarney for developing and providing the tool. https://github.com/Thealexbarney

reNXpack (renxpack.exe)

The respect goes to The-4n and SciresM for developing and providing the tool. Source: https://github.com/The-4n/reNXpack

More details at https://psxtools.de/index.php/Thread/77281

sak's People

Contributors

dezem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sak's Issues

Feature Request:: Merge XCZ + NSZ/NSP to XCI

I know many people will try and store their files in compressed formats but will keep the updates/dlc's separate for backups.

Having it where it can combine the compressed files straight into a merged final product would be a nice way to save some steps for many who do.

Thank you for your work, much appreciated.

No Sound on screen record

When I create NSP Forwarders using SAK, I enable screen recording, and the recordings work just fine but with no sound. Any work around on this?

NSP to NSZ compression taking forever

I waited for 1 hour and it didnt completed fast compression. Its a 10GB file, Overcooked All you can eat. Is that normal and i have to wait even more or its having some issue? Sorry for bad grammar (i think)

hacBrewPack missing DLLs on 0.7.8 releas

Hi I just download Switch Army Knife (SAK) v0.7.8 release and try to generate a NSP forwarder for a NRO and get errors about msys-2.0.dll & msys-gcc_s-seh-1.dll missing files.

The hacBrewPack version 3.05 downloaded from github works fine without the dll files. I did found the missing files on my c:\msys64\usr\bin\ folder, I think the compiled version of SAK is not linking external includes references.

windows 10 detects the .7zip as a virus

I did see other posts relating to this but I'm new and they are old so I'm bringing this up again. When I download any version of this and try to extract or open the 7,zip folder, Windows pops up with a message saying its a virus or potential unwanted program. and then it disappears. tried downloading it 3 times same issue.

Converting back from compressed format results in a different hash

Hello,
I'm not in anyway knowledgeable about the switch game/DLC/update formats (.xci & .nsp & .xcz & .nsz). I just found it to be strange that compressing a game from .xci-->.xcz then decompressing it back .xcz-->.xci results in an MD5 different from the original. The same thing happens with .nsp & .nsz files.

My understanding is that .xcz files are just compressed .xci files and .nsz files are just compressed .nsp files.

What has changed in the files? Can the original state with the correct MD5 be retrieved in any way?

I ask this because I try to preserve my game collection matching No-intro dat with the smallest size possible.

Thanks

Forwarders do not allow video recording

After creating a Forward for a NRO, and install it on the Swtich. running the App works fine, but a blank Save Data of 64MB is created which is a space waste. when the application is running pressing the capture button a picture is taken, but holding it a message «Unable to take a video capture now» is displayed.

I am using Atmosphère 0.19.3 and firmware 12.0.1

I think these are controlled by the file "nro_fw_control.nacp" but really do not know how to edit it.

thanks.

NSZ compression options

Hi,

Could you please let know what are the option used for each level of NSZ compression in SAK?

I am compressing my nsp on another machine manually with the original nsz tool (https://github.com/nicoboss/nsz) but can't achieve the same file sizes as with SAK set on hard.

Thanks!

Only the first game is converted to NSP from 2-game XCI

A game "Cat Quest + Cat Quest II Pawsome Pack" (https://www.nintendo.com/games/detail/cat-quest-plus-cat-quest-ii-pawsome-pack-switch/) has two games. When I insert the cartridge to Switch, two game icons appear to Launcher menu.

I dumped the cartridge with nxdumptool v1.1.10 as a XCI (dumping as a NSP only dumps the first game of two).
Dump filename is "Cat Quest v131072 (0100A2F006FBE000) + Cat Quest II v262144 (01008BE00E968000).xci"

When I use SAK v0.7.5 to convert this XCI (including 2 games) to NSP(s), the output is only the first game as NSP.
I expected both games would be handled and converted to separate NSPs.

I could provide the dumped XCI if needed for testing/fixing the issue.

'?' Icon on .nsp Forwarders

Hey,

Making a .nsp with SAK, lastest x64 Version, once installed onto the switch, the Icon appears as a grey question mark square, without the logo, I tried remaking it and making sure i selected the logo (256x256 .jpg) - https://gbatemp.net/attachments/icon-jpg.265394/

But still unfortunately no dice, don't know if I'm missing a dependency but as none are listed I'm assuming I'm fine.

Thanks :)

Skyline Emulator

roms updated with SAK don't work on Skyline and I don't know how to update my roms with willfaust's nsp_update_patcher.sh please make the roms work on Skyline emulator

SAK 32 bit

Hactool and Hactoolnet contained in the 32 bit version are actually 64 bit.

Update base game (NSP) with multiple nsp updates?

It seems that I can select the base game in "Open NSP" button and then select multiple NSP files in "Open NSP/NSZ" button inside the "Update NSP" menu of SAK.

But I am wondering if it actually updates the base game with all the NSPs I have selected. Is there a way to see what are the updates inside the output NSP file?

Bitdefender Sees SAK.exe as Nymeria.002

Have you seen any other reports of this noted in title.

I did see a comment about false positive but seen as malware, not virus.

Is this still safe? Bitdefender appeared to notice after one it's definitions updates...

SAK cannot perform conversions when run from UNC path

If i attempt to run SAK from UNC path then i have noticed SAK is unable to convert from NSZ to NSP (there could be other conversions too).

If i do the same operation but run SAK from local disk then it converts the ROM correctly, any chance you could take a look at this and see how easy it is to permit SAK to run from UNC path?.

Problem with 13.2.0

First of all thank you for your work. I never had a problem in the past with your program. I'm on sx os. New games on 13.2.0 like Asterix and record of Lodos war seem to start but stay on an infinite loop in the first loading screen before entering the game. Any ideas how to fix this?

docker

hi,

ist es möglich das tool auch im Docker laufen zu lassen?
Dann bräuchte man nicht immer ein PC zur hand um mal files zu wandeln!
Vielleicht mit AtmoXL-Titel-Installer zusammen.

Grüße

NRO Forwarder - Icon not displayed

Hi,

I'm trying to create a forwarder for ScummVM.
Everything works fine, forwarder is generated and working when installed on Switch, but the forwarder icon is never properly displayed.
Source file is JPG, 256x256, less than 50kb.
scummvm_black

Creating repacked NSP (base game with REPLACED resources from update)...

Can you add this feature to SAK?
I want to avoid manual job of creating repacked NSP (I'm using hacpack.exe, hacPack-GUI.exe and hactool.exe for that, but it's very complicated and don't handy (searching titlekey in .tik, generating new .tik, synchronizing game resources, etc...All manually).
Is it possible to make "one button" (with options) where we must select:

  1. base v0.NSP
  2. update vXXX.NSP
  3. [optional] LFS with custom patch (localization files, for example).

In result, we should get NSP with UPDATED resources inside (NOT BASE + UPDATE, but PATCHED\UPDATED to vXXX BASE).

And optional - separation of some resources to LFS from NSP (movies and some other resources, which i want to have in LFS for handy modifications or removing at all anytime in the future).

Such updated repacks (with most of resources in LFS) helps me to save a space and easy game modifications.

nsp updater - nsz updater ?

could it be possible to add in as you can update nsp, to be able to update nsz for any already converted that require updates
rather than converting back to nsp updating and re converting to nsz

app works perfect for me but if possible this would save so much time :)

thank you for your hard work !

NSP update failed

Updating failed F:\Path\To\NSP
Something failed!?
Is the selected NSP file a game and the NSP the update?

Needed time 4 seconds.

I get this error message for every ROM and update/DLC combination I try. I was able to load these ROMs and install the updates in Yuzu just fine.

Version: 64 bit
OS: Windows 11

Created NRO Forwarders only appear as loading wheels

Hello, I've been trying to use SAK to make NRO forwarders for Retroarch. When I do this and install the resultant NSP to my Switch, they will do one of either things:

  1. Appear as a loading wheel and unable to be played or open options. I have to go into Data Management in Settings to delete them, this happens typically after having created at least one NSP prior (at least in my case, refer to 2nd case below)

  2. The NSP is successfully created, but using a special character (in my case Pokémon, with the special character é) will cause the special character and anything after it to be cut from the title (resulting in "Pok" instead of "Pokémon - Red Version.") The forwarder will successfully install and be able to be played aside from this minor issue.

Any help would be appreciated to fix these issues!

creating files in same folder?

at the moment, when i create nsz file from nsp SAK create it under SAK\squirrel\ and move it than under the SAK\.
why not creating it direct or on finished move to same folder where nsp file is?

NRO Forwarder is messing up paths

Dear dezem,

I made a nsp with SAK because I wanted to have a NSP version of: NX Theme Installer!
If I use the reboot button in the NSP version of it I will always be booted into OFW :(
Something gets messed up on the way from NRO to NSP!
If I use override of gametitle and do the same in the NRO version it uses "reboot to payload" (that I set up in atmosphere "system_settings.ini") correctly and boots into atmosphere!

I'm not a coder so I just have a maybe idea?!

Would it be possible to catch a "reboot _call" from the NRO and somehow inject it into the NSP when it is forwarded with SAK?
Or would it be possible to code a function that recognize any reboot and will then use the "reboot to payload" function and injects that into the created NSP (something like a hook_up)?

Yeah, I know sounds stupid and crazy! Like I said: I'm definitely NOT a coder!
Would be more than awesome to get something like that!

Greetings from Germany and thank you so much for your precious time!
Have a nice weekend!

How do you freeze Squirrel package

Hi,

Sory to open an issue for that but I've difficulties to find what I want on this subject.

I want to do my own modification on Squirrel but I have some problems to freeze the package, if you have some informations on how to make this work I'm intrested in them.

Webroot SecureAnywhere sees 4nxci.exe as a trojan.

After unzipping the compressed folder, Webroot SecureAnywhere, a computer protection program gave me the following message I included in this image file. It then proceeded to delete 4nxci.exe.

Why?
Screenshot 2020-01-10 21 22 27

Progress stuck

When I try to convert NSZ to NSP the thing gets stuck on please wait and the progress bar does not move at all, I waited for over an hour with a fast pc for 2gb file so I don't think it's a problem with my computer.

Compressing XCI/NSP can't be multithreaded.

Hello, Thank you. The tool is very useful. Haven't had any broken resulting files. But I noticed that when I'm trying to compress an XCI to XCZ there is no option to make the compressor use more than 1 thread. I know it's possible to do that with Squirrel, so I was hoping to use at least what I can there.

Patched versions left something in memory

I've moved from SX os to Atmo. All patched games that were playing fine with SX now give me a ''could not start the software please try again from the home menu'' message. I tried uninstalling them and install ''clean'' unpatched versions and nothing works. I get the same message.
Patched versions left something that prevents them from starting. Any ideas on what to do?

Doesn't seem to be able update the NSP/XCI for Paper Mario with it's update.

Paper Mario The Origami King,
ID: [0100A3900C3E2000] Base Game
ID: [0100A3900C3E2800] Update

Tried it multiple times in both formats and from 2 different sources. It seems to fail within the first 10 seconds of attempting. Only game to have that issue, everything else has worked just fine though. Thank you for your work.

Batch nsz to nsp

Is it possible to select multipul nsz and have them extract to individual nsp files

NRO Forwarder for RetroArch ROM displays wrong core on launch

Launching two different forwarders that use different cores causes the launch banner to display the wrong core (not a big bug since it still uses the correct core)

I believe the forwarder is also messing with core info files which causes save states to not work until core info files are downloaded again which is kinda annoying.

Ruine King won't compress

Ruined King nsp can't be converted to nsz for some reason. Attempting gives an error that it is not an nsp file. Same is true for ruined king update files. I have tried redownloading multiple times from different sources just to ensure I was not getting a bad file and they installed onto my switch no problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.