Uploaded October 2019 | Updated November 2026, 6 days ago
I found a way to edit the contents of a chest using the new stale reference manipulation (SRM)! This is one of the coolest things I've ever found in Zelda games.
Huge thanks to a bunch of people for getting involved with this. Thanks to mzx for spectrum. Thanks to Fig for his wisdom, teaching me how to use these tools and finding out important info about actor culling, pointers and more. Also thanks to Exodus, Spinout, Tharo, Natalyahasdied and a bunch of more people, without whom this trick wouldn't be possible.
The details are pretty complicated to get your head around, here's a video attempting to explain things: youtube.com/watch?v=_7E4dFD8Bmw The basics are the following:
When link carries an object, the game updates the X,Y,Z position of that object to be just above link's head every frame. That XYZ data however can be written to other places, such as the X,Y,Z floats of other objects (for example: here I'm updating the X,Y,Z of a door, making it look like link is carrying it youtube.com/watch?v=UZHK6B9G7S4).
However, the real powerful thing is that you can write this X,Y,Z stuff to other variables in the actor too. That's exactly what I'm doing here. By making link's held object pointer point to 16 bytes before where the chest is loaded in memory, the Z position data gets written to the variable which decides chest contents instead.
Since it's based on position, there are only a few items you can get from the chest in this area (due to the fact that you're limited in how far link can explore his Z coordinate in the tunnel). The items you can get from this are towards the late trade sequence. You can get prescription, poachers saw, bgs, and a few others.
Pretty neat! Please feel free to ask questions as always :)
I found a way to edit the contents of a chest using the new stale reference manipulation (SRM)! This is one of the coolest things I've ever found in Zelda games.
Huge thanks to a bunch of people for getting involved with this. Thanks to mzx for spectrum. Thanks to Fig for his wisdom, teaching me how to use these tools and finding out important info about actor culling, pointers and more. Also thanks to Exodus, Spinout, Tharo, Natalyahasdied and a bunch of more people, without whom this trick wouldn't be possible.
The details are pretty complicated to get your head around, here's a video attempting to explain things: youtube.com/watch?v=_7E4dFD8Bmw The basics are the following:
When link carries an object, the game updates the X,Y,Z position of that object to be just above link's head every frame. That XYZ data however can be written to other places, such as the X,Y,Z floats of other objects (for example: here I'm updating the X,Y,Z of a door, making it look like link is carrying it youtube.com/watch?v=UZHK6B9G7S4).
However, the real powerful thing is that you can write this X,Y,Z stuff to other variables in the actor too. That's exactly what I'm doing here. By making link's held object pointer point to 16 bytes before where the chest is loaded in memory, the Z position data gets written to the variable which decides chest contents instead.
Since it's based on position, there are only a few items you can get from the chest in this area (due to the fact that you're limited in how far link can explore his Z coordinate in the tunnel). The items you can get from this are towards the late trade sequence. You can get prescription, poachers saw, bgs, and a few others.
Pretty neat! Please feel free to ask questions as always :)









![OoT: SRM Chest in Ice Cavern (Allows GIM) [New Technique]
In this video and the previous one, SRM is used to edit the spawn parameter of actors. This is a general variable that all actors have, chests happen to use it to store what item is inside and so by editing the spawn parameter we change the chest contents.
In general, due to the technicalities of the trick, it seemed for a while that in order to edit the spawn parameter, there had to be at least 2 of that actor in the current room. I recently discovered that we can bypass this check by loading the room with the actors were editing on the same frame we catch the boomerang. So here Im doing exactly that.
This actually opens up a lot more possibilities. The coordinates in this tunnel line up nicely so that the items we can get from the chest here are:
-Red potion
-Green potion
-Blue potion
-Bottled fairy
-Lon Lon milk
-Rutos Letter
-Magic bean
-Skull Mask
-Spooky Mask
This also means we can perform GIM on those chest items, since luckily for us there is water in ice cavern. From GIM, we can get:
-Deku Stick
-Fire arrow
-Zeldas Letter
-Pocket Egg
Here is a slightly outdated document about using SRM to move stuff around (rather than change chest contents) by Fig, its gonna get updated later tonight (or soonish at some point) to include the new stuff
https://docs.google.com/document/d/1qHHEqH26KxNC3HIYztA1SeP0ReDK24hnX8oP-DmtkSE/edit OoT: SRM Chest in Ice Cavern (Allows GIM) [New Technique]](https://i.ytimg.com/vi/J-cEWfIaKr4/mqdefault.jpg)
