# 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=/path/to/renpy-sdk`). ## 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 already contains the web runtime (`$RENPY_SDK/web`) and the Linux, Windows and macOS distribution templates. Inside the sandbox set `HOME=$TMPDIR/renpy-home` for SDK commands, since Ren'Py writes to `~/.renpy`. ## 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 `game/{options,gui,screens,support,styles,characters,images,script}.rpy`, `game/gui/`, `game/fonts/` and `game/images/`; anything else (for example `game/audio/`) is left alone. Music only appears in the script for moods that have a matching `game/audio/.ogg`, so drop files there and regenerate. 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 `/