A native PC port of Onimusha: Warlords (NTSC-U, SLUS-20018), made by statically recompiling the game's PlayStation 2 code to C++. Windows now; Linux later.
Built on BozoEngine, The Bozos' own toolchain: the game's EE code recompiled to C++, every library and kernel call it makes answered by native code. No PS2 hardware model at any level: no GS, VU, VIF/GIF, DMA, IOP or SPU2.
Important
No game files are included: no ELF, overlays, IRX modules, data, or code generated from them.
You need your own copy of the North American release, PS2 ID SLUS-20018 (disc version 1.00). The port is
built against that disc's executable:
| File | SHA-1 |
|---|---|
SLUS_200.18 |
21166f0c7ec1ee2e6dfb87e81af242efaf521dc7 |
Bring-up: from the boot to the first room in play, characters included, natively in a window, at 60 frames a second. The executable and its 98 code overlays are recompiled; Capcom's sound driver and Sony's synthesizer run as statically compiled native code (the title music plays); the pre-rendered backgrounds are decoded from the disc's IPU streams and the 2D (logos' fades, "PRESS START BUTTON", the menu and its frame) is drawn from the game's own sprites and textures. The movies (the attract sequence, New Game's intro and letter) play with their sound through BozoEngine's native libmpeg, and START skips them. New Game reaches the first room: its opening event plays with its voiced dialogue and subtitles over the pre-rendered cuts, then the game hands over with the HUD. The characters are drawn: the game's own VU1 microprograms, translated to C++, run on the models' VIF1 chains and their GIF packets become the frame's draws, with the room's own depth (the cut's Z buffer) so the scenery stands in front of them, and their shadow volumes cast on the pre-rendered ground; the animated backgrounds (the rooms' IPU movies) play in their place. Save states work, the port's own state included; the game's own effect chains (dust, glints, the motion blur) are drawn. Next: the rest of the game, scene by scene.
| Milestone on BozoEngine | |
|---|---|
| Map the main ELF and every overlay from the game's own symbol table and DWARF (CodeWarrior, symbols kept) | ✅ |
Recompile with bozo-recomp: the resident program and 98 MWo3 modules (two enemy slots, rooms), each selected by its resident header |
✅ |
| Capcom's SNDDRVCD and Sony's modular synthesizer (LIBSD, SDRDRV, MODHSYN, MODMIDI, MODMSIN) statically compiled from the disc; the driver's RPC handshake, both ways; the title music | ✅ |
Native frame boundary: main's vsync and CSR polling answered, sceGsSwapDBuffDc ends the frame |
✅ |
Backgrounds: the IPU streams (ETC/*.IPU, the rooms' RDT) decoded natively (FFmpeg's IPU decoder) |
✅ |
| The 2D: textures as the game uploads them, the ordering table and the fades drawn natively | ✅ |
| Boot screens, title, main menu in the window; the pad moves the menu | ✅ |
Movies (MOVIE/*.PSS): Sony's sample player in the game, through BozoEngine's native libmpeg, with sound; skipping |
✅ |
Animated backgrounds (BGS/*.IPU): the rooms' IPU movies decoded natively into the picture |
✅ |
| New Game: the intro and letter movies, then the first room's loading | ✅ |
| The first room: its cuts (Z buffer + IPU picture), its opening event with voices (ADS streams, the SPU2 interrupt) and subtitles, the HUD | ✅ |
| Collision's VU0 program (POLYCALC) translated to C++ | ✅ |
| Native 3D models: the 15 VU1 microprograms translated to C++, the models' VIF1 chains run natively, their GIF packets drawn (Samanosuke, Kaede, the soldiers) | ✅ |
| Shadows (the shadow volumes counted in an off-screen buffer, then darkening the frame), depth against the pre-rendered rooms (the cut's Z buffer) | ✅ |
| The game playable: the first room drawn and controllable, its fight, the next room's event | ✅ |
| The rest of the game, room by room (so far: the gauntlet's event, rooms 1, 2, 3 and 6: the gate, the storehouse, the soldiers, the forest road and its cave) | 🔧 |
| Save states (the port's own state included: the sound modules' IOP, the textures, VU1) | ✅ |
| Memory-card saves on disk (the user folder), fast forward | ✅ |
| Cheats (F2 → Cheats): infinite health, magic, souls and items, one-hit kills; a room warp to the 116 rooms a door leads into | ✅ |
| Every door-reachable room loaded and played (116): no crash, no misplaced picture | ✅ |
The whole story, played headless by a scripted bot (ONI_BOT) from the forest cave to Fortinbras, the ending and the RESULT screen: 68 legs, every boss, puzzle and scene of the main route |
✅ |
| The optional Dark Realm (twenty floors), the Bishamon Sword and the Great Armor, played as a branch of the bot's run to the end of the game | ✅ |
| The Magic Mirror: an in-game save to the memory card, ENHANCE (souls into swords and orbs) | ✅ |
| PC options: widescreen, render scale, anti-aliasing, frame interpolation, more cheats | ⏳ |
✅ works · 🔧 in progress · ⏳ not reached yet
docs/RECOMP_NOTES.md records how the port is brought up, every fix and how it was found, and what remains open.
2026-11-24. The optional branch: the hanging head's offer taken, the Dark Realm's twenty floors of demons, the Bishamon Ocarina at the bottom, and in the Dark Fountain's room the ocarina opens the wall on the Bishamon Sword; the game then finished with it, in the Great Armor from the waterfall's trick box (a 3 x 3 knob board, five turns).
2026-11-24. The end of the game: the Great Arrow breaks the Demon Gate's seal, Marcellus in the Demon Realm, the spiral down to the king's chamber, Fortinbras, the ending movie, the staff roll and the RESULT screen. The story bot has played Onimusha: Warlords through from start to finish on BozoEngine.
2026-11-24. Kaede's part by the lake (the attic's book in demon script, a third knob box for the Decorated Arrow, the dragon pedestal's Great Arrow swapped for it, the Green Key, the second boat), then Samanosuke against the Queen Bee in the turret and the turret burning down.
2026-11-24. The Evil Plate and the Demon Gate, the Decorated Sword's door, and stage 3 up to the turret. Found by looking at the story gallery: the garden's pond (stage 3 room 7) had no water, its koi on the dry bed. The water is a background movie kept in the shadows' buffer and drawn through the room's own polygons, sent with a DMA call the port did not catch; it is drawn now.
2026-11-24. The triple orb doors: the Thunder orb and then the Fire orb raised to level 3 at the Magic Mirrors, the triple blue-orb seal into the Statue of the West's room, the triple red-orb door to the ogres (the Statue Head), and the headless statue's gate opened for the Matchlock.
2026-11-24. Kaede's part played through by the bot: the Red Key, the archers' yard, the furnace's Gold Plate, the Gear and the Silver Plate for the iron door, a second knob box (the Sacred Knife), the flesh bars and Princess Yuki's prison, the vanishing ninja; then Samanosuke's Boss 3 (his own double) and the climb back into the keep, where the hanging head offers the Dark Realm (declined).
2026-11-24. On through the keep: the green-orb door (Nui's scene), ENHANCE and the double blue-orb door, the stand of three orbs (each lit by its own sword), the rope and the Rosary, the Purifier Bell clearing the ghosts from a door, the double green-orb door and its trick box (a 2 x 4 board of knobs, solved by search from the game's own answer table): the Blue Key, then the demon's trap and Kaede's part of the story.
2026-11-24. The keep's puzzles solved by the story bot (the lever trap with Kaede, the fall-trap floor of shogi pieces, the water prison's sliding crest puzzle, the crest door), then boss 2 on the keep's roof and the Wind Orb.
2026-11-24. Into the keep in the story's order (the bot's legs 13-21): Yunemaru's event in the keep, and the Magic Mirror's ENHANCE screen (the fire sword at level 2, which the double red-orb door asks for). The Magic Mirror's SAVE writes the game to the memory card too.
2026-11-24. Further into the story, played by the bot: the first boss (the mace-wielding ogre, met at the bottom of the dry moat) and the event after it, its cinema bars now whole (the bars blend by the frame's alpha, which a 24-bit frame does not keep: the GS reads it as 0x80).
2026-11-24. The underground temple's trick treasure box, its six tiles all drawn now (the room's depth had hidden most of them behind the puzzle), solved by the story bot for the Rope Ladder.
2026-11-23. The story going on in its own order, played by the new headless bot (ONI_BOT): out of the forest
cave's hole into the underground temple, its map box taken and its stairs climbed into the temple.
2026-11-23. Movies played from a room's own script, native: the army under the moon (LINKS05, stage 2) and, in
stage 5, the hall's movie (LINKS01) handing over to the encounter that follows it. A movie that started on the wrong
field used to hold on its first pictures forever, and a finished movie's fade used to stay over the room.
2026-11-23. Further in, native and at 60 frames a second: the storehouse's fight in the sun shafts (room 2), and the forest road's cave with its zombies and an ogre (room 6), after the castle gate, the storehouse and the soldiers' event (rooms 1 to 3). The models' work now runs on a thread of its own, so the crowded fights keep their frame rate and their sound.
2026-11-23. Combat and the story going on, native: the zombie soldiers at the courtyard's gate (the sword's slash, the zombies' green trail, the hit's fire, blood on the ground, at 60 frames a second with infinite health from the new Cheats tab), then the event that follows in the next room with its voiced lines and subtitles.
2026-11-23. An animated background, native: the shrine in the castle gate's courtyard (cut 21, reached here with
the ONI_FORCE_CUT test switch), its orb glowing from the room's IPU movie MOV000L, decoded by FFmpeg's IPU decoder
and put in place as the game's own image transfers lay it on the frame.
2026-11-23. Depth and shadows, native: the room's picture is drawn into the frame with the cut's Z buffer under it, so the scenery hides what stands behind it; the characters' shadow volumes are counted in an off-screen buffer that shares the frame's depth, then darken the ground, as the game does on the GS (the spear guard's shadow falls to the lower left, the spear's line in it).
2026-11-23. The characters, native: the game's 15 VU1 microprograms translated to C++ and run on the models' own VIF1 chains, their GIF packets drawn with their textures; Samanosuke and Kaede in the opening event, then Samanosuke and a spear guard in the castle gate's courtyard, at 60 frames a second.
2026-11-23. The first room, native: its opening event over the castle gate (the pre-rendered cuts decoded from the room's BGS stream, Kaede and Samanosuke's voiced lines with their subtitles), then the first moments of play with the HUD (before the characters were drawn).
2026-11-23. The movies, native: the opening (the attract sequence after 40 seconds on the title) and New Game's letter to Samanosuke, decoded by BozoEngine's libmpeg (FFmpeg) from the disc's PSS files, with their sound, at 60 frames a second; START skips them.
2026-11-23. The main menu, native: the title's pre-rendered picture decoded from the disc's IPU stream, NEW GAME / LOAD GAME / OPTION and the selection frame drawn from the game's own sprites; the pad moves the frame.
2026-11-23. The title screen and the Capcom logo, the first pictures BozoEngine drew for Onimusha: the IPU backgrounds decoded natively, the logo's fade drawn from the game's fade sprite.
A fully playable Onimusha: Warlords as a native PC program, from the opening to the ending, drawing and playing sound directly from the game's data. Accuracy and complete gameplay coverage come first; Linux, widescreen and additional presentation options follow.
disc files (game/) ──► tools/oni_prepare.py ──► resident ELF + 98 overlay ELFs (enemy slots 0/1, rooms, em090)
│
BozoEngine's bozo-recomp ──► native C++ in build/bozo/oni_gen/
six sound IRX ──► tools/oni_bozo_audio.py: relocation + strict native translation ──► build/bozo/oni_audio_gen/
│
CMakeLists.txt ──► BozoEngine + generated code + Onimusha's own adapters
│
oni_bg.cpp: IPU backgrounds (FFmpeg) ─┐ oni_tex.cpp + oni_sprite.cpp: uploads, ordering table, fades ─┐
oni_port.cpp: frame boundary, CSR and display sites ──► native renderer, host services ─────────────┤
oni_audio.cpp: compiled drivers, the EE service 0x77777779 ──► native mixer ├─► onimusha.exe
generated module registration: overlays by resident identity ──► native dispatch ──┘
SLUS_200.18keeps its CodeWarrior symbols and DWARF: 6,354 named functions, no symbol-map phase.- Enemy and room code are
MWo3modules inside the disc'sLMRandRDTfiles, already linked at their slot (0x4ba780,0x4c9500,0x4d8280). Each module is its own generated image with its own function table; native dispatch checks the 64-byte header resident at the slot before selecting it. SNDDRVCD.IRXand Sony's synthesizer modules are relocated and compiled offline (BozoEngine'stools/native_irx); the game binds the driver over SIF RPC as on the console, and the driver's own calls back to the EE are served natively. Pad and card modules are answered at their SDK interfaces.- The build generates everything automatically and links
onimusha(window) andoni-headless. Game-derived output stays in the ignored build directory.
BozoEngine is the sole engine submodule. Game-specific addresses, formats, hook choices and module layouts stay in Onimusha_Recomp; engine changes must be generic and reusable by other ports.
- Windows 10/11 with MSYS2 (UCRT64, see below); Linux is not qualified yet
- CMake 3.21+, Ninja, GCC with C++20 support
bsdtar(libarchive) to extract the disc, Python 3, GNU make and curl forscripts/build_ffmpeg.sh- OpenGL 3.3 for the window; SDL3 and ImGui are fetched at pinned revisions by BozoEngine
- Your own copy of
SLUS-20018(check the hash above)
git clone --recursive https://github.com/TheBozos/Onimusha_Recomp.git
cd Onimusha_Recomp
scripts/extract_iso.sh "Onimusha - Warlords (USA).iso" # into game/
scripts/build_ffmpeg.sh # a static FFmpeg with the IPU and MPEG-2 decoders (~1 min)
scripts/build_runtime.sh # build/bozo/onimusha.exe and oni-headless.exe
scripts/run.sh --frames 600 --profile-io # the headless runnerThe headless runner prints the end reason, the device accesses left by site (--profile-io) and the native library
calls by name (ONI_CALL_STATS=1): each stop is the next thing to answer. --frames 0 runs until shutdown,
--pad-script <file> drives the pad, --wav <file> records sound, --dump-ram <file> writes EE memory at the end.
ONI_WINDOW_RUN=1 scripts/run.sh runs the window build instead; -DONI_WINDOW=OFF builds the headless runner only.
The window: build/bozo/onimusha.exe (keyboard or gamepad; --capture-dir DIR --capture-frame N saves frames).
| In the window | |
|---|---|
| F2 | Settings: controls (rebindable), video (render scale, anti-aliasing, texture upscaling, fast-forward speed), cheats |
| ` (hold; rebindable) | Fast forward (3x by default; the sound keeps its pace) |
| F5 / F7 | Save state / load state (ten slots) |
| Game saves | The memory cards live in %APPDATA%\Onimusha_Recomp\mc0 and mc1: an in-game save outlives the session (--card-dir DIR elsewhere; ONI_MEMORY_CARDS=1 keeps them in memory) |
Diagnostics: ONI_BG_TRACE=1 (backgrounds), ONI_2D_TRACE=1..3 (the 2D), ONI_TEX_TRACE=1 and |
|
ONI_TEX_DUMP=<dir> (textures), ONI_RENDER_TRACE=1 (frames), ONI_MOVIE_TRACE=1 (movies), |
|
ONI_BGMV_TRACE=1 (animated backgrounds), ONI_FADE_TRACE=1 (the game's fade and mode), ONI_PLAYER_TRACE=<n> |
|
(the player's place, position, facing and life every n frames), ONI_VU1_TRACE=1..3 |
|
(models; 3 lists every drawn batch), ONI_DRAW_ORDER=1 (each draw of a frame, in order), ONI_THREADS_AT=<frame> (every thread's state and pc at that frame). |
Story bot: ONI_BOT=<script> plays from a save state by a script of goals (doors, items, fights; the steps in
runtime/oni_bot.h); scripts/story/leg.sh <state> <script> <frames> runs one leg headless with the cheats on,
scripts/story/*.txt are the legs played so far.
tools/oni_disasm.py <SLUS_200.18> <function | 0xADDR> disassembles the resident code with the game's symbols
(needs capstone); tools/oni_dwarf.py <SLUS_200.18> build/oni_types.h writes the game's own types, functions and
globals from its DWARF as C (game-derived: it stays in build/).
Run the scripts in an MSYS2 UCRT64 shell; MSVC is not supported for this port.
pacman -S --needed mingw-w64-ucrt-x86_64-{gcc,cmake,ninja,pkgconf,libarchive,python} git make| Boot ELF | SLUS_200.18, entry 0x100008, one segment at 0x100000 (code and data, BSS up to 0x4ba780), symbols and DWARF kept |
| Code | 0x100000-0x1e9e00 (EE code), 0x1e9e00-0x1eeb40 (VU1 and VU0 microcode) |
| Overlays | MWo3 modules: enemies in IMAGE/LMR/*.LMR at 0x4ba780 / 0x4c9500, rooms in IMAGE/RDT/*.RDT at 0x4d8280, em090 at 0x2bf200 |
| Video mode | NTSC |
| IOP modules | IMAGE/MODULES/*.IRX: SIO2MAN, PADMAN, MCMAN, MCSERV, LIBSD, MODHSYN, MODMIDI, MODMSIN, SDRDRV, SNDDRVCD (Capcom's driver, ver 1.75); unused: the HD/HL/CL driver variants and the network stack (INET, ILINK, ILSOCK, AN986, USBD) |
| IOP image | IMAGE/MODULES/IOPRP202.IMG |
| Data | IMAGE/: backgrounds (ETC, BGS: IPU), movies (MOVIE: PSS), models and textures (PLD, LMR, RDT), music (BGM), effects (SE), voices (VOICE, English and Japanese) |
The Bozos' ports share a two-slot bench lock (BozoEngine's tools/bench_lock.sh): a game run takes one slot, a build
or a timed run both, in arrival order.
scripts/bench_run.sh 5 "headless boot" scripts/run.sh --frames 600
scripts/bench_run.sh --alone 30 "full rebuild" scripts/build_runtime.sh| Path | Contents |
|---|---|
BozoEngine/ |
Sole engine submodule: native recompiler and runtime |
runtime/ |
Onimusha's adapters: the frame boundary, native sites, sound modules, the window's icon (app/) |
scripts/ |
Extraction, builds, runs and the bench lock |
tools/ |
Offline preparation (resident and overlay images, module registration, sound modules) and analysis helpers |
docs/ |
Recompilation notes and branding (make_logo.py oni makes the banner and icons) |
Game-derived code, disc files, generated assets and saves stay local and ignored. No game executable, disc files or generated game code are distributed.
- The Bozos: boubou666 and Arzaroth, who make this port and BozoEngine (RecompWatcher shows our projects).
- BozoEngine, The Bozos' MIT recompiler and native runtime.
- The team's other recompilations, Dark Cloud first (the same toolchain, overlays and sound modules), then Twisted Metal: Black, The Lord of the Rings: The Third Age, Valkyrie Profile 2: Silmeria and Jade Cocoon 2, which share native development work.
- Onimusha: Warlords © Capcom. This is an unofficial fan project, not affiliated with or endorsed by Capcom.
MIT, see LICENSE. Game data is never part of this repository: every port builds from the player's own disc.











































