Somaria Transition Corruption

From ALttP Speedrunning Wiki
Revision as of 03:48, 6 July 2021 by Released (talk | contribs) (Red Mail STC)
Jump to: navigation, search

Using a somaria door to get the Turtle Rock big key File

Somaria Transition Corruptions (or STCs) are a class of powerful glitches performed by pushing a block from the Cane of Somaria into a door transition.

Door types

Door types that can be somaria glitched
Direction Transition Type Glitchable?
North Supertile Normal Yes.svg
Auto Yes.svg
Subtile Normal Yes.svg
Auto Yes.svg
Auto→Normal Yes.svg
South Supertile Normal Yes.svg
Auto No.svg
Subtile Normal Yes.svg
Auto No.svg
Auto→Normal No.svg
East Supertile Normal Yes.svg
Auto No.svg
Subtile Normal Yes.svg
Auto No.svg
Auto→Normal Yes.svg
West Supertile Normal Yes.svg
Auto Yes.svg
Subtile Normal Yes.svg
Auto Yes.svg
Auto→Normal Yes.svg

Technique

North Doors

North STC Demo

North STC demonstration. TR Big Key is written into the Big Chest, and the flag for holes damaging the player is overwritten, allowing for a Wrong Warp. File

Technique

  • Place the block facing north so that it's grabbable from the doorway. It's important Link isn't completely flush with the top wall when you go to place the block or it won't clip into the wall.
  • Hold a sword charge facing the side of the doorway the block is on.
  • Enter the door and ideally grab the block above y-coordinate x18. If you don't grab it this high, it's fine. You'll just lose a little time having to retry by throwing south, tapping ^ (again, you want to get Link above x18), and then grabbing the block.
  • If you're above x18 with the block in hand, tap v and Link will snap up to x10. Throw the block any direction but south, and wait for it to FULLY land. You want to wait for it to land from its bounce after it's thrown.
  • Tap ^. The screen should briefly flash black, and you'll know you've successfully done the glitch.

West Doors

West STC Demo

West STC Demonstration. Because this is done on a Supertile transition, the shutter door to Red Mail gets unlocked. File

Technique

  • Hold sword facing south and enter the doorway slightly. This is done to quickly normalize your y-coordinate position. Back out of the doorway and place a somaria block. You want to be more than 1px out of the doorway when you place it or else the block won't be properly placed.
  • Enter the doorway and grab the block. Throw it north and move left deeper into the doorway. We want to regrab the block while being left of x-coordinate x10. If you don't grab it this far left, you'll have to pickup and throw the block and try for it again.
  • With the block in hand while left of x10, tap > to snap to x08.
  • Throw the block and wait for it FULLY land (this includes the little bounce it does after it first hits the ground). Press < to activate the glitch.

West STCs have different effects and mechanics from other STCs when done on Supertile transitions. See the Effects section below for more info on this.

South and East

South and East doors are slightly more difficult to glitch, as the farthest pixel Link snaps to is 4 or 3 pixels away from the transition. Instead, Link must be positioned carefully to properly glitch the door:

Normal doors

  1. Door Juke to the snap position 2 pixels past the transition
  2. Pick up a somaria block and face out of the door
  3. Throw the somaria block
  4. While the somaria block is in the air, move 3-5 pixels (East glitching) or 2-4 (South glitching) back out of the door
  5. Tap the direction into the door to push the somaria block and glitch

As a reference when using the practice hack:

Door type Coordinates to look for
Farthest snap Farthest possible Snap after juke Most shallow glitchable Deepest glitchable
East (X coordinate; white number) xE8 xEA xF0 xEB xED
South (Y coordinate; yellow number) xE0 xE3 xE8 xE4 xE6

Auto doors

South-going autodoors cannot be glitched. An east-going subtile autodoor can be glitched if and only if the door on the other side of it is not an auto door.

  1. Use a bomb juke to snap past the transition
  2. Press ^ to face north then Y to place a somaria block on top of Link
  3. Briefly press > to push the block off of Link so that he can move
  4. Carefully tap v to move Link into position
  5. Press > to push the block and glitch the door

It is not possible to see Link while this is happening, making this type of somaria glitch the most difficult. It is important to get a feel for the inputs required.

The fmp method is to rhythmically tap >,v,>,v,>,v,>

Effects

See also: Data spoofing

North, South, East

See also: Overlay corruption

West

Subtile

Supertile

Supertile west somaria glitches are different from all others, namely because they set the game submodule to 0x04, running code related to opening and unlocking doors. They also overwrite data into the next room, but do not spoof new room data (such as chest items or pit flags). It is not possible to chain data swaps with west somarias.

