docs: describe music, menus and credits; ignore generated vn audio

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-19 05:02:15 +02:00
1 parent fae00009b7
commit a2bd8e3dce
5 files changed
+64 -13

No files matched your search

+18 -1
View File
@@ -6,6 +6,23 @@ Faust scenes). `audio/credits.toml` is the manifest: one `[[track]]` per file wi
composer, performer, source page, direct file URL, exact license, attribution text, original and
processed duration and the sha256 of the downloaded original.
## How it plays
`vnpipe renpy` copies `audio/**/*.ogg` into `vn/game/audio/`. A line's annotation mood plays
`audio/<mood>/` as a looping playlist (sorted by file name; a track that already plays is not
restarted). `work.toml` overrides it: `[staging.<scene>].music` fixes a scene's music and a cue
`music = ...` switches from its line on (`"<mood>"`, `"track:<path under audio/>"`, `"none"`,
and `"auto"` to return to the annotation moods). Current choices:
| Where | Music |
|---|---|
| `catedral` | `scenes/mozart-dies-irae.ogg` |
| `taberna_auerbach` | `scenes/mephisto-waltz-1.ogg` |
| `aposento_margarita` | `scenes/gretchen-am-spinnrade.ogg` |
| `noche`, from `noche_0473` (bells and Easter choruses, to the end of the scene) | `scenes/bach-bwv4-christ-lag.ogg` |
The game credits screen prints every `attribution` of `credits.toml` verbatim (CC BY-SA).
## Licensing rule
A track is accepted only if **both** hold:
@@ -16,7 +33,7 @@ A track is accepted only if **both** hold:
Most tracks are Musopen recordings (Musopen Kickstarter / Set Chopin Free projects) dedicated to
the public domain. CC BY-SA tracks (`mephisto-waltz-1`, `mozart-dies-irae`, `bach-bwv4-christ-lag`)
require the attribution text in `credits.toml` to be shown (e.g. in the game credits) and derived
require the attribution text in `credits.toml` to be shown (the *Créditos* screen does) and derived
audio to stay under the same license. `gretchen-am-spinnrade` is a 1927 US recording (public domain
in the US since 2023, marked Public Domain Mark 1.0 on archive.org).
+2 -2
View File
@@ -72,8 +72,8 @@ capped at 20 generations/hour. Everything else ran in parallel with it.
clown carries an unrequested puppet.
- **Reference-image variants sometimes come back identical** to the base (seen 3 times);
the art agent caught it by comparing sha256, but a pipeline check should enforce it.
- **No audio**: music moods are annotated and the generator supports them, but no files
ship.
- **Audio**: 14 tracks ship (see `music.md`); moods are per line, so tracks change with
speaker changes of mood, not only per scene.
- **Text boxes of verse**: 4 lines per box keeps verse intact but long monologues (Faust,
80 lines) feel slow; no auto-pagination by reading time.
- **Chroma key is per-pixel**: fine with the flat green field, but any green in a
+7 -5
View File
@@ -27,10 +27,11 @@ 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`,
`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/<mood>.ogg`, so drop files there and regenerate.
It rewrites `game/{options,gui,screens,styles,menus,support,characters,images,menu_data,script}.rpy`,
`game/gui/`, `game/fonts/`, `game/images/` and, when the work has an `audio/` directory,
`game/audio/` (a copy of `audio/**/*.ogg`; it is gitignored in `vn/`). Music, credits, scene
select and title-card subtitles are configured in `work.toml` and `audio/credits.toml`
(see vnpipe's `docs/work-config.md`).
Images come from `assets/assets.json` (statuses `processed`, `approved`,
`placeholder`); anything missing or unusable is replaced by a generated placeholder so
@@ -66,7 +67,8 @@ The expected result is a statistics block with no warnings above it.
Lint does not catch runtime errors (missing GUI images, display bugs). `--with-test` also
writes `game/e2e_test.rpy`, a Ren'Py `testcase` that clicks "Start", advances through the
whole game up to the final card (`label the_end`) and back to the main menu, failing on any
whole game up to the final card (`label the_end`) and back to the main menu (then opens and
closes the Scenes and Credits screens), failing on any
exception (`traceback.txt`). Use a throw-away output directory so the test file never ends
up in `vn/` or in a build: