TARGET: Terror (Wii) (recomp)

TARGET: Terror (Wii) (recomp) is a native recompilation of TARGET: Terror for Windows and Linux.

README

TARGET: Terror (Wii, NTSC-U) - native recompilation

A static recompilation of TARGET: Terror for Wii (disc, NTSC-U, RGDEA4, Raw Thrills / Konami, 2008) to native code. The game's PowerPC executable is translated to C++ and runs on Windows (and Linux) with a small runtime that replaces the Wii hardware, IOS and the DSP.

No game data is included. You need your own copy of the game as a disc image (.iso or .ciso).

Download

Get the latest TargetTerror-<version>-win64.zip from Releases, unzip it, put your disc image (.iso or .ciso) in the same folder and run targetterror.exe: the first start builds the game folder from it. Nothing else to install. The zip's README.txt has the controls and keys. To build it yourself, see Building.

Light gun controls

The mouse is the Wii Zapper / Wii Remote pointer: aim with the mouse, left button = trigger (B), right button = A, middle button = reload (fires off screen; moving the pointer off the picture works too). The settings menu (F1 / Esc) can swap the left and right buttons. A gamepad works as well: either stick moves the crosshair, RT = trigger, A = A, LT = reload. Keyboard: Space = trigger, X = A, R = reload, Enter = +.

F11 / Alt+Enter toggles fullscreen, hold Tab to fast-forward. Saves and high scores go in a nand folder next to game.

Status

  • v1.0: plays through the menus, the news intros and the levels; play-tested on Windows with the mouse. Built-in disc extraction on the first start, sound latency trimmed (see NOTES.md).
  • Bink videos (backgrounds and the video-sprite enemies) work: the game draws them with GX indirect texturing, which the renderer now does in fixed point like the hardware.
  • One player.

Shares its recompiler and runtime with the ReBirth ports, Chocobo's Dungeon and Geometry Wars: Galaxies; per-game addresses are in src/runtime/game.h and the idle loop in src/recomp.py. See NOTES.md.

Building

The generated C++ is in src/gen, so regenerating it is only needed after changing symbols or the recompiler. GitHub Actions builds every push (see .github/workflows/build-windows.yml); version tags and published releases attach the zip. Tested on Ubuntu 24.04 (on Windows use WSL); the build cross-compiles a Windows exe.

sudo apt install -y git wget python3 cmake ninja-build mingw-w64 g++-mingw-w64-x86-64-posix
wget https://github.com/libsdl-org/SDL/releases/download/release-2.30.9/SDL2-devel-2.30.9-mingw.tar.gz
tar xf SDL2-devel-2.30.9-mingw.tar.gz          # -> ~/SDL2-2.30.9
git clone https://github.com/darkuni/target-terror-wii-recomp.git
cd target-terror-recomp/src
# optional: python3 recomp.py ../game/sys/main.dol symbols.txt gen 300   (regenerates src/gen)
cmake -S . -B build-win -G Ninja -DCMAKE_TOOLCHAIN_FILE=mingw.cmake -DSDL2_DIR=$HOME/SDL2-2.30.9/x86_64-w64-mingw32
ninja -C build-win -j2

Copy build-win/targetterror.exe, SDL2.dll, libwinpthread-1.dll and runtime/ipl-font-licenses.txt into a folder with your disc image.

Linux test build (headless, EGL; writes screenshots): cmake -S . -B build -G Ninja -DCMAKE_CXX_COMPILER=clang++ && ninja -C build, then POINTER=0.5,0.5 SHOT_EVERY=100 SHOT_DIR=shots TIMEOUT=120 ./build/targetterror ../game.

Disclaimer

This is an unofficial fan project. It is not affiliated with, endorsed by, or sponsored by Konami, Raw Thrills, Leviathan Games or Nintendo. TARGET: Terror and all related names and marks belong to their respective owners. This repository and its releases contain no game data (graphics, sound, video, levels): those come from your own legally obtained disc image. src/gen and the release exe contain code machine-translated from the game's executable.

License

The project's own code is released under the MIT License. Bundled third-party components (fonts, OpenGL headers) keep their own licenses; see THIRD_PARTY_NOTICES.md.