jamchamb / gc-memcard-adapter

Read and write to GameCube memory cards with a Raspberry Pi
MIT License
43 stars 3 forks source link

Random data returned #2

Open EasyMochi opened 2 years ago

EasyMochi commented 2 years ago

Hello there! I did everything I could to make it exactly as shown in your post, double and triple checked the soldering, used different cables, and still have the same issue. Everytime I use the script, I get a different result haha. I am obviously doing something wrong, as your code is working for other people. I wish I had another way to contact you, sorry about that...

So yes, I am super confused about what is happening here...

image

Sorry about my noob-ness and thanks a lot for making such an amazing post/code !

Quick edit, this is an original memory card that I'm using here.

jamchamb commented 2 years ago

I think it's because you're using an official memory card and I haven't implemented the unlock command properly. I've only tried this with third party cards where the unlock command didn't matter, but for the official card it looks like I'll need to fix the unlock command.

EasyMochi commented 2 years ago

Got it, thanks! Is there any way I can help you ?

jamchamb commented 2 years ago

If you want to try reproducing the unlock command, it looks like the algorithm is already implemented in the __dounlock function here: https://github.com/devkitPro/libogc/blob/master/libogc/card.c#L2264. I'll try reimplementing it but it will take me a little time to try out on an official card.

EasyMochi commented 2 years ago

Unfortunately I am no dev, I will see what I can do tho, and if you need an official card I can definitely lend you one, or otherwise try out things for you if you happen to not own one :)

EasyMochi commented 2 years ago

image This is another issue I have, with another (Unofficial) Memory Card. Weird. Maybe I am doing something wrong in the end? It literally just does that every time.