Skip to content
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

Use this tool - imposSiBrU!11 (ノP_ P)ノ彡┻━┻ #74

Closed
FranciskRae opened this issue May 24, 2020 · 7 comments
Closed

Use this tool - imposSiBrU!11 (ノP_ P)ノ彡┻━┻ #74

FranciskRae opened this issue May 24, 2020 · 7 comments
Assignees
Labels
bug Something isn't working compatibility deployment

Comments

@FranciskRae
Copy link

FranciskRae commented May 24, 2020

Hi, I'm just a player who wants to unpack one game from nsz to nsp.
I am not a programmer, but an experienced PC user who knows how to use the command line and do anything on the guides ;)
I hope that I am writing in the right place, and my message here will not interfere with anyone.
(I write using Google translation)
So, by the way, recently I also installed CEMU and one game on it, and still have difficulties unpacking game archives, and I also need a key file, and all this is not new to me, in General, I like to play unique games through emulators. This I to what there I with this was able cope with all actions for couple of hours, and here trying to unpack game for Yuzu I already sit the entire day and nor as not can achieve outcome.
At first I tried to use the portable version for Windows, but after the launch it would open the command-line window for a second and close.
Then I tried using sourcecode by downloading a portable Python interpreter , but no matter how I tried to run it nsz.py , nor what did not work although run on the command line "Python nsz.py" and specifying the full paths both to the Python executable and to nsz.py I don't know where to look at any logs either, although I've been reading about it all day.
Unfortunately, the tool does not have any simple step-by-step guide for the simple users for whom this tool would seem to be created.
Then, reading again and again, I realized that the portable version for Windows does not start due to a lack of keys.txt
And here I remember that by the way I wrote above, about a similar program but for games on CEMU, in that program, you also need keys to work, but there the program clearly says this by displaying an information plate at the beginning of the launch
In General, I provided the key file to the program, it started, I tried to unpack the nsz I needed
but after the start, the program started to work in the console window, and then closed, unpacking never happened.
then I noticed that in the same console window, the program reports that some keys are missing in the key file, for new firmware versions
Provided the program with the most complete key file with all the necessary and now the program in the console window has stopped writing about the lack of some keys
I try to unpack the nsz I need again, but the program still closes without unpacking nsz.
The only log file that I can find is the log mentioned in the console window of the program, as I understand it is the GUI log, it says that some modules are missing(which are not initially in the program directory) and one. dll which is also just not there initially.
kivy_20-05-24_8.txt
And then I do not understand, I do not have enough simple clear and accessible information, I have to download these files from some other project, they are not available for compliance with copyrights, or they just forgot to include them in a portable package?
I just used to understand a portable package as it is accepted, by the fact that the program does not require the usual installation and works just after unpacking from the archive, so it usually also carries with it in a set of all-necessary redistributions and other related libraries for Autonomous operation.
And here it was not so, I expected that I would download a simple little tool that will do its job in 5 minutes, and now it has been 12 hours and wain is still there ;)
Help me understand how to use this tool as easily as possible without installing interpreters and SDK, just using the command line to specify which file to unpack and that's it.

@nicoboss
Copy link
Owner

nicoboss commented May 24, 2020

Sorry for all the troubles you had with my tool. Next time feel free to ask way earlier if you have any issues.

As clearly stated in the readme and the error message either a prod.keys file at %USERPROFILE%/.switch/ or keys.txt in the same folder as your working directory is required for this tool to work as it would be illegal to share such keys. Every major firmware update uses a new masterkey and so requires more keys in that file to successfully decrypt the game.

I never seen above posted error before. Seems to be GUI related. Just use the tool command line only and this error shouldn't occure.

To decompress the folder containing of your compressed games:

.\nsz.exe -D C:/path/to/folder/with/compressed/games/

If you want fast help send me your Discord username and we can live chat there.

@FranciskRae
Copy link
Author

FranciskRae commented May 24, 2020

1
the same problem, the same files are missing, as was written in the Kivy log

I think chat via Discard will not speed up the process, since I use a translator, I do not know English well enough to understand English in real time ;)

@nicoboss
Copy link
Owner

nicoboss commented May 24, 2020

Never heard on anybody missing ANSI64.dll. Seems to be a part of Windows 10. I will test on Windows 7 x64 virtual machine soon. In the meantime, try if https://github.com/nicoboss/nsz/releases/download/2.1.1/nsz_v2.1.1_win64_portable.zip works for you as this DLL shouldn't be required for NSZ v2.1.1.

@FranciskRae
Copy link
Author

FranciskRae commented May 24, 2020

It's Working. Hurray! It's alive!;)
Now I'll tell you everything..
I'll just translate it now

