Difference between revisions of "User:Kan/Ancillae Schtuff"

From ALttP Speedrunning Wiki
Jump to: navigation, search
Line 229: Line 229:
  
 
==Carolinum Bombs==
 
==Carolinum Bombs==
<div style="padding:0 10%; text-align:right"><q style="font-style: italic;">His companion, a less imaginative type, sat with his legs spread wide over the long, coffin-shaped box which contained in its compartments the three atomic bombs, the new bombs that would continue to explode indefinitely and which no one so far had ever seen in action. Hitherto Carolinum, their essential substance, had been tested only in almost infinitesimal quantities within steel chambers embedded in lead. Beyond the thought of great destruction slumbering in the black spheres between his legs, and a keen resolve to follow out very exactly the instructions that had been given him, the man’s mind was a blank. His aquiline profile against the starlight expressed nothing but a profound gloom.</q>
+
<div style="padding:0 10%; text-align:right"><q style="font-style: italic;">His companion, a less imaginative type, sat with his legs spread wide over the long, coffin-shaped box which contained in its compartments the three atomic bombs, the '''new bombs that would continue to explode indefinitely''' and which no one so far had ever seen in action. '''Hitherto Carolinum''', their essential substance, had been tested only in almost infinitesimal quantities within steel chambers embedded in lead. Beyond the thought of great destruction slumbering in the black spheres between his legs, and a keen resolve to follow out very exactly the instructions that had been given him, the man’s mind was a blank. His aquiline profile against the starlight expressed nothing but a profound gloom.</q>
 
