Welcome to Reia! This guide will walk you through setting up the project step-by-step, whether you are trying out pre-alpha builds, exploring the codebase, or contributing changes.
- Prerequisites
- Step 1: Downloading & Cloning the Repository
- Step 2: Opening the Project in Godot Engine
- Step 3: Rust Backend & Binary Updates
- Step 4: Compiling Rust from Source (Optional)
- Troubleshooting & Common Pitfalls
Before getting started, ensure you have the following tools installed on your system:
- Git: Required to download the project repository.
- Git LFS (Large File Storage): Required to download 3D models, textures, audio, and visual assets.
- Godot Engine 4.x: Download standard Godot 4.x (4.7 recommended) from godotengine.org.
- Rust Toolchain (Optional): Only required if you intend to modify and compile code inside the
rust/directory.
CRITICAL WARNING FOR ZIP DOWNLOADS:
Do not download this repository as a ZIP file using GitHub's "Download ZIP" button.
Downloading a ZIP bypasses Git LFS and Git Submodules. As a result, all binary assets (textures, audio, 3D models) will remain 100-byte text pointer files, and essential plugins likegecswill be missing. This will cause errors and prevent you from starting the game.
Open a terminal or command prompt and run the following command once to set up Git LFS globally on your system:
git lfs installClone the repository using the --recursive flag to automatically fetch submodules (such as godot/addons/gecs):
git clone --recursive https://github.com/Quaint-Studios/Reia.gitNavigate into the cloned project directory:
cd ReiaIf you previously cloned the repository without --recursive or without Git LFS enabled, run these commands to pull missing assets and submodules:
git submodule update --init --recursive
git lfs pull- Launch Godot Engine 4.x.
- Click Import in the Project Manager.
- Browse to the
godot/folder inside theReiarepository directory (selectgodot/project.godot). - Click Import & Edit to open the project in the Godot Editor.
Reia utilizes a high-performance Rust backend connected to Godot via GDExtension.
You do not need to install Rust or compile C++/Rust code to run the game.
When you open the project in Godot, the built-in rust_binary_updater plugin automatically checks for pre-compiled Rust GDExtension binaries matching your operating system (Windows .dll, Linux .so, macOS .dylib). If an update is needed, Godot will fetch the compiled binary from the build server automatically.
If Godot was actively running while an update downloaded, the OS may lock the binary file. If you see a warning in the Godot Output console about locked binaries:
- Stop any running instances of the project.
- In the Godot menu bar, go to Project -> Tools -> Reia Tools -> Finalize Rust Binary Update.
- If files remain locked, close the Godot Editor, reopen it, and the update will complete.
If you plan to modify code inside rust/ (such as spatial queries, networking, or database layer code), you will need to compile the Rust backend locally.
- Install the Rust toolchain via rustup.rs.
Run the build script from the root or rust/ directory:
cd rust
build.batFor a release build:
cd rust
build.bat releaseMake the script executable and run it:
cd rust
chmod +x build.sh
./build.shFor a release build:
cd rust
./build.sh releaseThe script will compile the library and output the compiled binary into godot/build/bin/.
| Issue / Symptom | Root Cause | Solution |
|---|---|---|
| Boot splash image fails to load; game crashes on Single Player button | Repository downloaded as ZIP file instead of cloned with Git LFS. | Install Git LFS (git lfs install), then clone via terminal using git clone --recursive https://github.com/Quaint-Studios/Reia.git. |
gecs addon directory is empty |
Git submodules were not initialized during clone. | Run git submodule update --init --recursive inside the repository directory. |
| "Binary locked" warning when updating Rust GDExtension | Active process locked the .dll or .so file during download. |
Stop running game sessions, go to Project -> Tools -> Reia Tools -> Finalize Rust Binary Update, or restart Godot Editor. |
| macOS Security warning ("Developer cannot be verified") | macOS Gatekeeper flags un-signed GDExtension dynamic libraries. | Run xattr -c godot/build/bin/* in your terminal to clear extended quarantine attributes, or allow the library under macOS System Settings -> Privacy & Security. |
| Unresolved script errors when opening Godot editor for the first time | GDExtension binary downloaded but not yet indexed by Godot. | Restart the Godot Editor once so Godot re-indexes GDExtension bindings. |
- Check out docs/ROADMAP.md for planned features and tasks.
- Read CONTRIBUTING.md for branch naming conventions and pull request guidelines.
- Join the community on Discord for discussions and support.