nozwock / yanu

Yet Another NSP Updater for Skyline
GNU General Public License v2.0
211 stars 13 forks source link

Failed to find base NCA? #30

Closed Rik-Kirtaniya closed 1 year ago

Rik-Kirtaniya commented 1 year ago

I was trying to update a game NSP with an update NSP on windows, with the 16.0.2 prod.keys and title.keys file, but I keep running into this error where it says "Failed to find base NCA" in the first NSP file. I am quite new to this and I might be doing something wrong, so I would appreciate some help.

nozwock commented 1 year ago

Send logs (by drag and dropping the file in the text box, add a .txt extension if it doesn't work), I'll take a look tomorrow morning.

Rik-Kirtaniya commented 1 year ago

Sure, here's both the screenshot of the error, as well as the log that was generated. image yanu.log.2023-05-23-18.txt

nozwock commented 1 year ago

This was only first half of the log, there should be another file. Also try using newer keys.

Rik-Kirtaniya commented 1 year ago

Isn't 16.0.2 the latest one? I tried it again after redownloading them, but this is all that appears in the command prompt. image The process pretty much aborts itself after that. And unfortunately, this is the only logfile that is generated, I tried the process over again and the new logfile is identical. I made sure to import both the necessary keyfiles as well yanu.log.2023-05-23-18.txt

I am not sure if it has something to do with the game NSPs themselves being old (?) though I can't rationalize if that would matter in any way.

nozwock commented 1 year ago

Hmm? I think 16.0.3 is the latest.

Rik-Kirtaniya commented 1 year ago

Update, so I installed Termux on Android and then installed yanu on my phone with the bash command, and then used the exact same NSPs and the exact same keys, and it worked perfectly. It patched it without a single error and I could then emulate it in Skyline perfectly, with it showing the updated version number.

Seems like this issue I faced occurred only when using the windows executable for some reason. Are there perhaps any dependencies or such that might be missing on a layman user's windows environment?

nozwock commented 1 year ago

If that's the case then try updating with GUU using the Hactool and Hac2l extractors in Config.

Rik-Kirtaniya commented 1 year ago

Just tried changing the NSP Extractor to Hactool and NCA Extractor to Hac2l in the windows executable's GUI, but it sadly gives the same error as with the other options.

nozwock commented 1 year ago

Send the logs for that configuration. I'd take a look.

Rik-Kirtaniya commented 1 year ago

yanu.log.2023-05-24-04.txt There we go. And yes, this was the only logfile that was generated.

nozwock commented 1 year ago

yanu.log.2023-05-24-04.txt There we go. And yes, this was the only logfile that was generated.

Sorry for the delayed response. I had previously instructed you to use Hactool and Hac2l extractors in Config. However, I looked over the logs and it's still using the Hactoolnet, hence the errors.

Rik-Kirtaniya commented 1 year ago

I see, so I guess selecting the right options in the GUI's Config menu is somehow not reflecting to actually changing the settings?

nozwock commented 1 year ago

That weirdly seems to be the case, I'll take a look.

nozwock commented 1 year ago

Actually no, that's just for reading the files. It tries to read first with Hactoolnet and uses Hac2l as a fallback.

nozwock commented 1 year ago

If you could provide me with the logs from both Termux and PC, I can investigate this issue further. However, you can consider the issue resolved if you prefer.