Supertile west somarias cannot be properly explained without diving into the technical details of the memory a little bit. There are 2 words (2 bytes each) that we can control to effect different results:

  • $0690[0x2] - This address is essentially a timer for door animations
  • $068E[0x2] - This address holds information related to the last door Link attempted to unlock
$690
This is the more critical value of the glitch. When the door script is activated by the glitch, this address begins counting up until it reaches a value of 0x0010. If its value is between 0x0000 and 0x000F, the script will execute cleanly, and control of Link will be regained almost immediately. However, if the value is any higher (including the target value of 0x0010 itself), the game will count up until the value wraps around from 0xFFFF to 0x0000. Essentially, this is an 18 minute hardlock.
Fortunately, this value behaves in predictable ways that are controllable RTA.
  • After a hard reset, the value is 0x0000.
  • Opening a key door (big or small), solving a puzzle to open a shutter door, or opening a bomb wall in the underworld will settle the value at 0x0010.
  • Touching a big key door without the big key will set the value to 0x0000.
  • Transitioning through a subtile door will settle the value at 0x0004 unless:
  • If there are shutter trap doors in the same supertile as a subtile transition, the value will settle at 0x0010.
  • Transitioning through a supertile door will not change the value unless:
  • If the side of the room Link enters from has a shutter door (whether Link is using it or not), the value will settle at 0x0010.
  • Using the mirror on the same frame a key door is interacted with while having a key will set the value to 0x0000.
  • Using the mirror will otherwise not change the value.
  • Opening any of the big doors of Hyrule Castle or the Sanctuary will settle the value at 0x0003.
  • Regardless of what's underneath, lifting large rocks and breaking bonk rock piles will increment the value by 1.
  • Opening the grave to the sewers, the grave to king's tomb, or solving the hammer pegs puzzle for the first time will increment the value by 1.
$68E
This value controls which door will be opened when the script executes. While the distinction is ultimately unimportant, each door has 4 possible values corresponding to it, based on the side of the door Link is on and whether he is facing the door or perpendicular to it.
This value also behaves in a predictable fashion that can be controlled RTA.
  • Slashing any closed door (key doors, big key doors, shutter doors, bomb doors) will set the value to one that corresponds to the door.
  • Opening a key door, big key door, or bomb wall will set the value to one that corresponds to the door.
  • Attempting to open a big key door without the key will set the value to one that corresponds to the door, as if it were opened.
  • Opening or closing a shutter door will settle the value to 0x0016.
  • All subtile transitions will settle the value to 0x0016.
  • Supertile transitions will leave the value alone unless:
  • If the side of the room Link enters from has a shutter door (whether Link is using it or not), the value will be set to 0x0016.
  • Using the mirror will not change the value.
  • Using staircases will not change the value.
There are some unusual consequences with the doors that get opened by this glitch:
  • Subtile shutter doors will stay opened permanently, even after mirroring or saving and quitting. They also will not close behind you when they are used. If something else prompts the shutter door to open or close, it will revert to normal behavior.
  • If the other side of a subtile door shutter door is a normal door (for example, the shutter doors in the Misery Mire big chest supertile), it will become an auto door while the shutter door is stuck open.
  • If the current value of $068E[0x2] doesn't correspond to an existing door in the supertile, a glitched door that cannot be reached may appear in the northwest corner of the super tile. If out-of-bounds cheats are used to travel through the door, it usually leads to a black screen that may or may not resolve. In some tiles (e.g. Sahasrahla's house), however, it immediately takes Link to the overworld.

Applications

Arrghus Deathhole

Mire STC Chain to Hookshot & Moon Pearl

Because the supertile of Mire Torches has a moving wall in the subtile to the right (which normally moves when you light all of the torches, giving access to the Big Key), we can face left or right while in the doorway. When we do this, we lose the "door-state" and can freely use items. This allows us to quickly chain 7 North STCs together.

