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

+3
View File
@@ -27,3 +27,6 @@ build/
# Original generated images are large; final processed assets are committed instead # Original generated images are large; final processed assets are committed instead
assets/raw/ assets/raw/
vn/progressive_download.txt vn/progressive_download.txt
# Generated by vnpipe: a copy of audio/
vn/game/audio/
+34 -5
View File
@@ -1,11 +1,35 @@
# faust-vn # faust-vn
A playable visual-novel prototype of the opening of Goethe's *Faust* (Part I), in A visual novel of the whole of *Faust, Part I* (Goethe), in Teodoro Llorente's public-domain
Teodoro Llorente's public-domain Spanish translation. It is the first work built with Spanish translation: 28 scenes from the Dedicatoria to the prison, about 31,000 words of
[`vnpipe`](../vnpipe), the reusable "classic novels to visual novels" pipeline. verse, never rewritten. It is the first work built with [`vnpipe`](../vnpipe), the reusable
"classic novels to visual novels" pipeline.
The game is in Spanish. Art is AI-generated (see [docs/licensing.md](docs/licensing.md)). The game is in Spanish. Art is AI-generated (see [docs/licensing.md](docs/licensing.md)).
## What is in the game
- **Art styles**: *Pictórico* (an 1850s oil-and-engraving look, the default) and *Anime*.
The player picks one at the first launch and can change it any time in Preferences.
- **Music**: public-domain and CC BY-SA classical recordings. Each line's mood
(contemplative, comic, sacred, ominous, mystical) picks a looping playlist; some scenes have
their own piece (Mephisto Waltz in Auerbach's tavern, Dies irae in the cathedral, Gretchen am
Spinnrade in Margarita's room, Bach's Easter cantata for the Easter choruses). See
[docs/music.md](docs/music.md).
- **Main menu**: title and subtitle over the study, *Escenas* (replay any scene you have
reached) and *Créditos* (text, art and music attributions).
- **Reading**: each scene opens with a title card (heading plus place and time); text types at
40 characters/second (change it in Preferences) and a blinking arrow marks the end of a box;
verse boxes hold at most 4 lines, and the lyric scenes use full-page stanzas.
## How to play
Needs the [Ren'Py](https://www.renpy.org/) 8.5 SDK (`tools/renpy-sdk` or `RENPY_SDK`):
```bash
tools/renpy-sdk/renpy.sh vn # play the generated project
```
## Quick start ## Quick start
`vnpipe` is a path dependency: clone it next to this repo and adjust `vnpipe` is a path dependency: clone it next to this repo and adjust
@@ -15,9 +39,14 @@ The game is in Spanish. Art is AI-generated (see [docs/licensing.md](docs/licens
uv sync uv sync
uv run vnpipe fetch # download the source into data/raw uv run vnpipe fetch # download the source into data/raw
uv run vnpipe parse # data/raw -> data/parsed.json uv run vnpipe parse # data/raw -> data/parsed.json
uv run vnpipe renpy # data/annotated.json -> vn/ uv run vnpipe renpy # data/annotated.json + audio/ -> vn/
tools/renpy-sdk/renpy.sh vn # play (Ren'Py 8.5.3 SDK, see docs/running.md) tools/renpy-sdk/renpy.sh vn # play (Ren'Py 8.5.3 SDK, see docs/running.md)
``` ```
Run, lint and build instructions: [docs/running.md](docs/running.md). `vn/` is generated and its `game/audio/` is not committed (it copies `audio/`): run
`uv run vnpipe renpy` after cloning. Web and desktop builds: [docs/running.md](docs/running.md).
Everything specific to this text (cast, scenes and their subtitles, staging, music
overrides, menu background) is in `work.toml`.
Lint, tests and build instructions: [docs/running.md](docs/running.md).
Plan and layout: [docs/plan.md](docs/plan.md). Plan and layout: [docs/plan.md](docs/plan.md).
+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 composer, performer, source page, direct file URL, exact license, attribution text, original and
processed duration and the sha256 of the downloaded original. 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 ## Licensing rule
A track is accepted only if **both** hold: 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 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`) 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 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). 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. clown carries an unrequested puppet.
- **Reference-image variants sometimes come back identical** to the base (seen 3 times); - **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. 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 - **Audio**: 14 tracks ship (see `music.md`); moods are per line, so tracks change with
ship. speaker changes of mood, not only per scene.
- **Text boxes of verse**: 4 lines per box keeps verse intact but long monologues (Faust, - **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. 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 - **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). 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,styles,menus,support,characters,images,menu_data,script}.rpy`,
`game/gui/`, `game/fonts/` and `game/images/`; anything else (for example `game/audio/`) `game/gui/`, `game/fonts/`, `game/images/` and, when the work has an `audio/` directory,
is left alone. Music only appears in the script for moods that have a matching `game/audio/` (a copy of `audio/**/*.ogg`; it is gitignored in `vn/`). Music, credits, scene
`game/audio/<mood>.ogg`, so drop files there and regenerate. 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`, Images come from `assets/assets.json` (statuses `processed`, `approved`,
`placeholder`); anything missing or unusable is replaced by a generated placeholder so `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 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 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 exception (`traceback.txt`). Use a throw-away output directory so the test file never ends
up in `vn/` or in a build: up in `vn/` or in a build: