From a64b18742772db9528e1519c26836dfcc4e656eb Mon Sep 17 00:00:00 2001 From: Dasemu Date: Mon, 19 Oct 2026 04:09:00 +0200 Subject: [PATCH] docs: manifest v2, art styles and asset checks Co-Authored-By: Claude Opus 5.5 --- docs/pipeline.md | 6 +++--- docs/running.md | 49 +++++++++++++++++++++++++++++++++++++++++---- docs/work-config.md | 6 ++++-- 3 files changed, 52 insertions(+), 9 deletions(-) diff --git a/docs/pipeline.md b/docs/pipeline.md index 8f1af47..375e248 100644 --- a/docs/pipeline.md +++ b/docs/pipeline.md @@ -27,7 +27,7 @@ redone unless their input changes. |---|---|---| | Text | `fetch`, `parse` | `text.py` | | Annotation | `annotate chunk/status/prompt/merge` ([details](annotation.md)) | `annotate.py` | -| Assets | `assets prompt/import/process/status/placeholders/sheet` | `assets.py` | +| Assets | `assets prompt/import/process/check/status/placeholders/sheet/migrate` | `assets.py` | | Ren'Py | `renpy [--from-parsed] [--with-test] [--out DIR]` | `renpy_gen.py` | `--work DIR` (before the subcommand) selects the work root; default is the current directory. @@ -44,6 +44,6 @@ redone unless their input changes. ## Asset manifest -`assets/assets.json` lists backgrounds and sprites with a status (`processed`, `approved`, -`placeholder`, ...). Anything missing or unusable is replaced by a generated placeholder, so +`assets/assets.json` (v2) declares art styles and lists backgrounds and sprites, each with +one rendition per style and a status (`processed`, `approved`, `placeholder`, ...). Anything missing or unusable is replaced by a generated placeholder, so the game always runs. diff --git a/docs/running.md b/docs/running.md index d09a28b..f47afea 100644 --- a/docs/running.md +++ b/docs/running.md @@ -27,14 +27,55 @@ 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,characters,images,script}.rpy`, +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` (statuses `processed`, `approved`, -`placeholder`); anything missing or unusable is replaced by a generated placeholder so -the game always runs. +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 `/