ActionManRecomp

ActionManRecomp is a native PC port of Action Man: Operation Extreme with support for higher resolutions and frame rates.

README

Action Man

A static recompilation of Action Man: Operation Extreme (PlayStation, NTSC-U, SLUS-00887; released in Europe as Mission Xtreme) into a native PC program, built on PSXRecomp v4 and recomp-ui, following the method of ApeEscapeRecomp.

NOTE: As of 0.6.0 the recompilation is now built from the US disc, Action Man: Operation Extreme (SLUS-00887), running at its native 60 Hz. The PAL code was sped up for 50 Hz, so the US code gives the right speed and timing at 60 Hz. The PAL disc is no longer supported; PAL owners can stay on 0.5.0.

The game's MIPS executable is translated ahead of time into C, compiled into a native program and run on PSXRecomp's PS1 hardware simulation (GPU, SPU, GTE, CD-ROM, MDEC, memory cards) with the recompiled open-source OpenBIOS.

This repository contains no game code, data or assets. Game data is always read from your own disc image (see DISC.md). The release downloads are ready-to-run builds; see Distribution for exactly what they contain.

Status: preview. The game boots and plays through the parts tested so far, but a complete playthrough has not been verified. See Known issues.

Download and play

Releases are published on the Releases page:

FileWhat it is
Action-Man-Recomp-<version>-windows-x64.zipthe game for Windows 10/11 x64
Action-Man-Recomp-<version>-linux-x64.zipthe game for Linux x86-64 (glibc 2.35+, OpenGL)
  1. Extract the zip for your platform into a folder of its own.
  2. Run ActionManRecomp.exe (Windows) or ActionManRecomp (Linux).
  3. In the launcher, select your own disc image – a raw BIN/CUE of Action Man: Operation Extreme (US, SLUS-00887); see DISC.md. Do not convert it to .iso. Since 0.6.0 the PAL disc (SLES-01761) is no longer supported; PAL owners can stay on 0.5.0.
  4. Play. Saves go to saves/, settings next to the executable. OpenBIOS is included; no BIOS dump is needed.

No developer tools are needed to play. To update, extract the new version over the old folder. Level code compiled by an older version (cache/) is ignored and rebuilt automatically.

Launcher settings

The launcher opens before the game. Its Settings pages cover:

  • Video – renderer (OpenGL is recommended), window size and fullscreen, internal resolution (up to 8K, default 1440p), antialiasing (Off / Bilinear: a smoothing filter on the final image, off by default), texture and FMV filtering, screen model and scanlines, VSync, and the Render thread and Present thread options (greyed out while the Frame Rate mod is on). For a higher frame rate use the Frame Rate mod.
  • Audio – volume and high-quality SPU (sound chip) emulation.
  • Input – DualShock analog or digital pad, button bindings and analog deadzone.
  • System – BIOS choice (the included OpenBIOS works).
  • Hotkeys – the keyboard shortcuts below, which can be rebound.

Mods

