The Legend of Zelda (second quest)

  • Aims for fastest time
  • Manipulates Luck
  • Abuses Programming Errors
  • Uses a game restart sequence
  • Takes damage to save time
  • Uses a level password
  • No predefined saves
  • No Death
  • Genre: Adventure
  • Uses Emulator FCEUX 2.0.2
This run is 4 minutes and 13.60 seconds faster than Sleepz' published movie.
The Legend of Zelda is a game that needs little introduction to most gamers, however, here is a brief description:
The player controls the hero character, Link. Ganon, the prince of darkness, and his army attack the kingdom of Hyrule and steal the triforce of power--a legendary relic handed down to each generation of Hyrule's royalty. Now he needs to obtain the triforce of wisdom, but princess Zelda scattered eight pieces of the triforce of wisdom in dungeons around the game's fantasy setting called Hyrule. The princess also sends her most trustworthy nursemaid, Impa, to find a hero with the courage to face Ganon. Ganon, who is upset by Zelda's plot, captures her and imprisons her at LEVEL 9.
Impa is then cornered by Ganon's minions but rescued by a young man. His name is Link, our protagonist. Impa confides in Link, telling him the story of Gannon and the Princess. Now armed with a quest, but no sword, Link goes forth to save Hyrule. I still wonder how the Princess managed to hide those triforce pieces with all the monsters and locked doors in these dungeons...

Techniques and Technical Information

Luck Manipulation

Luck manipulation is the heart and soul of this run. The most rerecords are used trying to obtain ideal enemy movement in order to quickly kill enemies, bypass them, or damage boost off of them.

Enemy Dropping Patterns

One of the first objectives when starting this run was to determine exactly how the game determines what items enemies drop; with full control of enemy drops, the better we may plan our damage boosting and bomb rationing.
The enemies either drop or do not drop an item based solely on what frame they are killed.
What exactly they drop is more complicated. It is determined by two factors:
  • The type of baddie (they are lumped into 4 categories based on what they are programmed to drop)
  • The number in $052A
$052A increases by one every time an enemy is killed. This chart made by Baxter illustrates the concept better than words:
Knowing which enemies are up ahead, and the value of $052A, it was easier to plan our bomb and life boosts based on what would drop.
For example, some frames are used in LEVEL 6 to kill three bats. This increases $052A's value by three so that the digdogger (eyes) in level 8 will drop us a fairy and a heart, allowing Link to completely refill the health he used damage boosting towards LEVEL 8.
0050 will also count the amount of enemies that are killed, but it will drop to 0 again if Link is hit. Killing a number of enemies (for instance 10) without getting hit will cause $0050 to flip to 0 automatically in which case the item at the chart in the picture will be overwritten by a ‘good’ item such as a 5-rupee, a bomb or a fairy. This is how it for instance was possible to get two 5-rupees at LEVEL 1.

Luck manipulation of enemy movement

There are a few ways to control how the enemies move on screen.
  • When Link enters a room on a different frame, the enemies' initial direction of movement can change. (Waiting before entering next room is done underneath the door, or spread out over the previous room, so that it won’t be very noticeable.)
  • Pausing the game using the select button costs a minimum of two frames, but it can save a lot of time in certain situations because it directly effects how enemies behave.
  • Enemies behave differently based on where Link is on the screen.
Even with all of these techniques to manipulate the monsters, it can still be difficult to control all the baddies in an optimal fashion; consequently, this is where many rerecords are spent. The only way to be sure that a room of blue darknuts, or bunnies, etc is completed as fast as possible is to keep trying to manipulate their movement, while at the same time sparing the least amount of frames. Unfortunately, all said techniques to control monsters' behavior use frames (except Link's position, but it can cost frames to move him for luck manipulation, too).
With this conclusion, it's easy to see that the game lends itself to massive amounts of testing. Generally, one will find that once a certain problem monster has been manipulated to behave in a desired fashion, the rest have all inconveniently changed their minds and are now doing something undesired. The best approach is to keep trying various combinations of the techniques until an optimal one presents itself.

Luck manipulation and gambling

There is a 4 frame rule at the gamble door (as well as all other doors that lead from the overworld to the underworld). The gamble rupee value can only be manipulated based on what frame the gambling den is entered at. So keep trying every 4th frame until desired rupee value is available. Getting the 50-rupee in the middle is obviously the fastest.

Combat and Movement Techniques

Combat and movement is fairly straightforward in Zelda, but there are some tricks to help save time.

Link's Movement

Some facts:
  • Link can only move and face one of four directions--up left right and down--at a given time.
  • He can only change direction on every 8th X or Y coordinate.
  • These pixels where link can move any direction (i.e. {64,64}, {64,72}, {56, 64}, Let's call them a crossroad coordinate.
  • Link moves at roughly 1.5 pixels per frame (there is sub pixel positioning).
  • The memory addresses for Link's X,Y position are $0070 and $0248 respectively. Due to sub pixel positioning, when moving these addresses generally increase/decrease in this pattern: 1,2,1,2,1 etc
There is a timesaving technique in regards to the sub pixel positioning. Link can move through an in screen block of area every 6 frames except when moving up followed by right, right followed by up, down followed by left or left followed by down. In said case, Link moves at 5 frames per in screen block (8 x or y coordinates constitute a block in game). This is the explanation for zigzagging up and right or down and left--it saves one frame every 8 coordinates.
  • Screen scroll glitch:
Sleepz posted this glitch some time ago, but it has yet to be used in a published TAS. In the overworld, just before entering a new screen, press a direction to Link's left or right for one frame when Link only has 5 more coordinates to reach the next screen scroll. It allows Link to wrap around the screen so that he is now on the opposite side! The timesaving implications are lucrative, especially considering the fact that link can wrap around the entire map, entirely skip the lost woods, and access areas that may otherwise be obscured by water or mountains.
  • Similarly, the above technique may be used to get inside obstacles (blocks, bushes, etc), and sometimes allows Link to bypass areas that he would normally need to walk around. The first example of this is in dungeon 2: Link is able to enter the inside of a block from the top, and then exit the block from the right side. This is not easily performed during console play as it requires frame by frame input (it does not use left+right or anything). Due to the fact that Link can move halfway ‘below’/’inside’ solid blocks normally, this trick allows Link to pass through diagonally placed solid blocks.

Combat Techniques

  • Pressing A + B with bombs equipped allow link to use his sword and deploy a bomb simultaneously--a very useful move on enemies that take multiple blows to kill. It’s especially useful since Link is unable to do anything for a few frames when using his sword, a bomb or another item.
  • On a crossroad coordinate, Link may face any direction while thrusting his sword. Useful in striking multiple enemies that are on various sides of the hero.
  • On a crossroad coordinate, press Left, Right, and A. Link will attack diagonally up and left!
  • When hitting an enemy with the sword on the exact frame that a bomb explodes, the enemy will get damaged by both at the same time. This trick is used often to avoid enemy invulnerability time.
  • When moving over the ladder or leaving a room, Link can use his sword while he is moving. This is especially useful for collecting pickups when leaving the room after for instance a bossfight.
  • When fighting digdoggers (eye boss monsters), lay a bomb and quickly swap to the whistle. Blow the whistle, and the bomb's detonation timer will continue to count down despite the fact that all enemies and actions are paused while the whistle is in use. The bomb will instantly detonate once the whistle is finished playing, instantly exploding on the small eyes spawned by the large eye. (Bombs take 40 frames to detonate, memory address $0038 or $0039)

Route

The route begins much like Sleepz' run, but ends differently. Here's the brief description
  • LEVEL 1
    • Acquire rupees for gambling
    • Heart Piece for damage bumps and the white sword
    • Triforce Piece 1
    • Reset
  • LEVEL 2
    • Along the way...
      • Gamble
      • Get Candle (needed for opening a 100 rupee cave after level 2 and opening level 7)
    • Pick up the whistle
    • Pick up Heart Container for White Sword
    • Pick up Triforce Piece 2
  • LEVEL 6
    • Get ladder. (useful in level 4 and level 5 and this particular level order, needed for entering level 8 on the way to level 4 also)
    • Leave for now; bow and arrows needed to finish
  • LEVEL 8
    • Along the way...
      • Pick up the bracelet; it's needed to open up LEVEL 4 so we can get the raft, and consequently the bow in LEVEL 5.
    • Use stepladder to enter
    • Triforce Piece 3
  • LEVEL 4
    • Along the way...
      • White sword (in this quest plenty of bosses which make it worthwhile to collect this)
    • Pick up the raft for LEVEL 5 and the bow, which is required to finish 6 and 7
    • Triforce Piece 4
    • Reset
  • LEVEL 5
    • Pick up Bow
    • Triforce Piece 5
    • Reset
  • LEVEL 3
    • Along the way...
      • Use the secret road man in cave for speed
    • Triforce Piece 6
  • LEVEL 7
    • Triforce Piece 7
    • Whistle to the lake by lost woods
  • LEVEL 6
    • Triforce Piece 8--complete triforce now
  • LEVEL 9
    • Silver Arrow
    • Ending

Extra

It was also possible to glitch up the level 9 graphics due to entering it before the game expected it. Due to the frame rule of 4 frames, the glitching of the graphics can be avoid by entering a frame later, without losing any time. Fortunately it was possible to hexedit the version with the glitched level 9 graphics (it completes the game in the exact same amount of frames):

Personal comments:

Morrison: I lost motivation on this project numerous times and just disappeared for long stretches of time. I apologize to Baxter for this, as it is the main reason the run took such a long time to make. While I was away, he finished the dungeons 5, 3, 7, 6 revisited, and 9 all by his lonesome, so about half the run wasn't even a collaboration, but a solo effort. Hats off to you :) I'm not certain my name should even be on the project anymore. I am just glad to see it completed. Baxter is a great TASing partner. Trying to beat the times on his WIPs is not an easy task; he's quite thorough and patient. :) I had a lot of fun spending time with him in irc while we were doing all the testing. Big thanks to all previous Zelda TAS authors, Baxter, Phil, Sleepz namely.
Baxter: The Legend of Zelda is one of few games in TASing where I both really like the results as well as the process. Researching routes, and optimizing rooms can both be quite fun. While the main idea of the fastest completion of a room might be the same, the specifics are not. Due to a change in the order of completion of the levels (…53769 instead of …56379) all of these levels had to be redone (level 5 also). Having to redo stuff that’s was completely optimized before is not fun, and this is when you notice that not each room can be done the same. Even though it’s called luck manipulation, there are frames required to manipulate this luck, and sometimes real luck is needed in the process. When redoing these levels, you constantly gain and lose frames to a previous version in each room, while they both may have been completely optimized for each initial conditions. It’s definitely a bit different from most other games, but very fun nonetheless. The cooperation with Morrison was very fun, and he was a great partner. He often mentioned options I hadn’t thought of, and produced very accurate work. It was too bad that he lost his motivation for TASing, but more because I really enjoyed working with him than that I had to do more work myself. Thanks to everyone who showed their interest in this TAS, which is always a great help.

mmbossman: Excellent planning, execution, and entertainment; Great job guys. Accepting as an improvement to the published "2nd quest" movie.
Bisqwit: Encoding. My first FM2 encode :)
Bisqwit: Unclaiming the encode, because I can't figure out why mencoder refuses to render the libass subtitles in the movie, and I have too little time to debug it.


