Difference between revisions of "Ancilla glitches"

From ALttP Speedrunning Wiki
Jump to: navigation, search
(Created page with "(Work in process) == Summary == This page explains glitches that has to do with ancilla. An Ancilla means "objects that Link produces/uses". Some examples are Boomerang, Bo...")
 
 
(84 intermediate revisions by 4 users not shown)
Line 1: Line 1:
(Work in process)
 
 
== Summary ==
 
 
 
This page explains glitches that has to do with ancilla.
 
This page explains glitches that has to do with ancilla.
  
An Ancilla means "objects that Link produces/uses". Some examples are Boomerang, Bombs, Somaria block/spark, Sword spark, Boots dust. Enemies, Heart drops etc. are sprites.
+
For now, go to for the also-ancilla-related glitch that was found in 2018. This page is a summary of the glitches found mid 2019.
 
 
== History of the glitch ==
 
 
 
Yuzuhara found that using items in certain combinations was creating weird effects, like getting two somaria blocks/bombs, having bombs explode indefinitely etc. He did not understand how it worked, and I guess it was mostly not known about in the Discord at the time, but he posted everything on his twitter account.
 
 
 
Someone talked about it half a year later, and the videos were linked into Discord. We started looking more in depth on what was happening, and this investigation produced a few new glitches. All of them having something to do with what we call an Ancilla,
 
 
 
Some technical explanations are found in https://pastebin.com/BeBFwZX6
 
 
 
== Some terminology ==
 
 
 
=== Slots ===
 
 
 
When you try to put down a bomb, the game looks for an empty "slot" in the game's memory. There's 10 slots for ancillae, which means you can only have 10 ancillae on the screen at any point in time.
 
 
 
For practical reasons, we've named them slot 0 through slot 9.
 
 
 
For example, you spawn an arrow, and the arrow might be put into slot 4. You spawn another arrow, and slot 4 is occupied and the new one is put into slot 3.
 
 
 
=== Misslotting ===
 
 
 
What we found, is that the game was coded to have certain items in certain slots. Bombs for example, needs to be in slot 0 or slot 1. Most other items from Link's inventory was only coded to be in slot 0, 1, 2, 3 or 4. However, there are ways to force them to occupy slot 5+. Since this was unintended from developers (and it doesn't really happen in normal gameplay), unintended things happen.
 
 
 
We call the concept of putting an item into a slot it was not coded to be in "mis-slotting" (or "misslotting").
 
 
 
== Level 1 ==
 
 
 
- Heart despawn glitch.
 
 
 
A method to despawn heart containers, making our Low% runs lower. This was decided to be NMG.
 
 
 
Example video: https://milde.no/public/alttp/clips/low_hpskip_armos.mp4
 
 
 
This one does not use "misslotting", but was just a random discovery during our investigations into misslotting. It works by filling up ancilla slots in clever ways that only despawn the heart container, but not the pendant/crystal that follows (else you would softlock on most bosses where doors are closed and menues not possible).
 
 
 
Pastebins: https://pastebin.com/aNApJZLz https://pastebin.com/BeBFwZX6
 
 
 
 
 
- Weirdshot/hookclip (idk if community has completely decided on name - "Weirdshot" is a copy/paste of similar glitch in OoT).
 
 
 
The hookshot can pass through one tile blocks.
 
 
 
Example video: https://milde.no/public/alttp/clips/gthookclip.mp4
 
 
 
What happens is that the hookshot object is traveling in EG for 3 out of 4 frames. There is another variant of this where the hookshot is _only_ traveling in EG. If you hit something in the other layer, it will drag Link to it and also change Link's layer.
 
 
 
Some technical stuff is here https://pastebin.com/ua73VDi1 but it's not complete. We know more about the technical aspects of this but it's not been written down to a pastebin yet.
 
  
 +
In this game, we use the word ''ancilla'' (plural: ''ancillae'') for objects that Link produces/uses. Some examples are Boomerang, Bombs, Somaria block/spark, Sword spark, and Boots dust.
  
- Wonkashot/hook push (not completely decided either, it seems - "Wonkashot" is a reference to Wonkavator)
+
Enemies, Heart drops, etc... on the other hand, are sprites.
  
Example video: https://milde.no/public/alttp/clips/wonkaspike.mp4
+
== Types ==
 +
Ancillae are a broad category, so this page only covers the broad overview.
  
The reason this works is very technical. But basically, the "hookshot dragging Link to an object" code is glitched out and Link is dragged for a longer duration and often a different direction. This code does not check any collision at all, so Link can clip through walls. You can also use this to get link into EG.
+
Specific types of ancilla-related glitches:
 +
* [[Fake Flippers]]
 +
* [[Spooky Action at a Distance]]
 +
* [[Ancilla Overload]]
 +
* [[Ancilla Misslotting]]
  
