Skip to content

Repository files navigation

Onimusha: Warlords, native PC port by The Bozos

Onimusha_Recomp

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.

Platform Compiler Based on Status

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

For players (Windows)

Download Onimusha_Recomp-<version>-bozo.zip from Releases, check its .sha256, and extract it to a writable folder such as D:\Games\Onimusha_Recomp_Bozo (not Program Files). Open Onimusha Launcher.exe, select your own USA disc image (.iso or .bin/.cue), click Prepare the game, then Play. Preparation runs locally with the bundled offline tools (a compiler, CMake, Python, FFmpeg); no developer software is needed, and it can be cancelled and resumed. The launcher (English and French) follows the other Bozos ports' layout.

You need Windows 10 version 1903 or newer (or Windows 11), an AVX2/FMA CPU, OpenGL 3.3 and about 10 GB free. Only the unmodified SLUS-20018 disc is supported (its executable is verified). The unsigned launcher may trigger Windows SmartScreen. Game files and generated game code are never distributed.

With a controller, the game's own OPTION screen (from the title, or SELECT in play) turns with L1 / R1 to the port's pages, drawn like Options and driven by the pad: Graphics (display mode, resolution, render scale, anti-aliasing, texture filter, frame rate, widescreen; APPLY keeps them), Cheats (and the room warp), Save States (ten slots, save and load) and Close Game. In the game, F2 opens the settings (Video, Game: widescreen, Controls, Cheats, Save states, Profiler); rebinding the controls and the profiler stay there. Saves, controls, video settings and cheats are stored in %APPDATA%\Onimusha_Recomp and survive launcher updates. See CHANGELOG.md for what each release changes.

Status

