Submission #4511: HHS's SNES Secret of Mana "game end glitch" in 08:15.50

Super Nintendo Entertainment System
game end glitch
BizHawk 1.8.4
29779
60.0988138974405
320
Unknown
HHS
Secret of Mana (U).smc
Submitted by HHS on 12/8/2014 4:55:35 PM
Submission Comments
This movie completes Secret of Mana by using a dialogue glitch to reach the ending early.

Game objectives

  • Emulator used: BizHawk 1.8.4
  • Aims for fastest time
  • Abuses glitches
  • Manipulates luck

Comments

This movie takes advantage of a bug in the dialogue handling that was discovered by accident during a live streamed playthrough. Under certain conditions, the game will erroneously present a dialogue choice allowing the player to skip to unrelated parts of the game script, which is used to skip to the "The End" screen. This shaves more than 40 seconds from the previous canceled submission.

Glitches used

Item selling glitch

If the selling menu is opened with the initial cursor position past the end of the menu, you can sell an empty inventory slot and get paid for a Griffin Helm. This is possible because the selling menu does not save the cursor position when leaving the menu. Therefore, at first a candy and a chocolate is bought. The inventory menu is brought up and the cursor moved to the chocolate. Both items are then sold. It is then necessary to open the shop menu to populate the menu with items. Then, the selling menu is opened again. The menu will always be rotated so that the initial selection comes first, and this procedure assumes that a menu contains at least one item. One therefore overflows into the old items from the shop menu. These item positions all correspond to empty slots in the inventory, with the invalid item code $1F, which sells for 29666 GP.

Preventing enemy spawns

By pausing movement for one frame just as an enemy is about to load, the enemy will not be loaded.

Dialogue option glitch

If a script is triggered on a specific frame following the disappearance of a status message from the screen, and the script displays the player's money before printing anything else, the game will instead give an invisible prompt using the last parameters. Entering the save menu will clear the number of options, allowing underflowing to option 256 by pressing left. After making a choice, both the jump table pointer and the script pointer will point to the selected entry in the jump table. Furthermore, if this location contains text rather than a script command, the game will continue giving invisible prompts. The table pointer is also used to point at the tables for printing names of enemies, equipment and spells.

Route

Summary of in-game frames per screen (menu frames and dialogue selection lag not counted):
ScreenNewPublishedFrames gained
Waterfall3957398225
Forest 11108113931
Forest 25375414
Potos295529605
Mantis Ant2435244510
Potos19831982-1
Elder132713270
Potos6586580
Road to Pandora726
Outside Neko169
Neko2127
Outside Neko184
Road to Pandora280
Dyluck369
Road to Pandora840
Cannon man788

Waterfall to Potos

The beginning is basically the same as the published movie, except that the first enemy is not killed. 74 frames were gained from more optimized stair movement and a better boss fight.

Neko

The item selling glitch is executed and the money is used to buy a barrel. Then the save menu is invoked, which clears the number of dialogue choices.

Dyluck

Talking to the second soldier from the right advances the part of the story that has to do with the Water Palace so that you no longer have a free ride in the cannon.

Cannon

A barrel is used before entering this screen, to arrange for a "A's barreled" message to come on screen. Also, making the selection prints the word "Barrel", which set the script table pointer to an usable value. After the message vanishes, talking to the cannon man triggers the dialogue glitch. A sequence of choices is made that ends up advancing the script to the command that invokes the ending screen.

Other information

RAM addresses:
AddressDescription
7E00F4Frame counter
7EE002Position
7EE006Speed
7ECC48Items
7E1873Item cursor
7E1D00Text related flags
7EA200Current dialogue choice
7EA1D4Number of dialogue choices
7EA1D5Table pointer
The following Lua script was used during the making of the movie. It displays information about characters, and predicts critical hits. It also automatically makes the correct dialogue choices to arrive at a given location in the script when executing the glitch. http://www.mediafire.com/download/hmlq9015op565a3/som.lua

feos: Added the branch, judging...
feos: Accepting to Moons as a new branch.
Last Edited by adelikat on 10/12/2023 3:08 PM
Page History Latest diff List referrers