-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Help wanted] Test all kinds of cartridge save #6
Comments
I just tested my copy of Cubic Ninja (released shortly after the 3DS itself), which has crypto version 0. Unfortunately, I get the following error:
Let me know how I can help with debugging this. |
Unfortunately I still get the same error as before. I could probably log the |
@Cu3PO42 Sure, I'd like to look into the file |
Sent you an e-mail to your GMail address. |
@Cu3PO42 Unfortunately I couldn't figure it out with what you sent to me... I need to look at the ROM header and the private header but I guess you can't send me them. If you have any idea please tell me. |
@Cu3PO42 What's is the region of your cubic ninja (JPN/USA/EUR...)? Line 143 in 4ee749a
Instead of reading 8 bytes, read 4 bytes instead, and fill the rest with 0xFF
If this doesn't work. Maybe you could bruteforce the last four bytes...? |
My copy of Cubic Ninja is the European version. I can, indeed, not send you those files for the reason boot9 doesn't come hardcoded in this project. I am, however, happy to run any number of tests or check specific things in the headers. I tried the change you suggested with a minor fix to get it to compile: In Rust assignments don't return their values, but the unit object Unfortunately, it still yields the same error. Bruteforcing those four bytes is something I can look into. My Rust skills need a bit of work anyway, so implementing that is as good an exercise as any. I'll probably try that after Christmas. Happy holidays to you! |
@Cu3PO42 hmm one thing looks weird to me. The save you sent to me is a 1MB card1 save, which I originally believed was a chip type only available to very later game (like Pokemon Sun/Moon you previously mentioned). I found a friend that had a copy this game. To avoid legal issue I only let him run ctrtool and give me the save data size info, and it turned out in the game's exheader it says the save data size is 128 KB, which is a different size from what you sent to me. I want you to verify your copy using ctrtool by running the command
and report what it prints. Additionally, run the same command on Pokemon Sun and report the savedata size. Thank you! |
Actually, I feel you might have sent me a pokemon sun save instead of cubic ninja's, because its wear levelling relocation table has some strange similarity with the old pokemon sun save you sent to me. |
I just checked and you're right, ctrtool gives me a 128KB save size for Cubic Ninja. I double checked my 3DS' SD card and found the correct save, which decrypts with the code from current For future reference I also checked Sun and it reports 1016K. I'm really sorry for the confusion I caused, but I have absolutely no idea what happened there. The file I have labeled as a Cubic Ninja save is not equal to any of the files from After a quick consultation of the script I use to take backups of these files, I didn't manage to spot an obvious bug either... I really am a bit stumped. I hope I didn't cause too much unnecessary work or frustration. I'll try to borrow a few more games from friends and test them when I get back home in the new year! |
No description provided. |
Due to my limited resource of cartridge games, I couldn't test all kinds of wear leveling / encryption schemes. Specifically, the following cases need test:
--key19x
and--key1ax
to test this.The text was updated successfully, but these errors were encountered: