The Final Fantasy IV Door Stack Glitch

The Final Fantasy series is loaded with bugs throughout. A full recounting would be much more than a longpost’s worth, but here is a quick description of one specific example, from Final Fantasy IV (originally II in the US, but most people now will probably think of it by the Japanese numbering anyway).

The door to the pub is push-type, potentially causing Problems.
Image from mynockx’s guide on GameFAQs.

Some RPGs, instead of coding area transitions all as a sequence of doors and destinations, instead use a form of stack to record where the player was when they entered the door. “Stack” here is a term from computer science, a data structure consisting of a region of memory and a pointed within it. Data can be “pushed” onto the stack, which means putting some number of bytes onto it and advancing the stack pointed by that number. Stacks can “grow” either up or down, meaning when the pointer advances, it’ll go in that direction. When the data is needed again, it’s read off the top of the stack, then the pointer is pulled back to its original position.

So how the door stack works is, when a player enters a location, say enters a town from the overworld, their location before entering is “pushed” onto the stack and they are then moved into the town’s entrance. When they exit the town, their old location is “pulled” from the stack, leaving it empty. (Actually, the data is still there, but because the stack pointer has been decremented, it’ll be overwritten the next time the player enters an area.)

Why use a stack? Well mostly it’s a convenience thing for the programmers. A door’s location can either be “into” an area, or “out of” it. “In” doors have to know where they’re going, but “out” doors just have to know they’re going outside. But it helps in one particular instance; if a game has a spell or item like “Exit,” “Outside,” or “Warp,” it can work simply by pulling every location off the stack until it gets to the last one. This means the programmers don’t have to have every location “know” where a given area is on the World Map. Just rewind the door stack until you get to the last location on it, that must be it.

Well there’s a subtle bug in some locations in Final Fantasy IV where some transitions that push when they should pull. One such transition is the one to the pub in the Dwarven Castle. When you enter the pub, the way in is pushed onto the stack; when you exit, instead of pulling that location off, the way out is pushed onto the stack.

There’s only so much memory reserved in a stack, which for old games is usually implemented as a single page (256 bytes) of memory. The pointer into it is thus one byte long, and so if the stack fills up, it wraps around. If you find such a door, and go through it enough times, you can cause it to overflow on purpose, with unexpected results.

This can be taken advantage of in Final Fantasy IV by overflowing the stack, then going through a pull-door, which causes the game state to be read from unexpected memory. Speedrunners (you just knew they’d be involved) use this to flip rapidly to the end of the game. Most players will never notice this very subtle bug, since when you return to the world map the game knows enough to completely clear the stack.

Something I’ve noticed about the 8- and 16-bit Final Fantasy games is, if there is a potential for an obscure bug somewhere, there is almost certainly going to be an example of that bug somewhere in that code. A lot of these bugs are only visible to a player with obsessive observation or repetition. This results in spells with unexpected effects, stats with no function, features that don’t operate, and item duplication bugs. Truly, it was an age before unit testing.

Final Fantasy Wiki: 64 Door Hierarchy Glitch

Chrontendo #60

Chrontendo’s back! Dr. Sparkle’s long-running journey through the entire library of the Famicom and NES continues. He’s been doing this for at least 15 years! Chrontendo got its start as a blog, then moved to a YouTube format, although every episode is also uploaded to the Internet Archive. Dr. Sparkle tries to complete the games he covers, meaning, sometimes it takes a very long time to construct an episode, especially when it contains a lengthy JRPG.

In addition to being generally watchable by anyone with even a passing interest in video gaming history, Chrontendo is a good series just to have on in the background while you do other things. What I’m saying is that it’s comfortable. Like Comfortable Doug! (warning: earworm)

Chrontendo 60 is subtitled “The Most Perverted Episode,” covers April through May of 1990, and features:

  • horse racing sim Kurogane Hiroshi No Yosou Daisuki! Kachiuma Densetsu,
  • a long section the original Fire Emblem and the series in general,
  • Rare’s PinBot, a very unique and interesting simulation of a real Williams pinball table with some unique video extras,
  • GameTek’s home version of the Nickelodeon game show Double Dare, which was also made by Rare,
  • the ludicrously-titled Dinowarz: The Destruction of Spondylus,
  • Imagineering’s Ghostbusters II,
  • Ivan “Ironman” Stewart’s Super Off Road, by Rare,
  • a very long section on the epic Final Fantasy III, from and by Square, which Dr. Sparkle proclaims to be the best JRPG on the system,
  • Kagerou Densetsu, a “sorta action RPG thing” published by “Pixel,” but we’re not sure who exactly that is, and may have been intended, it is speculated, to be a kind of RPG-ish sequel to The Legend of Kage, and
  • Nintendo World Cup (forgive me for not typing out the entire Japanese title), that weird Kunio soccer game that Nintendo published under their own banner, just with all the story and setting removed. It’s a decent soccer game even so.

