Ocarina of Time - Lost Woods Skull Kid Memory Leak @MrCheeze
Ocarina of Time - Lost Woods Skull Kid Memory Leak  @MrCheeze
Uploaded October 2020 | Updated November 2026, 2 days ago
As adult, the skull kids in lost woods will shoot needles at you. Normally, there are limits preventing too many from spawning at once:

- Each needle has a timer and will despawn if it exists for too long.
- Each skull kid is only willing to shoot 7 volleys of 3 needles at a time, and will stop shooting if it has loaded that many.
- Needles despawn when you leave the room they are loaded in.

However, it is possible to bypass all of these restrictions.
- If the needles are always off-camera, their update function will never run. This means their timer will never expire.
- If you unload and reload the room the Skull Kid is in, the new Skull Kid will have its needle limit refreshed, and would be willing to spawn 21 more. Normally this would be useless, because unloading the skull kid's room would also mean unloading all his needles, except...
- When a skull kid shoots some needles, you would expect that the needles would be assigned to the same room that the Skull Kid is in. But this is not actually the case. Instead, the room that they are assigned to is determined by a global "current room" variable. Whenever there is only one room loaded, the "current room" value is obvious. However, when you are inside one of the log tunnels, so that two different rooms are loaded at once, then the value actually switches back and forth depending on how far through the tunnel you are. This means that if you position yourself in the tunnel correctly, the needles will actually be assigned to the room on the opposite end of the tunnel from where the skull kid is located - and therefore, you can unload the skull kid's room without unloading the needles.

So, what I do here is the following:
- spawn in entrance room (room 00)
- load skull kid room (room 01)
- position myself in the tunnel so that both rooms are loaded, but the "current room" variable is 00
- wait for the skull kid to shoot 21 shots, which are assigned to room 00 despite the skull kid not being in that room
- unload room 01 to despawn the skull kid, but keep the needles loaded
- load skull kid room (room 01)
- and repeat arbitrarily many times.

There might be more memory leaks in the game that operate on this same principle, if there are other places we can load actors while having two different rooms loaded at once.
Ocarina of Time - Lost Woods Skull Kid Memory LeakCreating a virus for Pokemon Red and Blue (self replicating save file!!)Pokemon Red/Blue Virus 2.0, and the Mew that was hiding under the truck all along.Ocarina of Time - SRM Bottle Adventure (Farores Wind on B)Majoras Mask - SRM in first cycle (Sakon method)OoT Master Quest - Grotto SRM heap manip (child)Ocarina of Time any% route works on Project64 1.7Majoras Mask - Moon Warp 2Paper Mario - Climbing the ice stairs to Crystal Palace using Sushie GlitchUNDERTALE OST - Its Showtime! (Beta Version)Paper Mario - Upgrade Menu Storage ExplainedIncomplete idea for moonwarp ACE as deku (for low%)
MrCheeze |

Ocarina of Time - Lost Woods Skull Kid Memory Leak

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER