BtVS_recomp
BtVS_recomp is a Windows PC port and decompilation toolkit for Buffy the Vampire Slayer on Xbox, featuring a Direct3D 9 renderer with widescreen support and HD texture replacements.
- Type: PC port
- Game: Buffy the Vampire Slayer
- Runs on Windows
- By FallenAzazel
- Latest release v0.9.0, 2026-11-22
- Source: https://github.com/FallenAzazel/BtVS_recomp
README

BtVS Windows Recomp
Buffy the Vampire Slayer (Xbox) — Win32 Recomp & Decomp Toolkit
Recomp of the XBOX Buffy the Vampire Slayer game from 2002.
A native Windows x86 in-process execution runtime, hardware Direct3D 9 renderer, audio mixer, and reverse-engineering/decompilation toolkit for the Original Xbox version of Buffy the Vampire Slayer (Europe) (Title ID EA-018 / 0x45410012, The Collective Slate Engine, XDK 1.0.4432.1).
Legal Notice: This repository contains zero copyrighted game assets, binaries, symbols, or disassemblies. You must supply your own legally dumped copy of Buffy the Vampire Slayer (Europe) for Original Xbox.
How to Run (Quick Start)
Option A — Prebuilt GitHub Release (Easiest, No Visual Studio Required)
- Download and unzip the latest
BtVS_recomp_*_win32.zipfrom GitHub Releases. - Place your legal Buffy the Vampire Slayer (Europe) Original Xbox XISO in the unzipped folder and extract it (requires Python 3.10+):
python tools/extract_xiso.py "Buffy the Vampire Slayer (Europe).xiso.iso" extracted - Double-click
Play_Buffy.bat— on first launch it unpacksinstall.datautomatically and boots straight into the game!
Option B — Build from Source
- Clone this repository and extract your Xbox XISO into
extracted/(same command as Step 2 above). - Verify line 8 of
recomp/build_and_run.batpoints to your Visual Studiovcvars32.batpath, then run:recomp\build_and_run.bat - (Optional) To package a clean prebuilt
.zipfor GitHub Releases, runtools\package_release.bat [version].
Features & Enhancements
- Native Win32 Hardware Direct3D 9 Renderer (
recomp/src/d3d9_bridge.cpp):- Internal resolution scaling up to 4× (
640×480up to2560×1920in 4:3,2560×1440in 16:9, and3440×1440in 21:9 ultrawide) - True Hor+ widescreen & 21:9 ultrawide FOV/frustum expansion in gameplay with live Camera FOV Offset slider (
-15°to+25°), 4:3 pillarboxing on the Main Menu, and widescreen-aligned HUD & 3D weapon selector - Programmable Xbox Vertex Shader translation (restoring foliage, trees, and per-vertex lighting), 3D Volume Light torch/point-light rendering, and HD dual-layer animated water ripples
- GPU Post-Processing Pipeline (
ps_2_0): Subtle Soft Bloom (quarter-res bright-pass + separable Gaussian blur), AMD CAS-style Contrast Adaptive Sharpening (Sharpnessslider), Cinema Vignette, Retro 480p CRT Scanlines, and live CRT Gamma Lift / Brightness / Contrast sliders - Up to 4× MSAA, 16× Anisotropic Filtering, trilinear mipmapping, and authentic camera-space atmospheric distance fog
- HD Texture Replacement, Dumper & Local 4× Upscaler (
recomp/hd_textures/,recomp/dump_textures/,tools/upscale_textures.py, live toggle +F9hot-reload, supports non-power-of-2 PNGs and optional Real-ESRGAN AI upscaling) - Photo Mode / Free Camera (
F10) and clean full-resolution PNG Screenshot capture (F12) saved torecomp/screenshots/
- Internal resolution scaling up to 4× (
- Native Windows Audio Bridge (
recomp/src/dsound_bridge.cpp):- 48 kHz stereo software mixer via
waveOutsupporting PCM, Xbox IMA-ADPCM SFX/voice dialogue, and WMA background music, with master volume, mute, and background-mute toggles
- 48 kHz stereo software mixer via
- PC Controls & Quality-of-Life (
recomp/src/xbe_loader.cpp,recomp/src/config_ui.cpp):- XInput gamepad + Keyboard & Mouse-Look Camera support (with configurable sensitivity, Invert X/Y, deadzone, rumble, and 10 custom remappable keybinds)
- 5-Slot Quick Saves (
F5/F6,Shift+1..5, orGame → Quick Save Slots) with optional Auto-Resume on Launch - Chapter / Arena Launcher (
Game → Jump to Level / Arena) to jump straight into any of the 13 chapters, 4 arenas, or Buffy History 101 - Buffy Costume Mods (
Config → Costume Mods): swap between all 4 original Xbox outfits (Slayer, Cheerleader, The Bronze, Workout) plus 4 included Custom 1024×1024 HD Costumes (Red Leather, Silver Sequin Club, Black Mini Dress, and Lilac Wrap & Black Pants) — swaps instantly in real time between same-mesh outfits or reloads in-place at your exact position! - Cutscene Subtitles toggle (
Config → General → Show Cutscene Subtitles) and Native DirectShow.wmvFMV Playback (plays the original 2002 Fox / EA / Collective intro videos with synced audio, skippable viaSpace/Enter/Click/Gamepad, with an optional Skip Intro Logos toggle) - Borderless Fullscreen (
F11) and Auto-Pause When Unfocused (Alt-Tab) toggle - Modern dark/light-aware Win32 Configuration UI (
F1) including an About tab
- Xbox Kernel & XAPI Shims (
recomp/src/xboxkrnl_win32.cpp,recomp/src/xbe_loader.cpp):- Maps
Default.xbedirectly at its native base (0x00011000..0x00921000) via a fixed-base0x00010000launcher - 120 Xbox kernel thunks, virtual filesystem (
D:\,Z:\,T:\,U:\), automaticinstall.datcache unpacking, andXLaunchNewImagerelaunch support
- Maps
- Decompilation & Analysis Pipeline (
tools/):- XISO extractor, XBE-to-PE converter, symbol/map parser (Ghidra & IDA import scripts), and per-module disassembler
What's New
2026-11-22
- Costume Mods Tab & 4 Custom 1024×1024 HD Outfits (
Config → Costume Mods): Moved Buffy's costume selector to its own dedicated Costume Mods tab and added 4 included custom HD outfits (Red Leather, Silver Sequin Club, Black Mini Dress, and Lilac Wrap & Black Pants) stored inrecomp/hd_textures/costume_*/(leaving all 4 original Xbox outfits intact, with instant zero-reload swapping between same-mesh costumes and optional local inspiration preview cards). - Updated About Tab: Embedded the open-source BtVS logo directly into
Config → Aboutwith automatic Dark/Light mode tinting.
2026-11-21
- Native
.wmvFMV Playback & HD Movie Overrides (recomp/hd_movies/): Plays the original 2002 intro videos (Logo_Legal,Logo_EA,Logo_Fox,Logo_Collective) andattract.wmvtrailer natively via DirectShow with synced audio, jet-black 16:9/21:9 pillarboxing, skippable controls, a Skip Intro Logos on Launch toggle inConfig → General, and automatic.mp4/.wmv/.aviHD overrides inrecomp/hd_movies/. - Cinema Vignette & Retro 480p CRT Scanlines: Added live toggles in
Config → Graphicsinside the upgradedps_3_0post-processing pipeline alongside Sharpness (CAS) (0%–100%). - Local 4× HD Texture Upscaler (
tools/upscale_textures.py): Zero-dependency batch upscaler that converts dumped Xbox textures (recomp/dump_textures/) into alpha-safe 4× HD PNGs inrecomp/hd_textures/(supports optionalrealesrgan-ncnn-vulkanAI upscaling, Pillow, or built-in Windows GDI+HighQualityBicubicwith RGB edge-bleed to prevent UI/text halos). Also added a clickableDUMP: OFF / ONstatus bar pill and fixed HD texture cache keying byxtex->Data+ hash. - System-Matched Dark/Light Popup Menus: All expanded Win32 dropdown menus (
Game,View,Cheats,Quick Save Slots,Jump to Level, and Config dropdowns) now follow your Windows Dark/Light theme automatically. - Photo Mode / Free Camera (
F10/View → Photo Mode): Freezes gameplay cleanly, hides all 2D HUD overlays & 3D weapon icons, and lets you fly freely withWASD,Q/E, and Mouse/Arrows (Shift= fast,Ctrl= slow). - Clean PNG Screenshots (
F12/View → Take Screenshot): Captures full-resolution, post-processed, MSAA-resolved PNG screenshots directly torecomp/screenshots/Buffy_YYYYMMDD_HHMMSS.png. - Fun Cheats / Trainer Menu (
Game → Cheats): Added live toggles for Infinite Health, Infinite Slayer Power, Infinite Weapon Durability / Ammo, and One-Hit Dusting. - Auto-Pause on Alt-Tab: Added
Config → General → Pause Game When Unfocused (Alt-Tab)to cleanly freeze gameplay when the window loses focus. - Cutscene Subtitles: Added live
Config → General → Show Cutscene Subtitlestoggle wired directly to the engine's subtitle flag. - PC Controls & QOL: Added Mouse-Look Camera (with sensitivity & Invert X/Y), 10 custom remappable keybinds, 5-Slot Quick Saves, Chapter / Arena Launcher, Buffy Costume Swapper, and an About tab in Config.
- Rendering & HUD Polish: Added GPU Soft Bloom & CRT Gamma/Brightness/Contrast post-processing, live Camera FOV Offset, 3D volume torch lighting, restored programmable-VS foliage/trees, HD water ripples, and fixed widescreen/21:9 weapon ring & tooltip alignment.
Fun Cheats
Access optional trainer toggles anytime from the top menu bar under Game → Cheats (persisted automatically in recomp/settings.ini):
- Infinite Health: Blocks all incoming damage to Buffy and keeps her health bar topped up.
- Infinite Slayer Power: Enables the engine's native infinite Slayer Power flag so special attacks and supernatural abilities never drain your power gauge.
- Infinite Weapon Durability / Ammo: Prevents ranged ammo (crossbow bolts, holy water, etc.) from depleting and stops melee weapons (stakes, torches, shovels, axes) from taking durability damage or breaking.
- One-Hit Dusting: Multiplies damage dealt to enemies so vampires and demons dust in a single hit.
HD Texture Generation & Sharpening
You can generate your own crisp 4× HD texture pack locally (for the Main Menu, HUD, characters, and environments) without distributing any copyrighted game assets:
Step 1 — Dump Textures While Playing
- Launch the game via
recomp\build_and_run.bat. - Turn texture dumping ON using any of these methods:
- Press
F8 - Click the
DUMP: OFFpill in the bottom status bar (it highlights red asDUMP: ON) - Enable Dump Visible Textures to PNG in
Config → Textures
- Press
- Browse the Main Menu, pause screens, or walk through any level you want to upscale. Every visible Xbox texture is automatically decoded and saved as a hash-named PNG in
recomp/dump_textures/. - Press
F8(or clickDUMP: ON) again to turn dumping OFF once finished.
Step 2 — Batch-Upscale All Dumped Textures to 4× HD
Open a terminal in the repository root folder (the folder containing recomp/, tools/, and README.md) and run:
python tools/upscale_textures.py --scale 4
- Zero extra dependencies required: Out of the box, it uses built-in Windows GDI+
HighQualityBicubicwith alpha-safe RGB edge-bleed (so transparent menu text and HUD icons never get dark halos). - Incremental by default: Already-upscaled textures in
recomp/hd_textures/are automatically skipped, so you can dump new levels anytime and re-run the same command. Add--forceto regenerate all files. - Optional AI 4× Upscaling (Real-ESRGAN): For full AI-reconstructed detail, download
realesrgan-ncnn-vulkan.exe(and itsmodels/folder) intotools/— or pass--realesrgan path/to/realesrgan-ncnn-vulkan.exe— and run:python tools/upscale_textures.py --scale 4 --force
Step 3 — Hot-Reload In-Game & Fine-Tune Sharpness
- Make sure
HD TEX: ONis enabled in the bottom status bar (orConfig → Textures → Enable Custom HD Textures). - Press
F9in-game (or click Reload HD Textures inConfig → Textures) to hot-reload your new 4× HD textures immediately. - Adjust
Config → Graphics → Sharpness (CAS)(0%–100%, default35%) for real-time halo-free contrast-adaptive sharpening across both 2D menus and 3D gameplay.
Optional — HD FMV Video Replacements (recomp/hd_movies/)
Drop locally upscaled .mp4, .wmv, or .avi replacements (e.g. Logo_Fox.mp4, Logo_EA.mp4, Logo_Collective.mp4, Logo_Legal.mp4, attract.mp4) into recomp/hd_movies/ — the DirectShow movie player automatically detects and plays them at full HD/4K instead of the 480p originals.
Prerequisites
- Windows 10 / 11 (64-bit or 32-bit; builds a 32-bit x86 binary)
- Visual Studio Build Tools / Visual Studio with the Desktop development with C++ workload (
cl.exex86 /vcvars32.bat) - Python 3.10+ (for XISO extraction and optional decompilation scripts)
- Your own legal Buffy the Vampire Slayer (Europe) Original Xbox XISO or extracted disc files
Quick Start
1. Extract Your Xbox Disc / XISO
Place your XISO in the repository root and extract it into extracted/:
python tools/extract_xiso.py "Buffy the Vampire Slayer (Europe).xiso.iso" extracted
After extraction, extracted/Default.xbe, extracted/install.dat, extracted/pak/, extracted/dialogue/, and extracted/Sound/ should exist.
2. (Optional) Generate Decompilation & Symbol Artifacts
To generate the converted PE image, Ghidra/IDA symbol import scripts, and module disassemblies into decompile/:
python tools/build_pipeline.py
3. Build & Run
Open recomp/build_and_run.bat and verify line 8 points to your local Visual Studio vcvars32.bat path, then run:
recomp\build_and_run.bat
On first launch, the runtime automatically unpacks extracted\install.dat into recomp\cache\ (Z:\), creates save data in recomp\saves\ (T:\ / U:\), and launches the game.
Prebuilt Releases: If you downloaded a prebuilt
.zipfrom GitHub Releases, just extract your Xbox XISO intoextracted/(Step 1) and double-clickPlay_Buffy.bat— no Visual Studio required! Maintainers can build a clean release.zipanytime viatools\package_release.bat [version].
Controls & Hotkeys
- Gamepad: Standard XInput controller (Xbox 360 / One / Series) mapped to Xbox Port 0
- Mouse-Look Camera: Enable in
Config → Controls, click the game viewport to capture mouse (LMB= Attack,RMB= Aim), pressAltorEscto release - Menu Bar / Status Bar: Live graphics, audio, cheats, chapter launcher, and quick-save controls
F1: Open Configuration dialogF2: Toggle Debug Telemetry Log panelF5/F6: Quick Save / Quick Load active slot (Shift+1..Shift+5switches active slot)F7: Capture a single-frame D3D9 draw-call trace torecomp/frame_trace.logF8: Toggle visible texture dumper (recomp/dump_textures/)F9: Hot-reload HD textures fromrecomp/hd_textures/F10: Toggle Photo Mode / Free Camera (WASDmove,E/Spaceup,Q/Cdown, Click+Mouse or Arrows look,Shiftfast,Ctrlslow,Escexit)F11: Toggle Borderless FullscreenF12: Save clean PNG screenshot torecomp/screenshots/
Project Layout
├── recomp/
│ ├── src/ # Win32 launcher, XBE loader, kernel/XAPI shims, D3D9 & DSound bridges, UI
│ ├── include/ # Runtime headers
│ ├── build_and_run.bat # MSVC x86 build & launch script
│ └── CMakeLists.txt # CMake build definition
├── tools/ # Python XISO extractor, XBE->PE converter, symbol/disassembly & 4x HD texture upscaler
├── .gitignore # Excludes all game data, extracted assets, builds, logs & saves
└── README.md
Note: No support is provided, this has been done for the fun of it :) Enjoy