With this episode, Dr. Sparkle is declaring a dividing point for the series. Up until now has been the rise of the Famicom; the rest covers its fall, what he calls the “Byzantine Empire” phase of the system’s life. This doesn’t mean the series is almost over though. Far, far from it.

Chrontendo #60 (YouTube, 2h 36m) – archivespreviously

Sundry Sunday: MST3K & Rifftrax Gaming Clips

You’ve made it another Sunday! For making it this far, why not take a break with some fun things? The whole point of Sundry Sunday is to be a low effort thing for the end of the week, but to be honest I couldn’t resist putting in a little extra work on this one.

It might not be evident on the surface, but the classic riffing show Mystery Science Theater 3000 has roots deeply entwined with video games. The show’s staff were known to spend off hours playing Doom against each other on a company LAN they had made for that purpose. During the show, they produced a clip that was distributed on the PlayStation Underground magazine CDs in which they riffed on some of Sony’s artsy commercials from that time (above).

After the original run of the show ended, some of the cast and crew drifted for a bit, doing various projects. One was a short-lived web comedy magazine called Timmy Big Hands, which we might look at some day. Show leads Mike Nelson, Kevin Murphy and Bill Corbett did a couple of other things together, like a four episode movie riffing project called The Film Crew, before they eventually settled into doing Rifftrax, a project the three of them work on to this day.

While at Rifftrax, they’ve produced at least two game riffing clips. The first was made for sadly-departed gaming site Joystiq, and riffs on Mega Man, Final Fantasy X, Sonic the Hedgehog and, especially, something from the Metal Gear Solid series, which I would think is the perfect fodder for such video merrymaking:

Afterward they made another short clip for IGN riffing on Gears of War 3:

Rifftrax makes their living producing and selling clips making fun of shorts and movies, and one of those is the 1993 schlockfest Super Mario Bros. I call it schlock, but it’s one of those movies that critical opinion has slowly been coming around on over the years since its release. More and more it’s being seen as a competently-made and entertaining kids’ sci-fi fantasy movie perfectly of a piece with the era in which it was made-it’s just not a very good adaptation of the games with which it shares a title.

Rifftrax sells the whole Super Mario Bros. riff, complete with the movie on which it’s based, on their site. I highly recommend it, but IGN presents a nine-minute clip teaser from it on YouTube:

Link Roundup 5/1/22

“We scour the Earth web for indie, retro, and niche gaming news so you don’t have to, drebnar drebnar!” – your faithful reporter

Late submissions for juried independent game festival Indiecade are open until May 15th.

C.J. Wheeler for Rock Paper Shotgun: Perfect World Entertainment absorbed by Gearbox Publishing.

Mitchell Clark for The Verge tells us that Apple claims right to remove software from App Store if they aren’t downloaded recently.

Brian of Nintendo Everything reports that Aspyr is open to ports of Star Wars: Rogue Squadron, including unreleased Wii versions. The source is this tweet.

“Dreadknux” of Sonic Stadium writes of fan art that adds the movies’ Agent Stone to images stills of other Sonic properties.

Brendan Hesse of Gamespot, speaking for site staff, offers a ranking of 14 Final Fantasy games. From worst to first, the ranking, all according to original Japanese numbering and not including the MMORPGs:
2 < 15 < 13 < 3 < 1 < 9 < 4 < 8 < 7 < 5 < 7 Remake < 10 < 12 Zodiac Age < 6

This is a little towards the technical end of things, but Sudden Desu on Twitter has created a framework for developing Mega CD (a.k.a. Sega CD) games, available from GitHub.

I’ve seen it elsewhere, but I’m linking to Eric Van Allen’s report for Destructoid, on Disney Dreamlight Valley, a lifesim with Disney IP. I’m imagining it as being like Animal Crossing, but with Disney characters. Do you know how annoying a neighbor Tigger would be?

Dennis Payne of Gaming On Linux tells us of a Dungeon Crawler Jam hosted by dungeoncrawlers.org, with some interesting output!

Ian Walker of Kotaku tells us of a mod for Final Fantasy VII Remake that brings Yoshitaka Amano-like designs to the generally un-Yoshitaka-Amano-like Barrett!

8 Eyes (image borrowed from MobyGames)

Alex Donaldson of VG247 snidely and suitably mocks the Denuvo DRM in the upcoming Sonic Origins for protecting the digital virtue of the original Sonic games, which have long been widely traded on the web.