We can completely control the direction, the duration, and whether or not Link should be put into a different layer, by changing the setups.
+
== History ==
  
Pastebin explaining everything (technical): https://pastebin.com/KsRGZNKu.
+
Yuzuhara found that using items in certain combinations created weird effects, like getting two somaria blocks/bombs, having bombs explode indefinitely etc. He did not understand how it worked, and it was mostly not known about in the Discord at the time, but he posted everything on his twitter account [https://twitter.com/i/moments/1102351886999379968 here]
  
 +
Someone mentioned it on Discord after 4-5 months had passed, and the videos were linked into Discord. We started looking more in depth on what was happening, and this investigation produced a few new glitches. All of them having something to do with Ancillae.
  
- Murderbomb
+
== Terminology ==
  
Example video: https://milde.no/public/alttp/clips/murderbomb.mp4
+
=== Ancillae & Slots ===
  
By putting a bomb into slot 9, we can reset the "explosion duration" timer by simply using a hookshot or producing sword beams indefinitely.
+
An ancilla is "A self-acting entity whose routines and existence are established and controlled from the 10 item array at <code>$0C4A</code>." Broadly speaking, these are going to be objects that are spawned by Link's items. Bombs, arrows, the boomerang, fire and ice rod shots, the dust Link kicks up while dashing, etc. -- These are all ancillae.
  
 +
There are 10 positions in the game's memory for ancillae, and we call these Slots. For practical reasons, we name/number them Slots 0-9.
  
- Level 3 misslotting
+
===Front and Back Slots===
  
This is the really broken stuff. It will probably not be allowed in any category of glitches, since it's possible to write custom code to do whatever you want the game to do. Perhaps some of it will be allowed in unrestricted categories.
+
Ancillae won't just choose whichever open slots to occupy. They can be broadly classified into Front Slot Ancillae (these occupy the first 5 slots: Slots 0-4) and Back Slot Ancillae (these occupy the final 5 slots: Slots 5-9). Front Slot Ancillae are generally significant objects in gameplay. Ancillae that load here will be things like Bombs, Arrows, Somaria Blocks, Sword Beams, Dash Dust, etc. Back Slot Ancillae are less significant to gameplay, often being objects that just add a bit of visual flare. Back Slot Ancillae include things like the sparkles that appear on Link's sword when he's charging a spin attack or the sparkles that appear on a shot from the Ice Rod.
  
Some examples: https://milde.no/public/alttp/clips/ace.mp4 https://milde.no/public/alttp/clips/freecrystals.mp4
+
===Particle Ancillae===
  
 +
Arrows that are stuck in a wall, the sparkles that appear with an Ice Rod shot, and the sparkles that appear with a Silver Arrow, the Red Boomerang, or when Link is charging his sword are all what we call Particle Ancillae. A key attribute of Particles that differentiates them from other ancillae is that they can be replaced. This is an important factor in ancillae glitches, as we'll see below.
  
You can also create red boomerangs from blue ones, and extending its length. But this has been largely ignored and it has no name or really any technical description. :)
+
===Search Index===
  
 +
The Search Index is what we call value at <code>$03C4</code> in the game's memory. It determines where to begin a secondary search if the game can't find an open Slot to place a new ancilla. The exact logic that happens with the Search Index is important, so let's look at the steps:
 +
# You go to use a Front Slot ancilla, but Slots 0-4 are already filled. What does the game do now?
 +
# Decrement the value of the Search Index by 1.
 +
# If the Search Index is now negative, set it to the quota of the ancilla we're trying to place, minus one (ie. we can have two bombs on screen at the same time, meaning the quota for bombs is 2 and also meaning that if this step was run while we're trying to place a bomb, the resulting Search Index value would be <code>01</code>)
 +
# Now the game looks at the Ancilla Slot corresponding to whatever the Search Index value is. It will search from this Slot down to Slot 0 looking for Particle ancillae it can overwrite with the ancilla we're trying to use. If it finds one, it will replace it, and the Search Index will be set to the value of whichever Slot this replacement was done at. If not, the new ancilla won't be loaded in and the Search Index will now be decremented all the way to <code>00</code>.
  
"Visual" guide to the new glitches:
+
To look at an example:
 +
# We try to place a Somaria block, but Slots 0-4 are filled with [bomb, bomb, wall arrow, boomerang, dash dust]. Our Search Index is at <code>04</code>
 +
# The Search Index is decremented to <code>03</code>.
 +
# The Search Index is not negative, so this step isn't used.
 +
# Our Search Index is <code>03</code>, so the game looks at Slot 3, where there's a Boomerang. That's not a particle, so the search moves down the list. At Slot 2 is a wall arrow. Hey that's a particle ancilla. The game will despawn that and load our Somaria block in its place. Our Search Index is now <code>02</code>.
  
