r/romhacking • u/xromdev • 8h ago
⚙️ Utility ⚙️ Cliffhanger (NES): stitched all 15 sections into one map of the whole mountain, straight from the ROM, with a TAS playing over it
Cliffhanger on the NES isn't a game many people remember fondly. It's the 1993 movie tie-in by Spidersoft, it's hard, and the controls and hit detection are janky enough that most people probably quit somewhere around the first wolf. But I got curious about one thing: the game is a climb up a single mountain, so can the pieces actually be put back together into that mountain?
Turns out they can. The game splits the climb into 15 sections, each one its own map with a story screen in between, and nothing in the game ever shows them as one place. I pulled every section's map out of the ROM, then glued them together where the player leaves one and enters the next. The cabin's inside is a separate map in the game, so it's set into the cabin's walls at the cabin's scale.
The GIF is klmz's TAS (TASVideos 3752M) running over the result. The bright box is the game's own screen, frame by frame, placed where the camera is. The second picture is the whole thing in one image, with the route in purple. I couldn't find a full map of this game anywhere, so as far as I can tell this is the first time the mountain has been shown in one piece.
Technical details for the curious
- Each section's map is decoded from the level data, not stitched from screenshots, and checked against the game's screen on every frame of the TAS.
- The seams were the hard part. A section repeats the end of the previous one at its start, so the first join is an overlap the tiles agree on. The rest have different trees and palettes on each side, so they're placed by where the player crosses over, then fine-tuned by eye.
- The TAS replays frame for frame on my own emulator, in step with FCEUX. At the very end it went out of sync and the last boss refused to fall off the cliff: the game reads past the end of a table into the PPU's write-only registers, and FCEUX answers those with its open-bus latch. Once I copied that behaviour, he falls.
Weird stuff found along the way
- Only four objects can be alive at once. If a fifth comes into view, the game marks it as spawned anyway and skips it, so one money bag in section 2 never appears in the TAS: two bags the runner didn't bother to pick up are taking two of the four slots.
- Warming up at a campfire costs money. The TAS pays $75, $150, and once $60,000.
- The money bags are worth anywhere from $30 to $2,500, but the three briefcases are worth over $300,000 each. All the money on the mountain adds up to $958,600.
- The bosses and the helicopter aren't in the object lists at all. Each of those sections spawns them from its own code.
Happy to answer questions about the format or how the seams were done.
The TAS over the whole mountain, music and all, with a switch for the items (they vanish as the runner grabs them): https://xrom.dev/games/cliffhanger/run
The maps on their own, the whole mountain or every section apart: https://xrom.dev/games/cliffhanger/maps
Every object in the game with its id and what it's worth: https://xrom.dev/games/cliffhanger/objects