Adam Conway at XDA lets us know of Skyway, a work-in-progress Nintendo Switch emulator made specifically for Android.

Christian Donlan, writing on Eurogamer, lets us know of Playdate games available on itch.io!

It fell to Sean Hollister at The Verge to inform us of a hack of a Fischer-Price toddler game controller to make it suitable for playing Elden Ring. Was it made by foone? It wasn’t, it was Rudeism? Cool.

And Steve Watts, writing for Gamespot, has, to mark the 35th anniversary of the release of the original Castlevania (the game not the anime), a listing of games not-too-subtly inspired by it, like 8 Eyes for the NES. Although this reviewer feels compelled to note they left out The Transylvania Adventure of Simon Quest!

Link Roundup 4/29/22

“We scour the Earth web for indie, retro, and niche gaming news so you don’t have to, drebnar drebnar!” – your faithful reporter

Cian Maher for IGN, on players who obsessively chase rare “shiny” variants of Pokemon.

Ted Litchfield for PC Gamer, on the disappointment of FFXIV‘s producer on player taunting.

Morgan Park of PC Gamer tells us Call of Duty has lost 50 million players in a year, a third of their base

Andrew Kiya of Siliconera noticed a tweet in which Kirby creator Masahiro Sakurai revealed facts about the origins of the Kirby Dance (what dance? this dance).

Keith Stuart of The Guardian (wow, drebnar!) on why Sonic the Hedgehog is great.

Michael McWhertor for Polygon tells us that Yuji Naka was kicked off the Balan Wonderworld project six months before it finished, partly for bringing up quality issues. He mentioned possibly retiring from the games industry.

Steven Blackburn of Screen Rant informs us that some fans are working on a third season of the old Saturday Morning Sonic the Hedgehog cartoon show. That’s the “darker” one, with Princess Sally and Bunny Rabbot. The other one from the time, made for syndication, was sillier, and the podcast What A Cartoon did an episode on it with Ian Jones Quartey.

Jody Macgregor for PC Gamer on the D&D Gold Box games coming to Steam, and why they’re great.

And Jason Fitzsimmons of Ghostbusters News points us to a tweet about a fan project to hack the character of Winston Zeddemore into the Sega Genesis Ghostbusters game, where he had been originally excluded.

Link Roundup 4/27/22

“We scour the Earth web for indie, retro, and niche gaming news so you don’t have to, drebnar drebnar!” – your faithful reporter

Gavin Lane of Nintendo Life: Playnote gets a Flipnote Studio-style art app.

Jay Peters of The Verge, also on Playnote. Its makers wonder if its seasonal distribution model will be appreciated by purchasers of its becranked yellow joybox.

Ollie Reynolds of Nintendo Life: UbiSoft to shut down server support for a number of older titles.

Florence Ion (cool name!) of Gizmodo: Google Play is getting data safety settings.

Ollie Reynolds of Nintendo Life, again: Lego to release a huge new Super Mario set.

Thomas Whitehead of Nintendo Life (lot of items from them today): Game Freak to offer employees option of four-day workweek. Awesome!

Wes Finlon of PC Gamer: Moneyfarm Square-Enix unveils a new $11,600 statue of Terra from Final Fantasy VI riding Magitech armor that caused series creator Hironobu Sakaguchi to basically go WTF. Remember, back when he designed the first game in the series, Square was facing issues whether their little game development operation could survive.

“Master Blaster,” if that is their name, at Sora News 24, on Sega trying to bring eSports into Japanese high schools with a Puyo Puyo Boot Camp. “Listen up maggots, you’re going to spend the next hour setting up combos and fighting Draco Centauros until you get it right and I don’t want no backtalk or I’ll bust you down to facing Nohoho again!”

Rhys Wood of TechRadar: An Elden Ring demake for Game Boy is in the works.

Luke Plunkett of Kotaku: Super Mario movie delayed, Miyamoto promises it’ll be worth the wait. Aww, it’s just like that apocryphal quote often attributed to him. This reporter is overjoyed, the last one ended on that cliffhanger, Daisy was back from Dinohattan and needed Mario and Luigi’s help again, no doubt because of some scheme hatched by Koopa. I wonder how they’ll manage to bring Dennis Hopper back from the dead to reprise his role?

Alana Hauges, also from Nintendo Life: Sega plans to delist classic games from some platforms (but not Switch) in anticipation of the release of Sonic Origins.

And Ryan Dinsdale of IGN tells us Sony is creating a game preservation team, of which this reporter can only say, IT’S ABOUT FREAKING TIME.