Skip to content
Cloning Leonida Safely: Recursive Clone, Submodules and Lookalike Repositories
Official GTA VI screenshot, Rockstar Games. Game art, not build output: the Leonida project does not boot. · Project guide: the GTA 6 recompilation project.
  • Boots: No
  • Release: None
  • File: None

Cloning Leonida Safely: Recursive Clone, Submodules and Lookalike Repositories

Leonida must be cloned with its submodule, from the preservation fork. This guide covers the clone mechanics and how to check you have the real code.

Contents
  1. Start From the Preservation Fork
  2. The Recursive Clone Command
  3. Submodules Explained
  4. Checking What You Cloned
  5. Lookalike Repositories
  6. After Cloning: Next Steps
  7. Conclusion
  8. Frequently Asked Questions

Start From the Preservation Fork

Leonida source must come from the right place. The original repository went offline, and the code now lives in a preservation fork. Readers should use the preservation fork as the source for the code, and should treat any other location that claims to hold the code with caution until it is checked against the fork. The project code, the Leonida code, is shared under GPL-3.0, with 0 releases and 0 tags, and the game does not boot. Those facts describe the fork's contents as well as the project, because the fork preserves the project code.

The original repository going offline is a fact about availability, not a reason to accept a substitute source without checking. A repository that went offline cannot be cloned from its old location, and a new location that appears in its place must be verified. The preservation fork is the verified location named in this guide, and its address is given in full above so that readers can check it directly. No other address is given in this guide, and no other address should be treated as equivalent without the same kind of verification.

Cloning safely therefore starts before any command is run. It starts with the source address, the licence, and the release position. A source that shows releases or tags where the project reports none, a source that describes the game as booting, or a source that does not match the fork's contents should be treated as a different thing from the Leonida code, whatever name it carries. The clone command in the next section only makes sense once the source has been settled.

The Recursive Clone Command

Leonida must be cloned recursively. The command is git clone --recursive, with the preservation fork address as its target. The recursive form matters, because the project has a submodule, and a plain clone without the recursive flag will leave the submodule empty. A builder who clones without the recursive flag will have the main code but not the submodule contents, and later build steps that need the submodule will fail or behave incorrectly.

git clone --recursive https://github.com/avivetech/Leonida

The recursive clone is a single command with a single purpose: fetch the code and its submodule together, in one step. Builders should run it exactly as written, from the location where they want the code to live, and should not substitute a plain clone followed by a guess about the submodule. If a clone has already been made without the recursive flag, the safe course is to start again with the recursive form, rather than trying to repair a partial clone by assumption. A fresh recursive clone is the checkable state, and checkable states are what a build should start from.

The clone command also defines what cloning does not do. Cloning does not build the project, does not check a game copy, does not translate shaders, and does not run the loader. It only places the source on the builder's machine, with its submodule. Every later step, prerequisites, build stages, and loader runs, depends on the clone being complete, and the recursive flag is what makes it complete.

Submodules Explained

A submodule is a separate repository nested inside a main repository. The main repository records which revision of the submodule it needs, and a recursive clone fetches that revision as part of the clone. A plain clone fetches the main repository and leaves the submodule directory empty, because the submodule contents live in their own repository and are not part of the main repository's files.

For Leonida, the submodule is part of the source that the build needs. A builder who checks the cloned directory and finds an empty submodule directory has evidence of a non-recursive clone, and should treat the clone as incomplete. A builder who checks and finds submodule contents present has evidence that the recursive clone worked. That check is simple, direct, and worth doing before any build step is attempted, because a build attempted with an empty submodule will waste time on errors that have nothing to do with the build itself.

Submodule handling is also a reason to prefer the stated command over a shortcut. Shortcuts that fetch the main code quickly but skip the submodule save a small amount of time at the clone step and cost a larger amount of time at the build step, when the missing contents are discovered. The recursive clone is the stated method, and it is stated for exactly that reason: the project is cloned as a whole, submodule included, in one checkable action.

Checking What You Cloned

After cloning, a builder should check the result before building. Check that the clone came from the preservation fork address, that the submodule directory is populated, and that the expected build entry point, Build.bat, and the build program, make_game.py, are present. Those checks confirm the clone, not the build. They answer the question of whether the source is complete, and they should be answered before the question of whether the build works is asked.