A long time ago, many years ago, I sometimes encountered something like this, that for a game, even for a licensed game installed from disk, sometimes it turned out that there was not enough of any .dll in the game folder, sometimes it was with programs, mostly this. dll of some redistributions.
Here you even have in the folder with the program is a bunch of different necessary .dll including VCRUNTIME140.dll which is essentially needed in the program folder only if VC++ Redist 2019 is not installed on the computer
And in General, I decided to try to cope with the problem using grandfather's methods, throwing it along the right path ANSI64.DLL
by googling ansi64.dll , he says that it is part of AnsiCon, AnsiCon in turn as I understand from the description, it is an analog of the standard cmd.exe
And then I don't know where and from whom and when something went wrong, I only know that I definitely never used AnsiCon. I have Win7 SP1 x64 with almost all the latest updates. And since I'm not a programmer, it's hard for me to trace the connections, so I can just set up guesses:
Maybe you have Win10, although it looks like AnsiCon is not related to Microsoft, it is an alternative from third-party developers...
Maybe you still use it, but did not know that it will somehow affect the build for those who do not have it installed?
Maybe he used one of the components that you did not do, and perhaps the desired function is in the standard cmd.exe Win10(if you have Win10) but not in cmd.exe Win7, so this error does not appear you have a...
In General, a lot of guesswork, but as soon as I'm in the root of your program created the ansicon folder and put in it ansi64.dll I immediately earned the decompilation using the command line(.bat file) according to your example from the message above(which I needed initially), and then I checked the usage via the UI , and everything worked too!
I suffered for 12 hours, I thought that my hands were crooked, that it was a portable Python, I thought that there might be some critical errors in the program code, but it turned out that there was just not enough .dll :)
2
3
4

I also decided to check as you advised on v2, and everything works perfectly there without errors, does not ask ansi64.dll (apparently it is needed for kivy with which apparently made UI) and everything is as simple as possible without unnecessary bells and whistles. Simply perform .bat file and everything worked out... only I didn't immediately understand "where"... and then I realized that the unpacked file fit in the root directory of the program, which is quite normal.

5
6

And the last comment, that prod.the key must be put in the game directory in the form keys.txt this I realized almost "immediately"... in about two hours (from the 12 hours that I suffered) ;)
That is, I did it almost immediately after reading the instructions.
Since this method is very inconvenient: prod.keys file in %USERPROFILE%/.switch/
I'll explain why:
if the program itself does not create a folder with a dot at the beginning of the name, then (I do not know how in Win 10) in Win7 using standard Explorer methods, this can not be done. Yes, I remember that this is possible with the help of third-party file managers like total commander, but for a simple user this is an extra complexity(which can be avoided if the dot in the folder name is unnecessary)
Yes, and if this is a portable program, it was previously accepted that all the files needed by the program and created by the program are located in its folder, and do not climb into AppData and UserFiles

And most importantly, thank you for this program, which turned out to be possible to use ;)

@nicoboss
Copy link
Owner

nicoboss commented May 24, 2020

Awesome you finally got my tool working! Thanks a lot for all your testing. I highly appreciate the time you put into writing all this.

I just created a clean Windows 7 x64 Ultimate virtual machine and can confirm that I'm getting that missing ansi64.dll error there too. Thanks a lot for reporting that as I never tested NSZ v3.1.1 on Windows 7 and without your feedback I might never would have fixed that error.

It turned out that every Windows operating system prior to Windows 10 v1511 from November 10, 2015 lacked ANSI support and so ANSICON using the ansi64.dll is required in order to display non-ASCII characters to the CMD window. Sorry for all that troubles caused by me forgetting to add that DLL file for legacy operating systems.

It isn't my fault that %USERPROFILE%/.switch/prod.keys is the default key path that almost every tool uses. The folder name ".switch" has to do with Linux where the dot prefix marks a folders as hidden. In Windows you can easily create such folders by just naming them ".switch." (with a dot as suffix and prefix) unfortunately some user don't know that which is why my tool also accepts the less standardized keys.txt file which works equivalently.

I also saw that issue with the window closing immediately on the portable version and so making it impossible to see the missing key error. I will fix that in the next version too.

@nicoboss nicoboss self-assigned this May 24, 2020
@nicoboss nicoboss added bug Something isn't working compatibility deployment labels May 24, 2020
@FranciskRae
Copy link
Author

In Windows you can easily create such folders by just naming them ".switch." (with a dot as suffix and prefix) unfortunately some user don't know that which is why my tool also accepts the less standardized keys.txt file which works equivalently.

wow, I didn't know that, I checked and it works, thank you. "century live - century learn"

I also saw that issue with the window closing immediately on the portable version and so making it impossible to see the missing key error. I will fix that in the next version too.

Thank you for your attention to the problem.

I will make sure to check for a new version if I need to unpack nsz again ;)

nicoboss added a commit that referenced this issue Aug 31, 2020
…waiting for Enter before exit when started over GUI so errors and console output can be seen before it closes for #74
@nicoboss
Copy link
Owner

nicoboss commented Sep 6, 2020

Thanks a lot for all your feedback. With today’s NSZ v4.0 release every Windows Version from Windows Vesta to latest Windows 10 including Windows 7 is now supported. I also highly improved the missing prod.keys/keys.txt error message and it now waits for the user to press Enter before exiting. When starting NSZ with GUI it now always asks the user to press enter before exiting so the content on the console including potential errors can be seen.

@nicoboss nicoboss closed this as completed Sep 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compatibility deployment
Projects
None yet
Development

No branches or pull requests

2 participants