> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ochrebound.ibrahimsultan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Local setup

> Clone, pull the right large files, run the fast checks, and open the Unity project.

## What you need

| Tool | Version | For |
| :- | :- | :- |
| Unity | `6000.6.10f1` with WebGL Build Support | The project, its tests and builds |
| Git and Git LFS | Git 2.40+, LFS 3.x | Large art plates, audio and fonts |
| Python | 3.12+ | QA audits, art pipelines, the web packager |
| Node.js | 22+ | Tier parity, loader checks, Wrangler 4 |
| FFmpeg | 6+ | Packaging the film and music |
| Blender | 4+, optional | Re-rendering character maquettes |

## Get running

**1. Clone**

For Unity and art work, take everything:

```bash theme={"system"}
git clone https://github.com/xIBBAx/ochrebound.git
cd ochrebound
git lfs pull
```

For documentation, the web shell or the fast checks only, skip the large files and pull just what the checks read:

```bash theme={"system"}
GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/xIBBAx/ochrebound.git
cd ochrebound
git lfs pull --include="unity/Ochrebound/Assets/Ochrebound/Fonts/Amiri-Regular.ttf,unity/Ochrebound/Assets/Ochrebound/Art/Places/**"
```

**2. Python tools**

```bash theme={"system"}
python3 -m venv .venv
source .venv/bin/activate
pip install -r tools/requirements.txt
pip install numpy pillow scipy uharfbuzz freetype-py fonttools
```

**3. Run the fast checks**

These are the same four checks GitHub runs on every push. Run Python in isolated mode (`-I`), as CI does.

```bash theme={"system"}
python3 -I tools/qa/docs_media_audit.py
python3 -I tools/qa/copy_audit.py
python3 -I tools/art/arabic_plates.py --check
node tools/web/tier_check.mjs
```

**4. Open the Unity project**

Install Unity `6000.6.10f1` (recorded in `unity/Ochrebound/ProjectSettings/ProjectVersion.txt`) with WebGL Build Support, open `unity/Ochrebound` in Unity Hub, and let the Package Manager resolve. The shipped scene is `Assets/Ochrebound/Scenes/HeroFrame_OldQuarter.unity`.

**5. Or drive Unity from the command line**

Close any open editor on the project first, since Unity locks it.

```bash theme={"system"}
tools/unity.sh setup        # import art, rebuild scenes, apply project settings
tools/unity.sh test edit    # EditMode tests
tools/unity.sh test play    # PlayMode tests
tools/unity.sh build        # Windows standalone player
```

## Preview the web shell locally

With a WebGL build on disk, package it and serve it over localhost. WebGL and Cache Storage do not work from `file://`.

```bash theme={"system"}
python3 -I tools/web/webgl_site.py \
  --build <path-to-unity-webgl-build> \
  --out ../ochrebound-web/dist \
  --template webgl_living.html \
  --film web_cinematic/opening_cinematic.mp4 \
  --title ArtDirection/hero_frame/plate_clean.png \
  --menu-music audio/ost/ochrebound_menu_theme.ogg \
  --streaming-dirs giants,home

python3 -m http.server 8080 --directory ../ochrebound-web/dist
```

## Common traps

> [accordion] Calling Windows tools from WSL hangs
>
> Windows executables invoked from WSL can wait forever on terminal negotiation. Redirect their input: `powershell.exe ... < /dev/null`.

> [accordion] A missing or orphaned .meta file
>
> Every tracked file and folder under `unity/Ochrebound/Assets/` needs its `.meta` file, and no `.meta` may outlive its asset. Move assets inside Unity, or move both files together. CI checks every pair.

> [accordion] Committing generated output
>
> Never commit `Library/`, `Builds/`, `art/build/`, `captures/**/*.png` or `.wrangler/`. Check `.gitignore` before staging.

> [accordion] New player-facing text
>
> Any new line a player can read is checked by `copy_audit.py` for placeholders, stock marketing words, shouting and accidental duplicates.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.