Unofficial, work-in-progress static recompilation of Afro Samurai (Xbox 360, Europe and USA, title ID 4E4D07D8) to native Windows x64 using ReXGlue.
This repository contains no game files. You need your own original disc
(or an ISO you dumped from it). The game executable is not released: it
contains code translated from the game, so everyone builds it from their own copy.
The only program attached to a release is afrosetup-v0.3.11.exe, the setup installer.
Next to it is afrosetup-v0.3.11-files.bin, the project's source files, which the
setup downloads by itself.
- Windows 10 or 11 (64-bit) and a graphics card with Direct3D 12 (current drivers).
- Your own Afro Samurai disc, Europe or USA: an ISO
(Europe SHA-1
29394DB1854DFC59C767D768C8D35E0A08ACB73D) or a folder you already extracted that containsdefault.xex. The USA disc is new in 0.3.0 and has English and French text only. See Getting your game files. - About 20 GB of free disk space and an internet connection (the build tools are downloaded).
- A controller (tested: Xbox, PlayStation DualShock 4/DualSense, a Switch controller and a generic controller; others SDL recognises may work), or keyboard and mouse.
- Download
afrosetup-v0.3.11.exefrom the latest release. That file is the setup program, not the game. It builds the game on your PC from your disc. When you press Install it downloadsafrosetup-v0.3.11-files.bin(the project's source files, about 2 MB) from the same release and checks it against the SHA-256 built into the setup. Without internet at that moment, download that file too and put it next to the setup. - Run
afrosetup-v0.3.11.exe. Choose a language, then Install. - Choose a folder, then your ISO or the extracted game folder (
default.xexmust be inside it). - Accept the Microsoft Visual Studio Build Tools license (the box starts unchecked). Shortcuts are optional. You can keep the downloaded tools or delete them when setup finishes. Deleting them does not remove
game, the extracted game, the logs, your ISO, or your saves. - The window says this takes several minutes. It does not promise a fixed duration. HDD installation can take a long time; SSD/NVMe recommended.
- On success the window says Installation finished and shows Play. Play starts
game\Play.batin that folder, and only when you click it. Finish and closing the window do not start the game. A shortcut, if you asked for one, also starts thatPlay.bat.
Nothing is installed system-wide and no admin rights are needed. To uninstall, delete the install folder and the shortcuts. Saves are not in that folder.
Run afrosetup-v0.3.11.exe again, choose Update, and select the existing installation
folder (the one that contains game\Play.bat). Close the game first. If
gamedata\default.xex is already there, the ISO is not asked for again. Tools
still on disk are reused, and only missing tools are downloaded again. The
extracted game, your saves, and game\afro_language.cfg stay. The program files
are rebuilt and replaced only after that build succeeds, including when the
folder is already 0.1.x or 0.2.x.
Paste this into File Explorer:
%USERPROFILE%\Documents\afrorecomp
If Windows has redirected your Documents folder, the saves are in that Documents folder instead. In the launcher (shown at start; hold Shift while starting to show it again) use Manage saved games... to open, back up, restore or delete them. Details: Saves.
- If the window says Installation did not finish, read the details (shown by default) and
install.login the install folder. Runafrosetup-v0.3.11.exeagain. Use Update when that folder already containsgame\Play.bat, and close the game first. Back on the failure page returns to the summary and does not start the build by itself. This is not a promise that an interrupted download always resumes. install.batis a separate console fallback. See Console installer. Without-Refit buildsmain.- The game log is
afro.login the install folder. - If an antivirus warns about the setup: it is not signed, and it starts PowerShell
to download the build tools, which some antivirus engines guess is malware. Its
source is
tools/afrosetup.cpp, and each release lists the setup's SHA-256, so you can check your download. v0.3.6 removed two things that made the v0.3.5 setup look more like malware (19 engines on VirusTotal instead of 3 or 4). v0.3.8 carries its files as a resource instead of appended to the program (a test build of that change: 1 engine instead of 3). - Open an issue at https://github.com/LomoXSoft/AfroSamuraiRecomp/issues with what happened and the log. Never attach game files (ISO, extracted files). More help: Troubleshooting.
This is a preview. The default is the original Xbox 360 experience: 720p (1x) at 30 FPS. 60 FPS is a full option in Settings: gameplay, cutscenes and dialogue scenes all run at 60. See 60 FPS and Status and limitations.
- Native Windows x64 program, no emulator. Borderless fullscreen, window or exclusive fullscreen.
- Up to 4K: internal resolution 1x (native), 2x or 3x.
- AMD FSR 1 and CAS upscaling (0.3.3): sharper edges when your screen is larger than the game's picture. Bilinear, the original look, stays the default. FXAA anti-aliasing smooths jagged edges (off by default).
- Ultrawide screens (0.3.5): 21:9, 32:9 or Auto; the game shows more of the scene at the sides instead of black bars; menus and the HUD stay 16:9 in the middle. 16:9 stays the default. See Launcher and options.
- Native multi-controller support through SDL. Tested: Xbox, PlayStation (DualShock 4/DualSense, USB and Bluetooth), a Switch controller and a generic controller. Steam Deck and other controllers are not tested.
- Button prompts that follow your controller (0.1.2): PlayStation, Switch and keyboard icons replace the Xbox ones for A, B, X, Y, LB, LT, RT and the D-pad, and change mid-game when you switch device. Xbox controllers keep the original icons. RB, Start, Back and the stick clicks still show the Xbox icon. A Steam icon set exists but has not been checked in game.
- Keyboard and mouse (0.1.2): mouse camera, left/right click attacks, Q block, E kick, R focus, Esc menu, arrows for the D-pad. Mouse sensitivity, dead zone and smoothing are sliders in the launcher.
- 60 FPS (0.2.0): the whole game, cutscenes included, at the right speed.
- Launcher: language, Play, Settings and saved games. Settings has Graphics (display, resolution, aspect ratio, frame rate, VSync, upscaling, anti-aliasing), Gameplay (difficulty), Controls (control mode, mouse, key bindings) and Experimental (effects, render path) tabs.
- Fixes over earlier recompilation builds: all cutscene voices, black frames, and the headband texture.
- Borderless window and key rebinding: done in 0.2.1.
- Launcher options in game, while playing: done in 0.2.2 (F1, or hold L3 + R3).
- Loading screens: their lore cutscenes play in full again (0.2.1).
- One-hit kill cheat.
- USA disc support: done in 0.3.0.
- Steam Deck, Steam Machine and Linux through Proton:
install.shin 0.3.7 (tested on a Steam Machine). Native Linux and macOS builds are not planned.
Everything below is for technical users: how it works, the installer options, the manual build and the developer options.
The game's PowerPC executable (default.xex) is translated ahead of time into
C++ by ReXGlue's code generator and compiled into a native Windows program. The
Xbox 360 kernel, GPU and audio are provided by the ReXGlue runtime (derived from
Xenia). This repository holds only the project configuration (function
boundaries, hooks), a small launcher, build scripts and a GPU plugin patch.
Preview (0.3.11). The default is the original 30 FPS at 720p. 60 FPS is a supported option (see 60 FPS): gameplay, cutscenes and dialogue scenes were played at 60 on one PC, also at 2x resolution. That is not an independent playthrough of the whole game.
- Boots, plays videos, menus and gameplay; EN/ES/FR/IT language selection (the USA disc has EN/FR text only).
- Default GPU path is RTV (default) (host render targets): correct image at a stable
30 FPS with 30 (default) (launcher default). The black frames of earlier versions
are fixed by the
afro-edram-no-wrapGPU plugin patch. - ROV is still available as an optional fallback (correct image but slow,
can drop below 15 FPS): Settings → Experimental or
--render_target_path_d3d12=rov. - Voices work, including all cinematic dialogue (0.0.13
afro-xma-fix-logand 0.0.14afro-xma-frameless-chainruntime patches). - Known issues (also apply at Original unless noted):
- At 60 FPS, scenes that show two camera views at once can still drop below 60.
- Tested: the headband looked correct in play of 0.1.1. Other black textures are not claimed fixed.
- Occasional odd audio.
- If two tutorial prompts appear at once, the first one can stay stuck on screen (original game behaviour; restarting the level clears it).
- Invulnerability (Settings → Gameplay → Difficulty → Game Journalist) works in the tested build. It is not a guarantee for the whole game. It is off by default and saved like the other settings.
- Button prompts: A, B, X, Y, LB, LT, RT and the D-pad are replaced. RB, Start, Back and the stick clicks have not been found yet and keep the Xbox icon. Checked in game with Xbox, DualSense, Switch and generic controllers; Steam icons not checked in game. Keyboard icons follow the keys you rebind (the first key of each binding).
- Full list:
docs/KNOWN_ISSUES.md.
- Supported: the Europe disc (Redump 17884, ISO SHA-1
29394DB1854DFC59C767D768C8D35E0A08ACB73D) and the USA disc (new in 0.3.0). Other versions will not work. - Windows x64 only for now (D3D12).
- Expect bugs; saves and settings may change between versions.
The default stays the original 30 FPS. To play at 60: Settings → Graphics → Frame rate → 60, then OK and Play. VSync switches to Off with it: with VSync on, every frame that misses 60 waits for the next refresh and shows at 30. Set VSync back to On if you see tearing and prefer it.
How it works:
- The game's present interval is unlocked and a host 60 FPS cap is applied.
- The game's per-frame time step (1/30 s in the original, less during Focus) is scaled by the real frame time. Game speed does not follow the frame rate, and Focus slow motion and pauses still work.
- Cutscenes and dialogue scenes get the same step, so they play at normal speed at 60.
--afro_cutscene_30=truedrops them back to 30 if a scene ever needs it. - GPU side (ReXGlue patch
zzzzzz-afro-gpu-fast-path): no per-write register lookup, short spins before sleeping on GPU waits, and register blocks written in one batch. Unchanged data is no longer re-uploaded every frame (clear_memory_page_state=false), and rendered images are no longer copied back to the CPU.
If a scene runs too fast or too slow at 60, --afro_cine_diag=true logs which game
parts were updated and the time step each one got (in afro.log, every 2 seconds).
Please attach that log to the issue.
- Installer /
game\Play.bat:<install-root>\afro.log(same folder asinstall.log).Play.batpasses--log_file="%~dp0..\afro.log". - Dev
tools\run_win.bat: repo-adjacent log: fromtools\,Ris..\.., so--log_file="%R%\afro.log"is the folder that containsapp\andtools\(the checkout /afro360recomp-style root), not next to the.exe. - Each launch overwrites the log; copy it right after a problem.
install.bat is a fallback for a source checkout. The program players download
is afrosetup-v0.3.11.exe
from the latest release.
That setup builds the source in afrosetup-v0.3.11-files.bin from the same release, which it
accepts only with the SHA-256 it was built with. It does not clone public main.
When it asks its questions interactively, install.bat with no -Ref builds the
main branch. With -NonInteractive it refuses to build main, both with no
-Ref and with -Ref main: pass an explicit -Ref that is not main, or
-LocalTree with a 0.3.11 source tree. To build the tagged 0.3.11 source from the
console installer, pass -Ref v0.3.11.
- Make an ISO of your own Afro Samurai disc (Europe or USA), or use an extracted folder
that contains
default.xex(see Getting your game files). - Use
install.batfrom a checkout, or downloadinstall.bat(right-click, Save link as). A loneinstall.batthen downloadstools/install.ps1frommain. - Double-click
install.bat. It asks for a folder and your ISO (-GameDataDirtakes an extracted folder instead). When it saysINSTALL OK, play with the shortcut or<root>\game\Play.bat. - It asks the language first (English, Espanol, Francais, Italiano; your Windows
language is preselected). The installer messages are shown in it, and a new install
records that language in
game\afro_language.cfg. - At the end it can delete the toolchain, ReXGlue SDK and source, build files, and
downloads, and keep
<root>\game,<root>\gamedata, and the logs. Your ISO and your saves are not part of that delete. A later Update inafrosetup-v0.3.11.exedownloads again only the tools that are missing and keeps the extracted game.
What the installer does (tools/install.ps1, run with the PowerShell execution
policy bypassed for that process only):
- Checks free disk space (about 20 GB) and lists your GPU (Direct3D 12 needed).
- Verifies the ISO SHA-1 (Europe:
29394DB1854DFC59C767D768C8D35E0A08ACB73D) and warns if it does not match, then checks that the extracteddefault.xexis from the Europe or USA disc. - Downloads a portable toolchain into
<root>\tools, only from official sources, each pinned and SHA-256-verified: MinGit, CMake, Ninja, LLVM/Clang 20.1.8, Python 3.12 (embeddable) + pycryptodome, and the MSVC compiler + Windows SDK (fetched from Microsoft's Visual Studio servers with portable-msvc.py; you are asked to accept the Microsoft Visual Studio license). - Downloads the ReXGlue SDK nightly, clones the ReXGlue source at
bd833a2and this repository, extracts your disc into<root>\gamedata, runs both build scripts and checks the output. - Optionally creates desktop and Start menu shortcuts.
No admin rights needed; nothing is installed system-wide (no PATH, registry or
Visual Studio installer changes) and nothing is uploaded. Downloads are about
1 GB of archives (LLVM alone is 900 MB), about 1 GB of MSVC/Windows SDK packages
and about 2 GB of ReXGlue source; the whole folder ends up around 12-13 GB
(<root>\downloads can be deleted afterwards). A run takes several minutes; there is
no fixed duration. The console shows its own progress lines. A normal console re-run
skips steps already stamped in <root>\.install. Update in afrosetup-v0.3.11.exe clears
the compile stamps and rebuilds the program. Neither path promises that an interrupted
download always resumes. The log is <root>\install.log. To uninstall, delete the
install folder and the shortcuts. Saves stay in Documents\afrorecomp
(see Saves).
Command-line options (install.bat -Option value): -InstallDir <dir> (full install folder, skips the folder picker), -Iso <file>,
-AcceptMsvcLicense, -Shortcut yes|no, -CleanupAfterInstall / -KeepBuildFiles, -Language en|es|fr|it, -Ref <branch|tag>. Advanced:
-GameDataDir <dir> uses an already extracted disc folder (containing default.xex)
instead of an ISO.
New in 0.3.7. Tested on a Steam Machine under Proton: the game runs in
60 FPS mode at 1440p, with some drops to 40–50 FPS in places. Not tested on a
Steam Deck yet. install.sh builds the same
Windows game on Linux from your own disc, for Steam Deck, Steam Machine and
other Linux PCs, and Steam runs it through Proton. It is not a native Linux
port: the Direct3D 12 renderer runs on vkd3d-proton, as in any Windows game.
It needs no root and installs no packages: bash, python3 3.9 or newer, git, curl, tar and xz are enough, which SteamOS has. Every tool is downloaded from its official source, pinned and SHA-256 checked, into the install folder: LLVM/Clang 20.1.8 (llvm-mingw), CMake, Ninja, xwin with the Microsoft C++ runtime and Windows SDK (Microsoft license, asked first), the ReXGlue SDK nightly and the ReXGlue source. About 20 GB must be free.
One click: from the latest release,
download AfroSamuraiRecomp-Linux-v<version>.desktop in Desktop Mode and
double-click it (if it opens as text: Properties → Permissions → Is
executable). It opens a terminal, downloads that release's
afrorecomp-linux-v<version>.tar.gz, checks its SHA-256 and runs its
install.sh, with --update when ~/Games/AfroSamuraiRecomp is already
installed. It was tested in WSL, not yet by double-clicking it on SteamOS.
Or in Desktop Mode, open a terminal (Konsole on SteamOS):
git clone https://github.com/LomoXSoft/AfroSamuraiRecomp.git
cd AfroSamuraiRecomp
./install.sh --iso "/path/to/Afro Samurai (Europe).iso"It asks for the install folder (default ~/Games/AfroSamuraiRecomp), the
Microsoft license and the game language. At the end it prints the Steam steps
and writes them to <install folder>/STEAM_SETUP.txt:
- Steam: Games → Add a Non-Steam Game to My Library → Browse, choose
<install folder>/game/afrorecomp.exe(set the file type to All Files). - Properties → Shortcut: Start in
"<install folder>/game", Launch options--game_data_root="../gamedata" --gpu_plugin=xenos --log_file="../afro.log". - Properties → Compatibility: force Proton (the newest stable version).
The launcher window has no controller support, so a Linux install skips it.
The options are in the game: F1, or hold both stick clicks. The saves are
in the shortcut's Proton prefix, under
steamapps/compatdata/<id>/pfx/drive_c/users/steamuser/Documents/afrorecomp.
Options: --dir <folder>, --iso <file> or --gamedata <folder> (an
extracted disc), --accept-msvc-license, --language en|es|fr|it,
--jobs <n> (fewer parallel compiles if memory is tight), --cleanup /
--keep-build-files, --yes (no questions). On the test PC (8 threads) a clean
build takes about 6 minutes plus downloads; a Steam Deck was not timed yet
(about 8–11 minutes expected).
Update: get the new source (git pull), then run
./install.sh --update --dir <install folder>. It keeps the extracted game,
app/region, the saves and the settings, compiles only what changed, and
replaces the program files only after the build succeeded. Keep the build
files for fast updates.
How it builds: the Linux rexglue from the same nightly generates the code
(the same functions as on Windows), and clang cross-compiles it for Windows
with tools/linux/win-cross.cmake. Details and measurements are in
docs/LINUX_FEASIBILITY.md.
- Windows 10/11 x64, a GPU with Direct3D 12 and current drivers. Or Linux or SteamOS with Steam and Proton: see Linux and SteamOS (Proton).
- Original Afro Samurai disc (Europe or USA) and a way to make an ISO of it.
- About 20 GB free disk space (the finished install uses about 12-13 GB).
- A controller (see Controls).
- Reported working by players (RecompLauncher reports, November 2026): v0.3.0 on a Ryzen 7 4800H laptop with a GTX 1650 and 15 GB, and v0.3.1 on a Core i7-10700F with a Radeon RX 9060 XT and 32 GB, both on Windows 11. The upscaling and FXAA options (new in v0.3.3) have not been reported on NVIDIA yet.
- For a manual build only (the installer downloads all of this):
- MSVC + Windows SDK: Visual Studio 2022 Build Tools ("Desktop development with C++"),
run from an "x64 Native Tools Command Prompt", or a portable MSVC in
<root>\tools\msvcwithsetup_x64.bat(as produced by portable-msvc.py). - LLVM/Clang 20 (
clang++), CMake >= 3.25, Ninja, Git. - Python 3.8 or newer with pycryptodome:
python -m pip install pycryptodome. - Each of these can be on PATH or portable under
<root>\tools(git\cmd,llvm\bin,cmake\bin,ninja,python,msvc); portable copies win.
- MSVC + Windows SDK: Visual Studio 2022 Build Tools ("Desktop development with C++"),
run from an "x64 Native Tools Command Prompt", or a portable MSVC in
- ReXGlue SDK nightly 0.10.0.24-dev.gbd833a2 (prebuilt) and the ReXGlue source at the same commit.
The Europe disc (Redump 17884, ISO SHA-1
29394DB1854DFC59C767D768C8D35E0A08ACB73D) and the USA disc are supported. The USA disc
is new in 0.3.0 and not played through: the build recognises its default.xex
(SHA-1 873fff7191be2b687eb55f8564f9b9f5c5842b40) and uses the USA addresses in
app/regions/usa.toml. No USA ISO SHA-1 is recorded yet, so a USA ISO shows the
"not verified" note; its game files are checked after extraction. Make the ISO from your own disc,
for example with a DVD drive that can read Xbox 360 discs and a disc dumping
tool, or from a backup of your own disc that you made with your console.
Check the SHA-1 with certutil -hashfile "Afro Samurai.iso" SHA1.
This project does not help with obtaining the game in any other way.
Never share the ISO, the extracted files or anything generated from them.
Folder layout (<root> = e.g. C:\afro; avoid spaces and non-ASCII characters in it):
<root>\afrorecomp this repository (any folder name works)
<root>\sdk\win-amd64 ReXGlue SDK nightly (bin\rexglue.exe inside)
<root>\rexglue-sdk ReXGlue source at bd833a2
<root>\gamedata your extracted disc (default.xex inside)
<root>\tools optional portable toolchain
-
Open a command prompt (the "x64 Native Tools" one if you use Visual Studio Build Tools) and create the root:
mkdir C:\afro cd /d C:\afro -
Clone this repository:
git clone https://github.com/LomoXSoft/AfroSamuraiRecomp.git afrorecomp -
Download
rexglue-sdk-0.10.0.24-dev.gbd833a2-win-amd64.zipfrom https://github.com/rexglue/rexglue-sdk/releases/tag/nightly-20261002-bd833a2a and extract it so thatC:\afro\sdk\win-amd64\bin\rexglue.exeexists. -
Clone the ReXGlue source at the same commit (a few GB with submodules):
git clone https://github.com/rexglue/rexglue-sdk.git rexglue-sdk cd rexglue-sdk git checkout bd833a2 git submodule update --init --recursive cd .. -
Extract your disc into
C:\afro\gamedata(takes a few minutes):python afrorecomp\tools\xiso_extract.py "D:\path\to\Afro Samurai.iso" C:\afro\gamedata /C:\afro\gamedata\default.xexmust exist afterwards. -
Build the game and then the patched GPU plugin and runtime:
cd afrorecomp tools\build_win.bat tools\build_gpu_plugin.batBoth end with
BUILD OKandGPU PLUGIN + RUNTIME OK.
build_win.bat copies your default.xex, picks Europe or USA from it
(tools/region_config.py writes app/region/), extracts (privately, gitignored) the
PE image, jump-table overrides and icon from it, runs the ReXGlue code
generator (a few minutes, ~130 MB of generated C++, log in <root>\codegen_win.log)
and compiles. The output is
app\out\build\win-amd64-release\afrorecomp.exe. build_gpu_plugin.bat applies
patches\rexglue\*.patch to <root>\rexglue-sdk and builds the patched
rexgpu-xenos.dll and rexruntime.dll next to the exe (see patches/rexglue/README.md);
it is required for a correct image and voices.
To update: git pull in afrorecomp, then run both scripts again. To rebuild
from scratch, also delete app\generated\default and app\afro_switch_tables.toml.
tools\run_win.bat
Run it from the afrorecomp folder (or use the installer's shortcut). It starts
the game with <root>\gamedata and writes the log to <root>\afro.log.
Hold Shift while starting to show the launcher again.
Controllers go through SDL. Tested: Xbox, DualShock 4/DualSense (USB and Bluetooth),
a Switch controller and a generic controller. Other controllers SDL recognises
(Steam Deck, etc.) may work but are not tested. The button prompts follow the device
you use last: Xbox icons for Xbox pads, and PlayStation, Switch, Steam or keyboard
icons for the others (--afro_button_glyphs=auto|xbox|playstation|nintendo|steam|keyboard
forces one). Only A, B, X, Y, LB, LT, RT and the D-pad prompt are replaced; RB,
Start, Back and the stick-click prompts keep the Xbox icon until their textures are
identified. Steam icons have not been checked in game.
The launcher's Control row picks Auto (default: keyboard and mouse are on, and a controller takes over when it connects or is used), Controller, or Keyboard. Keyboard and mouse:
| Action | Key | Pad button |
|---|---|---|
| Move | W A S D | left stick |
| Camera | mouse (or Shift + arrows) | right stick |
| Light attack | left click | X |
| Heavy attack | right click | Y |
| Jump | Space | A |
| Kick / menu back | E | B |
| Guard | Q | RT |
| Focus (hold) | R | LT |
| Overfocus (full Focus meter) / RB | 1 / 3 | LB / RB |
| D-pad (down: Ninja Ninja compass) | arrow keys | D-pad |
| Pause | Enter (or X) | Start |
| Skill menu | Esc | Back |
| Dash / center camera | F / K | L3 / R3 |
The action names are the ones in the original manual.
Every key can be changed in Settings → Controls → Key bindings...: click an
action, then press the new key or mouse button (hold Shift, Ctrl or Alt for a
combination). A key already in use moves to the action you changed, and the keyboard
button icons follow. The bindings are the runtime's keybind_* settings, saved as
bind_* lines in afro_language.cfg; a --keybind_* on the command line still wins.
The Controller list at the top of that window also remaps the pad buttons, one
layout per family: Xbox, generic pads and Steam Deck, PlayStation (DualSense,
DualShock) and Nintendo Switch. Pick the button for each action; a button in use
swaps with the action you changed, and the button icons in game follow. Buttons are
named as printed on that pad (on Switch the bottom button is B, which is the Xbox A
position). Saved as padmap_xbox, padmap_playstation and padmap_nintendo in
afro_language.cfg (the runtime's afro_padmap_* settings). This works with the
default SDL input; the --input_backend=xinput option is not remapped.
Mouse sensitivity, dead zone and smoothing are sliders on the same tab.
Saves are stored in %USERPROFILE%\Documents\afrorecomp (the save
itself is under <profile id>\4E4D07D8\00000001\AFRO_0.SAV; the shader cache is in
Documents\afrorecomp\cache). To back them up, copy the whole
Documents\afrorecomp folder while the game is closed; to restore, copy it back.
Deleting or rebuilding the install folder does not touch your saves.
The launcher (shown at start, or hold Shift) has a Manage saved games... button. It opens a window with:
- Open saves folder: opens
Documents\afrorecompin Explorer (created if missing). - Back up saves: copies the saves (not the shader
cache) to a newDocuments\afrorecomp-backups\saves-YYYYMMDD-HHMMSS\folder. Never overwrites anything. - Restore selected backup: pick a backup from the list (newest first) and confirm.
The current saves are first backed up automatically (
saves-...-before-restore), then replaced by the chosen backup. The shader cache is kept. - Open backups folder: opens
Documents\afrorecomp-backupsin Explorer (created if missing). - Delete save data...: after a strong confirmation (default No), the current saves are
backed up automatically (
saves-...-before-delete) and then deleted. The shader cache and all backups are kept.
Restore and delete are refused while the game is running. Backups are plain folders:
you can also restore one by hand (close the game, copy the contents of a saves-...
folder back into Documents\afrorecomp\).
Press F1, or hold both stick clicks (L3 + R3) for half a second, to open the
options over the paused game (a note at the bottom left says so for a few
seconds after the game starts). It has the launcher's main settings: display, frame
rate, VSync, internal resolution, aspect ratio, upscaling with FSR and CAS sharpness,
anti-aliasing, difficulty, loading screens, language, control mode, camera X and Y
invert, the three mouse sliders and the Experimental effects. Each change is saved
to afro_language.cfg at once; most also apply at once, and the ones marked
(after restart) (internal resolution, aspect ratio, language, control mode) apply the next
time the game starts. Move with the D-pad or the arrow keys, change with left and
right, and close with B, Start, Back, Esc or F1 again (the game ignores that press).
Key bindings stay in the launcher.
The game's 48 achievements work as on the Xbox 360: the game unlocks them and
they are saved in Documents\afrorecomp\achievements (on this PC only, not on
Xbox Live; the RecompLauncher manifest lists that folder with the saves). To see them,
open the in-game options (F1, or hold L3 + R3) and press LB or RB (L1 / R1;
keys 1 and 3 in the default key bindings) to switch to the Achievements tab.
It shows each one with the game's icon, name, description and gamerscore,
unlocked ones in full colour, with the total at the top. Move with up and down
(left and right jump five); LB / RB, B or Esc go back to the options.
F7 also opens the runtime's own achievement list, keyboard only.
The launcher (shown on first run, after each update, or with Shift) has the language (English, Español, Français, Italiano) and three buttons: Play, Settings... and Manage saved games.... Settings has four tabs:
- Graphics: display (Borderless fullscreen, the default: a window over the whole screen, no display mode change, instant Alt+Tab; Window; or Exclusive fullscreen, which takes the display), internal resolution (1x native by default / 2x / 3x), frame rate (30 (original, default) or 60) and VSync. Aspect ratio is for ultrawide screens: 16:9 (original, default), 21:9 (ultrawide), 32:9 (super ultrawide) or Auto, which takes the shape of the screen the game opens on (16:9, 16:10 and 4:3 screens keep 16:9; up to 32:9). Wider than 16:9, the game shows more of the scene at the sides, not a stretched picture: the cameras are widened and the game's picture is rendered wider than tall (21:9 at 1x internal resolution renders 2560x720 and 32:9 at 2x renders 5120x1440). Menus, the HUD and the loading screens' text stay 16:9 in the middle; cutscenes and loading screens are wide too. The start-up logos and the full-screen movies were made for 16:9 and show at 16:9 with black bars at the sides. It applies when the game starts. See Known issues. Upscaling sets how the game's picture is stretched to your screen: Bilinear (original, default), the look of earlier versions; AMD FSR 1, which keeps edges sharp when the screen or window is larger than the game's picture (1280x720 at 1x internal resolution, 2560x1440 at 2x) and only sharpens it at the same size; or AMD CAS, a sharpening filter. FSR sharpness (0 to 100 %, default 90 %) applies to FSR 1 when it upscales; CAS sharpness (0 to 100 %, default 0 %, CAS's lightest) applies to CAS, and to FSR 1 at the same size. FSR 1 and CAS are AMD's open shaders and are not limited to AMD GPUs (so far checked on an AMD GPU only). Anti-aliasing: Off (default), FXAA or FXAA (extreme quality) smooths jagged edges of the game's picture before it is upscaled. A change made in the in-game options applies at once; FXAA shows from the next frame, so once the options are closed.
- Gameplay: Difficulty: Normal (default, the game as it is) or Game Journalist, which makes the player invulnerable. Saved like the other settings. Loading screens: Full lore (default) lets the story shown while a level loads play one full pass, as on Xbox 360 where loading took that long (on PC it loads in about a second and the story was cut). Once the level is loaded the "Loading" text becomes Press any button to continue, and any button skips it. Fast goes straight on.
- Controls: Auto (keyboard and mouse, a controller takes over when used), Controller or Keyboard; mouse sensitivity, dead zone and smoothing; Camera X axis and Camera Y axis (Default or Invert); and Key bindings.... The camera setting is the game's own Options -> Camera setting, kept in step both ways: the game's save stores it, and a change made in the game's menu shows here. Until you change it here, it follows your save. The USA disc's own menu has the Y axis only; X invert works there from these settings.
- Experimental (not fully tested): sepia filter, blood effect, depth of field, bloom, focus effect, and the render path (RTV (default) or ROV).
At the bottom, Skip this window at launch starts the game straight away next
time (hold Shift to show the launcher again). Settings are saved in
afro_language.cfg next to the exe (game\afro_language.cfg after setup) each time
you press Play. Saves are not in that file; they are in Documents\afrorecomp.
Developer options: start with --advanced (e.g. tools\run_win.bat --advanced)
to show the "Advanced options..." button on the Experimental tab (resolve readback,
GPU diagnostics). Any ReXGlue cvar can also be passed on the
command line, e.g. --render_target_path_d3d12=rov.
The game can be played from RecompLauncher. Installing
it there runs this project's setup (pick your disc image in it as usual). An
installation you already have works too: in RecompLauncher, Settings → Developers →
Developer tools, then Add a build and pick its game folder. The setup puts a
recomplauncher.json in the installation folder and next to afrorecomp.exe. RecompLauncher starts the game and shows its settings
(language, display, internal resolution, aspect ratio, frame rate, VSync, upscaling, anti-aliasing,
difficulty, loading screens, controls, camera invert), which it writes to afro_language.cfg; it also backs up the
saves. FSR and CAS sharpness and the mouse sensitivity, dead zone and smoothing are sliders there, and a button
clears the shader cache. Started from RecompLauncher, the game's own launcher window
stays closed (hold Shift at start to open it); in its Big Picture mode the game
always starts fullscreen. Installing and updating stay with the setup:
RecompLauncher cannot build the game from your disc.
xex_to_pe.py needs pycryptodome: runpython -m pip install pycryptodomewith the samepythonthe build uses (where python). The installer's portable Python already has it.clang++ not found/cmake not found/ninja not found: the tool is neither on PATH nor under<root>\tools. Install it, use the installer, or check the folder names in the layout above.PATCH FAILED: <name>.patchinbuild_gpu_plugin.bat: the patches are applied to<root>\rexglue-sdkin name order and stamped inrexglue-sdk\.git\afro-patches, so re-running is safe. A failure usually means the ReXGlue source is not atbd833a2or was modified. Reset it withgit -C <root>\rexglue-sdk checkout -f bd833a2,git -C <root>\rexglue-sdk clean -fd src includeand delete.git\afro-patches, then run the script again.CODEGEN FAILED: see<root>\codegen_win.log. Usuallygamedata\default.xexis not from the Europe or USA disc or the extraction was incomplete.- Black screen, black frames or broken image: if
afro.logsaysgpu_plugin not set, the game was started without--gpu_plugin=xenos(up to v0.3.3 the game needs it); start it withPlay.bat, the setup's shortcut or RecompLauncher. Otherwise make surebuild_gpu_plugin.batran after the lastbuild_win.batand printedGPU PLUGIN + RUNTIME OK, and update the GPU driver. As a fallback, try the ROV path:tools\run_win.bat --render_target_path_d3d12=rov(slower). - No voices in cutscenes or no sound: the patched
rexruntime.dllis missing (runbuild_gpu_plugin.batagain). Check that Windows' default audio output is the device you expect. - Game does not start / crashes: look at the end of
<root>\afro.log.
See Logs. Copy the file right after the problem
(each launch overwrites it). Useful extra flags for tools\run_win.bat or Play.bat:
--afro_xma_log=true– audio (XMA) decoding details, for sound or voice problems.--afro_perf_log=true– per-second performance counters, for FPS drops.--afro_fps_log=false– disable the bounded ~2s FPS/dt lines if the log grows too large.
Prefer the 60 FPS / bug report issue template when relevant. Include:
reproduction steps, frame rate (30 or 60), internal resolution,
CPU/GPU (+ driver), Windows version, cutscene or location, and afro.log as an
attachment after a quick privacy review. Also useful: version or commit
(git log -1 --oneline in the source checkout the installer used, when present)
and install.log / build output for install problems.
Never attach game files: no ISO, default.xex, default.pe, gamedata contents,
app\assets, app\generated, saves, or anything else extracted from the disc
unless a maintainer specifically asks.
app/– ReXGlue project: manifest,afro_functions.toml(extra function boundaries),afro_hooks.toml(mid-asm hooks), launcher and hooks insrc/. These use Europe addresses;regions/usa.tomlmaps each one to the USA disc.install.bat,tools/install.ps1– console installer.tools/afrosetup.cppbuilds the graphical setup. The release file isafrosetup-v0.3.11.exe, not committed.tools/build_release_setup.ps1– builds that release file from one commit (agit archiveexport, clang 20.1.8)..github/workflows/setup.ymlruns it on GitHub Actions when started by hand. It uploads the setup as a workflow artifact with a build provenance attestation, and attaches it to a release only while that release is a draft.tools/– build/run scripts and helpers (xiso_extract.py,xex_to_pe.py,gen_switch_tables.py,extract_icon.py);tools/analysis/has the reverse-engineering helpers used while mapping the game,tools/artwork/the setup art and button icons.checks/– tests for the setup, launcher and patches: run each.pywith Python, each.ps1with PowerShell, and compile each.cppwith any C++17 compiler. They need no game files.patches/rexglue/– ReXGlue GPU plugin and runtime patches (BSD-3, see its README).
See Goals. Also: performance work and audio polish.
The code in this repository is licensed under the GNU GPL v3.0 (see
LICENSE), except patches/rexglue/, which modifies ReXGlue/Xenia code and is
under their BSD 3-Clause license.
This is a fan project, not affiliated with or endorsed by Namco Bandai, GONZO, Microsoft or any rights holder. "Afro Samurai" and related names are trademarks of their respective owners. No game code, assets or data are distributed here; you must own the original game.