Playable from start to finish, 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 pre-rendered rooms, their animated backgrounds and the movies (with their captions) are decoded natively; the characters are drawn by the game's own VU1 microprograms translated to C++, with the rooms' depth and their shadows. The whole story has been played through by a scripted bot, with the optional Dark Realm, every Fluorite, the post-game unlocks and Oni Spirits' twelve holy grounds; saving and loading go through the game's own memory-card menus. PC options: widescreen (a 16:9 zoom), render scale, anti-aliasing, texture smoothing and upscaling, higher frame rates. Next: Linux, and a human playthrough's feedback.

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: every stage, boss, puzzle and event through to the ending (the bot's run below) ✅
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, the Great Armor and all twenty Fluorites, played as a branch of the bot's run from the start to the end of the game ✅
The Magic Mirror: an in-game save to the memory card, loaded back from the title's LOAD GAME; ENHANCE (souls into swords and orbs) ✅
After the credits: the GAME CLEAR DATA save and its unlocks, Special Feature (the Special Trailer, the Oni Spirits mini-game) and Samanosuke EXTRA (the panda costume) ✅
Oni Spirits played through its twelve holy grounds by the bot, its farewell scene and RESULT ✅
Movie captions (the epilogue's narration), the OPTION menu, Easy mode after four game overs ✅
PC options: widescreen (a 16:9 zoom: the rooms are 4:3 pictures), render scale, anti-aliasing, texture smoothing and upscaling, frame rate above 60 (interpolated), window size and mode, saved in the user folder ✅
In-game pages in the game's OPTION screen (L1 / R1): Graphics, Cheats, Save States, Close Game, pad-driven, drawn with the game's own font and parts ✅
Linux build (BozoEngine and its CI build on Linux; the port's own runtime is untried there) ⏳

✅ 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.

Screenshots

2026-11-26. The settings inside the game: the OPTION screen's L1 / R1 now turn to the port's own pages, drawn the way Options draws itself (its scroll, orbs, arrows and highlight, the game's message font) and driven by the pad. A choice not applied yet shows in orange until APPLY; a save state made here gets its picture in F2's Save states tab.

The OPTION screen's Graphics page: Display Window, Resolution 960x720, Render Scale 150% in orange (not applied yet), Anti-Aliasing, Texture Filter, Frame Rate, Widescreen; BACK and APPLY The OPTION screen's Save States page: Slot 0, saved 2026-11-26 20:35, Save State: Saved, Load State

2026-11-25. PC options: F2's Video tab now applies (the port had never turned the player's video settings on, so the render scale, texture smoothing and upscaling and the window's size and mode did nothing), and a new Game tab has widescreen. The rooms are pre-rendered 4:3 pictures that cannot show more at the sides, so widescreen zooms the picture to 16:9 in play, in the events and in the movies (their bars go), with the HUD and the subtitles drawn a little smaller to stay in view; the menus stay 4:3. Also: Boss 3's suspected sound hitch was the test bot writing a save state, not the game.

Widescreen 16:9: the castle gate at night, Samanosuke between two soldiers, the HUD in the corner Widescreen 16:9: the opening event, Samanosuke and a guard, subtitle: The western path or the northern passage.

2026-11-25. The movies' captions: the epilogue's narration (LINKS04, LINKS05) is captioned by the game from a sheet it keeps in video memory, which the port had not drawn; now it shows at each line's picture, in every language setting. Also checked: the OPTION menu (every page), Easy mode (offered after the fourth game over) and the sound under load, measured on the real device: no underruns in the late fights, a crackle or two at Boss 3's doorway.

The epilogue movie captioned: The demons' ambitions were shattered by the hand of Samanosuke and his friends. The Options page: Language, Subtitle, Sound Settings, volumes, Vibration, Brightness, Screen Adjust, Controls The title's NEW GAME offering Easy Mode and Normal Mode

2026-11-25. Oni Spirits played through, all twelve holy grounds, by the bot from a boot with the clear data on the card (scripts/story/oni_spirits/run.sh): on each ground the pots broken until its quota of spirits is released (20 to 36; the time is Samanosuke's draining life), the enemies and the blue spirit that race for the pots, the spirits' farewell after the twelfth ("You have truly become the Onimusha!") and the RESULT, saved and read back.

Oni Spirits' third ground: Samanosuke among the pots, the blue spirit diving on them, RELEASE 26 The spirits' farewell: Samanosuke in a pillar of violet light, subtitle: You have truly become the Onimusha! Oni Spirits' RESULT: stage 12, time 09:14:41, 28470 SPIRITS Pts.

2026-11-25. The window under load: the late fights (the ogre boss, Boss 3, the Queen Bee, Marcellus, the King's Chamber, Fortinbras) and the Dark Realm's floors hold 60 frames a second with 3 to 6 ms of work a frame; the frames over budget are single spikes at room loads. On the way, the lock walls' mist and the Demon Gate's energy move again (the game scrolls them with GS copies inside video memory, which the port had dropped), and BozoEngine gained a sampling profiler in the settings window (F2, Profiler) that names the game's own functions.

2026-11-25. What finishing earns, checked from the bot's full run (twenty Fluorites): after the RESULT screen the game names three unlocks and saves them as GAME CLEAR DATA on the card. After a reboot the title gains Special Feature, with the Special Trailer (the Onimusha 2 teaser) and the Oni Spirits mini-game (its scene, the twelve holy grounds, the Oni pots), and NEW GAME offers Samanosuke EXTRA: the panda costume, in the events and in play.

The RESULT screen: If you save this game data, the Oni Spirits game will be available Oni Spirits: Samanosuke among the Oni pots, purple spirits rising, RELEASE 18 Samanosuke Extra: Samanosuke in the panda costume beside Kaede, subtitle: The western path or the northern passage.

2026-11-25. Saving and loading checked end to end: the Magic Mirror's SAVE writes the game to the memory card on disk (a new file on an empty card, its place, play time and picture), and after a fresh boot the title's LOAD GAME lists it and resumes in the same room with the same items; the bot plays on from the loaded game. BozoEngine is updated for it: a save made after loading a save state used to stay in memory and be lost at exit.

The SAVE screen: slot 1, save count 1, play time 1:06, The Keep: Sentry Box, Save completed The LOAD screen after a fresh boot: the same save, Will you start the game with this data?

2026-11-25. Boss 3's red cloud explained and fixed: it is the wall that seals a fight's doorway, and on the GS the 2D ordering table's draws are depth-tested against the room, so its square sides go behind the doorway's rock. The native walk had drawn it without depth (left: before, right: now). The same test hides the Bullet row on the Magic Mirror's ENHANCE page until the matchlock is found and shows the souls' count there.

Before: a square of red mist with hard sides over the cave's roots in Boss 3's room Now: the red mist fills only the cave's opening, the roots in front of it

2026-11-25. All twenty Fluorites: the branch now runs from the first leg, picking up the seventeen in rooms on the way (one in the bell loft above stage 3's scaffold, one under the ogres' siege cart) and the three the Dark Realm hands out on random floors; the RESULT screen counts them all.

The RESULT screen: twenty Fluorites, 357 defeated, twenty Dark Realm floors Samanosuke in the bell loft under the great bell, a Fluorite glinting by the rail

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).

A Dark Realm floor: demons in a round arena of bone spikes Samanosuke raising the Bishamon Sword, its purple blade glowing The waterfall trick box solved: tiles 1 to 9 in order

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.

Marcellus, a horned demon with two swords Before the king's chamber: I am Fortinbras... The RESULT screen after the ending: play time, defeated, save prompt

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.

The Queen Bee, a winged insect woman, facing Samanosuke: I knew that you would come! The Queen Bee engulfed in fire

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.

A night garden by a temple, its pond filled with dark water, two koi under the surface

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.

A purple demon seal with three glowing blue orbs across a wooden door Samanosuke surrounded by horned ogres in a night courtyard

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).

Kaede at the prison bars with Princess Yuki: Forget about me. Escape from this castle with Samanosuke. A head hanging upside down: but if you do, great rewards await you.

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.

A stand of three orbs, orange, green and blue, lit over a barred pit The trick box solved: tiles 1 to 4 over 5 to 8 around three knobs, REST: 0 Kaede leaning over Samanosuke: Sa... Samanosuke!?

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.

Boss 2: a horned demon warrior with a spear and a wheel-shaped shield Samanosuke receiving the Wind Orb, green wind swirling around him

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.

Samanosuke in the keep, subtitle: What is going on here!? The ENHANCE screen: Raizan, Shiden, Enryuu LV2, Kouen; souls, herbs, arrows

Kaede and Samanosuke in the keep, subtitle: I have been able to uncover Yumemaru's identity.

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).

The ogre boss towering over Samanosuke in a dark pit, subtitle: AND I haven't eaten in a while... A cutscene: red tentacles over an armoured corpse on stone steps, blue fire in bowls behind

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.

A trick box puzzle: six numbered tiles 3 5 6 / 2 1 4 around two dials on a metal plate, REST: 3

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.

Samanosuke running up stone stairs between two lanterns toward a red temple gate inside a cave

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.

A movie: ranks of armoured samurai with spears marching in the mist under a full moon A ruined hall full of fallen soldiers, a samurai in red armour facing a warrior across it

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.

Samanosuke fighting zombie samurai in a dark storehouse crossed by shafts of sunlight A zombie leaping at Samanosuke in a forest cave, a green trail behind it

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.

Samanosuke slashing at a zombie soldier before the courtyard gate, a white sword arc and a green trail Samanosuke holding a young woman at the gate, subtitle: It's really you! Oh, I knew that you would come to save me!

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.

The wooden shrine before the bamboo fence at dusk, a bright blue orb glowing inside it

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).

The castle gate's courtyard in play: Samanosuke and the spear guard with their shadows on the ground A closer look: the guard's shadow and his spear's on the dirt, Samanosuke's beside the gate

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.

Samanosuke in red armour and Kaede in front of the bamboo fence, subtitle: Kaede, I'll go north. The castle gate's courtyard in play: Samanosuke and a spear guard, the health bar at the top left

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).

The castle gate's courtyard at dusk with the subtitle: If our princess is at the keep, there are two ways to get there. The castle gate's courtyard in play: the health bar and the counter at the top left

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.

The opening movie: Samanosuke in red armour beside a tree in the rain The letter movie: Dear Samanosuke over Inabayama Castle at night

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.

Onimusha: Warlords' main menu on BozoEngine: the red and gold title over NEW GAME, LOAD GAME and OPTION, NEW GAME in its 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.

The title screen: ONIMUSHA Warlords over PRESS START BUTTON and the credits The Capcom logo on black

Goal

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 (done: the whole game plays); presentation options (widescreen, render scale, anti-aliasing) are in; Linux follows.

How it works

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.18 keeps its CodeWarrior symbols and DWARF: 6,354 named functions, no symbol-map phase.
  • Enemy and room code are MWo3 modules inside the disc's LMR and RDT files, 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.IRX and Sony's synthesizer modules are relocated and compiled offline (BozoEngine's tools/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) and oni-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.

Requirements

  • 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 for scripts/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)

Build and run

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 runner

The 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 smoothing and upscaling, frame rate, window size and mode, fast-forward speed: video.ini), game (widescreen: onimusha.ini), cheats, profiler (where each thread's time goes; a report saved to %APPDATA%\Onimusha_Recomp\profiles)
` (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, also one made after loading a save state (--card-dir DIR elsewhere; ONI_MEMORY_CARDS=1 keeps them in memory; the story bot and hidden captures keep them in memory unless given --card-dir)
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/).

Windows

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

Disc facts

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)

Sharing the machine with other ports

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

Repository layout

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.

Credits

  • 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.

Licence

MIT, see LICENSE. Game data is never part of this repository: every port builds from the player's own disc.

Releases

Packages

Contributors

Languages