XorTroll / emuiibo

Virtual amiibo (amiibo emulation) system for Nintendo Switch
GNU General Public License v2.0
1.14k stars 84 forks source link

Mii error on setting and decrypting. #261

Closed impeeza closed 1 year ago

impeeza commented 1 year ago

Hello there, first thanks a lot for all your effort and great work.

I am using a Erista V1 unpatched console, with the next software:

Well, the steps to reproduce the problem are:

On my New Nintendo 3DS XL Firmare 11.16.0.4-49U using HOME Menu -> amiibo Settings Register Owner, Nickname and Mii on a physical Amiibo (NFC tag):

image

After that on the same New Nintendo 3DS XL using the Thenaya homebrew, dump the NFC tag to the 040655DF6EAF61_203306291648.bin file (572 bytes):

image

Copy the 040655DF6EAF61_203306291648.bin file to the SD:/emuiibo/amiibo/ folder on my Nintendo Switch Console.

image

Restart the console, after the restart the SD:/emuiibo/amiibo/ folder now have a 040655DF6EAF61_203306291648 folder with the NFC dumped amiibo files on it:

image

image

Now setting emuiibo trough the OVL to use the new amiibo then go to Settings -> amiibo -> Register Owner and Nickname then "connect" the emuiibo's amiibo:

image

As you can see the Owner and the Mii are incorrect, but the Nickname is correct.

image

if you look on the recently created amiibo folder the mii-charinfo.bin file contains:

image

Now using Switch Settings, change the Owner and Mii for the emuiibo's amiibo:

image

image

After that, "disconnect" the emuiibo's amiibo and test the new settings, going again to Settings -> amiibo -> Register Owner and Nickname; and then "connect" the emuiibo's amiibo:

image

image

As can see on the next image, the Owner name is correct, but the Mii have a minor change:

image

The original set up Mii vs the actual Mii:

image

Comparison between the mii-charinfo.bin on the emuiibo's amiibo folder (SD:/emuiibo/amiibo/040655DF6EAF61_203306291648) left and the corresponding mii-charinfo.bin on SD:/emuiibo/miis/2/ folder dumped by the same emuiibo (I did that file compared with other miis dumped by other tools and are the same)

image

As you can see the processed mii-charinfo.bin by emuiibo when using settings applet, differs from the one dumped by emuiibo from console.

If I do replace the mii-charinfo.bin whit the one dumped the amiibo have the correct Mii.

For summary, seems there are two problems:

Hope has been clear, let me know if I can do more testing.

Obviously I don't put here the binary files but if you need them, I can share with you.

Regards from Colombia

XorTroll commented 1 year ago

Thanks for such a detailed issue ;) Could you contact me in Discord so we can discuss this more directly?

impeeza commented 1 year ago

Normally I do not use discord but no problem will try to get you there 😁

XorTroll commented 1 year ago

Last commit fixes the 2nd issue, it was a typo I made with mii type conversions in the Rust nx libs The other one is going to be tougher too look into

impeeza commented 1 year ago

Hello there, Edited, remove my amiibo files, and started again, and now the miis are shown correctly, thanks a lot.

regards

impeeza commented 1 year ago

Thanks a lot for all your help. Closing the Issue.