Two further checks help to confirm that the code is the Leonida code. The code is shared under GPL-3.0, and the project reports 0 releases and 0 tags. A source that presents itself with releases, tags, or a different licence statement does not match the stated position, and should be treated with caution. The game does not boot, and a source that claims otherwise does not match the stated position either. Those checks do not prove every file in a clone, but they catch the most common kinds of mismatch quickly.

The Leonida GitHub guide explains the repository position in more detail, and the guide to verifying a source explains source checks beyond the clone step. This guide covers the clone itself: recursive form, submodule present, entry points present, licence and release position matching. A clone that passes those checks is a sound starting point for prerequisites and building.

Check the clone before building. A recursive clone with a populated submodule, Build.bat, and make_game.py present is the complete starting point. Anything less is incomplete, whatever the clone command appeared to do.

Lookalike Repositories

When a well-known repository goes offline, lookalike repositories appear. A lookalike may use a similar name, a similar description, or copied text from the original project, while holding different code, older code, or code with additions that the project never made. The risk is not only that the code is wrong: the risk is that a builder spends hours on a build that cannot produce the stated results, and then judges the project by the lookalike's behaviour.

The defence against lookalikes is the address and the checks in this guide. Use the preservation fork address given above, clone recursively, confirm the submodule, and confirm the licence and release position. A lookalike that fails any of those checks should not be used as a substitute, even if its name looks right. Names are easy to copy. Addresses, submodule structure, and stated positions are harder to fake convincingly, and together they give a builder a practical way to tell the preserved code from a copy.

Lookalikes also matter for reporting. A builder who reports a result should name the source the result came from, so that other readers can check whether the same source produces the same result. A result reported without a source cannot be checked, and a result reported from a lookalike cannot be compared with a result from the preservation fork. Source naming is part of honest reporting, and it starts with the clone step.

After Cloning: Next Steps

After a recursive clone that passes the checks, the next steps are prerequisites and building, in that order. Prerequisites come first: Python 3.12 or newer on PATH, the .NET 8 SDK, the Vulkan SDK with spirv-as and spirv-val, LLVM 21 or newer with AMDGPU support through LLVM_MC, Visual Studio with Desktop development with C++, Windows SDK 10.0.26100 or newer, and ffmpeg only if --wav will be used. The Leonida build guide then explains the build sequence with Build.bat and make_game.py.

The order matters. Cloning first, prerequisites second, build third is a sequence where each step can be checked before the next begins. A builder who builds before confirming prerequisites will see errors that are really setup errors. A builder who clones non-recursively and then builds will see errors that are really clone errors. Keeping the steps separate keeps the errors diagnosable, and diagnosable errors are fixable errors.

The endpoint of the whole sequence is the same as the endpoint of every Leonida guide. A completed clone, a confirmed prerequisite set, and a completed build still leave the game not booting, with 0 releases and 0 tags, and a loader that runs a stand-in. Cloning safely does not change that endpoint. It ensures that the work done toward it starts from the real code, with its submodule, from the preservation fork, and can be checked by anyone who follows the same steps.

Conclusion

Cloning Leonida safely means cloning recursively from the preservation fork, confirming that the submodule is populated, and checking that the code matches the stated position: GPL-3.0, 0 releases, 0 tags, and a game that does not boot. The recursive clone command fetches the code and its submodule together, and the checks in this guide confirm that the fetch worked before any build step is attempted.

Lookalike repositories are a real risk when an original repository has gone offline, and the defence is practical: use the fork address given here, clone recursively, and check the result. A sound clone is the foundation for prerequisites and building, and a sound clone that leads to a completed build still ends at the same honest position, with preparation done and the game itself still not running.

Frequently Asked Questions

Where should Leonida be cloned from?

From the preservation fork at the address given in this guide, because the original repository went offline. Use that address and check the clone against the stated licence and release position.

Why must the clone be recursive?

Because the project has a submodule. A plain clone leaves the submodule empty, and later build steps that need the submodule contents will fail. The recursive form fetches the code and its submodule together.

How do I check the clone worked?

Confirm the source address, confirm the submodule directory is populated, and confirm that Build.bat and make_game.py are present. Also confirm the GPL-3.0 licence and the 0 releases and 0 tags position.