Read-only copy of github.com/ThatRecompDev/five-star-recomp · frozen 2026-12-02, gone from GitHub · Pre-work for a PC port of the Xbox Series GTA VI release: formats, shader translation and an offline console runtime
  • C# 99.2%
  • HLSL 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-02 09:31:52 +01:00
.github/workflows CI: Windows tests run in processes of at most 40 classes; one Loader process outgrew the runner's memory alone 2026-11-26 17:03:33 +01:00
benchmarks/FiveStar.Benchmarks Loader: the loader's own memory a submission reads is reused only after that submission's fence 2026-11-29 22:41:00 +01:00
build Build: repository build policy, code rules, line endings and GPL-3.0-or-later license 2026-11-22 00:16:41 +01:00
docs Loader: after a device removal, dispatch captures already read back are written before the process ends 2026-12-02 09:14:23 +01:00
src Loader: after a device removal, dispatch captures already read back are written before the process ends 2026-12-02 09:14:23 +01:00
tests Loader: with --raytracing a vertex stride's bit 15 is masked off in both builders 2026-12-02 09:04:52 +01:00
vendor/bcpack-rs Remove THIRD_PARTY_NOTICES.md and the pointers to it; ported files keep their notices in their headers 2026-12-01 20:45:00 +01:00
.editorconfig Shaders: DXIL backend plumbing: LLVM 3.7 bitcode writer, module IR, container with its digest, validator wrapper 2026-11-24 14:35:23 +01:00
.gitattributes Build: repository build policy, code rules, line endings and GPL-3.0-or-later license 2026-11-22 00:16:41 +01:00
.gitignore Cli: fivestar exe analyze, a day-one report for the executable 2026-11-23 12:07:36 +01:00
CONTRIBUTING.md Docs: architecture overview (layers, one frame, where title memory lives, where to look) 2026-11-30 00:17:36 +01:00
Directory.Build.props Build: map the checkout path out of every assembly 2026-11-28 15:57:46 +01:00
Directory.Packages.props Audio: Opus on native libopus (Concentus.Native.NetCore) 2026-11-26 12:37:28 +01:00
FiveStar.slnx Merge main into lane-aot 2026-11-23 21:44:12 +01:00
global.json Build: repository build policy, code rules, line endings and GPL-3.0-or-later license 2026-11-22 00:16:41 +01:00
LICENSE Build: repository build policy, code rules, line endings and GPL-3.0-or-later license 2026-11-22 00:16:41 +01:00
README.md Remove THIRD_PARTY_NOTICES.md and the pointers to it; ported files keep their notices in their headers 2026-12-01 20:45:00 +01:00

Five Star Recomp

Five Star Recomp is an effort to run an Xbox Series game natively on a Windows PC, from a copy of the game you own.

The Xbox Series uses a regular x86-64 processor, so the game's own code can run on a PC as it is. What does not carry over is everything around it: the console's operating system services, its graphics API, its GPU shaders and its data formats. This project rebuilds those pieces:

  • Shaders. The game ships its GPU programs only as native AMD RDNA machine code. A translator turns each one into HLSL and compiles it to DXIL for any PC graphics card.
  • Platform. A loader maps the game's modules on Windows and answers their calls to console-only system libraries with PC implementations.
  • Assets. Readers for the game's archives, textures and metadata, so the data can be inspected and used.

No game files, keys or extracted data are part of this repository. Every tool runs on your own console dump.

Status

The game starts but is not playable yet. Under the loader it boots through its first-run screens and the story load, plays the opening scenes and reaches the first moment of control, where the character answers the gamepad or the keyboard and mouse. Geometry, most surface colours and sun lighting are on screen. It runs at about eight frames a second on an RTX 4090 and parts of the picture are still wrong; the wiki has the current state and numbers.

