Muppet Monster Adventure - native recompilation

Muppet Monster Adventure - native recompilation is a native PC port of Muppet Monster Adventure for Windows and Linux that re-renders graphics at higher resolution.

README

Muppet Monster Adventure - native recompilation

A static recompilation of Muppet Monster Adventure (PlayStation, NTSC-U, SLUS-01238, Magenta Software / Midway, 2000) to native code. The game's MIPS executable and its 35 code overlays are translated to C++ and run on Windows (and Linux) with a runtime that replaces the PlayStation hardware and BIOS. Graphics are re-rendered with OpenGL at higher resolution.

No game data is included. You need your own copy of the game as a .cue/.bin disc image.

Status

  • Plays through the intro movies, title screen, new game (Hub tutorial with Pepe), level select and the castle level; saving and loading on the memory card work.
  • Verified on the headless Linux test build against a reference emulator. The Windows build is produced by CI.

See NOTES.md for the technical write-up.

Running (Windows)

  1. Download the latest MuppetMonsterAdventure-<version>-win64.zip from Releases (or the muppetmonster-win64 artifact of any Build Windows run on the Actions tab) and unzip it.

  2. First run only: put your disc image (a .chd, or Muppet Monster Adventure.cue + its .bin file(s)) in a game folder next to muppetmonster.exe (or next to the exe itself), then run muppetmonster.exe - or drag the .cue onto it. One .bin per track and single-.bin rips both work.

  3. The disc is imported once into assets.dat (about 340 MB, a few seconds to a minute) and checked sector by sector to be an exact copy. From then on the game runs from assets.dat and the .cue/.bin files can be deleted. The finished install is just:

    muppetmonster.exe  SDL2.dll  assets.dat  (memcard1.mcd, muppetmonster.ini once created)
    

muppetmonster.exe --import <file.cue> [out.dat] builds the file without starting the game.

Saves go to memcard1.mcd next to the exe - a standard 128 KB PlayStation memory card image, so saves can be copied to and from emulators. Settings are in muppetmonster.ini.

In-game settings (F1 or Esc, Start+Select on a controller)
SettingOptions
Resolution1x (original) to 6x internal resolution (restart); the window follows it (240 lines x the setting, shrunk to fit the desktop)
Widescreen 16:9wider view of the 3D world
VSync, Fullscreen (F11 / Alt+Enter)
Scalingsharp or smooth
Texture filteringoff (original), smooth 3D (2D art and text stay sharp), smooth everything - bilinear on the palette-decoded texels, so transparent edges stay clean
Colourtrue colour, or the original 15-bit colour with the PlayStation's dither pattern
Precise geometrysub-pixel polygon positions and perspective-correct textures (no wobble or texture warping), PGXP-style
Screen filteroff, scanlines, CRT (scanlines + aperture grille + glow; needs a window 600+ pixels tall)
Audio resamplingstandard, or high quality (windowed-sinc) for the streamed XA music and voices
Swap A/B and X/Yface buttons by position
VibrationDualShock rumble on your controller (off/on, strength 25-100%)
Fast CD loadinglevels load faster; music and movies stay real-time
Game speed1x-8x fast-forward (hold Tab for a burst)
Frame rate displaygame frames per second and emulation speed (100% = a real console)
Keyboard keysrebind every PlayStation button (or reset to defaults)
Controller buttonsrebind every PlayStation button to controller buttons, triggers or stick directions
Controls

Any XInput/SDL gamepad works as a DualShock (analog sticks and rumble when the game enables them). Controllers SDL has no mapping for are used as generic joysticks (buttons, hats, axes), and a gamecontrollerdb.txt next to the exe adds more mappings. Start+Select opens the settings menu. Keyboard defaults: arrows = d-pad, X = Cross, Z = Circle, A = Square, S = Triangle, Q/W = L1/R1, 1/2 = L2/R2, Enter = Start, Backspace = Select, I/J/K/L = right stick, Tab = fast-forward (hold). Change them in the F1 menu under Keyboard keys (saved in muppetmonster.ini).

Layout

PathWhat it is
src/recomp.py, src/mips.pyRecompiler: executable + overlays -> src/gen/*.cpp (one C++ function per MIPS function)
src/gen/Generated code (committed so CI can build without the disc)
src/runtime/Runtime: memory map, HLE BIOS (events, threads, interrupts, memory cards), GTE, GPU -> OpenGL, SPU, CD-ROM (XA/CD-DA), MDEC, controllers, timers, DMA
config/functions.txtExtra entry points and functions that run in the interpreter
config/hle.txtGuest functions replaced by host code
config/psyq.txtPsyQ library names found by signature
tools/Disc preparation, disassembler, signature matcher, reference STR/BS decoder

Regenerating the code

python3 tools/prepare_disc.py "Muppet Monster Adventure.cue" game   # executable + overlays
python3 src/recomp.py game config src/gen 300

Building

Linux headless test build (EGL, screenshots): cmake -S src -B build -G Ninja && ninja -C build, then SHOT_DIR=shots SHOT_EVERY=60 FRAMES=3000 ./build/muppetmonster game.cue.

Windows (cross-compiled with mingw-w64): see .github/workflows/build-windows.yml.

Disclaimer

This is an unofficial fan project. It is not affiliated with, endorsed by, or sponsored by The Jim Henson Company, Midway, Psygnosis, Magenta Software or Sony. Muppet Monster Adventure, the Muppets and all related names and marks belong to their respective owners. This repository and its releases contain no game data (graphics, sound, music, movies): those come from your own legally obtained disc image. The recompiled source and the release exe contain code machine-translated from the game's executables.

License

The project's own code is released under the MIT License. Third-party components keep their own licenses; see THIRD_PARTY_NOTICES.md.