Technique:

  • After transitioning into the lower torch room, back up in the doorway and ideally get Link above y-coordinate 318 (not a huge deal if you don't, you'll just have to snap an extra time). Face left or right (doesn't matter which, video uses right) and place a block. You're allowed to do this because of the quirk mentioned above.
  • Pick up the block and tap v to snap to y-coordinate 310. If you weren't above 318, you'll have to do an extra snap to get here.
  • Throw the block, wait for it to fully land (this includes the little bounce), and tap ^ twice. It's important for these taps (and all the subsequent ones) that you never hold ^ for very long or you might trigger the transition upwards, which will make the trick fail.
  • After your second tap, your Somaria block will despawn. Face to either side and place another one. After placing it, tap ^ to glitch the transition again. You want to perform this step five times.
  • After the 7 total STCs, we want to teleport on the bottom left corner. The video uses Citrus clip, but you can also Dash Citrus or Traditional Clip. You CANNOT Bomb Clip this because the wall hasn't been moved. This teleport will place us in Swamp, where we can quickly get both the Hookshot and the Moon Pearl.
  • It's important to note that after transitioning into Tower of Hera, you shouldn't touch ^ at all before using the Hookshot. Link is directly in front of the pit below the Moon Pearl chest, and walking up at all will risk having him fall in.

Skull Woods Big Key STC

This trick allows the player to more quickly grab Skull Woods Big Key in MG Speedruns.

Details

  • Skull BK STC Pits visualized
    We want to use the left pit out on the Skull Woods Overworld area.
  • In the room that usually has the Compass Chest, pay attention to exactly how the movement is done. The Red Beetle is potentially dangerous if you do this incorrectly. It can hit you before you get a dash off or it follow you up and be lurking near the door after you finish the STC, both of which are pretty bad.
  • Usual North STC on the door here. This "spoofs data" from one Supertile north. The Big Key will now be in the Compass Chest, and the right door in this room will put us at Skull Woods Big Chest (it's supposed to take us to Mummy Pinball Room).
  • Be wary the STC Pits that are created in the room after you've glitched the door. You can make this visible in the practice hack through using the shortcuts feature. The image also shows them. Most notable is the pit created directly south between Link and the chest. If you dash directly south from the doorway, you won't fall into it. But be wary of pit mechanics and stuff (ie. don't hold dpad v during your dash). These pits are dangerous for two big reasons:
    • The flag for PitsDamagePlayer is set to True, which makes these pits function as voids, and they will damage Link and take him back to where he entered the room.
    • In the left doorway where we entered the room is an STC Pit. This means that if you fall, you will take damage and be taken back to this doorway, where you fall infinitely until Link dies. No bueno.
  • Open the Compass Chest (which now gives Big Key) and leave the dungeon through the Big Chest Entrance, which we can now access through the right doorway. This is important because the camera and transitions are busted after STC, so in order to make any more progress, we need to reload the dungeon. You can get to Fire Rod before reloading, it's just typically not faster to do so.

Red Mail STC

{VideoBox |file: File:West STC Demo.mp4 }

This glitch is currently used in the 100% (MG) Speedrun to get the Red Mail quickly.

Notes

  • Do a West STC on the left door in GT Torch Key Room. This will open the door to GT Big Chest. Note that this is a Supertile door, meaning that certain conditions must be fulfilled in order to prevent an extremely long hardlock. This will happen naturally within the speedrun route, but might not if you're practicing.
  • Tap A to get rid of Link's slow walk in the next room. Then just walk back through the door and enter the now-open south door to access Red Mail.

Thieves STCs to Hookshot & Moon Pearl

Technique

  • Do a West STC on the door in the Prison.
  • After the transitions, Link will be in the room to the left, but the camera is still showing the Prison Room. To correct this, move to the right until Link is touching the right wall then move back left until you can see at least some of the north door to the Big Block room in the camera. This is not just done for convenience -- it's necessary to have the camera corrected before the next step because the game will delete Somaria blocks that are off-camera.
  • Visualization of the pits that appear after the North STC. Avoid the one on the conveyor walk by hugging the right wall, and avoid the one close to the door through extra south movement on the way to the door.
    Do a North STC on the door to the Big Block Room. The tap ^ to glitch the transition is a bit more sensitive than normal, and it can be easy to accidentally transition north or double STC, both of which will ruin the whole trick. So be extra careful on the tap.
  • Now we want to use the east door back to Prison, but there are invisible STC pits in the floor we need to avoid. The easiest way to visualize this is going to be using the practice hack's "Show Somaria pits" feature in the shortcuts menu.
  • You'll now be in Swamp's Big Chest Room. If you're going to Moon Pearl, try to avoid going past the stairs to the Big Chest or the stairs going to the bottom right door before entering them. If you move correctly, when you use the bottom right door of the room, Link will instantly be moved back to the middle of the room near the stairs to Big Chest. If you move incorrectly, a long transition will occur before this happens, which of course loses a little time. Either way, you want to move to the bottom right door again.
  • In the next room, just hold < to jump and then walk up to transition.
  • Move slightly <^ to find some stairs and then move ^ to transition again. You'll now be in Moon Pearl Room across the gap from the Big Chest.
  • Hookshot to the Big Chest and open it for Moon Pearl.

Turtle Rock Big Key STC