Ancilla glitches
+
In addition to checking for available Slots for ancillae, there is another routine the Search Index is involved in, and it has to do with Wall Arrows. If the player tries to create more than 3 wall arrows on-screen, the Search Index will be set to <code>04</code>, and the index will decrement as the game looks for Wall Arrows to replace with the new Wall Arrow.
* uninitialized altitude
 
  * spooky action glitch
 
* despawn
 
  * heart despawn glitch
 
* misslotted ancilla
 
  * weirdshot
 
    * weirdshot (alternating layer)
 
    * weirdshot (opposite layer)
 
  * wonkashot
 
  * murder bomb
 

Latest revision as of 14:34, 27 August 2021

This page explains glitches that has to do with ancilla.

For now, go to for the also-ancilla-related glitch that was found in 2018. This page is a summary of the glitches found mid 2019.

In this game, we use the word ancilla (plural: ancillae) for objects that Link produces/uses. Some examples are Boomerang, Bombs, Somaria block/spark, Sword spark, and Boots dust.

Enemies, Heart drops, etc... on the other hand, are sprites.

Types

Ancillae are a broad category, so this page only covers the broad overview.

Specific types of ancilla-related glitches:

History

Yuzuhara found that using items in certain combinations created weird effects, like getting two somaria blocks/bombs, having bombs explode indefinitely etc. He did not understand how it worked, and it was mostly not known about in the Discord at the time, but he posted everything on his twitter account here

Someone mentioned it on Discord after 4-5 months had passed, and the videos were linked into Discord. We started looking more in depth on what was happening, and this investigation produced a few new glitches. All of them having something to do with Ancillae.

Terminology

Ancillae & Slots

An ancilla is "A self-acting entity whose routines and existence are established and controlled from the 10 item array at $0C4A." Broadly speaking, these are going to be objects that are spawned by Link's items. Bombs, arrows, the boomerang, fire and ice rod shots, the dust Link kicks up while dashing, etc. -- These are all ancillae.

There are 10 positions in the game's memory for ancillae, and we call these Slots. For practical reasons, we name/number them Slots 0-9.

Front and Back Slots

Ancillae won't just choose whichever open slots to occupy. They can be broadly classified into Front Slot Ancillae (these occupy the first 5 slots: Slots 0-4) and Back Slot Ancillae (these occupy the final 5 slots: Slots 5-9). Front Slot Ancillae are generally significant objects in gameplay. Ancillae that load here will be things like Bombs, Arrows, Somaria Blocks, Sword Beams, Dash Dust, etc. Back Slot Ancillae are less significant to gameplay, often being objects that just add a bit of visual flare. Back Slot Ancillae include things like the sparkles that appear on Link's sword when he's charging a spin attack or the sparkles that appear on a shot from the Ice Rod.

Particle Ancillae

Arrows that are stuck in a wall, the sparkles that appear with an Ice Rod shot, and the sparkles that appear with a Silver Arrow, the Red Boomerang, or when Link is charging his sword are all what we call Particle Ancillae. A key attribute of Particles that differentiates them from other ancillae is that they can be replaced. This is an important factor in ancillae glitches, as we'll see below.

Search Index

The Search Index is what we call value at $03C4 in the game's memory. It determines where to begin a secondary search if the game can't find an open Slot to place a new ancilla. The exact logic that happens with the Search Index is important, so let's look at the steps:

  1. You go to use a Front Slot ancilla, but Slots 0-4 are already filled. What does the game do now?
  2. Decrement the value of the Search Index by 1.
  3. If the Search Index is now negative, set it to the quota of the ancilla we're trying to place, minus one (ie. we can have two bombs on screen at the same time, meaning the quota for bombs is 2 and also meaning that if this step was run while we're trying to place a bomb, the resulting Search Index value would be 01)
  4. Now the game looks at the Ancilla Slot corresponding to whatever the Search Index value is. It will search from this Slot down to Slot 0 looking for Particle ancillae it can overwrite with the ancilla we're trying to use. If it finds one, it will replace it, and the Search Index will be set to the value of whichever Slot this replacement was done at. If not, the new ancilla won't be loaded in and the Search Index will now be decremented all the way to 00.

To look at an example:

  1. We try to place a Somaria block, but Slots 0-4 are filled with [bomb, bomb, wall arrow, boomerang, dash dust]. Our Search Index is at 04
  2. The Search Index is decremented to 03.
  3. The Search Index is not negative, so this step isn't used.
  4. Our Search Index is 03, so the game looks at Slot 3, where there's a Boomerang. That's not a particle, so the search moves down the list. At Slot 2 is a wall arrow. Hey that's a particle ancilla. The game will despawn that and load our Somaria block in its place. Our Search Index is now 02.

In addition to checking for available Slots for ancillae, there is another routine the Search Index is involved in, and it has to do with Wall Arrows. If the player tries to create more than 3 wall arrows on-screen, the Search Index will be set to 04, and the index will decrement as the game looks for Wall Arrows to replace with the new Wall Arrow.