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,507

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,373
Trophies
2
Location
In my house
XP
4,824
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,373
Trophies
2
Location
In my house
XP
4,824
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,449
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,832
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
654
Trophies
1
Location
Hawaii
XP
792
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,449
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,832
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
  • BakerMan @ BakerMan:
    lorelei from pokemon is so fuckin bad bro
  • BladeHart @ BladeHart:
    Does anyone know how to unlock all the smash ultimate characters with a hacked switch
  • K3Nv2 @ K3Nv2:
    Spend 50 hours playing the game
  • Psionic Roshambo @ Psionic Roshambo:
    Gotta smash em all!
  • Psionic Roshambo @ Psionic Roshambo:
    STDs as Pokemon hmmm Gonorrhea kind of sounds Pokemonish lol
  • Psionic Roshambo @ Psionic Roshambo:
    Gonorrhea used scabs and sores it was super effective!
  • Psionic Roshambo @ Psionic Roshambo:
    Nintendo should do a health PSA like that lol
  • K3Nv2 @ K3Nv2:
    Nintendo becomes responsible for 2024s virus
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Only 666 dollars for 24TBs lol
  • K3Nv2 @ K3Nv2:
    Two of these half the price Seagate Barracuda Pro 12TB Internal Hard Drive Performance HDD – 3.5 Inch SATA 6 Gb/s 7200 RPM 256MB Cache for Computer Desktop (ST12000DM0007) (Renewed) https://a.co/d/cpVKNo1
  • BigOnYa @ BigOnYa:
    *Renewed. I don't like or trust "renewed, refurbished, reconditioned" anything.
  • K3Nv2 @ K3Nv2:
    I renewed your wife
    +1
  • BigOnYa @ BigOnYa:
    Renewed is like following Psi around on his dates, then when he done doing the deed, he taps me in without her cleaning up first, no thanks
    +1
  • K3Nv2 @ K3Nv2:
    That's not being renewed that's unlocking more medical bills from stds
    +1
  • BigOnYa @ BigOnYa:
    Somethings maybe, but drives are rated in hours, so most likely many hours already on them. I just don't trust em for data. Maybe a used(renewed) car or something be ok tho.
  • K3Nv2 @ K3Nv2:
    I like my girls like my car made in 2000
    +1
  • BigOnYa @ BigOnYa:
    I like my products new, not buying a box of condoms (renewed)
  • K3Nv2 @ K3Nv2:
    You already learned from buying used condoms from the first kid
  • K3Nv2 @ K3Nv2:
    Tyrone said it was barley used
    +1
  • K3Nv2 @ K3Nv2:
    Wonder whatever happened to that ownage pranks guy
  • BigOnYa @ BigOnYa:
    I dont know why people hate on Starfield, I think its dope. I didn't play it day one, only started it couple weeks ago so maybe they fixed issues with updates already.
  • K3Nv2 @ K3Nv2:
    Microsoft could release a poop simulator and people will say it's shit
  • Quincy @ Quincy:
    Hold up hooolddd uuupppp, we're less than a week from PM:TTYD releasing and it has not leaked yet? :o Miracles do still exist in this dystopia 🤣
  • BigOnYa @ BigOnYa:
    True. People hated on Fallout 76 at first also, but they still have huge numbers playing online.
    BigOnYa @ BigOnYa: True. People hated on Fallout 76 at first also, but they still have huge numbers playing online.