HiYou might want to try nsZip if you just want to automatically lossless reduce the NSP size by around 20% to 50% but it only deletes files that later can be restored when uncompressing like the NDV0 fragment files inside updates used to directly update from the previous to the current update. Such compressed files can't be directly played on the Switch yet. If you really want to irreversibly remove content just extract, modify and repack the game manually.
NDV0 fragment files are awesome and I know everything about them but honestly, they are quite useless for normal users. They are just to patch the previous update to the next update and so saving a lot of CDN bandwidth by only storing the update difference and instructions how to patch. You can use hactoolnet from https://github.com/Thealexbarney/LibHac/releases to apply them to a previous update to get the new update or nsZip to trim them to their patch instructions removing the diff data as it can be reconstructed from the patched NCA. However most likely they are completely useless for you so feel free to delete them as your game will work even without them. If you need any more information how they work feel free to ask.Hi
You have extracted an update nsp file fifa20 switch
I got a file fragment
I couldn't find any way to extract the file
You have no solution
Thank you brother for the answerNDV0 fragment files are awesome and I know everything about them but honestly, they are quite useless for normal users. They are just to patch the previous update to the next update and so saving a lot of CDN bandwidth by only storing the update difference and instructions how to patch. You can use hactoolnet from https://github.com/Thealexbarney/LibHac/releases to apply them to a previous update to get the new update or nsZip to trim them to their patch instructions removing the diff data as it can be reconstructed from the patched NCA. However most likely they are completely useless for you so feel free to delete them as your game will work even without them. If you need any more information how they work feel free to ask.
If you want to just compress the game take a look at https://gbatemp.net/threads/nsz-hom...-compressor-decompressor.550556/#post-8831771
I have loaded hactoolnetNDV0 fragment files are awesome and I know everything about them but honestly, they are quite useless for normal users. They are just to patch the previous update to the next update and so saving a lot of CDN bandwidth by only storing the update difference and instructions how to patch. You can use hactoolnet from https://github.com/Thealexbarney/LibHac/releases to apply them to a previous update to get the new update or nsZip to trim them to their patch instructions removing the diff data as it can be reconstructed from the patched NCA. However most likely they are completely useless for you so feel free to delete them as your game will work even without them. If you need any more information how they work feel free to ask.
If you want to just compress the game take a look at https://gbatemp.net/threads/nsz-hom...-compressor-decompressor.550556/#post-8831771
Fragment files are not packed in any way but contain patch instraction for NCA files. The diff data inside the fragment file is encrypted and there's no tool to directly decrypt fragment files however it wouldn't be hard to modify nsZip to do so. But in the end, it won't help you much as you would only have fragments of the new NCA which won't help you much anyways. So just apply them to the previous NCA to get the updated NCA if you don't have the updated NCA already anyways (which you should).Thank you brother for the answer
I just want to extract the files in order to make a patch
Updated the old and the second updatedFragment files are not packed in any way but contain patch instraction for NCA files. The diff data inside the fragment file is encrypted and there's no tool to directly decrypt fragment files however it wouldn't be hard to modify nsZip to do so. But in the end, it won't help you much as you would only have fragments of the new NCA which won't help you much anyways. So just apply them to the previous NCA to get the updated NCA if you don't have the updated NCA already anyways (which you should).
Take a look at the hactoolnet manual to understand how to aplly NDV0 patches:
Options:
-t, --intype=type Specify input file type [nca, xci, romfs, pfs0, pk11, pk21, ini1, kip1, switchfs, save, ndv0, keygen, romfsbuild, pfsbuild]
NDV0 (Delta) options:
Input delta patch can be a delta NCA file or a delta fragment file.
--basefile <file> Specify base file path.
--outfile Specify patched file path.
If I remember correctly you can use it like this:Updated the old and the second updated
How to apply now
I'm sorry that I am very novice
Brother, thanks for your efforts with meIf I remember correctly you can use it like this:
.\hactoolnet.exe -t ndv0 --basefile NcaOfOldVersion.nca --outfile PatchedNcaFile.nca fragment
It's not that complicated. You only have to specify the NCA of the old version and the fragment file containing the patch you want to apply and obviously the output file where you want to save your patched NCA as shown by the command I posted above. I highly doubt you need to manually apply the patch anyways as most if not all dumps already contain the patched NCAs as soon the game installs on real hardware the NDV0 patch will be automatically applied and deleted afterwards. It's quite special for a normal user to obtain NDV0 files in the first place. They are so beautiful but probably also so useless for you.Brother, thanks for your efforts with me
But I didn't understand anything
Because I do not have a device switch
I just let you extract the file fragment
But it seems complicated
Yes I guess I don't know how to deal with hactoolnetIt's not that complicated. You only have to specify the NCA of the old version and the fragment file containing the patch you want to apply and obviously the output file where you want to save your patched NCA as shown by the command I posted above. I highly doubt you need to manually apply the patch anyways as most if not all dumps already contain the patched NCAs as soon the game installs on real hardware the NDV0 patch will be automatically applied and deleted afterwards. It's quite special for a normal user to obtain NDV0 files in the first place. They are so beautiful but probably also so useless for you.
getting errors..It's not that complicated. You only have to specify the NCA of the old version and the fragment file containing the patch you want to apply and obviously the output file where you want to save your patched NCA as shown by the command I posted above. I highly doubt you need to manually apply the patch anyways as most if not all dumps already contain the patched NCAs as soon the game installs on real hardware the NDV0 patch will be automatically applied and deleted afterwards. It's quite special for a normal user to obtain NDV0 files in the first place. They are so beautiful but probably also so useless for you.
What error are you getting? Also keep in mind that you need prod.keys inside %userprofile%/.switch/ for this to work as otherwise hactoolnet can't decrypt nca files.getting errors..
Set "StrBasefile=572448c2d9ad4f4470416b9388a47c43.nca"
Set "StrInputfile=fragment"
Set "StrOutfile=.\out"
hactoolnet.exe "%StrInputfile%" -t ndv0 --basefile "%StrBasefile%" --outfile "%StrOutfile%"
pause
i get :What error are you getting? Also keep in mind that you need prod.keys inside %userprofile%/.switch/ for this to work as otherwise hactoolnet can't decrypt nca files.
You are most likely using the wrong fragment for the wrong nca. Let's say you have a fragment from v131072 now you need to apply this fragment to an NCA from the same game but one version lower which would be v65536 in this case. v65536 contains A LOT of NCAs and there’s no easy way for you to know so just try to apply the patch to all NCAs you can find inside v65536 and one should work.i get :
ERROR: Original file size does not match the size in the delta header.
