ROM Hack [Development] Ocarina of Time 3D save editing

daxtsu

Well-Known Member
OP
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
This is one of my favourite games on the 3DS, so I thought I'd take a peek inside the save file. I did find a good starting reference: http://cloudmodding.com/zelda/oot3dsave

However, I can't figure out for the life of me how the save's checksum is generated. It seems to be made up of the last 4 bytes in the file (the last 2 are always 0, and the 2 before that vary, so it's likely a checksum; in addition, creating a new save file that differs only in the creation minute results in a differing checksum down there at the end, of course). I tried adding every byte together and seeing if the value generated by the game matched, and no dice. I tried adding every every two together (0x1234 + 0x5678 for example), as well as every four, but none of them match this blank save's value of 0x00002178. If anyone has any insight as to how the game might be figuring this value out, please let me know. I'd like to write an editor, but this is the last thing keeping me from generating "valid" saves.

Attached is save00.bin, which was created 1 minute before save02.bin. Both are unedited and un-started USA saves.
 

Attachments

  • saves.zip
    636 bytes · Views: 1,500

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
This is one of my favourite games on the 3DS, so I thought I'd take a peek inside the save file. I did find a good starting reference: http://cloudmodding.com/zelda/oot3dsave

However, I can't figure out for the life of me how the save's checksum is generated. It seems to be made up of the last 4 bytes in the file (the last 2 are always 0, and the 2 before that vary, so it's likely a checksum; in addition, creating a new save file that differs only in the creation minute results in a differing checksum down there at the end, of course). I tried adding every byte together and seeing if the value generated by the game matched, and no dice. I tried adding every every two together (0x1234 + 0x5678 for example), as well as every four, but none of them match this blank save's value of 0x00002178. If anyone has any insight as to how the game might be figuring this value out, please let me know. I'd like to write an editor, but this is the last thing keeping me from generating "valid" saves.

Attached is save00.bin, which was created 1 minute before save02.bin. Both are unedited and un-started USA saves.
could ask them, this comment suggests they know how to calculate the checksum
Contains the string "ZELDAZ". If different, the save will be considered corrupt even if the checksum is valid.
 

daxtsu

Well-Known Member
OP
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
I saw that, yeah. I'm just trying to figure out how to even match the valid checksum from either file in a short C program. I suppose I could ask over on ZSR, but I won't get my hopes up.
 

daxtsu

Well-Known Member
OP
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
Thanks you two. I opened the save in HXD, zeroed out the last four bytes, then ran its CRC-16 checksum on it and voila, it matched save00's checksum. I'll definitely make a note of this once I start the editor.
 
  • Like
Reactions: Margen67

NCDyson

Hello Boys...
Member
Joined
Nov 9, 2009
Messages
278
Trophies
1
XP
319
Country
United States
Thanks you two. I opened the save in HXD, zeroed out the last four bytes, then ran its CRC-16 checksum on it and voila, it matched save00's checksum. I'll definitely make a note of this once I start the editor.

that's exactly how I figured it out. sometimes the checksum doesn't include the empty space, sometimes it does.
 

DSoryu

GBA/NDS Maniac
Member
Joined
May 5, 2010
Messages
2,356
Trophies
2
Location
In my house
XP
4,757
Country
Mexico
Are people lazy enough for something like this? I mean, the point of every Zelda game in the first place, is to gather all the secrets and every item by your own means, that's what the experience is all about.

But well, this is just me, some other ppople may find this interesting in order to have knowledge for another save editors, maybe not.
 

Thirty3Three

Musician Member
Banned
Joined
Mar 22, 2013
Messages
3,956
Trophies
0
Location
Wherever you want me, baby.
XP
2,605
Country
United States
Are people lazy enough for something like this? I mean, the point of every Zelda game in the first place, is to gather all the secrets and every item by your own means, that's what the experience is all about.

But well, this is just me, some other ppople may find this interesting in order to have knowledge for another save editors, maybe not.
You're missing the point.
 
  • Like
Reactions: Zidapi and cearp

daxtsu

Well-Known Member
OP
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
Are people lazy enough for something like this? I mean, the point of every Zelda game in the first place, is to gather all the secrets and every item by your own means, that's what the experience is all about.

But well, this is just me, some other ppople may find this interesting in order to have knowledge for another save editors, maybe not.


Knowledge, and once you've beaten the game a bunch of times, it's fun to give yourself items you're not supposed to have until later on, for example. Offline cheats can make a game feel entirely fresh.
 
  • Like
Reactions: Margen67

DSoryu

GBA/NDS Maniac
Member
Joined
May 5, 2010
Messages
2,356
Trophies
2
Location
In my house
XP
4,757
Country
Mexico
Knowledge, and once you've beaten the game a bunch of times, it's fun to give yourself items you're not supposed to have until later on, for example. Offline cheats can make a game feel entirely fresh.

I only can think of using the hoover boots on the first dungeon or something like that, but you know, it also can be triggered by glitches, and is fun to do them as well.
I will try cheats or modified saves in OoT 64 via emulator, this way I can understand your point better :D
 

daxtsu

Well-Known Member
OP
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
I started working on an editor now that I have the CRC16 stuff figured out. The editor is pretty basic right now; it only lets you edit your current/max hearts, money, and name, but it does work and exports saves in SDF format (saveXX.bin). Once I have inventory editing done, I'll post more info and the actual editor.
 

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,426
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,785
Country
United States
I only can think of using the hoover boots on the first dungeon or something like that, but you know, it also can be triggered by glitches, and is fun to do them as well.
I will try cheats or modified saves in OoT 64 via emulator, this way I can understand your point better :D


"Hoover" boots? I thought that company only made vacuums. They make boots now? I'm sure you meant "hover" boots though. :P
 
  • Like
Reactions: DSoryu

TidusWulf

Real Aloha
Member
Joined
Jul 27, 2007
Messages
653
Trophies
1
Location
Hawaii
XP
775
Country
United States
I wonder what would happen if you save edited Adult link to not be holding the Master Sword. I remember some wild glitches coming out of that back in N64 days.
 

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,426
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,785
Country
United States
There's a menu bug where you can use Farore's wind anywhere you want (so long as there's at least one item in your inventory that can be used in the area you are in, so sorry, don't think you can do this trick while in places that disable all your items like the fishing pond. :( ).

If you move the Farore's wind item to a different slot (usually on X or Y button) that a usuable item was in. (basically swapping them around), for a split second Farore's wind will be usuable. If you see it at full opacity and quickly gray out, then you know you can eventually use it if the timing is right. But if done in a area where you can't use any items at all (so that you can't swap it with an item that is usuable in that area), it will never flicker on after exiting the item screen. Thus why it won't work in places like the fishing pond.

As soon as you hit B to exit back, you must hit the button that Farore's wind was moved to. If done soon enough you can activate it.

Do this at some random place in the game to set your warp point. Then do the final boss battle with Gannon. When he knocks your Master Sword away, that's when you use the menu trick to warp away from the boss battle! Then you can see if the swordless link bug still exists in this game. I haven't finished the game yet (just beat the forest temple lolz), so I'm a far away from getting to the point where I can try this myself. :P

Note that Adult Link and Child Link gets their own warp points, so no, you can't use this trick to warp Child link to a future adult link location if the warp point was set while as Adult link or if setting the warp with Child link and trying to warp to it as Adult Link.

Unfortunately, they still remind independent of each other.

EDIT: Apparently it is possible to warp out of the Fishing Pond. Turns out you can use Iron boots/Hover Boots there, and that's all you need, so it's possible to steal the fishing rod by warping out. ;)
 
  • Like
Reactions: Margen67

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtu.be/IihvJBjUpNE?si=CsvoEbwzNKFf0GAm cool