docs: add adaptation rules and Faust staging cues

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-17 09:48:15 +02:00
1 parent 9ee090a8ba
commit 7cd658f0e0
5 files changed
+140 -9

No files matched your search

+9 -7
View File
@@ -8,13 +8,15 @@ dist/
# Raw downloads are cached locally and re-fetched on demand
works/*/data/raw/
# Ren'Py runtime artifacts
game/**/*.rpyc
game/**/*.rpymc
game/cache/
game/saves/
game/log.txt
game/traceback.txt
game/errors.txt
vn/*/game/**/*.rpyc
vn/*/game/**/*.rpymc
vn/*/game/cache/
vn/*/game/saves/
vn/*/log.txt
vn/*/game/log.txt
vn/*/traceback.txt
vn/*/errors.txt
vn/*/lint.txt
# Local Ren'Py SDK and builds
tools/
build/
+66
View File
@@ -0,0 +1,66 @@
# Adaptation rules
How a play becomes a visual novel. The text is never rewritten, abridged or reordered:
every verse line of the scoped text is shown, in order. What changes is *how* it is
shown. Generic rules are implemented in `src/vnpipe/renpy_gen.py`; work-specific choices
live in `works/<id>/work.toml` (`[staging.*]`, `[[cues]]`, `[cast.*]`).
## Principle: show less, suggest more
A VN tempts you to draw everything. Romantic verse drama works better when the image
sets the mood and the words carry the scene. So:
1. **Draw people only when they converse.** Sprites appear in dialogue scenes (the
theatre, Mephistopheles before the Lord, Faust in his study).
2. **Never draw the ineffable.** The Lord is a radiance (`bg_heaven_lord`), never a
figure; the Earth Spirit is a lighting change plus a flash and a shake
(`bg_study_spirit`), never a sprite. Their lines still carry a name and colour.
3. **Lyric passages are full-screen text (NVL).** The Dedicatoria (the poet's own voice)
and the archangels' hymn are read as poems over a background, without a dialogue
box or sprites.
4. **Choral or crowd presences belong to the background.** The three archangels are
painted into `bg_heaven`, not drawn as three sprites.
5. **Stage directions are narration**, shown in italics by the narrator. Directions that
change the scene also trigger a cue (background, tint, transition). Cast lists under
a scene heading are not shown; they only inform who is on stage.
6. **One background per location**, plus variants only where the text itself changes
the light (macrocosm sign, Earth Spirit, heaven closing).
## Text rhythm
- Each scene opens with a title card (scene heading, centred, over black).
- Verse is grouped into text boxes of at most **4 lines**, never crossing a stanza or a
speaker change. In NVL, a whole stanza (max 8 lines) is shown before the page clears.
- Split verse lines (a line shared between two speakers, printed deeply indented) are
shown as their own box so the exchange keeps its speed.
## Sprites and expressions
- The annotation gives each line one emotion from a fixed vocabulary: `neutral`,
`joyful`, `melancholic`, `solemn`, `ironic`, `angry`, `fearful`, `ecstatic`.
- `work.toml` maps that vocabulary to the 3–4 expressions each character actually has
(`[cast.<id>].expressions`). A text box uses the emotion of its first line.
- Positions (`left`, `center`, `right`) come from the annotation, but the first
position a character gets in a scene is kept for the whole scene, so nobody jumps
around between boxes.
- Characters with `sprite = false` are never drawn, even if annotated as on stage.
## Transitions
- `dissolve` between expressions and on sprite entry/exit, `fade` between scenes,
`slow` (2 s dissolve) for light changes, `flash` for supernatural apparitions.
## Music
Every line carries an optional music mood (`contemplative`, `comic`, `sacred`,
`ominous`, `mystical`, `none`). The prototype ships without audio; the generator emits
`play music` only when `game/audio/<mood>.ogg` exists, so adding files is enough.
## Staging for Faust (work.toml)
| Scene | Base | Notes |
|---|---|---|
| Dedicatoria | `bg_dedication`, NVL | The poet's voice; no speaker name. |
| Prólogo en el teatro | `bg_theatre`, ADV | Director, Poet and Clown as sprites. |
| Prólogo en el cielo | `bg_heaven`, NVL | Hymn as full-screen text; switches to ADV + `bg_heaven_lord` when Mephistopheles speaks; heaven closes → dark tint. |
| De noche | `bg_study`, ADV | Macrocosm sign → `bg_study_macrocosm`; Earth Spirit's sign → red tint; apparition → `bg_study_spirit` + flash + shake. |
+2 -2
View File
@@ -15,7 +15,7 @@ Gutenberg .txt ──fetch──▶ raw (cached, gitignored)
LLM sub-agents ─────▶ annotations/cache/*.json (one file per chunk, keyed by hash)
──merge──▶ annotated.json (schema-validated, complete)
art (MCP) ──▶ assets/assets.json + images (manifest, sha256, status)
──renpy──▶ game/ (generated Ren'Py project)
──renpy──▶ vn/faust/ (generated Ren'Py project)
```
Every stage is a `vnpipe` CLI subcommand, deterministic given its inputs, and
@@ -33,7 +33,7 @@ hash, so they are resumable and never redone unless their input changes.
| `works/faust/data/` | `play.txt`, `parsed.json`, `annotated.json` |
| `works/faust/annotations/` | Chunk inputs and cached LLM outputs |
| `works/faust/assets/` | `assets.json` manifest, generated/processed images |
| `game/` | Generated Ren'Py project (committed so the repo is playable) |
| `vn/<id>/` | Generated Ren'Py project (committed so the repo is playable) |
| `docs/` | Design and process docs |
## Steps
+7
View File
@@ -0,0 +1,7 @@
{"asset_id":"bg_study","generation_id":null,"queued_at":"2026-10-17T07:44:00Z","status":"REJECTED","attempt":0,"note":"calibration, made before this run"}
{"asset_id":"bg_study","generation_id":"d18a9299-0044-4e3c-a5cb-b261f1e93784","queued_at":"2026-10-17T07:47:50Z","status":"QUEUED","attempt":1}
{"asset_id":"bg_dedication","generation_id":"4618cf00-6af8-4e45-be28-2e42d90158bd","queued_at":"2026-10-17T07:47:50Z","status":"QUEUED","attempt":1}
{"asset_id":"bg_theatre","generation_id":"9db60faf-f7ce-4092-81bc-2bde58c05dbc","queued_at":"2026-10-17T07:47:50Z","status":"QUEUED","attempt":1}
{"asset_id":"bg_heaven","generation_id":"badcc8f4-22d8-4535-9c61-8dc148ed8a6a","queued_at":"2026-10-17T07:47:50Z","status":"QUEUED","attempt":1}
{"asset_id":"bg_heaven_lord","generation_id":"a2cd8061-f587-4cc2-af4d-1521ac7bb273","queued_at":"2026-10-17T07:47:50Z","status":"QUEUED","attempt":1}
{"asset_id":"sprite_faust_neutral","generation_id":"7133e214-fbff-4884-b3a0-10738e391205","queued_at":"2026-10-17T07:47:50Z","status":"QUEUED","attempt":1}
+56
View File
@@ -133,3 +133,59 @@ expressions = { neutral = "neutral", solemn = "neutral", ironic = "neutral", mel
name = "El Espíritu"
color = "#e85a3a"
sprite = false
# Staging decisions (human judgment, see docs/adaptation-rules.md).
# A scene's `bg` is shown after its title card; `mode` is the default text mode
# ("adv" = dialogue box with sprites, "nvl" = full-screen text, no sprites).
# A cue fires right before the line with id `at`. Keys:
# bg background asset id to switch to
# transition dissolve | fade | flash (white/colour flash) | slow (long dissolve)
# tint none | dark | red (colour treatment of the current background)
# mode adv | nvl
# hide_all true -> remove all sprites
# shake true -> short screen shake
[staging.dedicatoria]
bg = "bg_dedication"
mode = "nvl"
[staging.prologo_teatro]
bg = "bg_theatre"
mode = "adv"
[staging.prologo_cielo]
bg = "bg_heaven"
mode = "nvl"
[staging.noche]
bg = "bg_study"
mode = "adv"
[[cues]]
# The archangels' hymn ends; the Lord is addressed by Mephistopheles.
at = "prologo_cielo_0030"
bg = "bg_heaven_lord"
transition = "slow"
mode = "adv"
[[cues]]
at = "prologo_cielo_0161"
bg = "bg_heaven"
transition = "slow"
tint = "dark"
[[cues]]
at = "noche_0082"
bg = "bg_study_macrocosm"
transition = "slow"
[[cues]]
at = "noche_0118"
bg = "bg_study"
transition = "dissolve"
tint = "red"
[[cues]]
at = "noche_0145"
bg = "bg_study_spirit"
transition = "flash"
shake = true