<span>&mdash;[http://www.gutenberg.org/files/1059/1059-h/1059-h.htm H.G. Wells, ''The World Set Free'']</span>
 
<span>&mdash;[http://www.gutenberg.org/files/1059/1059-h/1059-h.htm H.G. Wells, ''The World Set Free'']</span>
 
</div>
 
</div>

Revision as of 22:55, 22 June 2019

Last update: Saturday 22 June 2019 at 22:55 (changes)

Pinkus Last Thursday at 10:22 AM
my brain hurts
"I'll give up for now"

6 minutes later
"Okay, i've been successful" - Pinkus 2019

https://pastebin.com/9VsTBryJ (preliminary explanation)

https://pastebin.com/nzuEAtzq (lua script)

https://cdn.discordapp.com/attachments/280990969363562496/591967096867520563/ancillae.lua (bizhawk version)

https://pastebin.com/raw/BeBFwZX6 (technical explanation)

More: https://pastebin.com/raw/ua73VDi1
standing a certain distance from wall, and throwing boom, will set 0C54-0C59 (slot 0-5) to one of the values we need (3C, 13 or 0A)
then use lantern in slot 1 while facing left, and 03C4 is set to 0x10
then fill up slot 0-4 (or 0-1 for bombs), then spawn the ancilla
the code will find a spot outside of the ancilla array, at index 0xA to 0xF
and it will not check or know that its out of bounds, and will write X coords, random timer stuff, oam stuff, all over the wrong memory
mostly overwriting other ancillae, but possibly other things too
the possibilities are endless. but how to even approach such a thing
Man, what a rabbit hole, but found the underlying issue. I think it's possible better applications exist!

Setup is:
- WallHit ancilla (0x6) needs to be in slot X.
- Hookshot (1F) needs to be in slot Y where Y = X-5 lol.

So 5 slots apart from each other. Still kinda theory though.
Relevant RAM

$039F[0x0A] -   Special Effect Timers

$03A4[0x0?]  -  Referenced in receive item initializer


039F is probably used to alternate animation of boom hitting wall or something.

03A4 idk what it's used for, but by setting it, you enable the LDA $EE : EOR #$01 : STA $EE.
As you can see, the two arrays overlap
If 03C4 is let's say 0x10, it will do LDA $0C4A, X where X will be 0xF on the first iteration, which points to $0C59, which is a different array entirely. This array can be manipulated by using a boom for example, maybe other things too. Doing this, you can in fact even make it so it seems like there's a replaceable item there. The routine will think "yay we found a replacable ancilla" and returns 0xF to the caller. The ancilla is then installed in slot 15. Which is nonexistent slot.
Bank0F, Ancilla_CheckForAvailableSlot

https://milde.no/public/alttp/clips/somariafun.mp4

in this state (5 fake somaria blocks on screen):
- Boom doesn't go back when it hits screen edge, but continues to the wall before going back
- Hook gives me EG
- Sometimes can shoot out 2 hooks in normal slots
- Getting hit while throwing fake somaria block gives Sword Up pose in air
ancilla related glitches
* uninitialized altitude
  * spooky
* despawn
  * heart despawn glitch
* misslotted ancilla
  * hook clip, alternating layers (mire bk shortcut, gtower basement left side skip; I think its possible to go into EG with this too)
  * hook clip, opposite layer (can go into EG with this)
  * hook eg (you go into EG immediately)
  * hook juke/push (Link moves quickly in one direction, clipping through things in his way)
  * extended boom (red boom goes longer than screen limit)
  * [carolinum] bomb (bomb exploding indefinitely)

related:
* in both hook clips, you can hit sprites. like hitting the switch in spooky 1.
"hook clip, alternating layers" is the one we're discussing for nmg

Heart skip

https://milde.no/public/alttp/clips/hpcontainerskip.mp4

ok, so definitive setup for armos and lanmolas heart skip while still getting the pendant:

at 7E03C4, the value will get changed based on your arrow usage. it will remain unchanged until you have 3 arrow shafts on screen (stuck into enemies or walls). then it will cycle 0x04, 0x03, 0x02 for each arrow you shoot. it will only cycle while 3 shafts are onscreen, so some may despawn while you fire, which causes some inconsistency. thus there's no way to know what value you'll have.

in order to heart skip and get the pendant, we need that value to be 0x02. to get that, you want to use lamp 3 times quickly (as in 3 lamp fires onscreen at once). the lamp uses 2 other bytes before 7E03C4. while your facing does affect what value gets put from using the lamp, it is irrelevant for our purposes here. using the lamp in this way resets the cycle from shooting arrows.

with the cycle reset, now you can shoot 6 arrows into the wall to guarantee a 0x02 value. 3 to stick in the wall, and then 3 more to go 0x04 > 0x03 > 0x02. this also leaves 3 arrow shafts stuck into the wall, filling up the slots we need such that you only need 2 lamps to skip the heart container.
----------------------
or in simpler terms. lamp 3 times quick, shoot 6 arrows into the wall, lamp 2 times and get heart.
the best is to place the somaria block in the middle of the room, then get next to the heart and canedash into it

the next best is to set up $03C4 with a value of 0x02, then shoot 3 arrows into a wall, sword beam, and dashbuffer at least twice into the heart.

Hookpush

https://cdn.discordapp.com/attachments/280990969363562496/592100771982737421/hook_into_triforce.mp4

https://cdn.discordapp.com/attachments/280990969363562496/592097555488178187/hookstuff_ow.mp4

https://cdn.discordapp.com/attachments/280990969363562496/592106176259424278/attempt_getIntoGT_hookstuff.mp4

Pinkus's explanation is great. tbh setup is too lazy,
1. set boomerang to slot 8 and hit a wall. then becomes fake red boom
2. set som block to slot 9
3. do sword beam for $C5E
4. then hookshot
I feel like sword beams facing direction effects hook probably...

Hook EG

https://cdn.discordapp.com/attachments/280990969363562496/590992115165822991/GetIntoEG_ancillaStuff.mp4

https://cdn.discordapp.com/attachments/280990969363562496/590992195113451546/GetIntoEG_ancillaStuff.bk2

1. Throw red boomerang to wall
2. Face to right and use lantern to set 7 for $0x03C4
3. Spawn ancilla and decrement $0x03C4 to 6
4. Be careful to not change value at $0x03C4, dash and use lantern.
5. Use hookshot to pot or something before red boomerang makes flipping ancilla
6. While finishing to pulled by hookshot, if describe flipping ancilla, then Link gets into EG.
RTA

https://milde.no/public/alttp/clips/consistent_eghook.mp4

    LDA $044A : CMP.b #$02 : BEQ BRANCH_RHO

    LDA $EE : EOR.b #$01 : STA $EE

^ this is why strong eg is needed (044A is the strong eg variable)
so basically, to summarize:

slot 9 boom
- hitting sprites
- sometimes hooking different layers (mostly from bridges)
- getting out of EG in glitched categories by hooking into a different layer (this is the same point as above, just you don't have the ledge-problem here)

slot 8 boom
- hooking through one tile, bypassing it and possibly hooking to a target on the same layer
- 1/4 chance of also hooking into a different layer (but again, mostly/only from bridges)

Both will hit any sprites in their path, regardless of layer. Or possibly LINK has to be in the same layer as the sprite, but the glitched eghook doesn't seem to matter at least.

Quantum Teleportation

https://cdn.discordapp.com/attachments/280990969363562496/591603864797446165/icebk.mp4 (https://cdn.discordapp.com/attachments/280990969363562496/591603907990650910/icebk.bk2)

https://milde.no/public/alttp/clips/hookfun2.mp4

https://milde.no/public/alttp/clips/hookfungt.mp4

https://cdn.discordapp.com/attachments/280990969363562496/591925023137071104/gt_newroute_forAD.mp4

This is just beautiful: https://cdn.discordapp.com/attachments/280990969363562496/591918921511206913/hook_attichole.mp4

ok I got it now with the setup I used before. It's pretty simple too, can be done RTA.

1. Put down somaria in center of room
2. Hold your sword out (need the sparks) and immediately bust the somaria block.
3. Change to whatever you want to put in slot 9
4. Dash then Y
also I found an easier setup for rta.

0. Lantern west 3 times
1. Hold sword out from the start
2. Put down 3 arrows in wall
3. Put down 2 bombs
4. Simply use bow, and it will be put into slot 9, 8 or 7; usually 9.
I think maybe in 4, we can put another object in 9, then bow to 8 perhaps
but we should find a way to set up 03C4 to 9 consistently..
I think ice skip does not work with slot 8 method?
1. Lamp 3 times left (sets 03C4 to 0x10)
2. Start holding sword out and immediately do 3 arrows into a wall
3. Switch to bombs and put down 2 bombs (slots 0-5 should be occupied now)
4. Switch to fire rod and shoot one shot (should replace sword spark in slot 9 into a rod charge, setting 03C4 to 9)
5. Switch to boom, move backwards, and shoot boom (it should be blue and put into slot 8)
6. Press A to dash, which seems to almost always stop the boom from moving.
7. Switch to hook. Find your target. Press A for boots dust in slot 4, then hook clip (hook needs slot 3).
03A7 is the memory to watch
it is what enables hook clip
boom sets it constantly. I think if non zero then hook goes through wall
when zero then it will collide
something like that
different boom patterns sets it differently
maybe direction of boom matters
whether it hit walls or not matters
whether it is going back to link matters
red/blue is different too
- C4A,X (X = hookshot slot, need to be boomslot -  5) This we already knew and is the reason why sometimes hook clip works other times not, especially when red sparks are on screen it can be hard to get to slot 4.
- 3A4,X (X = hookshot slot, so 3A8 if slot 4). This is what decides if hook goes through wrong layer or not. For slot 7 and 9 its 100% always wrong layer I think (??). For slot 8 it's wrong layer 3 out of 4 frames.
I think blue boom after wall in slot 7 or 8 is same as blue boom in slot 9.

Carolinum Bombs

His companion, a less imaginative type, sat with his legs spread wide over the long, coffin-shaped box which contained in its compartments the three atomic bombs, the new bombs that would continue to explode indefinitely and which no one so far had ever seen in action. Hitherto Carolinum, their essential substance, had been tested only in almost infinitesimal quantities within steel chambers embedded in lead. Beyond the thought of great destruction slumbering in the black spheres between his legs, and a keen resolve to follow out very exactly the instructions that had been given him, the man’s mind was a blank. His aquiline profile against the starlight expressed nothing but a profound gloom.

H.G. Wells, The World Set Free

https://cdn.discordapp.com/attachments/280990969363562496/591879466075029526/keepBombExplosion_helma.mp4

https://cdn.discordapp.com/attachments/280990969363562496/591876072329707530/keepBombExplosion.mp4