The Mods page lists the bundled mods. All except Language Select are off until you enable them:

  • Language Select (on by default) – the European flag screen at start-up: English, French, German, Spanish, Italian, Dutch, Swedish, Finnish, Norwegian and Danish, with their voice-over. English uses the US text. Turn it off to boot straight into US English.
  • Action Man Widescreen – 16:9 (tested), 21:9 (untested) or Adaptive (follows the window shape), with the HUD kept at its original proportions.
  • Action Man Frame Rate – draws extra in-between frames at 60 FPS (default, recommended) or 120 FPS, while game logic, timers and audio keep their original pace. Needs OpenGL; see Frame rate.
  • Action Man Cheats – in the Cheats group: Invincibility (health refills instead of running out), All weapons (every weapon with full ammo once a mission starts), Easy Mode and Unlock all missions (opens every mission in HQ's mission select; the unlock is kept in your save). They use the game's own developer options and unlock cheat.
  • PGXP Precision – sub-pixel vertex precision and perspective-correct textures to reduce polygon wobble. Needs supersampling of 2× or more.
  • CD Speed – shortens loading by speeding up the emulated CD drive. Raise it gradually; very high values can stall a load.
  • HD Texture Packs – loads DuckStation-compatible replacement textures (OpenGL) or dumps the originals. No artwork is included.

Hotkeys

Defaults (change them under Settings › Hotkeys):

  • Tab – hold to speed up the game (fast-forward).
  • F7 – save states. Savestates are tied to the exact build and do not load across versions.

Known issues

  • Vertex wobble as on original hardware
  • Minor HUD glitches due to widescreen rendering
  • Frame Rate mod: 30 fps scenes at 60 FPS show a mild uneven cadence, and 120 FPS pacing is uneven; 60 FPS is recommended
  • 21:9 rendering is untested on real hardware. Please report any issues.
  • A fresh install judders on the first visit to each area until that level's code has been compiled (see Level code)
  • Savestates are tied to the build and may not load across versions; PAL savestates do not load in 0.6.0

Status

AreaState
Boot (OpenBIOS, BIOS logo skipped)✅ language select (mod) → intro FMV → title
Front end / HQ apartment✅ menus, briefings, mission select, options
Briefing voice-over (XA audio)✅ fixed in 0.4.1 (see below)
Gameplay: city streets (driving)✅ playable, digital and analog input
Attract-mode levels (on-foot base, docks boss, cutscenes)✅ run
FMV (MDEC) and XA music✅
Controller✅ DualShock analog by default (the game locks analog mode itself)
Internal resolution✅ native up to 8K, default 1440p (OpenGL)
Widescreen 16:9 / 21:9 / adaptive✅ optional mod; HUD kept at 4:3 proportions
High frame rate✅ optional Action Man Frame Rate mod, 60 FPS (default) or 120 FPS
Languages✅ ten languages with voice-over via the Language Select mod
PGXP✅ built in; enable the bundled PGXP mod
Level code streamed from disc✅ interpreted on first visit, compiled to native code on your machine as you play
Complete playthrough⚠️ not yet verified

Recent changes

  • 0.6.0 – US disc. The game is now built from the US release, Operation Extreme (SLUS-00887), and runs at its native 60 Hz; the PAL code was sped up 1.2× per frame for 50 Hz, so the US code gives the right speed at 60. All mods are ported, and the new Language Select mod brings back the European flag screen (all ten languages and voices are on the US disc). The Frame Rate mod now offers 60 / 120 FPS, locked to the NTSC VBlanks, and shows each in-between at its proper time (in 20 fps scenes one image used to stay up ~30 ms and the next ~4 ms). The bow scope no longer flashes apart when a floor polygon touches the near plane. Launcher: Antialiasing is shown as Off / Bilinear and is off by default; the 8 MB RAM and Fast Loading mods are removed. Installing in a deep folder (paths over 260 characters) no longer stops the level-code cache from loading, which caused a freeze every 6 seconds. (patches/psxrecomp/0006-… to 0010-…, patches/recomp-ui/0002-…)
  • 0.5.0 – bow scope in widescreen. The scope view's mask, side panels and first-person bow are flat 2D drawn over the world; only their axis-aligned pieces were proportion-corrected, so the mask tore open, the zoom meter left its panel and the bow's wings came apart. Slanted 2D drawn in front of the whole world is now corrected with them, and pieces on the screen edge still reach the edges of the wide image. (patches/psxrecomp/0005-…)
  • 0.4.6 – launcher clean-up and cheats. The generic Smooth motion option is no longer offered (the Frame Rate mod replaces it), and the FMV Skipping and Bezel Artwork mods are removed. The Widescreen and Frame Rate mods are now version 1.1.0. New Action Man Cheats mod: Invincibility, All weapons, Easy Mode and Unlock all missions, toggled in the launcher's Cheats group. (src/mods/amx_frame_rate_plugin.cpp, src/mods/amx_cheats_plugin.c, patches/psxrecomp/0004-…)
  • 0.4.5 – smoother Frame Rate mod. On City streets the render passes switched themselves off after a few seconds of driving (a sound call the game makes there faulted inside every pass); it is now skipped during passes. The rate choices are now 50 FPS (the new default) and 100 FPS, which divide the PAL game's 25 fps evenly (replaced by 60 / 120 FPS in 0.6.0). The real game frame is now shown between the in-betweens (at 50 FPS only the in-between was shown, twice), and presents are locked to the emulated VBlanks so they no longer slide against the game when it runs slightly behind real time. The release zip now bundles Python and TinyCC for the level-code toolchain, so nothing has to be downloaded.
  • 0.4.4 – widescreen HUD. HUD and world are now told apart by where each shape's corners come from: anything with a vertex projected by the 3D math unit (GTE) is world, every other 2D shape is HUD. This fixes the black flickering squares around the language-screen flag and HUD boxes coming apart from their outlines and contents; the 3D vehicle icons inside HUD boxes now move with their box. (patches/psxrecomp/0003-…, [widescreen] auto_ui_provenance in game.toml)
  • 0.4.3 – options-menu flicker in widescreen. The see-through panels behind the apartment option menus flickered between HUD and world scaling. (patches/psxrecomp/0002-…)
  • 0.4.2 – mission-select flicker. With the Frame Rate mod, the HQ mission-select picture and the in-game item menu flickered while the camera moved. Image uploads the game makes into the frame being drawn are now held and applied after that frame's drawing, as on the console. (src/mods/amx_frame_rate_plugin.cpp)
  • 0.4.1 – voice-over. The briefing voice clips in the apartment were cut off immediately. The emulated CD drive reported Read straight after a seeking read command, so the game's XA voice manager never armed its end-of-clip timer and paused every clip. The drive now reports Seek until the seek completes, as the hardware does. (patches/psxrecomp/0001-…)

Building

The build has two inputs: this repository and your own disc image (see DISC.md for the exact dump that is required).

Prerequisites

  • Linux x86-64 (or WSL2). Native Windows and macOS builds are not tested.
  • git, python3 (3.11+; the cmake-clang-v1 pack includes one), and a C/C++ toolchain with CMake ≥ 3.20 and Ninja. The recommended toolchain is the portable cmake-clang-v1 pack from RetroPorting-Toolchains (Clang/LLD, CMake, Ninja, SDL3 and a build sysroot); unpack it and point PSXRECOMP_TOOLCHAIN_DIR at it, or run its install.sh.
  • Internet access during the first configure (CMake fetches SDL3, zlib, libwebp and libchdr at pinned versions).
  • About 2 GB of free disk space (the build keeps a copy of your disc image in disc/).
  • For Windows binaries: llvm-mingw (UCRT, x86_64 Linux host), with LLVM_MINGW_ROOT pointing at it.

One command

git clone --recurse-submodules https://github.com/GnomeChimpsky/ActionManRecomp.git
cd ActionManRecomp
export PSXRECOMP_TOOLCHAIN_DIR=/path/to/cmake-clang-v1   # optional
scripts/build.sh --disc /path/to/ActionMan.cue                 # Linux build
LLVM_MINGW_ROOT=/opt/llvm-mingw scripts/build.sh --windows     # Windows build (reuses generated/)

scripts/build.sh performs these steps, which you can also run by hand:

  1. git submodule update --init --recursive – checks out PSXRecomp, recomp-ui and their submodules at the upstream commits in framework_pins.txt.
  2. scripts/apply_patches.sh – applies this project's framework changes in patches/ to the submodule working trees (no forks; see Framework patches). Safe to re-run.
  3. psxrecomp/tools/ci/build_emitters.sh – builds the recompiler (psxrecomp-game, psxrecomp-bios) for your machine.
  4. python3 psxrecomp/psxrecomp_cli.py generate --config game.toml --project-root . --disc <cue> – checks your dump against the hashes in game.toml, copies it into disc/ and writes the game C into generated/. Both are git-ignored and must stay private.
  5. CMake configure and build of the psx-runtime target with -DPSXRECOMP_REQUIRE_GAME_C=ON (Linux: build-linux/; Windows: build-win/, plus a Windows recompiler in build-recompiler-win/ for the level-code toolchain).

Configuring without generated/ stops with an explanation rather than building a program without the game.

Cross-compiling for Windows

Windows binaries are cross-compiled on Linux with llvm-mingw using cmake/llvm-mingw.cmake:

cmake -S . -B build-win -G Ninja -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_TOOLCHAIN_FILE=cmake/llvm-mingw.cmake \
  -DLLVM_MINGW_ROOT=/opt/llvm-mingw-<version>-ucrt-ubuntu-22.04-x86_64 \
  -DPSX_ENABLE_VULKAN=OFF -DPSXRECOMP_REQUIRE_GAME_C=ON
cmake --build build-win --target psx-runtime

The Vulkan renderer is disabled for Windows cross builds; OpenGL is the default and recommended renderer.

Packaging a release

scripts/package_release.sh build-win   windows-x64 build-recompiler-win
scripts/package_release.sh build-linux linux-x64

This writes dist/Action-Man-Recomp-<version>-<platform>.zip with the executable, OpenBIOS, the mods, overlay_toolchain/ (the generic recompiler and headers plus pinned Python and TinyCC, downloaded and SHA-256-checked by the framework packager), licences, LICENSE and DISC.md. The framework packager refuses generated C, BIOS dumps, disc images and memory cards. No precompiled level-code cache is packaged; each player's copy builds its own (see Level code).

On a machine that cannot download Python and TinyCC, set AMX_OFFLINE_TOOLCHAIN=1 to package overlay_toolchain/ without them. Windows players then run the included get_overlay_toolchain.ps1 once; Linux players use a system gcc/cc/clang if present.

Framework patches

The submodules point at unmodified upstream commits. This project's changes to the framework are kept as patches and applied by scripts/apply_patches.sh:

PatchWhat it does
psxrecomp/0001-cdrom-report-Seek-…CD drive reports Seek while a read seeks to its target (voice-over fix)
psxrecomp/0002-widescreen-auto-UI-admit-see-through-…widescreen HUD: see-through backing panels are HUD at any OT rank
psxrecomp/0003-widescreen-auto-UI-classify-HUD-by-vertex-provenancewidescreen HUD: HUD vs world by vertex provenance (auto_ui_provenance)
psxrecomp/0004-render-passes-show-the-real-frame-and-lock-presents-…render passes: show the real frame between in-betweens; lock presents to the guest's VBlanks
psxrecomp/0005-widescreen-auto-UI-squash-slanted-front-overlays-…widescreen HUD: slanted 2D drawn in front of the world (bow scope) keeps its proportions
psxrecomp/0006-render-passes-lock-60-120-FPS-to-NTSC-VBlanksrender passes: frame lock also at 60 / 120 FPS on 59.94 Hz NTSC
psxrecomp/0007-widescreen-auto-UI-ignore-stray-front-world-…widescreen HUD: a single near-plane world polygon no longer breaks the scope
psxrecomp/0008-overlay-autocapture-back-off-…level code: back off when a background compile does not help
psxrecomp/0009-overlay-cache-load-shards-when-the-install-path-is-l…level code: load the cache from install paths over 260 characters; long-path-aware exe
psxrecomp/0010-render-passes-present-the-next-in-between-on-time-…render passes: present the next in-between on time while passes run
recomp-ui/0001-PSX-launcher-show-Render-thread-Present-thread-…launcher: render thread / present thread settings (no generic Smooth motion), greyed out with the Frame Rate mod
recomp-ui/0002-PSX-launcher-show-Antialiasing-as-Off-Bilinearlauncher: Antialiasing shown as the Off / Bilinear filter it is

Applying them to the pinned commits reproduces the framework trees the released builds were made from exactly. To update the framework, move the submodule to a new upstream commit, re-run scripts/apply_patches.sh, fix any patch that no longer applies, then refresh framework_pins.txt with psxrecomp/tools/ci/record_pins.sh.

Playing

  1. Build (above) and run the executable in the build folder, or unzip a package you made and run ActionManRecomp.exe.
  2. In the launcher, select your own disc image (.cue, see DISC.md). Keep the raw .bin; do not convert it to .iso.
  3. OpenBIOS is included; a retail BIOS is optional.
  4. Optional features on the Mods page: Action Man Widescreen (16:9 / 21:9 / adaptive), Action Man Frame Rate, Action Man Cheats, PGXP, CD Speed (Language Select is on by default). Settings › Video: internal resolution, antialiasing, texture filtering, render thread.

The level-code toolchain

The game zip includes overlay_toolchain/ (the PSXRecomp recompiler plus pinned Python 3.13.1 and TinyCC 0.9.27), so the game can compile level code on your machine. If a Windows package lacks the Python and TinyCC parts (an offline package), run get_overlay_toolchain.ps1 once from the game folder: it downloads them and checks their SHA-256. Without them the game still runs correctly; that code just stays on the interpreter.

Level code

Action Man loads level code (overlays) from ACTION.DAT while it runs. The static recompiler cannot see that code at build time, so the first time a level is visited it runs on PSXRecomp's dirty-RAM interpreter. With [runtime] overlay_cache = true (the default here) the runtime records the code it sees (overlay_captures.json) and compiles it to native code in the background into cache/, so later visits run natively. Releases do not include a precompiled cache; it is built on each player's machine from their own disc. Developers can pre-build one for their own machine with gcc using psxrecomp/tools/compile_overlays.py (see psxrecomp/docs/COMPILING_OVERLAYS.md). cache/ and overlay_captures.json contain code from the game: never commit or publish them.

Frame rate

The game runs its logic once per rendered frame, at 30 fps (NTSC 60 Hz / 2), or 20 fps in heavy scenes, as on a console. Running the emulated CPU faster also speeds up the game, so it is not used. Instead, the Action Man Frame Rate mod uses PSXRecomp's render passes: between two game frames it restores the machine to the start of the frame's draw code, replays the game's own drawing with every 3D projection placed part of the way between the two frames, and submits the result with the game's own calls. Game logic, timers and audio keep their original pace. Use it with the OpenGL renderer. The framework's generic Smooth motion option is not offered, because it causes stutter and texture flicker in this game.

Presentation rate offers two settings, both whole multiples of the 60 Hz VBlank rate, so presents stay locked to the game's frames:

  • 60 FPS (default, recommended): one or two in-betweens per game frame (30 / 20 fps scenes).
  • 120 FPS: three to five in-betweens per game frame; needs a f