Leonida Setup

Build from source on Windows, Linux, or macOS. There is no installer.


Package1.0.2.1
Python3.12
Disk350 GB
OutputDocuments\Leonida

Prerequisite checklist

These nine rows are the README list. A tick is stored only in this browser tab. It does not install a tool and it does not mean the build will succeed.

The mark count is only for this browser tab. The build still has to be run on your machine.

Marked0 / 9
RequirementMinimumRequiredREADME note
1.0.2.1RequiredYour own Xbox Series package, version 1.0.2.1. The folder holds MicrosoftGame.Config and the .rpf archives as plain files. The repository does not include that package.
10RequiredWindows 10 or 11 x64 is the documented host for Build.bat and the runtime. Linux and macOS can run tools, with the runtime under Wine.
350 GBRequiredAbout 350 GB free for a full build. The assets stage is about 300 GB. --stages check,shaders,runtime needs about 30 GB. --work can point at another drive.
3.12RequiredPython 3.12 or newer. On Windows, add python.exe to PATH. The terminal entry point is python -I make_game.py.
8Required.NET 8 SDK, used by the asset tools.
spirv-toolsRequiredVulkan SDK, for spirv-as and spirv-val. vulkaninfo is also how --wave64-emulate auto reads subgroup size.
21RequiredLLVM 21 or newer with the AMDGPU target for llvm-mc. The stock Windows LLVM build has no AMDGPU target. Avoid 22.1.7 and 22.1.8 for the Linux cross build.
10.0.26100RequiredVisual Studio 2022 with Desktop development with C++ and Windows SDK 10.0.26100 or newer, for the runtime stage. The runtime uses version 1.2 root signatures, which older SDKs do not declare.
on-pathOptionalOptional on PATH. Required only when you pass --wav to decode XMA2 and Opus to PCM WAV, which uses much more disk.

Commands for the selected OS

The easy path in the README is Windows: clone with the submodule, then double-click Build.bat. Linux and macOS use the same repository and python -I make_game.py. There is still no per-OS installer.

1

Install the toolchain

Python 3.12, the .NET 8 SDK, the Vulkan SDK, Visual Studio 2022 with the Windows SDK 10.0.26100, and an LLVM that includes AMDGPU. scripts\build_llvm_mc.ps1 builds llvm-mc.exe, needs git and the Visual Studio C++ tools, sets LLVM_MC, and takes about 20 to 40 minutes. Open a new terminal after it finishes. conda install -c conda-forge llvm-tools is the faster Windows option in the README. For WSL, set LLVM_MC to wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc.

scripts\build_llvm_mc.ps1
2

Clone with the submodule

Download ZIP omits third_party/rpf9-explorer. The recursive clone includes it. If git exists, a ZIP checkout can still fetch the submodule later.

git clone --recursive https://github.com/ItsNotRexed/Leonida
3

Run Build.bat

Build.bat looks for your package in Downloads, Desktop, Documents, Games, your home folder, and the top of each drive, two folders deep. It checks free space and lists anything missing. Output goes to Documents\Leonida. A stopped build continues where it left off.

Build.bat
4

Or drive make_game.py yourself

--check only inspects the package. --find lists copies. --game and --out set the package and the output folder. --stages check,shaders,runtime is the smaller disk path.

python -I make_game.py --check

Disk budget

The 350 GB figure is the full build. Assets are the large part. The bar splits that README budget into the assets stage and the smaller check, shaders, and runtime path. It is not a live reading of your disk.

Full build350 GBAssets stage300 GBcheck, shaders, runtime30 GB
Full build350 GB
Assets stage300 GB
check, shaders, runtime30 GB
Bar chart of the 350 GB full build, the 300 GB assets stage, and the 30 GB check, shaders, and runtime path
README disk figures: 350 GB full, about 300 GB for assets, about 30 GB for check plus shaders plus runtime.

Stage order

make_game.py runs the stages in this order. --stages can name a subset, and a stopped build continues where it left off.

1

check

Recognises package 1.0.2.1 from file sizes and lists missing tools before anything is compiled.

2

shaders

The longest stage. It uses --jobs processes, half the CPU threads by default, and keeps the extracted shader inputs if llvm-mc changes.

3

assets

Exports models and textures for the asset tools. This is the about 300 GB part of a full build.

4

runtime

Builds the Windows loader. On Linux it is left out of the default stages until clang-cl, lld-link, and the xwin SDK are present.

5

pipelines

Creates each translated shader on the current GPU driver, reports skips, and writes pipeline_cache.bin in --out. The runtime does not load that cache.

Terminal commands

Build.bat is the Windows double-click. The same make_game.py entry point takes the flags printed in the README.

CommandEffect
python -I make_game.py --findLists the package copies the finder sees on this PC.
python -I make_game.py --pickOpens a folder dialog so you can point at the package.
python -I make_game.py --checkChecks the copy and builds nothing.
python -I make_game.py --check --full-checkAlso compares the SHA-256 of every package file. The README marks this as slow.
python -I make_game.py --game "D:\path\to\your\package" --out "D:\Games\Leonida" --work "E:\leonida-work"Sets the package folder, the output folder, and a work drive that has the free space.
python -I make_game.py --stages check,shaders,runtimeSkips the assets stage. The README puts this path at about 30 GB.
python -I make_game.py --game "D:\path\to\your\package" --wavAlso decodes repackaged Ogg Opus to 16-bit PCM WAV, which is several times larger.
python -I make_game.py --wave64-emulate offForces native wave64. The default is auto, which asks vulkaninfo, and on forces emulation.

Setup blockers already written down

The README already names these four setup failures. Open a row for the cause.

Stock Windows LLVM has no AMDGPUknown

llvm-mc needs the AMDGPU target. The official Windows LLVM build does not include it. Use scripts\build_llvm_mc.ps1, conda-forge llvm-tools, or llvm-mc from WSL with LLVM_MC set to the full command.

Skip LLVM 22.1.7 and 22.1.8known

The README calls out those two point releases for the Linux cross build. The runtime notes say clang-cl and lld-link want LLVM 19 or newer, but not 22.1.7 or 22.1.8.

Zero shaders can look like successknown

Deleting the .s files in work/shaders/dxbc/disasm along with the translated index can leave the shaders stage looking finished with zero shaders.

AMD emulated LDSknown

On AMD's Windows driver, auto uses native wave64 on RDNA1 and RDNA2 when the runtime GPU supports it. Emulated LDS is a known crash path. --wave64-emulate defaults to auto.

Output and save location

The default output folder is Documents\Leonida. --out and --work can move that to another drive. A read-only package drive needs gta6rt --overlay with a writable folder. --overlay is a gta6rt option, not a make_game.py option. Nothing here is a playable save game. The port does not boot.

Compatibility

Sources