# Running, linting and building the game The Ren'Py project in `/vn/` is generated; never edit it by hand. Commands below run from the work root (the directory with `work.toml`); `RENPY_SDK` is the SDK directory (e.g. `export RENPY_SDK=/absolute/path/to/renpy-sdk`). Examples use Bash on Linux x86-64; other hosts need their SDK launcher and bundled Python. Install the work's locked dependencies first (`uv sync --locked`). A sibling vnpipe checkout is not required. For a complete clean-clone example, see the [faust-vn guide](https://github.com/Dasemu/faust-vn/blob/main/docs/running.md). ## 1. Ren'Py SDK The SDK is not committed. Install **Ren'Py 8.5.3** (SDK archive from , `renpy-8.5.3-sdk.tar.bz2`) so that `$RENPY_SDK/renpy.sh` exists: ```sh tar -xjf renpy-8.5.3-sdk.tar.bz2 && mv renpy-8.5.3-sdk "$RENPY_SDK" ``` The SDK provides desktop distribution templates. For web, download and unzip it into `"$RENPY_SDK"` so that `"$RENPY_SDK/web"` exists. RAPT is a separate add-on (below). ## 2. Regenerate the project ```sh uv run vnpipe renpy # from data/annotated.json uv run vnpipe renpy --from-parsed # trivial annotations built from parsed.json uv run vnpipe renpy --out some/dir # default output: /vn ``` Generation is deterministic: running it twice gives identical files (no timestamps). It rewrites the generated scripts, GUI, fonts and images. When the work has an `audio/` directory, its Ogg files are copied into `vn/game/audio/`. Keep audio sources in the work's `audio/` directory, not the generated output; configure music and credits in `work.toml` and `audio/credits.toml`. Images come from `assets/assets.json` (see "Art styles" below); anything missing or unusable is replaced by a generated placeholder so the game always runs. The generator also writes `game/styles.rpy` (the first-launch style picker and `persistent.art_style`). ### Art styles and the asset manifest (v2) `assets/assets.json` declares the art styles once and gives each asset one *rendition* per style: ```json { "default_style": "painterly", "styles": {"painterly": {"label": "Pictórico", "base_prompt": "...", "templates": {"background": "...", "sprite": "...", "variant": "..."}}}, "assets": [{"id": "sprite_faust_neutral", "kind": "sprite", "character": "faust", "expression": "neutral", "prompt": "...", "reference": null, "renditions": {"painterly": {"source": "chatgpt-web", "generation_id": "...", "raw_file": "raw/painterly/sprite_faust_neutral.png", "file": "sprites/painterly/faust_neutral.webp", "sha256": "...", "status": "approved", "notes": ""}}}] } ``` The prompt sent is `styles[style].base_prompt` + the kind template + the asset prompt. Files live in `/