Aslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2107.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index3aee-2.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=8.120e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index3aee-2.html.zx%h^3~OKtext/htmlISO-8859-1gzip8:3~Tue, 10 Mar 2020 23:57:16 GMT0 0P%h^3~ New patch: Game Over Glitch fix

Author Topic: New patch: Game Over Glitch fix  (Read 1325 times)

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
New patch: Game Over Glitch fix
« on: August 18, 2015, 06:56:22 PM »
Hi! This patch fixes an issue that was discovered just recently, whereby getting defeated 52 times in a row on the world map causes the game to go all screwy. The people who discovered the issue managed to leverage it for some interesting results, but if you're not as crazy as they are, odds are your game will just freeze. The cause, as they describe, is the fact that the game pushes a value to the event pointer stack when calling the Game Over script, but does not pull that value afterward. The result is that after enough Game Over events on the world map, a conflict occurs in the RAM. This patch fixes the behaviour to reduce the stack after a Game Over, thus preventing an overflow.
« Last Edit: August 19, 2015, 12:47:28 PM by 13375K31C43R »
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

Grimoire LD

  • FF4 Hacker
  • *
  • Posts: 1,684
    • View Profile
Re: New patch: Game Over Glitch fix
« Reply #1 on: August 23, 2015, 10:42:23 AM »
...? That may be one of the strangest bugs I've ever heard of. Getting defeated 52 times on the World Map causes the game's RAM to get really confused? I'm not sure whether to shake my head at Square for missing that or to assume it was so minor it could happen to anyone. What is the purpose of this stacked event pointer? Or is the issue really here that this value is just never pulled again? I... had thought an unpulled value would crash the game, unless by "pull" you literally mean "LDA - STA" instead of "PHA -PLA"

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Game Over Glitch fix
« Reply #2 on: August 23, 2015, 11:59:25 AM »
This page does a better job of explaining it, as does the readme. The fact is, Square did add a return statement to the end of the Game Over script, it just never gets called because of an oversight with the event before it.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

TheNattak

  • Garula
  • *
  • Posts: 203
  • Gender: Male
  • Mike
    • View Profile
    • Return of the Dark Sorcerer
Re: New patch: Game Over Glitch fix
« Reply #3 on: August 23, 2015, 01:01:19 PM »
Great job 13375K31C43R, thank you for taking care of this! :)

LightPhoenix

  • FF5 Hacker
  • *
  • Posts: 130
    • View Profile
Re: New patch: Game Over Glitch fix
« Reply #4 on: September 01, 2015, 12:56:37 AM »
This is the most amazing bug I've ever read about.  Nice work on fixing it!