Area State
Shader translation Every shader stage the game uses is translated (vertex, pixel, compute, mesh, geometry, ray intersection), and all 25,908 programs compile. Branches become structured if/else and loops, 39% smaller than the older dispatch loop and checked to give the same results on real programs. Instruction behaviour is checked on D3D12 WARP. Shaders are translated when the game first uses them and compiled by a DXIL backend of our own, 5 to 20 times faster than dxc, in a separate compile process; dxc remains the fallback.
Archives Contents can be extracted without the encrypted file table (no names yet). Metadata files parse completely.
Textures Every texture decodes exactly with the BCPack tables, which you supply yourself (fivestar setup --bcpack-tables); without them 99.44% are readable and BC7, BC6H and BC3 (about 2,000 textures) are not.
Models Drawable geometry (meshlets, packed vertices) decodes and exports as OBJ (docs/models.md).
Loader The game executable and its support libraries load with all imports resolved; the game boots through its start-up, answers its first-run screens through a scripted gamepad (docs/first-run.input) and loads story mode. The console runtime, audio decoding and system libraries are implemented for offline use.
Graphics API The game's D3D12.X device runs on desktop D3D12: its pipelines build from the translated shaders (with a disk cache), its descriptors and barriers are translated, and it presents its logo, intro video and menus with complete UI text. Shaders that read memory through console GPU addresses reach the game's memory through an address map. See docs/architecture.md.

The wiki has the details, research notes and the current progress report.

Getting started

You need the .NET 10 SDK. Shader work also needs the DirectX shader compiler (dxc, part of the Windows SDK). The tools disassemble RDNA code in-process; LLVM 18 or newer with the AMDGPU target (llvm-mc, llvm-objdump) is needed only to change a shader test program and for fivestar shader decode-check.

dotnet build FiveStar.slnx
dotnet test

Preparing your dump

fivestar setup <your dump folder>

One command prepares everything the port needs: it checks the dump, extracts the shaders, reads the console pipeline cache and exports the textures into %LOCALAPPDATA%\FiveStar\<titleid>-<version>\ (--work picks another folder). Shaders are translated when the game first uses them; --translate-ahead translates them all first (hours). A re-run skips finished steps, and a run that was stopped continues where it left off. fivestar setup <dump> --status shows what is done. See docs/setup.md.

Running the game

fivestar doctor <your dump folder>
fivestar run <your dump folder>

doctor checks what a run needs (the PC GDK, dxc, disk space, the loader). run finishes any setup step still to do, then starts the game under the loader and prints a summary when it exits. See docs/running.md.

Single tools

The fivestar command holds all tools; fivestar <group> help lists a group's commands.

fivestar archive carve <archive.rpf> <out-folder>     extract an archive's contents
fivestar audio export <audio.rpf> <out-folder>        export sounds as Ogg Opus and WAV
fivestar texture extract <file.ttpf> <out-folder>     export textures as DDS
fivestar exe analyze <exe> [--dump <dir>] [--gdk-lib <lib>]   report what the port needs (docs/exe-intake.md)
fivestar shader extract <shaders.rpf> <out-folder>    extract the GPU programs
fivestar shader translate <programs> <out-folder>     translate them to HLSL and compile
fivestar shader plan <out-folder>                     which DXIL each of your GPUs runs, and what it cannot run correctly

The loader is a separate program, fivestar-loader; see docs/loader.md.

Repository layout

Folder Contents
src/FiveStar.Formats archive, texture, model, metadata and platform file readers
src/FiveStar.Shaders shader containers, the RDNA to HLSL translator and the DXIL backend
src/FiveStar.Loader the module loader, the console runtime replacements and the D3D12.X layer
src/FiveStar.Loader.Generators the source generator that registers the loader's shims
src/FiveStar.Debugger fivestar-dbg: runs a program under the Win32 debugging API and reports exceptions, stacks and crash dumps
src/FiveStar.Graphics D3D12 devices, the root signature of translated programs, shader variant selection, pipelines and rendering
src/FiveStar.Cli the fivestar command
tests/ tests per project, plus the code-rule checks
benchmarks/ call and translation overhead benchmarks
build/ analyzer and style configuration
docs/ one page per format and tool; start at docs/architecture.md
docs/wiki/ the source of the project wiki: status, roadmap and research notes
vendor/ third-party test data, each folder with its provenance and licenses
  • VIctory (GPL-3.0-or-later, Rust): another PC port of the same Xbox build. We compare our results with its translator and port fixes from it, with its notices kept in the ported files.

Contributing

Contributions are welcome. CONTRIBUTING.md explains the ground rules, the code style and how to submit a change.

License

GNU General Public License v3.0 or later. See LICENSE.

Five Star Recomp is a fan project. It is not affiliated with or endorsed by the game's publisher or Microsoft. All trademarks belong to their owners. You need your own copy of the game; this repository contains none of its content.