TASVideoAgent
They/Them
Moderator
Joined: 8/3/2004
Posts: 15541
Location: 127.0.0.1
Joined: 8/23/2008
Posts: 417
More than four minute's improvement to a classic game... good lord. Well done! Watching now, will vote when I'm done.
I will not use self-reference in my signature.
Player (246)
Joined: 8/6/2006
Posts: 784
Location: Connecticut, USA
Nevermind, wrong emulator, watching now
Banned User
Joined: 8/2/2008
Posts: 420
Location: italy
ElectroSpecter wrote:
FM2... is that really a movie file? I can't seem to get it to run.
The FAQs are there for a reason.
Gone.
Joined: 4/30/2007
Posts: 150
Acheron86 wrote:
More than four minute's improvement to a classic game... good lord. Well done! Watching now, will vote when I'm done.
actually the last one was 25:28.6 the time they are quoting for some reason is from the first one i believe i could be wrong
Player (246)
Joined: 8/6/2006
Posts: 784
Location: Connecticut, USA
nineko wrote:
ElectroSpecter wrote:
FM2... is that really a movie file? I can't seem to get it to run.
The FAQs are there for a reason.
Gimme a break, I don't keep up with every little thing that happens on the site (I don't mean to make out the new emulator to be a "little thing" but I haven't been paying attention to NES TASes recently)
Joined: 10/15/2007
Posts: 685
You need the newest official version of FCE Ultra to play it. Edit: Wow, I'm slow.
Kirby said so, so it must be true. ( >'.')>
Experienced player (702)
Joined: 2/19/2006
Posts: 742
Location: Quincy, MA
wow, this looks like it's going to be good! :D
Super Mario Bros. console speedrunner - Andrew Gardikis
Skilled player (1409)
Joined: 5/31/2004
Posts: 1821
this is me wrote:
Acheron86 wrote:
More than four minute's improvement to a classic game... good lord. Well done! Watching now, will vote when I'm done.
actually the last one was 25:28.6 the time they are quoting for some reason is from the first one i believe i could be wrong
Are you referring to this? This is a previous submission by Phil of the first quest (and has been obsoleted). The movie linked in the submission text is the currently published movie of the second quest, that hasn't been obsoleted.
Player (246)
Joined: 8/6/2006
Posts: 784
Location: Connecticut, USA
This run was made of rock, roll, and McDonald's. -Wesley Willis (yes vote) Oh, was there a reason you couldn't damage boost off the bats after getting the raft? I'm assuming grabbing the Triforce piece doesn't fill your hearts up?
Morrison
He/Him
Former player
Joined: 8/2/2006
Posts: 195
Location: USA
ElectroSpecter wrote:
This run was made of rock, roll, and McDonald's. -Wesley Willis (yes vote) Oh, was there a reason you couldn't damage boost off the bats after getting the raft? I'm assuming grabbing the Triforce piece doesn't fill your hearts up?
The Triforce piece does fill up health, but unfortunately takes time to do so. :(
twitch.tv/Retrogaming2084
Player (246)
Joined: 8/6/2006
Posts: 784
Location: Connecticut, USA
Longer than the time you would save boosting off the bats? o.o I believe you if you say yes.
Morrison
He/Him
Former player
Joined: 8/2/2006
Posts: 195
Location: USA
ElectroSpecter wrote:
Longer than the time you would save boosting off the bats? o.o I believe you if you say yes.
yep :( sad but true. hell, even a speed bump that only took away 1/4 of heart (not even visible on screen) took longer to 'fill' than just not taking any damage at all.
twitch.tv/Retrogaming2084
Skilled player (1651)
Joined: 11/15/2004
Posts: 2202
Location: Killjoy
First TAS I haven't fast-forwarded at all in a while - and I never have even played the original Zelda. Impressively done, even though I had no idea what was going on. Sometimes you push against a wall, hear the typical zelda tone, and walk through the wall.... Is that a normal LoZ thing or a glitch? Easy yes vote.
Sage advice from a friend of Jim: So put your tinfoil hat back in the closet, open your eyes to the truth, and realize that the government is in fact causing austismal cancer with it's 9/11 fluoride vaccinations of your water supply.
Morrison
He/Him
Former player
Joined: 8/2/2006
Posts: 195
Location: USA
DarkKobold wrote:
First TAS I haven't fast-forwarded at all in a while - and I never have even played the original Zelda. Impressively done, even though I had no idea what was going on. Sometimes you push against a wall, hear the typical zelda tone, and walk through the wall.... Is that a normal LoZ thing or a glitch? Easy yes vote.
The second quest has 'invisible' doors. You just run into a wall sometimes where a door would be if there was a door, and eventually you can run through it :)
twitch.tv/Retrogaming2084
Senior Moderator
Joined: 8/4/2005
Posts: 5777
Location: Away
Morrison wrote:
The second quest has 'invisible' doors. You just run into a wall sometimes where a door would be if there was a door, and eventually you can run through it :)
To think Nintendo would be guilty of one of the most outrageous level design offenses… :)
Warp wrote:
Edit: I think I understand now: It's my avatar, isn't it? It makes me look angry.
Joined: 10/15/2007
Posts: 685
There's so much here that I haven't seen before, even if it's for lack of keeping up on the LoZ topics. Knocking the second quest down to such a miniscule completion time is impressive enough. I do believe this one is a yes.
Kirby said so, so it must be true. ( >'.')>
Active player (437)
Joined: 4/21/2004
Posts: 3517
Location: Stockholm, Sweden
Congratulations Baxter and Morrison. It was a fun and entertaining run. Pleased to vote yes.
Nitrogenesis wrote:
Guys I come from the DidyKnogRacist communite, and you are all wrong, tihs is the run of the mileniun and everyone who says otherwise dosnt know any bater! I found this run vary ease to masturbate too!!!! Don't fuck with me, I know this game so that mean I'm always right!StupedfackincommunityTASVideoz!!!!!!
Arc wrote:
I enjoyed this movie in which hands firmly gripping a shaft lead to balls deep in multiple holes.
natt wrote:
I don't want to get involved in this discussion, but as a point of fact C# is literally the first goddamn thing on that fucking page you linked did you even fucking read it
Cooljay wrote:
Mayor Haggar and Cody are such nice people for the community. Metro City's hospitals reached an all time new record of incoming patients due to their great efforts :P
Banned User
Joined: 3/10/2004
Posts: 7698
Location: Finland
ElectroSpecter wrote:
nineko wrote:
ElectroSpecter wrote:
FM2... is that really a movie file? I can't seem to get it to run.
The FAQs are there for a reason.
Gimme a break, I don't keep up with every little thing that happens on the site (I don't mean to make out the new emulator to be a "little thing" but I haven't been paying attention to NES TASes recently)
I think you misunderstood the statement: The FAQ is there for a reason. You had a question ("what is an FM2 file?") and your first intuition should have been to check if it's explained somewhere, and the FAQ is the most probable place. It doesn't mean you need to be constantly following the contents of the FAQ in a regular basis.
Editor, Expert player (2328)
Joined: 5/15/2007
Posts: 3929
Location: Germany
I was wondering how long it'll take until a screenscroll glitch run is done.^^ I'm going to watch it later.
Banned User
Joined: 12/5/2007
Posts: 742
Location: Gone
The movie won't open. I even checked out the FAQ's and tried converting. Guys, I don't want to know how an FM2 file works, I just want to know how to "fix" it so it can play like it's supposed to! I already got the right version of FCEUX, now I just need the real deal. Understood?!
Senior Moderator
Joined: 8/4/2005
Posts: 5777
Location: Away
I assume you tried running it in FCEUX, didn't you?
Warp wrote:
Edit: I think I understand now: It's my avatar, isn't it? It makes me look angry.
Former player
Joined: 12/5/2007
Posts: 716
When you've got FCEUX, you don't need to convert the .fm2 file. Just play it like you are used to doing so with the "old" FCEU. Alternatively, you could download this lossless x264 encode. In case any publisher might want to save some time on encoding when this run is accepted, feel free to ask me about a subtitle-free lossless x264 encode.
adelikat
He/Him
Emulator Coder, Site Developer, Site Owner, Expert player (3570)
Joined: 11/3/2004
Posts: 4754
Location: Tennessee
Simply amazing. One of my favorite TASes now. There are so many moments that make a complete mockery of the game. <Game programmers> Let's make these rooms with a block in the center so the player has to push it out of the way, and can't go straight. <TAS> *Walks through block* <Game programmers> Doh! <Game programmers> Let's make this water here 2 tiles long. That way someone can't use the ladder to get to this room. <TAS> *Walks over 2 tiles of water anyway* <Game programmers> Doh!! <Game programmers> Let's make the level 7 entrance very annoying. The player will have to burn the bush from the other side of the trees, then walk around several screen to get to it. <TAS> Walker through the trees <Game programmers> *Explode*
It's hard to look this good. My TAS projects
Banned User
Joined: 12/5/2007
Posts: 742
Location: Gone
Sorry it took long to respond after my computer was locked by Google Chrome. I attempted to upload pix under that browser and it hung too long. So, this was how the movie was prepared after I obtained FCEUX, the rom, and the movie... selecting the movie result after selecting the movie In other words, the movie play dialog was still blank and the emulator knew that the movie was invalid -- despite that it does play fm2's regardless. Then the next thing I was thinking about was the wrong ROM of LoZ. I'll think of something, until then, this is an isolated situation.