spartan-total-warrior-recomp
Spartan: Total Warrior Recomp is a native recompilation of Spartan: Total Warrior for Apple Silicon Macs that supports higher resolutions and custom controls.
- Type: PC port
- Game: Spartan: Total Warrior
- Runs on macOS
- By ze-castro
- Latest release v1.0.2, 2026-11-20
- Source: https://github.com/ze-castro/spartan-total-warrior-recomp
README
The original Xbox game, running natively on your Apple Silicon Mac.
Not an emulator: the game's own code is recompiled on your machine.
Install · Features · Controls · Build · Known issues · Docs
Important
You need your own copy of the game. This repository and its downloads contain no game code, no assets, and nothing generated from them. You supply a disc image of the Xbox PAL / Europe release that you own, and the app translates it on your Mac. Not affiliated with or endorsed by SEGA, Creative Assembly, Microsoft or anyone else. Spartan: Total Warrior is a trademark of its owners.
⚔️ What is this?
Spartan: Total Warrior (Creative Assembly, 2005) is a hack-and-slash for the original Xbox. This project is a static recompilation: the game's x86 machine code is translated to C once, compiled for Apple Silicon, and run against a small re-implementation of the console underneath (kernel, the NV2A GPU drawn with Metal, audio on CoreAudio, controllers and files). No console emulation sits between the game and your CPU, which is why it runs at a steady 60 frames per second and can render far above the Xbox's 480 lines.
✨ Features
| Native speed | the game's code runs as native ARM64; about 55–60 fps in menus, cutscenes and the first areas on an M-series Mac |
| Resolution | Original (480 lines), 720p, 1080p, 1440p or 2160p, with 8x anisotropic filtering; change it live with F1 / F2 |
| Widescreen | a real 16:9 view built by the game itself, with the HUD kept in proportion (or the original 4:3) |
| Image quality | FXAA or 2x / 4x MSAA, contrast-adaptive sharpening, smoother bloom |
| Controls | keyboard and mouse with every action rebindable, plus full controller support (Xbox, PlayStation, Switch) with rumble |
| Launcher | pick your disc, resolution, aspect ratio, mouse sensitivity, Metal performance HUD and full screen before the game starts |
| Complete package | intro movies, cutscenes, audio, saving and loading all work |
| Downloadable app | a normal .app: open it, point it at your disc, and it prepares the game for your Mac on the first run |
![]() Display, resolution and aspect ratio | ![]() Every keyboard and mouse action is rebindable |
![]() Controller mapping, dead zones and rumble | ![]() Anti-aliasing, sharpening and bloom |
📦 Install
What you need: macOS 13 or later on Apple Silicon, the Xcode command line tools (xcode-select --install), and your own PAL disc image
(.iso) of the game. About 12 GB of free disk space.
- Download the latest
.dmg(or.zip) from the Releases page and drag the app to Applications. - The app is not signed by an Apple developer account. The first time, right-click the app and choose Open, then Open again. (Or run
xattr -dr com.apple.quarantine "/Applications/Spartan Total Warrior.app".) - Open it and choose your disc image. The first run prepares the game for your Mac, which takes about 5 minutes, once.
- Press Play.
Your disc image stays where it is. The game files and your saves live in ~/Library/Application Support/Spartan Total Warrior Recomp/.
🎮 Controls
All keyboard and mouse controls can be changed in the launcher's Controls tab. Defaults:
| Action | Default | Action | Default | |
|---|---|---|---|---|
| Move | W A S D | Attack 1 | left click | |
| Walk | hold Shift | Attack 2 | Shift + left click | |
| Jump | Space | Shield | right click | |
| Interact | E | Rage moves | Cmd + left click, Cmd + Shift + left click | |
| Camera | mouse | Zoom | scroll wheel | |
| Accept | Enter | Pause / back | Esc |
In game: F1 / F2 lower / raise the resolution · F3 Metal HUD · F10 full screen · Cmd+Q quit.
On a Mac the F keys act as media keys unless you hold fn.
Tip
If Enter does not respond on a menu, in a cutscene or on the death screen, press Esc: it sends Start during a scene and goes back in
menus. Shift+Enter also sends Start.
The full list, including controllers, is in docs/CONTROLS.md.
🛠️ Build from source
git clone https://github.com/ze-castro/spartan-total-warrior-recomp.git
cd spartan-total-warrior-recomp
scripts/prepare.sh "/path/to/Spartan - Total Warrior (Europe).iso" # once: extract, analyse and translate the game (a few minutes)
make # compile into build/stw (a couple of minutes)
./build/stw # opens the launcher
To build the downloadable app (.app, .zip, .dmg): scripts/make_app.sh. Details and troubleshooting: docs/BUILDING.md.
⚙️ How it works
flowchart LR
A["Your disc image"] --> B["discover<br/>find ~16,600 functions"]
B --> C["lift<br/>x86 to C"]
C --> D["clang<br/>ARM64"]
E["runtime<br/>kernel · NV2A on Metal · audio · input"] --> F(("Spartan<br/>Total Warrior"))
D --> F
tools/discover.pyfinds the functions in the game's executable andtools/oovpa_match.pynames the statically linked Xbox library functions.tools/lift.pytranslates every function to C (the integer, x87, SSE and MMX instructions the game uses). Hardware-facing library functions are replaced by hand-written handlers.runtime/supplies the machine: kernel calls and threads, an NV2A GPU model whose push-buffer commands become Metal draws (vertex programs and register combiners are translated to Metal shaders), a DirectSound mixer, XInput and the file system.
More in docs/ARCHITECTURE.md.
🐞 Known issues
This is a first release; see RELEASE_NOTES.md for the full list. The important ones:
Entersometimes doesn't register on menus, in cutscenes or on the death screen: useEsc(see above).- The glowing ring in front of treasure chests is missing.
- Only the early game has been played through. Act 2 and later, boss fights and the other arena modes are untested.
- Real game controllers and heavy combat scenes (performance) have not been tested.
- Only the PAL release is supported.
Found something else? Open an issue and attach the log from
~/Library/Application Support/Spartan Total Warrior Recomp/stw.log.
📚 Documentation
| Building | prepare, build, run, the app bundle |
| Controls | keyboard, mouse, controllers, rebinding |
| Widescreen | how 16:9 works and its limits |
| Architecture | the translator and the runtime in detail |
| Debugging | environment variables, frame dumps, how to test changes |
| Status | what works, what does not, ideas |
🤝 Contributing
Contributions are welcome. Read CONTRIBUTING.md first; the main rules are never commit anything derived from the game, and check the picture, not only the numbers, since a performance change once left the whole screen black while the benchmarks looked fine.
📄 License
The code in this repository is released into the public domain under the Unlicense. That covers this repository's code only, never the game. Third-party material and how it is used is listed in THIRD_PARTY.md.
Made by ze-castro · Fan project, not affiliated with the game's owners.



