-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task fails encrypting file #3
Comments
Thanks a lot for reporting this issue. Could you please let me know on what game (Name or TitleID) this issue occurs so I can reproduce and fix it? What you get is a verification error which means something went wrong without the program noticing it and so purposely crashed during verification to prevent delivering you a corrupted output. The reason why the error is mentioning my username is because the debug information that are shipped with the software where created on my PC and so doesn’t matter. |
Thanks for the reply. It is a .NSP of Super Smash Bros Ultimate [v0]. Title
ID: 01006A800016E000. Filesize is 13.6gb reported by Windows. Lmk if you
need anything else or want me to try something.
…On June 12, 2019 7:50:51 AM Nico Bosshard ***@***.***> wrote:
Thanks a lot for reporting this issue. Could you please let me know on what
game (Name or TitleID) and for which input format (NSP or XCI) this issue
occurs so I can reproduce and fix it? What you get is a verification error
which means something went wrong without the program noticing what caused
it to purposely crash during verification to prevent delivering you a
corrupted output.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I found another NSP that fails in the same way: Katana Zero [v65535] |
I tested both games and they worked perfectly fine for me using nsZip v2.0.0p2. This is probably due to the NSPs you are trying to compress aren’t clean. The first half of the NCA files sha256 hash is supposed to match the NCA filename. This is no longer the case if the NSP was modified for example to use mods without LayeredFS or in the past to remove fake tickets from illegally obtained games in the wrong hope to make banns less likely und are still circulating around some dark places on the internet. Maybe there are also some dumping tools not dumping them properly or they were damaged before dumping for some reason. I could easily add support for corrupted NSP files to nsZip by hashing the encrypted original NCA if the filename doesn't match the hash but let's first make sure my assumption are true for this issue because in the end it could also be some compatibility issue that's causing something to not work properly on your PC and we need to investigate further. I wrote and attached a nice Python script for you which you can use to verify if your NSP file is corrupted or not: verifyNSP.txt Last few lines of output I'm getting from verifyNSP.py I'm getting from my script:
Edit: Sorry forgot to mention that you also need to copy hactool.exe into the folder of your NSP in order to successfully run verifyNSP.txt |
Alright I was able to grab what you asked for in your write-up above. I found many more examples of NSPs that would not process (although the majority of NSPs do process fine), so this time I used two different games. I did not dump these myself but obtained them online about a year ago so I don't remember where. They both say "Clean NSP" Graceful Explosion Machine [v4]
Gorgoa [v4]
|
@nicoboss Hi there, checking in, is there anything else I can test or do to help? |
Great that you are still willing to help with this issue! I really tried hard but was never able to recreate it so far even when testing games where nearly all NCAs match your above posted hashes. Most helpful would probably be testing nsZip_v2.0.0_debug_v1_Issue3.zip and see if the issue happens there too. This will let us know if this issue only affects the portable preview builds which don’t have any software requirements checks or also happens on clean release build like the one posted above. Please keep in mind that even though this was built like a release build it’s the complete opposite in terms of stability and won’t receive any updates others then builds made for the sake of fixing this issue and so should be uninstalled once this issue is resolved. Giving me your PC configurations would be helpful as I could use them to recreate an envirement similar to your PC inside a virtual machine. To get hardware/software information go Windows & R => enter dxdiag => "Save All information" also go Powershell and enter the following command to get a list of all installed programs - I'm especially interested in the .NET ones.
If you have the time you could send me your Discord username and we could try solving the issue together with tools like live chat, screenshots, voice chat and screen sharing. I currently have a lot of time until university starts again in around a month but I definitely don't expect you having time for such things and completely understand if you prefer keep writing here. |
I am having the same issue with astral chain, how do I go about fixing it? Also so when you install the compress nsz will it install as a smaller game on my switch card? |
I am converting a large NSP file (16gb), but it fails towards the end of the encryption phase. It successfully decrypts, and runs through all the blocks, then when encrypting (I've tried this multiple times) it will catch approx here.
PS- Not sure why the error mentions Users\nico\ as I do not have a user named that.
The text was updated successfully, but these errors were encountered: