diff --git a/CHANGELOG.md b/CHANGELOG.md index 361e146..97fedd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,8 +11,26 @@ belong to (see the [specification](docs/spec/content-pack.md#16-versioning-of-th First release in preparation: v0.1 "Playable". +### Changed + +- Narrative pacing ([ADR 0012](docs/adr/0012-narrative-pacing.md)): packs may + declare `pacing` (`narrative`, `balanced`, `puzzle`). The play time budget + splits the target by reading share, `lexvm check` reports the reading share + and warns (`playtime.pacing`) when a declared pacing is missed, and + narrative packs get longer text budgets. The attempt rate of the play time + model is recalibrated from 0.5 to 1 per command (from playtest logs). +- `lexvm generate` and the prompt kit: a `story` stage before the puzzles and + an editorial `review` round on the walkthrough transcript; `--pacing`, + `--no-review`. The authoring guide gains a section "Story and scenes". +- *Die letzte Nacht der Reichsmark* 1.1.0: rewritten scene by scene with + unchanged mechanics, in plainer language (fewer harbour terms), pacing + `narrative`, about 65 minutes. +- *The Locked Study*: target play time 7 minutes (the recalibrated estimate). + ### Added +- `lexvm transcript`: the walkthrough as a reader sees it, as Markdown. + - Content pack format `lexvm-pack/1`: normative [specification](docs/spec/content-pack.md), zod schema as the single source of truth, generated JSON Schema for editors and LLM tooling. diff --git a/README.md b/README.md index d88d137..cc003dd 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,8 @@ way, type commands in German or English. | | Adventure | Language | Length | | |---|---|---|---|---| -| đŸ•”ïž | **Die letzte Nacht der Reichsmark**
*Ein Hamburger Kriminalfall, Juni 1948.* The night before the currency reform, a dock worker vanishes, accused of stealing cigarettes. Clues, interrogations and a city full of hoarded goods. | đŸ‡©đŸ‡Ș Deutsch | ~45 min | Noir | -| 🔑 | **The Locked Study**
*A five-minute LexVM demo.* Your uncle has vanished and his study is locked. | 🇬🇧 English | ~5 min | Demo | +| đŸ•”ïž | **Die letzte Nacht der Reichsmark**
*Ein Hamburger Kriminalfall, Juni 1948.* The night before the currency reform, a dock worker vanishes, accused of stealing cigarettes. Clues, interrogations and a city full of hoarded goods. | đŸ‡©đŸ‡Ș Deutsch | ~65 min | Noir | +| 🔑 | **The Locked Study**
*A short LexVM demo.* Your uncle has vanished and his study is locked. | 🇬🇧 English | ~7 min | Demo | Want more? [Write your own](#-create-your-own-adventure) or [propose one](https://github.com/nullthrone/lexvm/issues/new?template=content_pack_proposal.yml). diff --git a/apps/web/e2e/play.spec.ts b/apps/web/e2e/play.spec.ts index ad298aa..67647cd 100644 --- a/apps/web/e2e/play.spec.ts +++ b/apps/web/e2e/play.spec.ts @@ -150,7 +150,7 @@ test("plays the demo with typed commands", async ({ page }) => { }); test("the menu offers waiting", async ({ page }) => { - await expect(packCard(page)).toContainText("about 5 min"); + await expect(packCard(page)).toContainText("about 7 min"); await startNewGame(page); await page.getByRole("button", { name: "Menu" }).tap(); await sheet(page).getByRole("button", { name: "Wait" }).tap(); diff --git a/docs/adr/0012-narrative-pacing.md b/docs/adr/0012-narrative-pacing.md new file mode 100644 index 0000000..b3a059d --- /dev/null +++ b/docs/adr/0012-narrative-pacing.md @@ -0,0 +1,93 @@ +# 0012. Narrative pacing: calibrate play time by reading share, write story before data + +- Status: Accepted +- Date: 2026-10-24 + +## Context + +The first German pack, *Die letzte Nacht der Reichsmark*, passed every check +and its puzzles played well, but a review found the story hard to follow: +telegram-style sentences, scenes without arrivals or transitions, characters +reduced to the facts a puzzle needs. The story existed, but in the design +documents (about 20,000 words) rather than in the game text (about 6,000). + +The causes were in the toolchain, not in the model that wrote the text: + +1. **The play time budget priced reading as a cost.** `budgetForMinutes` + assumed 20 words of new text per walkthrough command and charged about 18 + seconds of tapping per command against about 8 seconds of reading. A + 45-minute German pack was budgeted at 2,700–3,400 words in total, and the + guide told authors to grow a game through puzzles, "not longer + descriptions". Every added sentence moved a pack towards + `playtime.too-long`, and the repair loop cut text first. +2. **The interaction rate was too low.** The model assumed 0.5 unproductive + attempts per productive command. The pack's playtest logs (180 and 226 + commands for a 74-step walkthrough) imply about 0.9 to 1.8 after optional + looks and dialogue options are taken out. So the model underestimated + interaction time and overstated how much text a target allowed; the pack + had text cut to meet a target it already exceeded. +3. **Style rules and prompts asked for brevity.** "6–14 words per sentence", + "rule messages 1–2 sentences", text budgets with "aim well below", and a + pipeline whose only prose-producing stages write YAML fields one at a + time. No stage wrote the story as scenes, and no check ever read the game + the way a player does. +4. **No signal for narrative quality.** Verification gives precise feedback on + length and logic; nothing gave feedback on whether the text could be + followed, so every revision optimised what was measured. + +## Decision + +1. **Packs declare a `pacing`.** `narrative` (about 60% of the expected time + is reading), `balanced` (45%, the default for sizing) or `puzzle` (30%). + `budgetForMinutes` splits the target minutes by that share: interaction + sizes the walkthrough, reading sizes the text. `lexvm check` reports the + reading share of every pack and warns (`playtime.pacing`) when a declared + pacing is missed by more than 10 points. The warning for a narrative pack + that is too short suggests scene prose before more puzzles. +2. **The attempt rate is recalibrated** from 0.5 to 1, the cautious end of the + playtest range. The reference demo's target moves from 5 to 7 minutes. +3. **Narrative packs get longer text budgets** (room 1000, object 600, + dialogue line 600 characters); option texts and names keep their limits. +4. **Story before data.** `lexvm generate` and the prompt kit get a `story` + stage between concept and puzzles: the truth with motives, a scene plan + (arrival, turn, way out), a revelation map and the key scenes in prose. + Later stages derive their texts from it. The guide gets a section "Story + and scenes" with rules for arrivals, transitions, the player character's + inner voice and sentence rhythm. +5. **Read what the player reads.** `lexvm transcript` renders the walkthrough + as Markdown. A `review` stage gives the transcript and the story to the + model as an editor with a rubric (can it be followed, transitions, what a + clue means, turning points, characters, rhythm). `lexvm generate` runs one + review round once a pack passes; the result is verified like any repair, + and the last passing version is restored if it breaks. +6. The noir pack is rewritten under these rules with its mechanics unchanged + (pacing `narrative`, playtime 65). + +## Consequences + +- Generated packs of the same length get fewer puzzles and more story when + they choose `narrative`; `balanced` packs get somewhat more text than before + (45% instead of an implicit 29% reading). +- Estimates of existing packs rise by roughly 10%, because interaction is + priced higher. +- `playtime.pacing` can be met by padding. The guide forbids padding, and the + review stage and the transcript exist to catch it; the warning is only + issued for packs that declare a pacing. +- The calibration rests on two playtests of one pack. It should be revisited + when playtests record session durations. +- A generation run makes two more model calls (story, review). + +## Alternatives considered + +- **Only loosen the style rules.** Longer sentences without a different budget + would have been cut again by the length repair and by authors chasing the + target; the budget is what made prose expensive. +- **Raise the words per command globally.** One number cannot fit a puzzle box + and a mystery; the reading share makes the trade-off an explicit authoring + decision per pack. +- **Keep the noir pack at 45 minutes.** At 60% reading this leaves about 18 + minutes of interaction, roughly two thirds of the current mechanics. The + puzzles were the part of the pack that worked, so the target moved instead. +- **An automatic prose-quality metric** (sentence length, connectives) as a + warning. Easy to game and a poor proxy for "can a reader follow it"; the + transcript review asks that question directly. diff --git a/docs/adr/README.md b/docs/adr/README.md index 8c5fd19..1193ffe 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -21,6 +21,7 @@ instead of by accident ([ADR 0001](0001-record-architecture-decisions.md)). | [0009](0009-vanilla-typescript-ui.md) | Vanilla TypeScript UI without a framework | Accepted | | [0010](0010-content-licensing.md) | Content licensing | Proposed | | [0011](0011-text-first-optional-svg-vignettes.md) | Text first, optional SVG vignettes later | Accepted | +| [0012](0012-narrative-pacing.md) | Narrative pacing: calibrate play time by reading share, write story before data | Accepted | ## When to write an ADR diff --git a/docs/authoring/guide.md b/docs/authoring/guide.md index 012e09f..15bc652 100644 --- a/docs/authoring/guide.md +++ b/docs/authoring/guide.md @@ -21,6 +21,13 @@ object. A text parser exists but is optional. That has consequences for design: the player can *see* every possible action, so puzzles cannot rely on obscure verbs, and every tap should be answered with something worth reading. +A text adventure is also a story that is *read*. Verification proves that a +pack can be won; it cannot prove that a reader can follow it. The first noir +pack showed the failure mode: logically sound puzzles wrapped in telegram-style +fragments, while the actual story lived in the design documents and never +reached the player. Section 2 ("Story and scenes") and the `pacing` setting +exist to prevent that ([ADR 0012](../adr/0012-narrative-pacing.md)). + ## 1. Shape and pacing A LexVM game is short and dense: it is played in a few sittings on a phone, @@ -35,6 +42,35 @@ often offline. The first pack targets 30–45 minutes. - Score is a progress signal: usually 1 point per solved puzzle, 2 for a major deduction. Award each point exactly once (guard with a flag, a `not: { has: 
 }` condition or a `once` rule). `maxScore` equals the total score collected by the walkthrough. +## 2. Story and scenes + +A pack has two layers: the *mechanics* (rooms, items, rules, the puzzle +chart) and the *story* (what happened, who wants what, what the player +character comes to understand). The mechanics are verified; the story is +only as good as the text the player actually reads. Two habits lose it: + +- writing text one data field at a time (a description here, a rule message + there) instead of one scene at a time, and +- keeping the real story in design notes (the truth, the motives, the + backstory) and handing the player only the facts a puzzle needs. + +Write the story first, as scenes, then cut it into the data model. Review it +the way the player meets it: `lexvm transcript ` prints the whole text +of a winning play in order. Read it from start to end, or give it to an +editor (the `review` prompt stage does that with an LLM). Could a reader +retell what happened and why? + + +## Story and scenes +- Write the story before the data: the truth in causal order (who did what, and why), the player character's goal and how their understanding changes, and a scene plan in play order. Then derive room, object, dialogue and rule texts from the scenes. +- Everything the ending relies on reaches the player in game text. Motives, relationships and backstory that only live in the design notes do not exist for the player. +- Every scene has an arrival (where am I, who is here, what is at stake), a turn (something learned or changed) and a way out (why the player goes on, and where). Write the transitions: the first entry to a room, the moment after a key clue, the move from one chapter to the next (a `once` rule on `enter`, or the response that solves the puzzle). +- Give the player character an inner voice in moderation: after a key clue or deduction, one or two sentences on what it means and what follows from it. That is how a reader keeps track of a case. +- Characters want something the player can see, and speak like themselves. A conversation has a turning point; write it out as a scene, not as one line of information. +- Prose rhythm: vary sentence length. Short sentences are accents, not the default; join thoughts that belong together with their logic (because, but, so, while). No telegram style, no chains of fragments, no adjective padding. +- Review the transcript of the walkthrough (`lexvm transcript`): it must read as a story a reader can follow from start to end. + + ### Length budget `playtime` is the length a pack aims for, and LexVM checks it: `lexvm check` @@ -46,13 +82,14 @@ words. To see the budget for a length before you write, print a stage prompt the table in [`prompts/oneshot.md`](../../prompts/oneshot.md). -## Length budget -- LexVM estimates the play time of a pack: reading the text the walkthrough shows (German 200, English 230 words per minute), about 10 seconds per walkthrough command and 6 per dialogue choice, plus part of the optional content (descriptions the walkthrough never examines, unchosen dialogue options, custom responses) and of the wrong attempts a player makes. `lexvm check` warns when the estimate misses `playtime` by more than 25%; set `playtime` to the target length. -- Typical proportions: about 20 words of new text per walkthrough command; about a quarter of the walkthrough steps are dialogue choices; optional text about 60% of the walkthrough's text; about one described object for every two walkthrough commands that the walkthrough never examines. -- Follow the size budget the prompt gives for the target length (walkthrough steps and words of player-visible text). Length comes from content, not padding: add a puzzle, a character to question, custom responses and side dialogue rather than longer descriptions (the text budgets for phone screens still apply). To shorten, cut a side puzzle or trim descriptions. +## Length budget and pacing +- LexVM estimates the play time of a pack: reading the text the walkthrough shows (German 200, English 230 words per minute), about 10 seconds per walkthrough command and 6 per dialogue choice, plus part of the optional content (descriptions the walkthrough never examines, unchosen dialogue options, custom responses) and about one wrong attempt per productive command. `lexvm check` warns when the estimate misses `playtime` by more than 25%; set `playtime` to the target length. +- `pacing` says how that time divides between reading and acting: `narrative` (about 60% reading: mysteries, dramas, character stories), `balanced` (about 45%, the default), `puzzle` (about 30%: puzzle boxes, escape rooms). Declare it in the metadata; `lexvm check` then warns when the reading share leaves the band (±10 points). A narrative pack with the same play time has fewer puzzles and more story. +- Follow the size budget the prompt gives for the target length and pacing (walkthrough steps and words of player-visible text). About a quarter of the walkthrough steps are dialogue choices; optional text is about 60% of the walkthrough's text. +- Length comes from content, never from padding. Content is both mechanics (a puzzle, a character to question, custom responses) and story (an arrival, a turning point, what a clue means, a transition between acts). Padding is adjectives, repeated atmosphere and summaries of what the player just saw. To shorten a narrative pack, cut a side puzzle before you cut a scene. -## 2. Puzzle dependency charts +## 3. Puzzle dependency charts Ron Gilbert's *puzzle dependency chart* is the tool for designing adventure puzzles. Start at the end — the winning ending — and ask: what has to be true @@ -102,7 +139,7 @@ no long stretch where only one node is open. ``` -## 3. The LucasArts rules: the `forgiving` policy +## 4. The LucasArts rules: the `forgiving` policy LexVM follows the design philosophy that Ron Gilbert summarised in *Why Adventure Games Suck* and that LucasArts games made famous: the player should @@ -123,7 +160,7 @@ can no longer lead to a win. - No timed puzzles, no mazes, no randomness (the engine has none). -## 4. Fair clueing +## 5. Fair clueing A puzzle is fair when an attentive player could solve it from what the game has shown them. The test: could you write the hint for it by quoting the @@ -137,7 +174,7 @@ game's own text? - Reflect state changes with text variants (`when`) in room and object descriptions (the door now stands open, the drawer is empty). -## 5. Rules and state +## 6. Rules and state Rules are the heart of a pack. Read section 10 of the spec ("Turn processing") once carefully; most logic bugs come from forgetting that rules *replace* the @@ -153,7 +190,7 @@ default behaviour and that only the *first* matching command rule fires. - Counters changed by `turn` rules must be bounded by their `when`. Prefer flags over counters. -## 6. Characters and dialogue +## 7. Characters and dialogue Dialogue-heavy games (interrogations, negotiations) live from the feeling that conversations *progress* as the player learns more. In LexVM that is done with @@ -168,7 +205,7 @@ options that appear when the player holds a clue. - Node `say` ≀ 300 characters, option text ≀ 80. Options are the player's words; narration belongs in `say` or `do`. -## 7. Clues, deductions and the notebook +## 8. Clues, deductions and the notebook The notebook is LexVM's answer to "where do I keep what I learned?". Clues are objects that live in the notebook part of the inventory. Because they are @@ -184,7 +221,7 @@ deduce something, or *show* a clue to a character to confront them. - Interrogations and confrontations use clues as evidence (see dialogue). -## 8. Hints +## 9. Hints Every LexVM game has a hint button. A good hint system means nobody has to search the web for a walkthrough, and nobody gets the answer before they want @@ -197,22 +234,23 @@ it. - The first hint whose `when` holds and whose `until` does not is shown, so order hints in the usual solving order, and make sure some hint applies at every point until the ending. -## 9. Text for phone screens +## 10. Text for phone screens LexVM is read on a phone held in portrait mode, in a book-like layout. Long paragraphs become walls of text; references (`{id}`) become tappable words. ## Text for phone screens -- Budgets: room descriptions ≀ 600 characters, object descriptions ≀ 400, dialogue lines ≀ 300, option texts ≀ 80, names ≀ 24. Aim well below. -- Short paragraphs of 1–3 sentences. The first sentence says what matters; atmosphere second. +- Budgets: room descriptions ≀ 600 characters, object descriptions ≀ 400, dialogue lines ≀ 300 (`pacing: narrative`: 1,000, 600 and 600); option texts ≀ 80, names ≀ 24 for every pacing. The player scrolls like a book; a long text needs paragraphs, not cuts. +- Paragraphs of 1–4 sentences, separated by a blank line. In descriptions the first sentence says what matters; atmosphere second. +- First visits get the full scene; return visits to a room get one or two sentences (a text variant with `visited`). - Mention exits naturally in the room description ("The library lies to the west."). - Every interactable object appears as `{id}` (or `{id|inflected text}`) in its room's description or in its own `roomText`. Portable objects without `roomText` are listed automatically. - Names are short, without articles, and distinct: "brass key", not "the small brass key". -- Rule messages (`say`) are 1–2 sentences. +- Rule messages (`say`) are 1–3 sentences; the response that solves a puzzle or reveals a clue may be a short scene. -## 10. Language conventions +## 11. Language conventions Ids are always ASCII `lower_snake_case`; English ids are fine for every pack language and make diagnostics easier to read. Everything the player sees is in @@ -226,7 +264,7 @@ the pack's `language`. - Pack verbs need a `label` in the pack language and parser `synonyms` (German: imperative and infinitive, e.g. `[lies, lese, lesen]`). -## 11. YAML pitfalls +## 12. YAML pitfalls YAML is friendly until it is not. Almost every pack that fails to load does so because of one of the following. @@ -245,7 +283,7 @@ because of one of the following. - Indent with two spaces, never tabs. -## 12. The walkthrough +## 13. The walkthrough The walkthrough is the pack's proof of solvability. `lexvm check` replays it from a new game, so it has to be exact. @@ -259,7 +297,7 @@ from a new game, so it has to be exact. - Write it last, after all rooms, objects, rules and dialogues exist. -## 13. Checklist of common mistakes +## 14. Checklist of common mistakes Run through this list before you run `lexvm check` — and run `lexvm check` anyway. The LLM prompts ask the model to go through the same list. @@ -281,7 +319,7 @@ anyway. The LLM prompts ask the model to go through the same list. 14. **Score.** Each point is awarded once; `maxScore` equals the walkthrough's total. -## 14. Reviewing a pack (human or generated) +## 15. Reviewing a pack (human or generated) `lexvm check` proves that a pack is *correct*. Whether it is *good* is up to you. Before you publish, play it on a phone and ask: @@ -290,13 +328,19 @@ you. Before you publish, play it on a phone and ask: - When stuck, are there always other things to try (look at the chart)? - Is every puzzle solvable from the text alone, without the hints? - Do characters react to the evidence you show them? -- Is the text tight? Does it read well on a small screen, in the chosen - narrative voice, with consistent quotes? +- Read the transcript (`lexvm transcript `) from start to end: could a + reader retell what happened, who wanted what, and why the player went where + they went? Is there a moment where something happens without a reason? +- Does the text read well on a small screen, in the chosen narrative voice, + with consistent quotes? Does the rhythm vary, or is it a chain of fragments? - Are there plausible actions that get a bland default answer where a custom response would be better? - Does the ending pay off what the player found out? -LLM-generated packs in particular tend to be wordy, to over-use atmosphere -adjectives, and to forget custom responses for wrong attempts. A careful edit -pass is part of the job; see [pipeline.md](pipeline.md) for provenance and +LLM-generated packs fail in two opposite directions: wordy description with +too many atmosphere adjectives, or, under tight length budgets, a telegram +style that keeps the story in the model's head and gives the player only the +facts a puzzle needs. Both get caught by reading the transcript. LLMs also +tend to forget custom responses for wrong attempts. A careful edit pass is +part of the job; see [pipeline.md](pipeline.md) for provenance and licensing. diff --git a/docs/authoring/pipeline.md b/docs/authoring/pipeline.md index 4b27494..5a48e97 100644 --- a/docs/authoring/pipeline.md +++ b/docs/authoring/pipeline.md @@ -13,7 +13,7 @@ and the same verification ([ADR 0007](../adr/0007-llm-pipeline-byo-prompt-kit-an Neither flow replaces playtesting. Verification proves that a pack is *winnable without dead ends*; whether it is *good* is decided by people. See -the [authoring guide](guide.md) for what "good" means, and section 14 there +the [authoring guide](guide.md) for what "good" means, and section 15 there for reviewing a pack. ## The prompt kit @@ -39,11 +39,13 @@ The stages: | Stage | Template | Asks the model for | |---|---|---| | `oneshot` | `oneshot.md` | A short design (concept, puzzle dependency chart), one complete `pack.yaml`, a self-check against the checklist. | -| `concept` | `concept.md` | `design/concept.md`: title, voice, premise, cast, chapters, locations, key items and clues. | +| `concept` | `concept.md` | `design/concept.md`: title, voice, pacing, premise, cast, chapters, locations, key items and clues. | +| `story` | `story.md` | `design/story.md`: the truth with every motive, the through-line, a scene plan (arrival, turn, way out), a revelation map and the key scenes in prose. | | `puzzles` | `puzzles.md` | `design/puzzles.md`: a Mermaid puzzle dependency chart and, per puzzle, signposting, solution, wrong attempts, hints, score. | | `world` | `world.md` | `pack.yaml` (metadata, start, verbs, flags), `rooms.yaml`, `objects.yaml`. | | `logic` | `logic.md` | `rules.yaml`, `dialogues.yaml`, `solution.yaml` (endings, hints, walkthrough last), plus any earlier file that must change. | | `repair` | `repair.md` | Only the changed files, complete, given the diagnostics and the current files. | +| `review` | `review.md` | An editorial pass: given the walkthrough transcript, the story and the files, only the files whose text it improved. | The staged prompts share one system prompt (`system.md`: the guide, the checklist, the spec and the example). It contains nothing run-specific, so @@ -54,22 +56,46 @@ the API can cache it across all calls of a run. Generated packs should roughly hit their target length, so every prompt gives the model a size budget up front. The budget comes from `budgetForMinutes` in the engine, the inverse of the play time estimate -(spec section 17): for a target length and language it gives a range of -walkthrough steps and of player-visible words, plus the typical proportions -(about a quarter of the steps are dialogue choices, about 60% of the words -appear along the walkthrough). - -- The stage prompts (`concept`, `puzzles`, `world`, `logic`) contain the - budget for `--minutes` (`{{BUDGET}}`); without `--lang` they list it for - German and English packs. +(spec section 17): for a target length, language and pacing it gives a range +of walkthrough steps and of player-visible words, plus the typical +proportions (about a quarter of the steps are dialogue choices, about 60% of +the words appear along the walkthrough). + +The pacing decides how the minutes are spent ([ADR 0012](../adr/0012-narrative-pacing.md)): +`narrative` about 60% reading, `balanced` 45% (the default), `puzzle` 30%. A +45-minute German pack is budgeted at about 70–90 walkthrough steps and +4,200–5,350 words when balanced, and at about 50–65 steps and 5,600–7,100 +words when narrative: fewer puzzles, more story. + +- The stage prompts (`concept`, `story`, `puzzles`, `world`, `logic`, + `review`) contain the budget for `--minutes` and `--pacing` (`{{BUDGET}}`); + without `--lang` they list it for German and English packs. - The generic one-shot prompt contains a table for 15, 30, 45 and 60 minutes - (`{{BUDGET_TABLE}}`, plus the `--minutes` value if it is another one) and - tells the model to pick the row matching the requested length, 30 minutes - if the idea names none. + and every pacing (`{{BUDGET_TABLE}}`, plus the `--minutes` value if it is + another one) and tells the model to choose the pacing from the idea and + pick the matching row, 30 minutes if the idea names none. - `lexvm check` prints the estimate, and warns (`playtime.too-short`, `playtime.too-long`) when it misses `playtime` by more than 25%, with concrete numbers: how many puzzles, walkthrough commands or words to add or - cut. Paste these warnings back like any other diagnostic. + cut. When the pack declares a `pacing`, it also warns (`playtime.pacing`) + when the reading share is more than 10 points off. Paste these warnings + back like any other diagnostic. + +### Reading the story: `lexvm transcript` + +Verification proves a pack can be won; it cannot tell whether a reader can +follow it. `lexvm transcript ` replays the walkthrough and prints +everything the player reads along it as Markdown (room titles as headings, +commands as quotes; `--out ` writes it to a file). Read it from start to +end, or have it reviewed: + +```sh +npm run lexvm -- prompt --stage review --pack packs/ --out review.md +``` + +The review prompt contains the transcript, the story document and the pack +files, and asks the model, as a story editor, to improve the text without +touching the mechanics. Check the result like any repair. ## Flow A: bring your own LLM @@ -155,9 +181,11 @@ to any file. | `--out ` | — | Output directory. Its name is the pack id (kebab-case). | | `--lang de\|en` | language of the idea | Pack language. | | `--minutes ` | 30 | Target play time: written to `playtime`, sizes the budget in the prompts, checked by the play time estimate. | +| `--pacing ` | `balanced` | `narrative`, `balanced` or `puzzle`: written to `pacing`, splits the budget between reading and interaction, checked by the estimate. | +| `--no-review` | off | Skip the editorial review round after the pack passes. | | `--model ` | `LEXVM_MODEL` | Claude model id (required). | | `--max-repairs ` | 6 | Repair rounds after the first check. | -| `--from-stage ` | `concept` | Resume at `concept`, `puzzles`, `world`, `logic` or `verify`. | +| `--from-stage ` | `concept` | Resume at `concept`, `story`, `puzzles`, `world`, `logic` or `verify`. | | `--max-states ` | 200000 | State limit of the exploration gate. | | `--max-tokens ` | 64000 | Output token limit per request. | | `--effort ` | model default | `low`, `medium`, `high`, `xhigh` or `max`. | @@ -177,13 +205,15 @@ packs// rules.yaml dialogues.yaml solution.yaml # logic stage design/ concept.md # concept stage + story.md # story stage puzzles.md # puzzles stage run.json # log of every run ``` -Each stage's prompt contains the outputs of the previous stages: the puzzle -designer sees the concept, the world builder sees concept and puzzles, the -logic writer sees both documents and the world files. Progress is printed per +Each stage's prompt contains the outputs of the previous stages: the story +writer sees the concept, the puzzle designer concept and story, the world +builder all three documents, the logic writer the documents and the world +files. Repair rounds see the story too. Progress is printed per stage to stderr. Every artifact is written as soon as it exists. The model returns files as fenced code blocks whose info string names the @@ -232,11 +262,18 @@ twice in the same way (an engine bug, not a pack problem), the loop stops early. The length is the one warning the loop acts on by itself: when a pack passes -every gate but its estimated play time misses the target by more than 25% -(`playtime.too-short` / `playtime.too-long`), the pipeline spends one more -repair round on the length, if `--max-repairs` leaves one. If that round -breaks the pack and the remaining rounds cannot fix it, the last passing -version is restored, so a length repair never costs a working pack. +every gate but its estimated play time misses the target by more than 25%, +or its reading share misses the pacing (`playtime.too-short`, +`playtime.too-long`, `playtime.pacing`), the pipeline spends one more repair +round on the length, if `--max-repairs` leaves one. + +Then, unless `--no-review` is given, the pipeline runs one **editorial +review** round: the model gets the walkthrough transcript, the story and the +files and returns the files whose text it improved. The result is verified +like a repair and may take further repair rounds. Both extra rounds count +against `--max-repairs`. If either breaks the pack and the remaining rounds +cannot fix it, the last passing version is restored, so neither ever costs a +working pack. On failure, look at the remaining diagnostics (`npm run lexvm -- check packs/`), fix what you can by hand, and continue with @@ -249,12 +286,13 @@ the artifacts of the earlier stages from disk: | Stage | Needs on disk | |---|---| -| `puzzles` | `design/concept.md` | -| `world` | `design/concept.md`, `design/puzzles.md` (the world stage replaces all existing `*.yaml` files) | +| `story` | `design/concept.md` | +| `puzzles` | `design/concept.md`, `design/story.md` | +| `world` | the three design documents (the world stage replaces all existing `*.yaml` files) | | `logic` | the design documents and `pack.yaml` | | `verify` | the pack files | -The idea, language, play time, author and license are taken from +The idea, language, play time, pacing, review setting, author and license are taken from `design/run.json` unless given again on the command line. This makes a human-in-the-loop workflow easy: generate, read `design/puzzles.md`, improve the chart by hand, then `--from-stage world`. Without `--from-stage`, the @@ -278,7 +316,7 @@ the pull request if you want to. ### Time and cost -A run makes four stage calls plus one call per repair round. Every call +A run makes five stage calls, one review call and one call per repair round. Every call sends the shared system prompt (the spec, guide and example — cached after the first call, which makes later calls cheaper) and the artifacts of the previous stages; repair rounds resend all pack files. Most of the output, and diff --git a/docs/spec/content-pack.md b/docs/spec/content-pack.md index e29b3c1..9bcb454 100644 --- a/docs/spec/content-pack.md +++ b/docs/spec/content-pack.md @@ -65,6 +65,7 @@ which is what the player loads. The player can also import `.yaml` and | `policy` | `"forgiving"` | no | Default and currently the only policy: no losing endings, no dead ends. | | `generator` | `{pipeline?, notes?}` | no | Provenance, free text. | | `playtime` | int (minutes) | no | Target play time. `lexvm check` compares its play time estimate against it (section 17). | +| `pacing` | `"narrative"` \| `"balanced"` \| `"puzzle"` | no | How the play time divides between reading and interaction (about 60%, 45% or 30% reading). Sizes the text budgets (section 4) and, when declared, is checked by the play time estimate (section 17). | | `maxScore` | int | no | Enables the score display. | | `start` | `{room, intro?}` | yes | Starting room and intro text. | | `verbs` | map id → Verb | no | Pack verbs and overrides for core verbs. | @@ -100,9 +101,12 @@ Inside strings: - A blank line separates paragraphs; a single newline is a line break. - Nothing else is markup. Text is never interpreted as HTML. -Keep texts short for phone screens: room descriptions ≀ 600 characters, +Keep texts readable on phone screens: room descriptions ≀ 600 characters, object descriptions ≀ 400, dialogue lines ≀ 300, option texts ≀ 80, names ≀ 24. -Longer texts produce warnings. +A pack with `pacing: narrative` tells its scenes in full and gets room +descriptions ≀ 1000, object descriptions ≀ 600 and dialogue lines ≀ 600; option +texts and names keep their limits, because they are buttons. Longer texts +produce warnings (`text.too-long`). ## 5. Rooms and exits @@ -522,7 +526,7 @@ in `@lexvm/engine`. | `t_cmd` | 10 s | `secondsPerCommand` | Per command: perceive the scene, tap the object, pick the verb. | | `t_choice` | 6 s | `secondsPerChoice` | Per dialogue choice. | | `c` | 0.6 | `coverage` | Share of the optional content a typical player sees. | -| `f` | 0.5 | `failedAttemptsPerCommand` | Unproductive attempts per productive command. | +| `f` | 1 | `failedAttemptsPerCommand` | Unproductive attempts per productive command. | | tolerance | 0.25 | `tolerance` | Allowed relative deviation from the target. | | target | `playtime` | `targetMinutes`; CLI `--target-minutes` | The length the pack should have. | @@ -535,12 +539,33 @@ per minute in German and 1234 in English; German words are longer, so German gets fewer words per minute. The defaults are deliberately below the lab values: the text is read on a phone screen, in a game, and partly re-read. +The attempt rate `f` comes from the playtests of +`packs/letzte-nacht-der-reichsmark` (74 walkthrough steps, 47 of them +commands): a tap-only player made 180 commands, an adventure veteran 226. +After the optional looks and dialogue options the model counts separately, +that leaves about 0.9 and 1.8 unproductive attempts per productive command; +`f = 1` is the cautious end. Earlier versions used 0.5, which underestimated +the interaction time of real players and therefore pushed packs to cut text +to meet their target ([ADR 0012](../adr/0012-narrative-pacing.md)). + +**Reading share and pacing.** `reading = (W_path + c · W_optional) / wpm` is +the part of `minutes_expected` spent reading; the reading share is +`reading / minutes_expected`. A pack declares how it means to divide its time +with `pacing`: `narrative` 0.6, `balanced` 0.45, `puzzle` 0.3. When `pacing` is +declared and the share is more than 0.1 away from its value, `lexvm check` +warns (`playtime.pacing`): a narrative pack whose story is told too thinly for +its mechanics, or a pack that reads much more than it plays. A pack without +`pacing` is never warned and is sized as `balanced`. + **Diagnostics** (path `playtime`; Appendix A): - `playtime.estimate` (info, always): "≈ 34 min expected (speedrun 21 min); target 35 min", followed by the counts the estimate is based on. - `playtime.no-target` (info): the pack has no `playtime`; suggests the rounded expected time. +- `playtime.pacing` (warning, only when `pacing` is declared): the reading + share is outside the pacing's band; the message says how many words of scene + prose are missing, or what to trim. - `playtime.too-short` / `playtime.too-long` (warning): `|expected / target − 1|` is greater than the tolerance. The message gives concrete numbers derived from the pack's own proportions, e.g. "≈ 12 min short: add 1-2 puzzles, or ≈ @@ -548,20 +573,25 @@ values: the text is read on a phone screen, in a game, and partly re-read. "≈ 4 min too long: trim ≈ 1,100 words or ≈ 20 commands". They are left out while the walkthrough does not reach a winning ending. -**Budget.** `budgetForMinutes(minutes, language)` inverts the model for a -target length with typical ratios of a pack: `W_optional ≈ 0.6 · W_path`, -`D_path ≈ 0.25 ·` all walkthrough steps, `W_path ≈ 20 · C_path` (words of new -text per productive command), `L_unseen ≈ 0.5 · C_path` and -`O_unchosen ≈ 0.25 · D_path`. The ratios are calibrated against the reference -pack `packs/locked-study` (English) and the German test fixture -`packages/engine/test/fixtures/runtime/hafen.yaml`, pooled over both -walkthroughs: measured 0.34, 0.28, 20.7, 0.56 and 0.14. The optional-word -ratio is set higher than measured because these two packs are tiny, and a -full-length game carries more side content (custom responses to wrong -attempts, dialogue branches); the unchosen-option ratio is rounded up for the -same reason. The budget gives ranges of walkthrough steps and player-visible -words of ±tolerance/2 around the target, so a pack that stays within both -ranges lands within the tolerance under the model's assumptions. +**Budget.** `budgetForMinutes(minutes, language, { pacing })` inverts the +model for a target length. The reading share of the pacing (default +`balanced`) splits the minutes: the interaction part sizes the walkthrough +(steps × interaction minutes per step, with tapping, wrong attempts, side looks +and unchosen options), the reading part sizes the text +(`W_path + c · W_optional = reading minutes · wpm`). The other ratios are +typical of a pack: `W_optional ≈ 0.6 · W_path`, `D_path ≈ 0.25 ·` all +walkthrough steps, `L_unseen ≈ 0.5 · C_path` and `O_unchosen ≈ 0.25 · D_path`. +They are calibrated against the reference pack `packs/locked-study` (English) +and the German test fixture `packages/engine/test/fixtures/runtime/hafen.yaml`, +pooled over both walkthroughs: measured 0.34, 0.28, 0.56 and 0.14. The +optional-word ratio is set higher than measured because these two packs are +tiny, and a full-length game carries more side content (custom responses to +wrong attempts, dialogue branches); the unchosen-option ratio is rounded up +for the same reason. Earlier versions fixed the words per command at 20 instead +of deriving them from a reading share; that implied a reading share of about +30% for every pack. The budget gives ranges of walkthrough steps and +player-visible words of ±tolerance/2 around the target, so a pack that stays +within both ranges lands within the tolerance under the model's assumptions. **Where it is used.** @@ -572,15 +602,16 @@ ranges lands within the tolerance under the model's assumptions. catalog entry in `index.json` when the walkthrough reaches a win. The player's library shows `playtime` and falls back to `estimatedMinutes`; imported packs keep the estimate computed at import. -- `lexvm generate --minutes ` writes the target to `playtime` in the - metadata (world) stage and keeps it there, puts the budget into the stage - prompts, and checks the estimate in its verification gate. Play time - warnings come right after the errors in repair prompts. A pack that passes - every gate but misses the target gets one more repair round for its length - (if `--max-repairs` allows); if that round breaks the pack and the - remaining rounds cannot fix it, the last passing version is restored. The - generic one-shot prompt contains a budget table for 15, 30, 45 and 60 - minutes. +- `lexvm generate --minutes --pacing ` writes the target to + `playtime` and the pacing to `pacing` in the metadata (world) stage and + keeps them there, puts the budget into the stage prompts, and checks the + estimate in its verification gate. Play time warnings come right after the + errors in repair prompts. A pack that passes every gate but misses the + target or its pacing gets one more repair round for its length (if + `--max-repairs` allows); if that round breaks the pack and the remaining + rounds cannot fix it, the last passing version is restored. The generic + one-shot prompt contains a budget table for 15, 30, 45 and 60 minutes and + every pacing. ## Appendix A. Diagnostic codes @@ -696,6 +727,7 @@ walkthrough, play time and exploration results. | `playtime.estimate` | info | The estimate and what it is based on. | | `playtime.no-target` | info | No `playtime`; suggests a value. | | `playtime.too-short`, `playtime.too-long` | warning | The expected time misses the target by more than the tolerance, with concrete advice. | +| `playtime.pacing` | warning | The reading share misses the declared `pacing` by more than 0.1. | **Tools** diff --git a/packages/cli/src/commands/check.ts b/packages/cli/src/commands/check.ts index 3ce3097..5b5b612 100644 --- a/packages/cli/src/commands/check.ts +++ b/packages/cli/src/commands/check.ts @@ -184,7 +184,7 @@ function printReport(report: CheckReport, baseDir: string): void { target = off ? color.yellow(text) : text; } out( - ` playtime ≈ ${expected} min expected, speedrun ${speedrun} min, ${target}; ${p.words.path + p.words.optional} words, ${p.wordsPerMinute} wpm`, + ` playtime ≈ ${expected} min expected, speedrun ${speedrun} min, ${target}; ${p.words.path + p.words.optional} words, ${p.wordsPerMinute} wpm, reading ${Math.round(p.readingShare * 100)}%${p.pacing === null ? "" : ` (pacing ${p.pacing})`}`, ); } const x = report.explore; diff --git a/packages/cli/src/commands/transcript.ts b/packages/cli/src/commands/transcript.ts new file mode 100644 index 0000000..9e1df67 --- /dev/null +++ b/packages/cli/src/commands/transcript.ts @@ -0,0 +1,45 @@ +import { writeFileSync } from "node:fs"; +import { walkthroughTranscript } from "@lexvm/engine"; +import { flag, parseArgs, stringOption, UsageError } from "../args.ts"; +import { compileSource, readPackSource } from "../sources.ts"; +import { clean, err, formatDiagnostic } from "../term.ts"; + +export const TRANSCRIPT_HELP = `Usage: lexvm transcript [options] + +Replay the pack's walkthrough and print everything a player reads along it, +as Markdown: room titles as headings, the player's commands as quotes. This is +the text to read (or give to an editor) when reviewing the story: can a reader +follow what happens, and why? + +Options: + --out Write the transcript to this file instead of stdout + -h, --help Show this help + +Exit codes: 0 the walkthrough reaches a winning ending, 1 it does not or the +pack is invalid, 2 usage error.`; + +export function runTranscript(argv: string[]): number { + const args = parseArgs(argv, { + out: { type: "string", short: "o" }, + help: { type: "boolean", short: "h" }, + }); + if (flag(args, "help")) { + process.stdout.write(`${TRANSCRIPT_HELP}\n`); + return 0; + } + if (args.positionals.length !== 1) throw new UsageError("transcript needs exactly one pack"); + const target = args.positionals[0]!; + const source = readPackSource(target); + const result = compileSource(source); + if (result.pack === null) { + for (const d of result.diagnostics) if (d.severity === "error") err(formatDiagnostic(d, source.baseDir, target)); + err(clean(`${target} is not a valid pack; run "lexvm validate ${target}" for details.`)); + return 1; + } + const transcript = walkthroughTranscript(result.pack); + const outPath = stringOption(args, "out"); + if (outPath === undefined) process.stdout.write(clean(transcript.markdown)); + else writeFileSync(outPath, transcript.markdown); + if (!transcript.ok) err(`${target}: the walkthrough does not reach a winning ending; the transcript is partial.`); + return transcript.ok ? 0 : 1; +} diff --git a/packages/cli/src/generate/assemble.ts b/packages/cli/src/generate/assemble.ts index 0e367a5..ff33637 100644 --- a/packages/cli/src/generate/assemble.ts +++ b/packages/cli/src/generate/assemble.ts @@ -3,14 +3,22 @@ * an LLM. Used by `lexvm prompt` (copy-paste prompts for any LLM) and by * `lexvm generate` (staged API pipeline), so both always use the same words. */ -import { budgetForMinutes, PLAYTIME_DEFAULTS, type PlaytimeBudget } from "@lexvm/engine"; +import { + budgetForMinutes, + DEFAULT_PACING, + PACING_READING_SHARE, + type Pacing, + PLAYTIME_DEFAULTS, + type PlaytimeBudget, +} from "@lexvm/engine"; import { fenceFile } from "./fenced.ts"; import { type PromptKit, renderTemplate } from "./kit.ts"; -export const PROMPT_STAGES = ["oneshot", "concept", "puzzles", "world", "logic", "repair"] as const; +export const PROMPT_STAGES = ["oneshot", "concept", "story", "puzzles", "world", "logic", "repair", "review"] as const; export type PromptStage = (typeof PROMPT_STAGES)[number]; export const PACK_LANGUAGES = ["de", "en"] as const; +export const PACINGS = ["narrative", "balanced", "puzzle"] as const satisfies readonly Pacing[]; export type PackLanguage = (typeof PACK_LANGUAGES)[number]; export const DEFAULT_MINUTES = 30; @@ -30,6 +38,8 @@ export interface PromptInputs { /** The user's idea; null renders the "write your idea here" instruction (generic prompt). */ idea: string | null; minutes: number; + /** Pacing of the pack; null or undefined = the default (balanced), or the model's choice in the one-shot prompt. */ + pacing?: Pacing | null; /** Pack id (kebab-case), when the output directory already fixes it. */ packId?: string | null; /** Author for pack metadata (API pipeline); null = ask the model to use the user's name. */ @@ -41,8 +51,12 @@ export interface PromptInputs { staged?: boolean; /** design/concept.md, if available. */ concept?: string | null; + /** design/story.md, if available. */ + story?: string | null; /** design/puzzles.md, if available. */ puzzles?: string | null; + /** The walkthrough transcript (lexvm transcript), for the review stage. */ + transcript?: string | null; /** Current pack files (YAML), if available. */ files?: NamedText[] | null; /** Diagnostics text for the repair stage. */ @@ -102,6 +116,13 @@ function renderFiles(files: NamedText[] | null | undefined): string { return files.map((f) => fenceFile(f.name, f.content)).join("\n\n"); } +function renderTranscript(text: string | null | undefined): string { + if (text === null || text === undefined || text.trim() === "") { + return "(Paste the output of `npm run lexvm -- transcript ` here.)"; + } + return fence(text.trim(), "markdown"); +} + function renderDiagnostics(text: string | null | undefined): string { if (text === null || text === undefined || text.trim() === "") { return "(Paste the output of `npm run lexvm -- check ` or the diagnostics shown by the LexVM app here.)"; @@ -116,50 +137,65 @@ function range(r: { min: number; max: number }): string { return `${fmt(r.min)}–${fmt(r.max)}`; } -function budgetIntro(minutes: number): string { +function budgetIntro(minutes: number, pacing: Pacing): string { return ( - `Size budget for about ${minutes} minutes. LexVM estimates the play time from the walkthrough and the texts; ` + - `\`lexvm check\` warns when the estimate misses \`playtime\` by more than ${TOLERANCE_PERCENT}%. Stay within these ranges:` + `Size budget for about ${minutes} minutes with pacing \`${pacing}\` (about ${Math.round(PACING_READING_SHARE[pacing] * 100)}% of the time is reading). ` + + "LexVM estimates the play time from the walkthrough and the texts; " + + `\`lexvm check\` warns when the estimate misses \`playtime\` by more than ${TOLERANCE_PERCENT}%, and when the reading share misses the pacing. Stay within these ranges:` ); } /** The size budget for one target length, as Markdown (stage prompts). */ -export function renderBudget(minutes: number, lang: PackLanguage | null): string { +export function renderBudget(minutes: number, lang: PackLanguage | null, pacing: Pacing = DEFAULT_PACING): string { if (lang !== null) { - return [budgetIntro(minutes), ...budgetForMinutes(minutes, lang).notes.map((n) => `- ${n}`)].join("\n"); + return [ + budgetIntro(minutes, pacing), + ...budgetForMinutes(minutes, lang, { pacing }).notes.map((n) => `- ${n}`), + ].join("\n"); } const lines = PACK_LANGUAGES.map((l) => { - const b = budgetForMinutes(minutes, l); + const b = budgetForMinutes(minutes, l, { pacing }); return `- ${LANGUAGE_NAMES[l]} pack (\`${l}\`): ${range(b.walkthroughSteps)} walkthrough steps and ${range(b.words)} player-visible words in the whole pack.`; }); return [ - budgetIntro(minutes), + budgetIntro(minutes, pacing), ...lines, '- About a quarter of the steps are dialogue choices; about 60% of the words appear along the walkthrough, the rest in optional descriptions, dialogue branches and custom responses (see "Length budget" in the guide).', ].join("\n"); } -/** The size budget table for 15/30/45/60 minutes (and the requested length), as Markdown (one-shot prompt). */ -export function renderBudgetTable(minutes: number, lang: PackLanguage | null): string { +/** + * The size budget table for 15/30/45/60 minutes (and the requested length) and every pacing (or the given + * one), as Markdown (one-shot prompt). + */ +export function renderBudgetTable(minutes: number, lang: PackLanguage | null, pacing: Pacing | null = null): string { const rows = [...new Set([...BUDGET_TABLE_MINUTES, minutes])].sort((a, b) => a - b); const langs = lang === null ? [...PACK_LANGUAGES] : [lang]; - const budgets = (m: number): PlaytimeBudget[] => langs.map((l) => budgetForMinutes(m, l)); + const pacings: readonly Pacing[] = pacing === null ? PACINGS : [pacing]; + const budgets = (m: number, p: Pacing): PlaytimeBudget[] => langs.map((l) => budgetForMinutes(m, l, { pacing: p })); const head = langs.length === 1 - ? ["| Play time | Walkthrough steps | Words of text |", "|---|---|---|"] + ? ["| Play time | Pacing | Walkthrough steps | Words of text |", "|---|---|---|---|"] : [ - `| Play time | ${langs.map((l) => `\`${l}\`: walkthrough steps | \`${l}\`: words of text`).join(" | ")} |`, - `|---|${langs.map(() => "---|---|").join("")}`, + `| Play time | Pacing | ${langs.map((l) => `\`${l}\`: walkthrough steps | \`${l}\`: words of text`).join(" | ")} |`, + `|---|---|${langs.map(() => "---|---|").join("")}`, ]; - const body = rows.map( - (m) => - `| ${m} min | ${budgets(m) - .map((b) => `${range(b.walkthroughSteps)} | ${range(b.words)}`) - .join(" | ")} |`, + const body = rows.flatMap((m) => + pacings.map( + (p) => + `| ${m} min | ${p} | ${budgets(m, p) + .map((b) => `${range(b.walkthroughSteps)} | ${range(b.words)}`) + .join(" | ")} |`, + ), ); return [...head, ...body].join("\n"); } +function describePacing(pacing: Pacing | null | undefined): string { + const p = pacing ?? DEFAULT_PACING; + return `\`${p}\` (about ${Math.round(PACING_READING_SHARE[p] * 100)}% of the play time is reading)`; +} + function provenance(inputs: PromptInputs): { AUTHOR: string; LICENSE: string; GENERATOR: string } { const license = inputs.license ?? DEFAULT_LICENSE; const author = @@ -191,14 +227,18 @@ export function promptVars(kit: PromptKit, inputs: PromptInputs): Record 0 ? renderBudget(inputs.minutes, inputs.lang) : "", - BUDGET_TABLE: inputs.minutes > 0 ? renderBudgetTable(inputs.minutes, inputs.lang) : "", + PACING: describePacing(inputs.pacing), + PACING_ID: inputs.pacing ?? DEFAULT_PACING, + BUDGET: inputs.minutes > 0 ? renderBudget(inputs.minutes, inputs.lang, inputs.pacing ?? DEFAULT_PACING) : "", + BUDGET_TABLE: inputs.minutes > 0 ? renderBudgetTable(inputs.minutes, inputs.lang, inputs.pacing ?? null) : "", IDEA: renderIdea(inputs.idea), PACK_ID: inputs.packId ? `\`${inputs.packId}\`` : "a short kebab-case id derived from the title (e.g. `hamburg-1948`)", CONCEPT: renderDoc("concept.md", inputs.concept, "concept"), + STORY: renderDoc("story.md", inputs.story, "story"), PUZZLES: renderDoc("puzzles.md", inputs.puzzles, "puzzle design"), + TRANSCRIPT: renderTranscript(inputs.transcript), FILES: renderFiles(inputs.files), DIAGNOSTICS: renderDiagnostics(inputs.diagnostics), ...provenance(inputs), diff --git a/packages/cli/src/generate/index.ts b/packages/cli/src/generate/index.ts index ba5a8e6..0f64b99 100644 --- a/packages/cli/src/generate/index.ts +++ b/packages/cli/src/generate/index.ts @@ -11,8 +11,9 @@ import { readFile } from "node:fs/promises"; import { basename, resolve } from "node:path"; import { parseArgs } from "node:util"; +import { DEFAULT_PACING, type Pacing } from "@lexvm/engine"; import { clean } from "../term.ts"; -import { DEFAULT_LICENSE, DEFAULT_MINUTES, PACK_LANGUAGES, type PackLanguage } from "./assemble.ts"; +import { DEFAULT_LICENSE, DEFAULT_MINUTES, PACINGS, PACK_LANGUAGES, type PackLanguage } from "./assemble.ts"; import { loadPromptKit, type PromptKit } from "./kit.ts"; import { type CompleteFn, createAnthropicComplete, EFFORTS, type Effort, LlmError } from "./llm.ts"; import { @@ -31,8 +32,9 @@ export const DEFAULT_MAX_TOKENS = 64_000; export const GENERATE_USAGE = `Usage: lexvm generate --idea "" --out packs/ [options] -Generates a content pack with the Anthropic API in stages (concept, puzzles, -world, logic) and repairs it until it passes all verification gates. +Generates a content pack with the Anthropic API in stages (concept, story, +puzzles, world, logic), repairs it until it passes all verification gates, +then runs one editorial review round on the walkthrough transcript. Required: --idea The story idea, in any language (or --idea-file ) @@ -42,9 +44,12 @@ Options: --lang Pack language (default: the language of the idea) --minutes Target play time in minutes (default ${DEFAULT_MINUTES}); becomes the pack's playtime, sizes the prompts' budget and is checked by the play time estimate + --pacing ${PACINGS.join("|")} (default ${DEFAULT_PACING}): share of the time spent reading + (about 60/45/30%); becomes the pack's pacing and sizes the budget + --no-review Skip the editorial review round after the pack passes --model Claude model id (or set LEXVM_MODEL) --max-repairs Repair rounds after the first check (default ${DEFAULT_MAX_REPAIRS}) - --from-stage Resume at concept|puzzles|world|logic|verify, reusing earlier artifacts + --from-stage Resume at concept|story|puzzles|world|logic|verify, reusing earlier artifacts --max-states State limit for the exploration gate (default ${DEFAULT_MAX_STATES}) --max-tokens Output token limit per request (default ${DEFAULT_MAX_TOKENS}) --effort Effort level: ${EFFORTS.join("|")} (default: the model's default) @@ -132,6 +137,11 @@ export async function runGenerate(argv: string[], deps: GenerateCliDeps = {}): P } const lang = values.lang !== undefined ? parseLang(values.lang) : (previous?.params.lang ?? null); const minutes = int(values.minutes, "minutes", previous?.params.minutes ?? DEFAULT_MINUTES, 5, 240); + if (values.pacing !== undefined && !(PACINGS as readonly string[]).includes(values.pacing)) { + throw new UsageError(`--pacing must be one of: ${PACINGS.join(", ")}`); + } + const pacing = (values.pacing as Pacing | undefined) ?? previous?.params.pacing ?? DEFAULT_PACING; + const review = values["no-review"] ? false : (previous?.params.review ?? true); const maxRepairs = int(values["max-repairs"], "max-repairs", DEFAULT_MAX_REPAIRS, 0, 50); const maxStates = int(values["max-states"], "max-states", DEFAULT_MAX_STATES, 100, 50_000_000); const maxTokens = int(values["max-tokens"], "max-tokens", DEFAULT_MAX_TOKENS, 1024, 1_000_000); @@ -171,10 +181,10 @@ export async function runGenerate(argv: string[], deps: GenerateCliDeps = {}): P const kit = deps.kit ?? (await loadPromptKit()); log( - `lexvm generate: ${values.out} (language: ${lang ?? "from the idea"}, about ${minutes} min, from stage ${fromStage})`, + `lexvm generate: ${values.out} (language: ${lang ?? "from the idea"}, about ${minutes} min, pacing ${pacing}, from stage ${fromStage})`, ); const result = await generatePack( - { idea, lang, minutes, outDir, packId, author, license, maxRepairs, maxStates, fromStage }, + { idea, lang, minutes, pacing, review, outDir, packId, author, license, maxRepairs, maxStates, fromStage }, { kit, complete, verify: deps.verify ?? engineVerify, log, ...(deps.now ? { now: deps.now } : {}) }, ); if (result.ok) { @@ -216,6 +226,8 @@ function parse(argv: string[]) { "idea-file": { type: "string" }, lang: { type: "string" }, minutes: { type: "string" }, + pacing: { type: "string" }, + "no-review": { type: "boolean" }, out: { type: "string" }, model: { type: "string" }, "max-repairs": { type: "string" }, diff --git a/packages/cli/src/generate/kit.ts b/packages/cli/src/generate/kit.ts index 4ff295d..69c0f66 100644 --- a/packages/cli/src/generate/kit.ts +++ b/packages/cli/src/generate/kit.ts @@ -11,7 +11,17 @@ import { fileURLToPath } from "node:url"; /** Repository root, derived from this file's location (packages/cli/src/generate). */ export const REPO_ROOT = resolve(fileURLToPath(new URL("../../../../", import.meta.url))); -export const TEMPLATE_NAMES = ["oneshot", "system", "concept", "puzzles", "world", "logic", "repair"] as const; +export const TEMPLATE_NAMES = [ + "oneshot", + "system", + "concept", + "story", + "puzzles", + "world", + "logic", + "repair", + "review", +] as const; export type TemplateName = (typeof TEMPLATE_NAMES)[number]; export interface PromptKit { diff --git a/packages/cli/src/generate/pipeline.ts b/packages/cli/src/generate/pipeline.ts index 9499fa2..9c95428 100644 --- a/packages/cli/src/generate/pipeline.ts +++ b/packages/cli/src/generate/pipeline.ts @@ -1,7 +1,13 @@ /** * The staged generation pipeline behind `lexvm generate`: * - * concept -> puzzles -> world -> logic -> verify/repair loop + * concept -> story -> puzzles -> world -> logic -> verify/repair loop -> review + * + * The story stage writes the narrative backbone (design/story.md) before any + * puzzle exists, so the later stages derive their texts from scenes instead of + * inventing them field by field. Once the pack passes every gate, one + * editorial review round reads the walkthrough transcript and improves the + * text; the result is verified again like any repair (ADR 0012). * * Every stage's prompt includes the outputs of the previous stages, every * artifact is written to the output directory as soon as it exists, and @@ -14,7 +20,7 @@ */ import { mkdir, readdir, readFile, rm, stat, writeFile } from "node:fs/promises"; import { join, relative, resolve, sep } from "node:path"; -import type { Diagnostic, SourceFile } from "@lexvm/engine"; +import type { Diagnostic, Pacing, SourceFile } from "@lexvm/engine"; import { buildStagePrompt, buildSystemPrompt, @@ -33,7 +39,7 @@ import { type VerifyFn, } from "./verify.ts"; -export const STAGES = ["concept", "puzzles", "world", "logic", "verify"] as const; +export const STAGES = ["concept", "story", "puzzles", "world", "logic", "verify"] as const; export type Stage = (typeof STAGES)[number]; export const DESIGN_DIR = "design"; @@ -47,7 +53,15 @@ export const DEFAULT_MAX_REPAIRS = 6; * remaining rounds cannot fix it, the last passing files are restored. */ export const LENGTH_REPAIRS = 1; -const LENGTH_CODES: ReadonlySet = new Set(["playtime.too-short", "playtime.too-long"]); +/** Play time warnings the length round acts on: the length, and the reading share of the pacing. */ +const LENGTH_CODES: ReadonlySet = new Set(["playtime.too-short", "playtime.too-long", "playtime.pacing"]); +/** + * Editorial review rounds: once the pack passes every gate (and the length + * round is spent), the model reads the walkthrough transcript and improves the + * text. Counted against --max-repairs; if it breaks the pack and the + * remaining rounds cannot fix it, the last passing files are restored. + */ +export const REVIEW_ROUNDS = 1; /** Files each file-producing stage is asked for. */ export const STAGE_FILES = { @@ -60,6 +74,10 @@ export interface GenerateParams { idea: string; lang: PackLanguage | null; minutes: number; + /** How the play time divides between reading and acting; written to pack.yaml like playtime. */ + pacing: Pacing; + /** Run the editorial review round on the transcript once the pack passes. */ + review: boolean; /** Output directory (packs/). */ outDir: string; packId: string; @@ -100,7 +118,7 @@ export class PipelineError extends Error { // --------------------------------------------------------------------------- export interface RunEvent { - stage: Exclude | "verify" | "repair"; + stage: Exclude | "verify" | "repair" | "review"; round?: number; startedAt: string; finishedAt: string; @@ -121,6 +139,9 @@ export interface RunLog { idea: string; lang: PackLanguage | null; minutes: number; + /** Missing in run logs written before pacing existed. */ + pacing?: Pacing; + review?: boolean; author: string | null; license: string; maxRepairs: number; @@ -229,12 +250,26 @@ export function withPlaytime(yaml: string, minutes: number): string { return `${line}\n${yaml}`; } -/** Make pack.yaml carry the --minutes target as `playtime`. Returns true when the file changed. */ -export async function ensurePlaytime(outDir: string, minutes: number): Promise { +/** Set the top-level `pacing` of a pack.yaml text, replacing an existing value or adding it after `playtime`. */ +export function withPacing(yaml: string, pacing: Pacing): string { + const line = `pacing: ${pacing}`; + const existing = /^pacing:[^\n]*$/m; + if (existing.test(yaml)) return yaml.replace(existing, line); + const m = /^playtime:[^\n]*$/m.exec(yaml); + if (m) { + const end = m.index + m[0].length; + return `${yaml.slice(0, end)}\n${line}${yaml.slice(end)}`; + } + return `${line}\n${yaml}`; +} + +/** Make pack.yaml carry the --minutes target as `playtime` and the --pacing. Returns true when the file changed. */ +export async function ensurePlaytime(outDir: string, minutes: number, pacing?: Pacing): Promise { const path = join(outDir, "pack.yaml"); const text = await readOptional(path); if (text === null) return false; - const updated = withPlaytime(text, minutes); + const timed = withPlaytime(text, minutes); + const updated = pacing === undefined ? timed : withPacing(timed, pacing); if (updated === text) return false; await writeFile(path, updated, "utf8"); return true; @@ -278,6 +313,8 @@ export async function generatePack(params: GenerateParams, deps: PipelineDeps): idea: params.idea, lang: params.lang, minutes: params.minutes, + pacing: params.pacing, + review: params.review, author: params.author, license: params.license, maxRepairs: params.maxRepairs, @@ -293,6 +330,8 @@ export async function generatePack(params: GenerateParams, deps: PipelineDeps): idea: params.idea || runLog.params.idea, lang: params.lang, minutes: params.minutes, + pacing: params.pacing, + review: params.review, author: params.author, license: params.license, maxRepairs: params.maxRepairs, @@ -313,6 +352,7 @@ export async function generatePack(params: GenerateParams, deps: PipelineDeps): lang: params.lang, idea: params.idea, minutes: params.minutes, + pacing: params.pacing, packId: params.packId, author: params.author, license: params.license, @@ -370,7 +410,7 @@ export async function generatePack(params: GenerateParams, deps: PipelineDeps): }; /** A stage whose answer is a Markdown document. */ - const documentStage = async (stage: "concept" | "puzzles", label: string, prompt: string, name: string) => { + const documentStage = async (stage: "concept" | "story" | "puzzles", label: string, prompt: string, name: string) => { for (let attempt = 0; attempt < 2; attempt++) { const retryNote = attempt === 0 ? "" : "\n\nYour previous answer was empty. Answer with the complete Markdown document.\n"; @@ -446,10 +486,10 @@ export async function generatePack(params: GenerateParams, deps: PipelineDeps): const total = STAGES.length; const tag = (stage: Stage) => `[${STAGES.indexOf(stage) + 1}/${total}] ${stage}`; const runs = (stage: Stage) => STAGES.indexOf(stage) >= startIndex; - /** The --minutes target is the pack's playtime: written in the metadata (world) stage, kept through repairs. */ + /** The --minutes target is the pack's playtime and --pacing its pacing: written in the world stage, kept through repairs. */ const syncPlaytime = async () => { - if (await ensurePlaytime(outDir, params.minutes)) - log(` set playtime: ${params.minutes} in pack.yaml (the --minutes target)`); + if (await ensurePlaytime(outDir, params.minutes, params.pacing)) + log(` set playtime: ${params.minutes} and pacing: ${params.pacing} in pack.yaml (--minutes, --pacing)`); }; try { @@ -461,15 +501,22 @@ export async function generatePack(params: GenerateParams, deps: PipelineDeps): "concept.md", ); } + if (runs("story")) { + const concept = await requireDoc("concept.md", "story"); + const prompt = buildStagePrompt(deps.kit, "story", { ...inputs(), concept }); + await documentStage("story", `${tag("story")} 
`, prompt, "story.md"); + } if (runs("puzzles")) { const concept = await requireDoc("concept.md", "puzzles"); - const prompt = buildStagePrompt(deps.kit, "puzzles", { ...inputs(), concept }); + const story = await requireDoc("story.md", "puzzles"); + const prompt = buildStagePrompt(deps.kit, "puzzles", { ...inputs(), concept, story }); await documentStage("puzzles", `${tag("puzzles")} 
`, prompt, "puzzles.md"); } if (runs("world")) { const concept = await requireDoc("concept.md", "world"); + const story = await requireDoc("story.md", "world"); const puzzles = await requireDoc("puzzles.md", "world"); - const prompt = buildStagePrompt(deps.kit, "world", { ...inputs(), concept, puzzles }); + const prompt = buildStagePrompt(deps.kit, "world", { ...inputs(), concept, story, puzzles }); await filesStage("world", `${tag("world")} 
`, prompt, { expected: STAGE_FILES.world, allowed: ["yaml"], @@ -480,12 +527,19 @@ export async function generatePack(params: GenerateParams, deps: PipelineDeps): } if (runs("logic")) { const concept = await requireDoc("concept.md", "logic"); + const story = await requireDoc("story.md", "logic"); const puzzles = await requireDoc("puzzles.md", "logic"); const files = await readPackFiles(outDir); if (!files.some((f) => f.name === "pack.yaml")) { throw new PipelineError("stage 'logic' needs pack.yaml; run the world stage first (--from-stage world)"); } - const prompt = buildStagePrompt(deps.kit, "logic", { ...inputs(), concept, puzzles, files: asNamed(files) }); + const prompt = buildStagePrompt(deps.kit, "logic", { + ...inputs(), + concept, + story, + puzzles, + files: asNamed(files), + }); await filesStage("logic", `${tag("logic")} 
`, prompt, { expected: STAGE_FILES.logic, allowed: ["yaml"], @@ -499,10 +553,14 @@ export async function generatePack(params: GenerateParams, deps: PipelineDeps): throw new PipelineError(`no pack files in ${outDir}; run an earlier stage first (--from-stage world)`); } const concept = await readDoc("concept.md"); + const story = await readDoc("story.md"); const puzzles = await readDoc("puzzles.md"); let round = 0; let lastCrash = ""; let lengthRounds = 0; + let reviewRounds = 0; + let next: "repair" | "review" = "repair"; + let transcript = ""; /** The last version that passed every gate, kept while a length round tries to improve it. */ let passing: { files: SourceFile[]; @@ -537,14 +595,24 @@ export async function generatePack(params: GenerateParams, deps: PipelineDeps): if (report.ok) { const length = report.diagnostics.find((d) => LENGTH_CODES.has(d.code)); - if (!length || lengthRounds >= LENGTH_REPAIRS || round >= params.maxRepairs) { + const roundsLeft = round < params.maxRepairs; + if (length && lengthRounds < LENGTH_REPAIRS && roundsLeft) { + // Passing, but the wrong length: one more round on the length, keeping this version as a fallback. + passing = { files, diagnostics: report.diagnostics, counts: pick(counts) }; + lengthRounds++; + next = "repair"; + log(` ${formatDiagnostic(length)}`); + } else if (params.review && reviewRounds < REVIEW_ROUNDS && roundsLeft && report.transcript !== undefined) { + // Passing: one editorial round on the transcript, keeping this version as a fallback. + passing = { files, diagnostics: report.diagnostics, counts: pick(counts) }; + reviewRounds++; + next = "review"; + transcript = report.transcript; + } else { return await succeed(report.diagnostics, counts); } - // Passing, but the wrong length: one more round on the length, keeping this version as a fallback. - passing = { files, diagnostics: report.diagnostics, counts: pick(counts) }; - lengthRounds++; - log(` ${formatDiagnostic(length)}`); } else { + next = "repair"; for (const d of report.diagnostics.filter((x) => x.severity === "error").slice(0, 5)) { log(` ${formatDiagnostic(d)}`); } @@ -560,7 +628,7 @@ export async function generatePack(params: GenerateParams, deps: PipelineDeps): if (round >= params.maxRepairs) { if (passing) { await restorePackFiles(outDir, passing.files); - log(" the length repair broke the pack; restored the last passing version"); + log(" the length or review round broke the pack; restored the last passing version"); runLog.events.push({ stage: "verify", round, @@ -568,7 +636,7 @@ export async function generatePack(params: GenerateParams, deps: PipelineDeps): finishedAt: now().toISOString(), durationMs: 0, diagnostics: countSeverities(passing.diagnostics), - notes: ["restored the last passing version after an unsuccessful length repair"], + notes: ["restored the last passing version after an unsuccessful length or review round"], }); return await succeed(passing.diagnostics, passing.counts); } @@ -584,9 +652,20 @@ export async function generatePack(params: GenerateParams, deps: PipelineDeps): } } round++; + if (next === "review") { + const prompt = buildStagePrompt(deps.kit, "review", { ...inputs(), story, files: asNamed(files), transcript }); + await filesStage("review", ` review (round ${round}/${params.maxRepairs}) 
`, prompt, { + expected: [], + allowed: ["yaml"], + required: false, + round, + }); + continue; + } const prompt = buildStagePrompt(deps.kit, "repair", { ...inputs(), concept, + story, puzzles, files: asNamed(files), diagnostics: formatDiagnosticsForPrompt(report.diagnostics), diff --git a/packages/cli/src/generate/prompt.ts b/packages/cli/src/generate/prompt.ts index b9a1159..42eb724 100644 --- a/packages/cli/src/generate/prompt.ts +++ b/packages/cli/src/generate/prompt.ts @@ -2,8 +2,9 @@ * `lexvm prompt`: assemble the prompt kit (spec + guide + example) for * copy-paste use with any LLM. Owned by the pipeline workstream. * - * lexvm prompt [--stage oneshot|concept|puzzles|world|logic|repair] [--lang de|en] - * [--idea "..."] [--minutes 30] [--pack ] [--diagnostics ] [--out ] + * lexvm prompt [--stage oneshot|concept|story|puzzles|world|logic|repair|review] [--lang de|en] + * [--idea "..."] [--minutes 30] [--pacing narrative|balanced|puzzle] [--pack ] + * [--diagnostics ] [--out ] * * `npm run prompts` runs `--stage oneshot --out prompts/oneshot.md`, the * generic prompt bundled by the web app. @@ -11,11 +12,13 @@ import { mkdir, readdir, readFile, stat, writeFile } from "node:fs/promises"; import { basename, dirname, join, resolve } from "node:path"; import { parseArgs } from "node:util"; +import { compile, type Pacing, walkthroughTranscript } from "@lexvm/engine"; import { clean } from "../term.ts"; import { assemblePrompt, DEFAULT_MINUTES, type NamedText, + PACINGS, PACK_LANGUAGES, type PackLanguage, PROMPT_STAGES, @@ -36,8 +39,12 @@ Options: --lang Pack language (default: the language of the idea) --idea The story idea (or --idea-file ); omitted = generic prompt --minutes Target play time in minutes (default ${DEFAULT_MINUTES}); sizes the budget in the prompt - --pack Existing pack directory or YAML file to include (later stages, repair) + --pacing ${PACINGS.join("|")}: how the time divides between reading and acting + (default: the pack's pacing, else balanced; the one-shot prompt lets the model choose) + --pack Existing pack directory or YAML file to include (later stages, repair, review) --diagnostics Diagnostics to include in a repair prompt (default: run the checks on --pack) + +The review stage includes the walkthrough transcript of --pack (lexvm transcript). --out Write to a file instead of stdout `; @@ -53,9 +60,11 @@ class UsageError extends Error {} interface PackInputs { concept: string | null; + story: string | null; puzzles: string | null; files: NamedText[]; language: string | null; + pacing: Pacing | null; } async function readPack(path: string): Promise { @@ -73,19 +82,33 @@ async function readPack(path: string): Promise { const pack = files.find((f) => f.name === "pack.yaml"); return { concept: await read("concept.md"), + story: await read("story.md"), puzzles: await read("puzzles.md"), files, language: pack ? languageOf(pack.content) : null, + pacing: pack ? pacingOf(pack.content) : null, }; } const content = await readFile(path, "utf8"); - return { concept: null, puzzles: null, files: [{ name: basename(path), content }], language: languageOf(content) }; + return { + concept: null, + story: null, + puzzles: null, + files: [{ name: basename(path), content }], + language: languageOf(content), + pacing: pacingOf(content), + }; } function languageOf(yaml: string): string | null { return /^language:\s*["']?([a-z]{2,3})\b/m.exec(yaml)?.[1] ?? null; } +function pacingOf(yaml: string): Pacing | null { + const value = /^pacing:\s*["']?([a-z]+)\b/m.exec(yaml)?.[1]; + return (PACINGS as readonly string[]).includes(value ?? "") ? (value as Pacing) : null; +} + export async function runPrompt(argv: string[], deps: PromptCliDeps = {}): Promise { // A pack's text is untrusted: no control characters reach a terminal (a file or pipe gets the prompt as is). const log = deps.log ?? ((line: string) => process.stderr.write(`${clean(line)}\n`)); @@ -123,13 +146,28 @@ export async function runPrompt(argv: string[], deps: PromptCliDeps = {}): Promi let idea: string | null = values.idea ?? null; if (values["idea-file"]) idea = await readFile(resolve(cwd, values["idea-file"]), "utf8"); - const inputs: PromptInputs = { lang: (values.lang as PackLanguage | undefined) ?? null, idea, minutes }; + if (values.pacing !== undefined && !(PACINGS as readonly string[]).includes(values.pacing)) { + throw new UsageError(`--pacing must be one of: ${PACINGS.join(", ")}`); + } + const inputs: PromptInputs = { + lang: (values.lang as PackLanguage | undefined) ?? null, + idea, + minutes, + pacing: (values.pacing as Pacing | undefined) ?? null, + }; if (values.pack) { const packPath = resolve(cwd, values.pack); const pack = await readPack(packPath); inputs.concept = pack.concept; + inputs.story = pack.story; inputs.puzzles = pack.puzzles; inputs.files = pack.files; + if (inputs.pacing === null) inputs.pacing = pack.pacing; + if (stage === "review") { + const compiled = compile(pack.files.map((f) => ({ name: f.name, text: f.content }))); + if (compiled.pack === null) log("lexvm prompt: the pack does not compile; paste the transcript by hand."); + else inputs.transcript = walkthroughTranscript(compiled.pack).markdown; + } if (inputs.lang === null && (pack.language === "de" || pack.language === "en")) inputs.lang = pack.language; const dirName = basename(packPath); if ((await stat(packPath)).isDirectory() && /^[a-z0-9]+(-[a-z0-9]+)*$/.test(dirName)) inputs.packId = dirName; @@ -183,6 +221,7 @@ function parse(argv: string[]) { idea: { type: "string" }, "idea-file": { type: "string" }, minutes: { type: "string" }, + pacing: { type: "string" }, pack: { type: "string" }, diagnostics: { type: "string" }, out: { type: "string" }, diff --git a/packages/cli/src/generate/verify.ts b/packages/cli/src/generate/verify.ts index 7140a77..5917bab 100644 --- a/packages/cli/src/generate/verify.ts +++ b/packages/cli/src/generate/verify.ts @@ -5,7 +5,15 @@ * first gate with errors, so a repair round focuses on the earliest problems * (as `lexvm check` does). */ -import { analyze, compile, type Diagnostic, estimatePlaytime, runWalkthrough, type SourceFile } from "@lexvm/engine"; +import { + analyze, + compile, + type Diagnostic, + estimatePlaytime, + runWalkthrough, + type SourceFile, + walkthroughTranscript, +} from "@lexvm/engine"; import { verifyExploration } from "../exploration.ts"; import { walkthroughFallbacks } from "../fallbacks.ts"; @@ -25,6 +33,8 @@ export interface VerifyReport { ok: boolean; diagnostics: Diagnostic[]; gates: GateResult[]; + /** The walkthrough as the player reads it (lexvm transcript), once the walkthrough gate passed. */ + transcript?: string; } export interface VerifyOptions { @@ -106,6 +116,7 @@ export const engineVerify: VerifyFn = (files, options) => { } // Gate 2: walkthrough replay, then the play time estimate (it replays the walkthrough as well). + let transcript: string | undefined; try { const report = runWalkthrough(pack); diags = [...report.diagnostics, ...walkthroughFallbacks(pack, report, all)]; @@ -115,6 +126,7 @@ export const engineVerify: VerifyFn = (files, options) => { options.targetMinutes === undefined ? {} : { targetMinutes: options.targetMinutes }, ); diags.push(...estimate.diagnostics); + transcript = walkthroughTranscript(pack).markdown; } } catch (err) { diags = [crash("walkthrough", err)]; @@ -134,7 +146,12 @@ export const engineVerify: VerifyFn = (files, options) => { } all.push(...diags); gates.push(gateResult("exploration", diags)); - return { ok: count(all, "error") === 0, diagnostics: all, gates }; + return { + ok: count(all, "error") === 0, + diagnostics: all, + gates, + ...(transcript === undefined ? {} : { transcript }), + }; }; // --------------------------------------------------------------------------- diff --git a/packages/cli/src/main.ts b/packages/cli/src/main.ts index 48db9b1..8710b4d 100755 --- a/packages/cli/src/main.ts +++ b/packages/cli/src/main.ts @@ -10,6 +10,7 @@ import { runCheck } from "./commands/check.ts"; import { runNew } from "./commands/new.ts"; import { runPlay } from "./commands/play.ts"; import { runSchema } from "./commands/schema.ts"; +import { runTranscript } from "./commands/transcript.ts"; import { runValidate } from "./commands/validate.ts"; import { err, out } from "./term.ts"; @@ -22,6 +23,7 @@ Commands: build Compile content packs to .lexpack.json plus index.json check validate + walkthrough replay + state-space exploration play Play a content pack in the terminal + transcript Print the walkthrough as a reader sees it (for story review) new Scaffold a new content pack schema Write the JSON Schema of the content pack format prompt Assemble the prompt kit for any LLM @@ -43,6 +45,7 @@ const COMMANDS: Record = { build: runBuild, check: runCheck, play: runPlay, + transcript: runTranscript, new: runNew, schema: runSchema, // Owned by the generation pipeline; loaded lazily so the other commands never need the API client. diff --git a/packages/cli/test/cli.test.ts b/packages/cli/test/cli.test.ts index bbaeed4..ae08112 100644 --- a/packages/cli/test/cli.test.ts +++ b/packages/cli/test/cli.test.ts @@ -210,7 +210,7 @@ describe("lexvm build", () => { packs: Array<{ id: string; playtime?: number; estimatedMinutes?: number }>; }; const entry = index.packs.find((p) => p.id === "locked-study")!; - expect(entry.playtime).toBe(5); + expect(entry.playtime).toBe(7); expect(Number.isInteger(entry.estimatedMinutes)).toBe(true); expect(entry.estimatedMinutes).toBeGreaterThanOrEqual(4); expect(entry.estimatedMinutes).toBeLessThanOrEqual(8); @@ -273,6 +273,23 @@ describe("lexvm schema", () => { ); }); +describe("lexvm transcript", () => { + it( + "prints the walkthrough as Markdown and writes it to a file", + () => { + const r = lexvm(["transcript", LOCKED_STUDY]); + expect(r.code).toBe(0); + expect(r.stdout).toMatch(/^# The Locked Study\n/); + expect(r.stdout).toContain("## Entrance Hall"); + expect(r.stdout).toContain("> Talk to Graves"); + const file = join(tmp, "transcript.md"); + expect(lexvm(["transcript", LOCKED_STUDY, "--out", file]).code).toBe(0); + expect(readFileSync(file, "utf8")).toBe(r.stdout); + }, + TIMEOUT, + ); +}); + describe("lexvm play", () => { it.skipIf(!runtimeReady)( "replays canonical commands and prints the transcript", @@ -458,7 +475,9 @@ describe("lexvm check", () => { () => { const r = lexvm(["check", "--no-explore", "packs/locked-study"]); expect(r.code, r.stdout + r.stderr).toBe(0); - expect(r.stdout).toMatch(/ {2}playtime {6}≈ \d+ min expected, speedrun \d+ min, target 5 min \([+-]\d+%\)/); + expect(r.stdout).toMatch( + / {2}playtime {6}≈ \d+ min expected, speedrun \d+ min, target 7 min \([+-]\d+%\); \d+ words, \d+ wpm, reading \d+%/, + ); expect(r.stdout).toContain("playtime.estimate"); expect(r.stdout).not.toContain("playtime.too-"); diff --git a/packages/cli/test/generate-playtime.test.ts b/packages/cli/test/generate-playtime.test.ts index 46909d4..f9760ca 100644 --- a/packages/cli/test/generate-playtime.test.ts +++ b/packages/cli/test/generate-playtime.test.ts @@ -47,6 +47,7 @@ function fakeLlm() { const calls: Array<{ stage: string; prompt: string }> = []; const answers: Record string> = { concept: () => "# The Locked Study\n\nA concept.", + story: () => "# Story\n\nThe truth.", puzzles: () => "# Puzzles\n\nA chart.", world: () => block("pack.yaml", example.replace(/^playtime: \d+\n/m, "")), logic: () => block("notes.yaml", "# nothing to add\n"), @@ -111,7 +112,7 @@ describe("lexvm generate: play time", () => { expect(seen).toHaveLength(1); expect(seen[0]!.options).toMatchObject({ targetMinutes: 12 }); expect(seen[0]!.pack).toContain("playtime: 12"); - expect(logs.join("\n")).toContain("set playtime: 12 in pack.yaml"); + expect(logs.join("\n")).toContain("set playtime: 12 and pacing: balanced in pack.yaml"); // The stage prompts carry the budget for the target. expect(llm.calls.find((c) => c.stage === "world")!.prompt).toContain("Size budget for about 12 minutes"); }); @@ -188,7 +189,9 @@ describe("lexvm generate: play time", () => { expect(await readFile(join(dir, "notes.yaml"), "utf8")).toBe("# nothing to add\n"); const run = JSON.parse(await readFile(join(dir, "design/run.json"), "utf8")) as RunLog; expect(run.runs[0]!.result).toMatchObject({ ok: true, warnings: 1 }); - expect(run.events.at(-1)!.notes).toEqual(["restored the last passing version after an unsuccessful length repair"]); + expect(run.events.at(-1)!.notes).toEqual([ + "restored the last passing version after an unsuccessful length or review round", + ]); }); }); diff --git a/packages/cli/test/generate.test.ts b/packages/cli/test/generate.test.ts index 5fde2fc..6fe5f1c 100644 --- a/packages/cli/test/generate.test.ts +++ b/packages/cli/test/generate.test.ts @@ -55,6 +55,7 @@ function fakeLlm(overrides: Partial string>> const calls: Call[] = []; const answers: Record string> = { concept: () => "# The Locked Study\n\nCONCEPT_MARKER: an uncle, a butler, a locked door.", + story: () => "# Story\n\nSTORY_MARKER: the uncle hid in the cellar.", puzzles: () => [ "Here is the puzzle design.", @@ -185,7 +186,8 @@ beforeAll(async () => { root = await mkdtemp(join(tmpdir(), "lexvm-generate-")); const example = await readFile(join(REPO_ROOT, "packs/locked-study/pack.yaml"), "utf8"); blocks = splitTopLevel(example); - topKeys = [...blocks.keys()]; + // The pipeline adds pacing to pack.yaml (the example declares none). + topKeys = [...blocks.keys(), "pacing"]; }); afterAll(async () => { @@ -206,7 +208,7 @@ describe("lexvm generate", () => { expect(code, log).toBe(0); // Stages ran in order; the repair loop ran once and terminated. - expect(llm.calls.map((c) => c.stage)).toEqual(["concept", "puzzles", "world", "logic", "repair"]); + expect(llm.calls.map((c) => c.stage)).toEqual(["concept", "story", "puzzles", "world", "logic", "repair"]); expect(verifier.seen).toHaveLength(2); expect(verifier.seen[0]).toEqual([ "pack.yaml", @@ -218,8 +220,10 @@ describe("lexvm generate", () => { ]); // Every stage sees the outputs of the previous stages; the system prompt is shared (cacheable). - const [concept, puzzles, world, logic, repair] = llm.calls; + const [concept, story, puzzles, world, logic, repair] = llm.calls; expect(concept!.prompt).toContain(IDEA); + expect(story!.prompt).toContain("CONCEPT_MARKER"); + for (const call of [puzzles, world, logic, repair]) expect(call!.prompt).toContain("STORY_MARKER"); expect(concept!.prompt).toContain("`locked-study`"); expect(puzzles!.prompt).toContain("CONCEPT_MARKER"); expect(world!.prompt).toContain("CONCEPT_MARKER"); @@ -257,6 +261,7 @@ describe("lexvm generate", () => { expect(run.params.idea).toBe(IDEA); expect(run.events.map((e) => (e.round === undefined ? e.stage : `${e.stage}#${e.round}`))).toEqual([ "concept", + "story", "puzzles", "world", "logic", @@ -264,17 +269,19 @@ describe("lexvm generate", () => { "repair#1", "verify#1", ]); - expect(run.events[2]!.files).toEqual(["pack.yaml", "rooms.yaml", "objects.yaml"]); - expect(run.events[4]!.diagnostics).toEqual({ errors: 1, warnings: 1, infos: 0 }); - expect(run.events[6]!.gates?.every((g) => g.status === "passed")).toBe(true); - expect(run.totals.outputTokens).toBe(5 * 500); + expect(run.events[3]!.files).toEqual(["pack.yaml", "rooms.yaml", "objects.yaml"]); + expect(run.events[5]!.diagnostics).toEqual({ errors: 1, warnings: 1, infos: 0 }); + expect(run.events[7]!.gates?.every((g) => g.status === "passed")).toBe(true); + expect(run.totals.outputTokens).toBe(6 * 500); + expect(await readFile(join(dir, "pack.yaml"), "utf8")).toMatch(/^pacing: balanced$/m); + expect(run.params.pacing).toBe("balanced"); expect(run.runs).toHaveLength(1); expect(run.runs[0]!.result).toMatchObject({ ok: true, repairs: 1, errors: 0, warnings: 1 }); expect(run.events[0]!.durationMs).toBeGreaterThan(0); // Progress went to the log; no secrets or model ids anywhere. - expect(log).toContain("[1/5] concept"); - expect(log).toContain("[5/5] verify"); + expect(log).toContain("[1/6] concept"); + expect(log).toContain("[6/6] verify"); expect(log).toContain("12k characters received"); expect(log).toContain("OK:"); const written = await allText(dir); @@ -306,6 +313,67 @@ describe("lexvm generate", () => { expect(run.runs[0]!.result).toMatchObject({ ok: false, repairs: 2, errors: 1 }); }); + it("runs one editorial review round on the transcript once the pack passes, unless --no-review", async () => { + const reviewed = (files: { name: string; text: string }[]) => + files.find((f) => f.name === "rules.yaml")!.text.includes("# reviewed"); + const passing = (): { verify: VerifyFn; seen: number } => { + const state = { seen: 0 }; + const verify: VerifyFn = (files) => { + state.seen++; + return { + ok: true, + diagnostics: [], + gates: [{ gate: "compile", status: "passed", errors: 0, warnings: 0 }], + transcript: reviewed(files) ? "# after review" : "# Locked Study\n\nTRANSCRIPT_MARKER", + }; + }; + return { + verify, + get seen() { + return state.seen; + }, + }; + }; + const review = (prompt: string) => { + expect(prompt).toContain("TRANSCRIPT_MARKER"); + expect(prompt).toContain("STORY_MARKER"); + return fileBlock("rules.yaml", `# reviewed\n${blocks.get("rules")!}`); + }; + + const dir = join(root, "case-review", "reviewed-pack"); + const llm = fakeLlm({ review }); + const v = passing(); + const code = await runGenerate(["--idea", IDEA, "--out", dir, "--pacing", "narrative"], { + complete: llm.complete, + verify: v.verify, + env: ENV, + log: () => {}, + kit, + }); + expect(code).toBe(0); + expect(llm.calls.map((c) => c.stage)).toEqual(["concept", "story", "puzzles", "world", "logic", "review"]); + expect(v.seen).toBe(2); + expect(await readFile(join(dir, "rules.yaml"), "utf8")).toMatch(/^# reviewed/); + expect(await readFile(join(dir, "pack.yaml"), "utf8")).toMatch(/^pacing: narrative$/m); + expect(llm.calls[1]!.prompt).toContain("pacing: `narrative`"); + const run = JSON.parse(await readFile(join(dir, "design/run.json"), "utf8")) as RunLog; + expect(run.events.map((e) => e.stage).slice(-3)).toEqual(["verify", "review", "verify"]); + expect(run.params).toMatchObject({ pacing: "narrative", review: true }); + + const skipDir = join(root, "case-review", "unreviewed-pack"); + const skip = fakeLlm({ review }); + expect( + await runGenerate(["--idea", IDEA, "--out", skipDir, "--no-review"], { + complete: skip.complete, + verify: passing().verify, + env: ENV, + log: () => {}, + kit, + }), + ).toBe(0); + expect(skip.calls.map((c) => c.stage)).not.toContain("review"); + }); + it("resumes from a stage, reusing earlier artifacts and the stored idea", async () => { const dir = join(root, "case-3", "resumed-pack"); const first = fakeLlm(); @@ -381,8 +449,8 @@ describe("lexvm generate", () => { kit, }); expect(code).toBe(1); - expect(llm.calls.map((c) => c.stage)).toEqual(["concept", "puzzles", "world", "world"]); - expect(llm.calls[3]!.prompt).toContain("no usable file blocks"); + expect(llm.calls.map((c) => c.stage)).toEqual(["concept", "story", "puzzles", "world", "world"]); + expect(llm.calls[4]!.prompt).toContain("no usable file blocks"); expect(logs.join("\n")).toContain("produced no files"); const run = JSON.parse(await readFile(join(dir, "design/run.json"), "utf8")) as RunLog; expect(run.runs[0]!.result?.failure).toContain("produced no files"); diff --git a/packages/cli/test/prompt.test.ts b/packages/cli/test/prompt.test.ts index e99bb64..1a3dc44 100644 --- a/packages/cli/test/prompt.test.ts +++ b/packages/cli/test/prompt.test.ts @@ -7,6 +7,7 @@ import { assemblePrompt, BUDGET_TABLE_MINUTES, buildSystemPrompt, + PACINGS, PROMPT_STAGES, type PromptInputs, renderBudget, @@ -50,6 +51,8 @@ const fullInputs: PromptInputs = { license: "CC-BY-4.0", pipeline: true, concept: "# Concept\n\nNoir.", + story: "# Story\n\nSTORY_MARKER: the truth.", + transcript: "# Hamburg 1948\n\n## Kai\n\nTRANSCRIPT_MARKER", puzzles: "# Puzzles\n\n```mermaid\nflowchart TD\n a --> b\n```", files: [{ name: "pack.yaml", content: "format: lexvm-pack/1\n" }], diagnostics: "[error] ref.unknown-object @ rules[0]: unknown object 'x'", @@ -148,19 +151,26 @@ describe("assemblePrompt", () => { it("gives the one-shot prompt a budget table for 15/30/45/60 minutes and both languages", () => { const text = assemblePrompt(kit, "oneshot", { lang: null, idea: null, minutes: 30 }); - expect(text).toContain("Pick the row that matches the requested length (no length requested: 30 minutes"); - expect(text).toContain("| Play time | `de`: walkthrough steps | `de`: words of text | `en`: walkthrough steps |"); + expect(text).toContain( + "Pick the row that matches the requested length and the pacing (no length requested: 30 minutes", + ); + expect(text).toContain( + "| Play time | Pacing | `de`: walkthrough steps | `de`: words of text | `en`: walkthrough steps |", + ); for (const minutes of BUDGET_TABLE_MINUTES) { - const de = budgetForMinutes(minutes, "de"); - const en = budgetForMinutes(minutes, "en"); - const row = text.split("\n").find((l) => l.startsWith(`| ${minutes} min |`)); - expect(row, `${minutes} min`).toBeDefined(); - expect(row).toContain(`${de.walkthroughSteps.min}–${de.walkthroughSteps.max}`); - expect(row).toContain(`${en.walkthroughSteps.min}–${en.walkthroughSteps.max}`); + for (const pacing of PACINGS) { + const de = budgetForMinutes(minutes, "de", { pacing }); + const en = budgetForMinutes(minutes, "en", { pacing }); + const row = text.split("\n").find((l) => l.startsWith(`| ${minutes} min | ${pacing} |`)); + expect(row, `${minutes} min ${pacing}`).toBeDefined(); + expect(row).toContain(`${de.walkthroughSteps.min}–${de.walkthroughSteps.max}`); + expect(row).toContain(`${en.walkthroughSteps.min}–${en.walkthroughSteps.max}`); + } } - // A requested length outside the standard rows gets its own row; a known language gets one column pair. + // A requested length outside the standard rows gets its own rows; a known language gets one column pair. const table = renderBudgetTable(40, "en"); - expect(table.split("\n")).toHaveLength(2 + 5); + expect(table.split("\n")).toHaveLength(2 + 5 * PACINGS.length); + expect(renderBudgetTable(40, "en", "narrative").split("\n")).toHaveLength(2 + 5); expect(table).toContain("| 40 min |"); expect(table).not.toContain("`de`"); // The shared system prompt has no run-specific budget. @@ -168,8 +178,8 @@ describe("assemblePrompt", () => { }); it("puts the budget for --minutes into the stage prompts", () => { - const b = budgetForMinutes(40, "de"); - for (const stage of ["concept", "puzzles", "world", "logic"] as const) { + const b = budgetForMinutes(40, "de", { pacing: "balanced" }); + for (const stage of ["concept", "story", "puzzles", "world", "logic", "review"] as const) { const text = assemblePrompt(kit, stage, fullInputs); expect(text, stage).toContain("Size budget for about 40 minutes"); expect(text, stage).toContain(`${b.walkthroughSteps.min}–${b.walkthroughSteps.max} steps`); @@ -179,9 +189,28 @@ describe("assemblePrompt", () => { expect(both).toContain("German pack (`de`)"); expect(both).toContain("English pack (`en`)"); expect(assemblePrompt(kit, "world", fullInputs)).toContain("`playtime: 40` (the target play time; keep it)"); + expect(assemblePrompt(kit, "world", fullInputs)).toContain("`pacing: balanced`"); + const narrative = assemblePrompt(kit, "story", { ...fullInputs, pacing: "narrative" }); + expect(narrative).toContain("pacing: `narrative` (about 60% of the play time is reading)"); + expect(narrative).toContain(budgetForMinutes(40, "de", { pacing: "narrative" }).notes[1]!); expect(assemblePrompt(kit, "repair", fullInputs)).toContain("`playtime.too-short`"); }); + it("gives the story and review stages their inputs", () => { + const review = assemblePrompt(kit, "review", fullInputs); + expect(review).toContain("TRANSCRIPT_MARKER"); + expect(review).toContain("STORY_MARKER"); + expect(review).toContain("```yaml file=pack.yaml"); + expect(review).toContain("story editor"); + for (const stage of ["puzzles", "world", "logic", "repair"] as const) { + expect(assemblePrompt(kit, stage, fullInputs), stage).toContain("STORY_MARKER"); + } + const story = assemblePrompt(kit, "story", fullInputs); + expect(story).toContain("Revelation map"); + expect(story).toContain("# Concept\n\n"); + expect(assemblePrompt(kit, "review", { ...fullInputs, transcript: null })).toContain("lexvm -- transcript"); + }); + it("contains no model identifiers", () => { for (const stage of PROMPT_STAGES) { expect(assemblePrompt(kit, stage, fullInputs)).not.toMatch(MODEL_ID); @@ -220,7 +249,7 @@ describe("runPrompt", () => { let out = ""; const logs: string[] = []; expect(await runPrompt(["--stage", "concept", "--idea", "A lighthouse"], { stdout: (t) => (out += t) })).toBe(0); - expect(out).toContain("# Stage 1 of 4: concept"); + expect(out).toContain("# Stage 1 of 5: concept"); expect(out).toContain("> A lighthouse"); const target = join(tmp, "nested", "oneshot.md"); expect(await runPrompt(["--out", target, "--lang", "en"], { log: (l) => logs.push(l) })).toBe(0); diff --git a/packages/engine/src/analyze-text.ts b/packages/engine/src/analyze-text.ts index c4e708a..162a915 100644 --- a/packages/engine/src/analyze-text.ts +++ b/packages/engine/src/analyze-text.ts @@ -4,9 +4,9 @@ */ import { markupRefs, type PackIndex, renderedText, textStrings, walkPack } from "./analyze-walk.ts"; import type { DiagnosticList } from "./diagnostics.ts"; -import type { Id, Text } from "./schema.ts"; +import type { Id, Pacing, Text } from "./schema.ts"; -/** Character budgets from spec section 4. */ +/** Character budgets from spec section 4 (packs with pacing 'balanced' or 'puzzle', or none). */ export const TEXT_LIMITS = { roomDescription: 600, objectDescription: 400, @@ -15,6 +15,24 @@ export const TEXT_LIMITS = { name: 24, } as const; +/** + * A narrative pack tells its scenes in full: a first arrival, a confession, a + * turning point need more room than one phone screen of 300 characters. The + * player scrolls like a book; options and names stay short for the buttons. + */ +const NARRATIVE_LIMITS: Record = { + roomDescription: 1000, + objectDescription: 600, + dialogueSay: 600, + optionText: 80, + name: 24, +}; + +/** The character budgets for a pack's pacing (spec section 4). */ +export function textLimits(pacing: Pacing | undefined): Readonly> { + return pacing === "narrative" ? NARRATIVE_LIMITS : TEXT_LIMITS; +} + function length(text: string, ix: PackIndex): number { return [...renderedText(text, ix.pack)].length; } @@ -44,27 +62,28 @@ function checkLength( function checkLengths(ix: PackIndex, out: DiagnosticList): void { const { pack } = ix; + const limits = textLimits(pack.pacing); for (const [id, room] of Object.entries(pack.rooms)) { - checkLength(ix, out, room.name, `rooms.${id}.name`, "Room name", TEXT_LIMITS.name); - checkLength(ix, out, room.description, `rooms.${id}.description`, "Room description", TEXT_LIMITS.roomDescription); + checkLength(ix, out, room.name, `rooms.${id}.name`, "Room name", limits.name); + checkLength(ix, out, room.description, `rooms.${id}.description`, "Room description", limits.roomDescription); } for (const [id, object] of Object.entries(pack.objects)) { - checkLength(ix, out, object.name, `objects.${id}.name`, "Object name", TEXT_LIMITS.name); + checkLength(ix, out, object.name, `objects.${id}.name`, "Object name", limits.name); checkLength( ix, out, object.description, `objects.${id}.description`, "Object description", - TEXT_LIMITS.objectDescription, + limits.objectDescription, ); } for (const [id, dialogue] of Object.entries(pack.dialogues)) { for (const [nodeId, node] of Object.entries(dialogue.nodes)) { const p = `dialogues.${id}.nodes.${nodeId}`; - checkLength(ix, out, node.say, `${p}.say`, "Dialogue line", TEXT_LIMITS.dialogueSay); + checkLength(ix, out, node.say, `${p}.say`, "Dialogue line", limits.dialogueSay); (node.options ?? []).forEach((option, i) => { - checkLength(ix, out, option.text, `${p}.options[${i}].text`, "Option text", TEXT_LIMITS.optionText); + checkLength(ix, out, option.text, `${p}.options[${i}].text`, "Option text", limits.optionText); }); } } diff --git a/packages/engine/src/index.ts b/packages/engine/src/index.ts index a09584f..6474387 100644 --- a/packages/engine/src/index.ts +++ b/packages/engine/src/index.ts @@ -7,16 +7,27 @@ */ export { analyze } from "./analyze.ts"; +export { TEXT_LIMITS, textLimits } from "./analyze-text.ts"; export { commandLabel, formatCommand, parseCanonical } from "./commands.ts"; export { compile } from "./compile.ts"; export { explore } from "./explore.ts"; export { packHash, stateKey } from "./hash.ts"; export { loadPack, PackError } from "./load.ts"; export { parseCommand } from "./parser.ts"; -export { BUDGET_DEFAULTS, budgetForMinutes, countWords, estimatePlaytime, PLAYTIME_DEFAULTS } from "./playtime.ts"; +export { + BUDGET_DEFAULTS, + budgetForMinutes, + countWords, + DEFAULT_PACING, + estimatePlaytime, + PACING_BAND, + PACING_READING_SHARE, + PLAYTIME_DEFAULTS, +} from "./playtime.ts"; export { hint, newGame, step, view } from "./runtime.ts"; export * from "./schema.ts"; export { objectDescription, plainText, renderPlain } from "./text.ts"; +export { type Transcript, walkthroughTranscript } from "./transcript.ts"; export * from "./types.ts"; export { validateState } from "./validate-state.ts"; export { runWalkthrough } from "./walkthrough.ts"; diff --git a/packages/engine/src/playtime.ts b/packages/engine/src/playtime.ts index 97727fc..ea56892 100644 --- a/packages/engine/src/playtime.ts +++ b/packages/engine/src/playtime.ts @@ -20,7 +20,8 @@ * (`look `); O_unchosen: dialogue options the walkthrough never chooses. * * budgetForMinutes inverts the model with typical ratios of a pack - * (BUDGET_DEFAULTS), so a generator can be given a size budget up front. + * (BUDGET_DEFAULTS) and the reading share of the pack's pacing + * (PACING_READING_SHARE), so a generator can be given a size budget up front. * * Pure and deterministic: word counting uses a Unicode regular expression on * NFC-normalised text, no Intl or locale-dependent calls. @@ -29,7 +30,7 @@ import { parseCanonical } from "./commands.ts"; import { optionKey } from "./effects.ts"; import { newGame, step } from "./runtime.ts"; -import type { Effects, Pack, Text } from "./schema.ts"; +import type { Effects, Pacing, Pack, Text } from "./schema.ts"; import { markup, paragraphs } from "./text.ts"; import type { BudgetOptions, @@ -55,10 +56,32 @@ export const PLAYTIME_DEFAULTS = { secondsPerCommand: 10, secondsPerChoice: 6, coverage: 0.6, - failedAttemptsPerCommand: 0.5, + /** + * Unproductive attempts per productive command. The playtests of + * packs/letzte-nacht-der-reichsmark (74 walkthrough steps, 47 of them + * commands) logged 180 and 226 commands; after the optional looks and + * dialogue options the model counts separately, that leaves about 0.9 and 1.8 + * attempts per command. 1.0 is the cautious end of that range. + */ + failedAttemptsPerCommand: 1, tolerance: 0.25, } as const; +/** + * Target share of the expected play time spent reading, per pacing (spec + * section 17). A pack without `pacing` is sized as 'balanced'. + */ +export const PACING_READING_SHARE: Readonly> = { + narrative: 0.6, + balanced: 0.45, + puzzle: 0.3, +}; + +/** Allowed absolute deviation of the reading share from its pacing target (playtime.pacing). */ +export const PACING_BAND = 0.1; + +export const DEFAULT_PACING: Pacing = "balanced"; + /** * Typical ratios of a pack, calibrated against packs/locked-study (English) * and the German test fixture packages/engine/test/fixtures/runtime/hafen.yaml @@ -74,8 +97,6 @@ export const BUDGET_DEFAULTS = { optionalWordRatio: 0.6, /** D_path ≈ 0.25 · all walkthrough steps (measured: 0.28). */ choiceShare: 0.25, - /** W_path ≈ 20 · C_path: words of new text per productive command (measured: 20.7). */ - wordsPerCommand: 20, /** L_unseen ≈ 0.5 · C_path (measured: 0.56). */ unseenLooksPerCommand: 0.5, /** O_unchosen ≈ 0.25 · D_path (measured: 0.14; rounded up, longer games have more side topics). */ @@ -234,14 +255,14 @@ interface Counts { oUnchosen: number; } -/** The two model formulas. */ -function modelMinutes(n: Counts, p: Params): { min: number; expected: number } { +/** The two model formulas, plus the reading part of the expected time. */ +function modelMinutes(n: Counts, p: Params): { min: number; expected: number; reading: number } { const min = n.wPath / p.wpm + (n.cPath * p.tCmd + n.dPath * p.tChoice) / 60; const expected = min + (p.c * n.wOptional) / p.wpm + (p.c * n.lUnseen * p.tCmd + p.c * n.oUnchosen * p.tChoice + p.f * n.cPath * p.tCmd) / 60; - return { min, expected }; + return { min, expected, reading: (n.wPath + p.c * n.wOptional) / p.wpm }; } /** Count everything the model needs from a pack. */ @@ -381,6 +402,8 @@ export function estimatePlaytime(pack: Pack, options: PlaytimeOptions = {}): Pla const target = options.targetMinutes !== undefined ? positive(options.targetMinutes, "targetMinutes") : (pack.playtime ?? null); const rawDeviation = target === null ? null : minutes.expected / target - 1; + const readingShare = minutes.expected > 0 ? minutes.reading / minutes.expected : 0; + const pacing = pack.pacing ?? null; const diagnostics: Diagnostic[] = []; const expectedText = `≈ ${wholeMinutes(minutes.expected)} min expected (speedrun ${wholeMinutes(minutes.min)} min)`; @@ -389,7 +412,8 @@ export function estimatePlaytime(pack: Pack, options: PlaytimeOptions = {}): Pla `${plural(n.dPath, "dialogue choice", "dialogue choices")}; optional: ${plural(n.wOptional, "word", "words")}, ` + `${plural(n.lUnseen, "unexamined object", "unexamined objects")}, ` + `${plural(n.oUnchosen, "unchosen dialogue option", "unchosen dialogue options")}; ` + - `reading speed ${p.wpm} words/min (${pack.language}).`; + `reading speed ${p.wpm} words/min (${pack.language}); reading ${Math.round(readingShare * 100)}% of the expected time` + + `${pacing === null ? "" : ` (pacing ${pacing}: target ${Math.round(PACING_READING_SHARE[pacing] * 100)}%)`}.`; const partial = r.ok ? "" : ` The walkthrough does not reach a winning ending, so this covers only its first ${plural(r.accepted, "accepted step", "accepted steps")}.`; @@ -411,7 +435,21 @@ export function estimatePlaytime(pack: Pack, options: PlaytimeOptions = {}): Pla }); } if (r.ok && target !== null && rawDeviation !== null && Math.abs(rawDeviation) > p.tolerance) { - diagnostics.push(deviationWarning(n, p, minutes, target, rawDeviation, options.targetMinutes === undefined)); + diagnostics.push( + deviationWarning( + n, + p, + minutes, + target, + rawDeviation, + options.targetMinutes === undefined, + pacing ?? DEFAULT_PACING, + ), + ); + } + if (r.ok && pacing !== null) { + const warning = pacingWarning(minutes, readingShare, pacing, p); + if (warning !== null) diagnostics.push(warning); } return { @@ -425,7 +463,9 @@ export function estimatePlaytime(pack: Pack, options: PlaytimeOptions = {}): Pla unchosenOptions: n.oUnchosen, failedAttempts: round(p.f * n.cPath, 2), }, - minutes: { min: round(minutes.min, 2), expected: round(minutes.expected, 2) }, + minutes: { min: round(minutes.min, 2), expected: round(minutes.expected, 2), reading: round(minutes.reading, 2) }, + readingShare: round(readingShare, 3), + pacing, target, deviation: rawDeviation === null ? null : round(rawDeviation, 3), diagnostics, @@ -440,11 +480,13 @@ function deviationWarning( target: number, deviation: number, targetFromPack: boolean, + pacing: Pacing, ): Diagnostic { const delta = Math.abs(target - minutes.expected); const steps = n.cPath + n.dPath; // Minutes per walkthrough step, text and side content included, as in this pack (else as in a typical pack). - const perStep = steps > 0 ? minutes.expected / steps : budgetModel(p, BUDGET_DEFAULTS).perStep; + const perStep = + steps > 0 ? minutes.expected / steps : typicalMinutesPerStep(p, ratios({}), PACING_READING_SHARE[pacing]); const commands = Math.max(1, Math.round(delta / perStep)); const pct = Math.round(Math.abs(deviation) * 100); const head = @@ -454,11 +496,19 @@ function deviationWarning( if (deviation < 0) { const optionalWords = roundWords((delta * p.wpm) / Math.max(p.c, 0.01)); const puzzles = puzzleRange(delta); - const ways = [ + const mechanics = [ puzzles === null ? null : `add ${puzzles}`, `${puzzles === null ? "add " : ""}≈ ${plural(commands, "walkthrough command", "walkthrough commands")}`, - `≈ ${thousands(optionalWords)} words of optional dialogue/description`, - ].filter((w) => w !== null); + ]; + // A narrative pack grows by its scenes first: prose the walkthrough shows (read in full) or optional text. + const ways = ( + pacing === "narrative" + ? [ + `add ≈ ${thousands(roundWords(delta * p.wpm))} words of scene prose along the walkthrough (or ≈ ${thousands(optionalWords)} of optional dialogue/description)`, + ...mechanics, + ] + : [...mechanics, `≈ ${thousands(optionalWords)} words of optional dialogue/description`] + ).filter((w) => w !== null); return { severity: "warning", code: "playtime.too-short", @@ -485,6 +535,44 @@ function deviationWarning( }; } +/** playtime.pacing: the reading share is outside the band of the declared pacing. */ +function pacingWarning( + minutes: { expected: number; reading: number }, + readingShare: number, + pacing: Pacing, + p: Params, +): Diagnostic | null { + const goal = PACING_READING_SHARE[pacing]; + if (Math.abs(readingShare - goal) <= PACING_BAND) return null; + const pct = (x: number) => `${Math.round(x * 100)}%`; + const head = + `Reading is ${pct(readingShare)} of the expected play time; pacing ${pacing} aims at ${pct(goal)} ` + + `(${pct(goal - PACING_BAND)}–${pct(goal + PACING_BAND)})`; + const interaction = minutes.expected - minutes.reading; + if (readingShare < goal) { + // Reading minutes needed so that reading / (reading + interaction) reaches the lower edge of the band. + const low = goal - PACING_BAND; + const words = roundWords(((low * interaction) / (1 - low) - minutes.reading) * p.wpm); + return { + severity: "warning", + code: "playtime.pacing", + path: "pacing", + message: + `${head}: the story is told too thinly for its mechanics. Write out the scenes along the walkthrough ` + + `(≈ ${thousands(words)} more words: arrivals, turning points of conversations, what a clue means, transitions ` + + "between acts), or cut commands that tell nothing. Do not pad descriptions with adjectives.", + }; + } + return { + severity: "warning", + code: "playtime.pacing", + path: "pacing", + message: + `${head}: the player reads much more than they act. Give scenes something to do (an examination, a dialogue ` + + "choice), trim description, or declare a pacing that fits the pack.", + }; +} + // --------------------------------------------------------------------------- // Budget // --------------------------------------------------------------------------- @@ -492,7 +580,6 @@ function deviationWarning( interface Ratios { optionalWordRatio: number; choiceShare: number; - wordsPerCommand: number; unseenLooksPerCommand: number; unchosenOptionsPerChoice: number; } @@ -503,7 +590,6 @@ function ratios(options: BudgetOptions): Ratios { return { optionalWordRatio: share(options.optionalWordRatio ?? BUDGET_DEFAULTS.optionalWordRatio, "optionalWordRatio"), choiceShare, - wordsPerCommand: share(options.wordsPerCommand ?? BUDGET_DEFAULTS.wordsPerCommand, "wordsPerCommand"), unseenLooksPerCommand: share( options.unseenLooksPerCommand ?? BUDGET_DEFAULTS.unseenLooksPerCommand, "unseenLooksPerCommand", @@ -515,27 +601,32 @@ function ratios(options: BudgetOptions): Ratios { }; } -/** - * The model per walkthrough step under typical ratios: with S steps, - * C_path = (1 - d)·S, D_path = d·S, W_path = k·C_path, W_optional = o·W_path, - * L_unseen = l·C_path, O_unchosen = u·D_path, so minutes_expected = S · perStep - * and the pack has S · wordsPerStep player-visible words. - */ -function budgetModel(p: Params, q: Ratios): { perStep: number; wordsPerStep: number } { - const commandShare = 1 - q.choiceShare; - const perCommand = - (q.wordsPerCommand * (1 + p.c * q.optionalWordRatio)) / p.wpm + - (p.tCmd * (1 + p.f + p.c * q.unseenLooksPerCommand)) / 60; +/** Interaction minutes per walkthrough step under typical ratios: tapping, wrong attempts, side looks and options. */ +function interactionPerStep(p: Params, q: Ratios): number { + const perCommand = (p.tCmd * (1 + p.f + p.c * q.unseenLooksPerCommand)) / 60; const perChoice = (p.tChoice * (1 + p.c * q.unchosenOptionsPerChoice)) / 60; - return { - perStep: commandShare * perCommand + q.choiceShare * perChoice, - wordsPerStep: commandShare * q.wordsPerCommand * (1 + q.optionalWordRatio), - }; + return (1 - q.choiceShare) * perCommand + q.choiceShare * perChoice; +} + +/** Expected minutes per walkthrough step, reading included, for a pack whose reading share is `share`. */ +function typicalMinutesPerStep(p: Params, q: Ratios, share: number): number { + return interactionPerStep(p, q) / (1 - share); +} + +function readingShareOf(options: BudgetOptions): number { + const value = options.readingShare ?? PACING_READING_SHARE[options.pacing ?? DEFAULT_PACING]; + if (!Number.isFinite(value) || value <= 0 || value >= 1) { + throw new RangeError("playtime: readingShare must be between 0 and 1"); + } + return value; } /** - * A size budget for a target length: the inverse of the model under typical - * ratios (BUDGET_DEFAULTS). The ranges span ±tolerance/2 around the target, so + * A size budget for a target length: the inverse of the model. The reading + * share of the pacing splits the minutes into reading and interaction: + * interaction sizes the walkthrough (steps · interactionPerStep), reading + * sizes the text (W_path + c · W_optional = reading minutes · wpm, with + * W_optional = o · W_path). The ranges span ±tolerance/2 around the target, so * any combination of words and steps inside them lands within the tolerance * (the model is increasing in both). */ @@ -543,10 +634,12 @@ export function budgetForMinutes(minutes: number, language: string, options: Bud positive(minutes, "minutes"); const p = params(language, options); const q = ratios(options); - const { perStep, wordsPerStep } = budgetModel(p, q); + const readShare = readingShareOf(options); + const steps = ((1 - readShare) * minutes) / interactionPerStep(p, q); + const pathWords = (readShare * minutes * p.wpm) / (1 + p.c * q.optionalWordRatio); + const words = pathWords * (1 + q.optionalWordRatio); + const wordsPerCommand = pathWords / Math.max(1, (1 - q.choiceShare) * steps); const band = p.tolerance / 2; - const steps = minutes / perStep; - const words = steps * wordsPerStep; const stepRange = { min: Math.max(1, Math.ceil(steps * (1 - band))), max: Math.max(1, Math.floor(steps * (1 + band))), @@ -561,10 +654,11 @@ export function budgetForMinutes(minutes: number, language: string, options: Bud const pathShare = Math.round(100 / (1 + q.optionalWordRatio)); const notes = [ - `Target: about ${round(minutes, 1)} minutes for a typical first play (reading speed ${p.wpm} words per minute, language ${language}).`, + `Target: about ${round(minutes, 1)} minutes for a typical first play (reading speed ${p.wpm} words per minute, language ${language}), ` + + `about ${Math.round(readShare * 100)}% of it reading${options.pacing === undefined ? "" : ` (pacing ${options.pacing})`}.`, `Walkthrough: ${stepRange.min}–${stepRange.max} steps, about ${Math.round(q.choiceShare * 100)}% of them dialogue choices (choose).`, `Text: ${thousands(wordRange.min)}–${thousands(wordRange.max)} player-visible words in the whole pack, about ${pathShare}% of them ` + - `shown along the walkthrough (about ${round(q.wordsPerCommand, 1)} words of new text per command), the rest in optional ` + + `shown along the walkthrough (about ${Math.round(wordsPerCommand)} words of new text per command), the rest in optional ` + "descriptions, dialogue branches and custom responses to wrong attempts.", `Side content: ${perUnit(q.unseenLooksPerCommand, "described object", "walkthrough command")} that the walkthrough never ` + `examines, and ${perUnit(q.unchosenOptionsPerChoice, "dialogue option", "dialogue choice")} that it never chooses.`, diff --git a/packages/engine/src/schema.ts b/packages/engine/src/schema.ts index adea4c6..ba26fc9 100644 --- a/packages/engine/src/schema.ts +++ b/packages/engine/src/schema.ts @@ -488,6 +488,13 @@ export const PackSchema = z.strictObject({ generator: z.strictObject({ pipeline: z.string().min(1).optional(), notes: z.string().min(1).optional() }).optional(), /** Target play time in minutes; `lexvm check` compares its play time estimate against it (spec section 17). */ playtime: z.number().int().positive().optional(), + /** + * How the play time divides between reading and interaction (spec section 17): + * 'narrative' (about 60% reading), 'balanced' (about 45%), 'puzzle' (about 30%). + * Sizes the budget, sets the text budgets (section 4) and, when declared, + * makes `lexvm check` compare the reading share against it. + */ + pacing: z.enum(["narrative", "balanced", "puzzle"]).optional(), maxScore: z.number().int().positive().optional(), start: z.strictObject({ room: IdSchema, @@ -514,5 +521,7 @@ export const PackSchema = z.strictObject({ /** A parsed, normalised pack. */ export type Pack = z.output; +/** How the play time divides between reading and interaction. */ +export type Pacing = NonNullable; /** What authors (and LLMs) write, before normalisation. */ export type PackInput = z.input; diff --git a/packages/engine/src/transcript.ts b/packages/engine/src/transcript.ts new file mode 100644 index 0000000..644ba25 --- /dev/null +++ b/packages/engine/src/transcript.ts @@ -0,0 +1,76 @@ +/** + * The walkthrough as a reader sees it: the whole game text of one winning + * play, in order, as Markdown. It is the artifact for reviewing the story + * (authoring guide, "Story and scenes"): verification proves that a pack can + * be won, the transcript shows whether it can be followed. + */ + +import { parseCanonical } from "./commands.ts"; +import { newGame, step } from "./runtime.ts"; +import type { Pack } from "./schema.ts"; +import type { OutputBlock } from "./types.ts"; + +export interface Transcript { + /** Markdown: room titles as headings, the player's commands as quotes, system lines left out. */ + markdown: string; + /** Accepted walkthrough steps. */ + steps: number; + /** Every step accepted and a winning ending reached. */ + ok: boolean; +} + +function blocksToMarkdown(blocks: OutputBlock[], out: string[]): void { + let prev: OutputBlock["kind"] | null = null; + for (const block of blocks) { + const text = block.spans + .map((s) => s.text) + .join("") + .trim(); + if (text === "") continue; + switch (block.kind) { + case "echo": + out.push(`> ${text}`); + break; + case "room-title": + out.push(`## ${text}`); + break; + case "system": + break; + case "ending": + out.push(prev === "ending" ? text : `### ${text}`); + break; + default: + out.push(text); + } + prev = block.kind; + } +} + +/** Replay pack.walkthrough from a new game and render everything the player reads. Stops at the first problem. */ +export function walkthroughTranscript(pack: Pack): Transcript { + const out: string[] = [`# ${pack.title}`]; + if (pack.subtitle !== undefined) out.push(`*${pack.subtitle}*`); + const game = newGame(pack); + blocksToMarkdown(game.output, out); + let state = game.state; + let steps = 0; + let failed = false; + for (const text of pack.walkthrough) { + const cmd = state.ended === null ? parseCanonical(text) : null; + if (cmd === null) { + failed = true; + break; + } + const result = step(pack, state, cmd); + if (result.status !== "ok") { + failed = true; + break; + } + steps++; + blocksToMarkdown(result.output, out); + state = result.state; + } + const ok = !failed && state.ended !== null && pack.endings[state.ended]?.win === true; + if (!ok) out.push(`*(The walkthrough stops here after ${steps} accepted steps without a winning ending.)*`); + return { markdown: `${out.join("\n\n")}\n`, steps, ok }; +} diff --git a/packages/engine/src/types.ts b/packages/engine/src/types.ts index 9d4f0cd..57fbc3c 100644 --- a/packages/engine/src/types.ts +++ b/packages/engine/src/types.ts @@ -8,7 +8,7 @@ * can be saved, hashed, compared and sent anywhere. * - Functions never mutate their inputs; they return new state. */ -import type { Id } from "./schema.ts"; +import type { Id, Pacing } from "./schema.ts"; // --------------------------------------------------------------------------- // State @@ -267,7 +267,7 @@ export interface PlaytimeOptions { secondsPerChoice?: number; /** c: share of the optional content a typical player sees. Default 0.6. */ coverage?: number; - /** f: unproductive attempts per productive command. Default 0.5. */ + /** f: unproductive attempts per productive command. Default 1. */ failedAttemptsPerCommand?: number; /** Allowed relative deviation of the expected time from the target. Default 0.25. */ tolerance?: number; @@ -299,12 +299,16 @@ export interface PlaytimeReport { failedAttempts: number; }; /** min: speedrun along the walkthrough; expected: a typical first play. Rounded to 0.01. */ - minutes: { min: number; expected: number }; + minutes: { min: number; expected: number; reading: number }; + /** Share of the expected time spent reading (reading / expected), rounded to 0.001. */ + readingShare: number; + /** pack.pacing, or null when the pack declares none. */ + pacing: Pacing | null; /** options.targetMinutes ?? pack.playtime ?? null. */ target: number | null; /** expected / target - 1, rounded to 0.001; null without a target. */ deviation: number | null; - /** playtime.estimate (always), playtime.no-target, playtime.too-short, playtime.too-long. */ + /** playtime.estimate (always), playtime.no-target, playtime.too-short, playtime.too-long, playtime.pacing. */ diagnostics: Diagnostic[]; } @@ -314,8 +318,10 @@ export interface BudgetOptions extends PlaytimeOptions { optionalWordRatio?: number; /** D_path / all walkthrough steps. Default 0.25. */ choiceShare?: number; - /** W_path / C_path: words of new text per productive command. */ - wordsPerCommand?: number; + /** Pacing whose reading share sizes the budget. Default 'balanced'. */ + pacing?: Pacing; + /** Share of the minutes spent reading, between 0 and 1; overrides pacing. */ + readingShare?: number; /** L_unseen / C_path. */ unseenLooksPerCommand?: number; /** O_unchosen / D_path. */ diff --git a/packages/engine/test/playtime.test.ts b/packages/engine/test/playtime.test.ts index 3e81889..a5e59c9 100644 --- a/packages/engine/test/playtime.test.ts +++ b/packages/engine/test/playtime.test.ts @@ -1,5 +1,15 @@ import { describe, expect, it } from "vitest"; -import { BUDGET_DEFAULTS, budgetForMinutes, countWords, estimatePlaytime, PLAYTIME_DEFAULTS } from "../src/playtime.ts"; +import { analyze } from "../src/analyze.ts"; +import { textLimits } from "../src/analyze-text.ts"; +import { + BUDGET_DEFAULTS, + budgetForMinutes, + countWords, + estimatePlaytime, + PACING_BAND, + PACING_READING_SHARE, + PLAYTIME_DEFAULTS, +} from "../src/playtime.ts"; import type { Pack } from "../src/schema.ts"; import type { PlaytimeReport } from "../src/types.ts"; import { deepFreeze, loadFixture, loadLockedStudy, makePack } from "./fixtures/runtime/helpers.ts"; @@ -120,7 +130,7 @@ describe("estimatePlaytime: counting", () => { expect(r.commands.unseenLooks).toBe(1); // ask and back were never chosen; bye was. expect(r.commands.unchosenOptions).toBe(2); - expect(r.commands.failedAttempts).toBe(2); + expect(r.commands.failedAttempts).toBe(4); }); it("applies the formulas with the default parameters", () => { @@ -141,7 +151,7 @@ describe("estimatePlaytime: counting", () => { }); describe("estimatePlaytime: reference packs", () => { - it("estimates packs/locked-study close to its five-minute target", () => { + it("estimates packs/locked-study close to its seven-minute target", () => { const r = estimatePlaytime(loadLockedStudy()); expect(r.language).toBe("en"); expect(r.wordsPerMinute).toBe(230); @@ -152,12 +162,12 @@ describe("estimatePlaytime: reference packs", () => { expect(r.commands).toMatchObject({ path: 13, choices: 4, unchosenOptions: 0 }); expect(r.minutes.min).toBeGreaterThan(3); expect(r.minutes.min).toBeLessThan(r.minutes.expected); - expect(r.minutes.expected).toBeGreaterThan(4.5); - expect(r.minutes.expected).toBeLessThan(7.5); - expect(r.target).toBe(5); + expect(r.minutes.expected).toBeGreaterThan(6); + expect(r.minutes.expected).toBeLessThan(8.5); + expect(r.target).toBe(7); expect(Math.abs(r.deviation!)).toBeLessThanOrEqual(PLAYTIME_DEFAULTS.tolerance); expect(codes(r)).toEqual(["playtime.estimate"]); - expect(r.diagnostics[0]!.message).toMatch(/^≈ \d+ min expected \(speedrun \d+ min\); target 5 min\. /); + expect(r.diagnostics[0]!.message).toMatch(/^≈ \d+ min expected \(speedrun \d+ min\); target 7 min\. /); }); it("estimates the German fixture with the German reading speed and suggests a playtime", () => { @@ -333,3 +343,68 @@ describe("budgetForMinutes", () => { } }); }); + +describe("pacing", () => { + const mid = (r: { min: number; max: number }) => (r.min + r.max) / 2; + + it("sizes the budget by the reading share: narrative packs get more words and fewer steps", () => { + for (const language of ["de", "en"]) { + const puzzle = budgetForMinutes(45, language, { pacing: "puzzle" }); + const balanced = budgetForMinutes(45, language); + const narrative = budgetForMinutes(45, language, { pacing: "narrative" }); + expect(mid(narrative.words)).toBeGreaterThan(mid(balanced.words)); + expect(mid(balanced.words)).toBeGreaterThan(mid(puzzle.words)); + expect(mid(narrative.walkthroughSteps)).toBeLessThan(mid(balanced.walkthroughSteps)); + expect(mid(balanced.walkthroughSteps)).toBeLessThan(mid(puzzle.walkthroughSteps)); + expect(narrative.notes[0]).toContain("60% of it reading (pacing narrative)"); + } + // Words scale with the reading share: twice the share, twice the words. + const a = budgetForMinutes(60, "de", { readingShare: 0.3 }); + const b = budgetForMinutes(60, "de", { readingShare: 0.6 }); + expect(mid(b.words) / mid(a.words)).toBeCloseTo(2, 1); + expect(() => budgetForMinutes(30, "de", { readingShare: 1 })).toThrow(RangeError); + }); + + it("reports the reading share and warns only when a declared pacing is missed", () => { + const plain = estimatePlaytime(loadLockedStudy()); + expect(plain.pacing).toBeNull(); + expect(plain.readingShare).toBeGreaterThan(0.1); + expect(plain.readingShare).toBeLessThan(0.4); + expect(plain.minutes.reading).toBeCloseTo(plain.readingShare * plain.minutes.expected, 1); + expect(plain.diagnostics[0]!.message).toMatch(/reading \d+% of the expected time\./); + expect(codes(plain)).toEqual(["playtime.estimate"]); + + const narrative = estimatePlaytime({ ...loadLockedStudy(), pacing: "narrative" }); + expect(narrative.readingShare).toBeLessThan(PACING_READING_SHARE.narrative - PACING_BAND); + const warning = narrative.diagnostics.find((d) => d.code === "playtime.pacing"); + expect(warning).toMatchObject({ severity: "warning", path: "pacing" }); + expect(warning!.message).toContain("Write out the scenes"); + expect(narrative.diagnostics[0]!.message).toContain("(pacing narrative: target 60%)"); + + const puzzle = estimatePlaytime({ ...loadLockedStudy(), pacing: "puzzle" }); + expect(codes(puzzle)).not.toContain("playtime.pacing"); + }); + + it("suggests scene prose first when a narrative pack is too short", () => { + const r = estimatePlaytime({ ...loadLockedStudy(), pacing: "narrative" }, { targetMinutes: 20 }); + const short = r.diagnostics.find((d) => d.code === "playtime.too-short"); + expect(short!.message).toMatch(/min short: add ≈ [\d,]+ words of scene prose along the walkthrough/); + const balanced = estimatePlaytime(loadLockedStudy(), { targetMinutes: 20 }); + expect(balanced.diagnostics.find((d) => d.code === "playtime.too-short")!.message).toMatch(/min short: add \d/); + }); + + it("gives narrative packs longer text budgets, but not longer buttons", () => { + expect(textLimits("narrative").dialogueSay).toBeGreaterThan(textLimits(undefined).dialogueSay); + expect(textLimits("narrative").roomDescription).toBeGreaterThan(textLimits("balanced").roomDescription); + expect(textLimits("narrative").optionText).toBe(textLimits("puzzle").optionText); + expect(textLimits("narrative").name).toBe(textLimits("puzzle").name); + const long = (pacing: "narrative" | undefined) => { + const pack = { ...loadLockedStudy(), pacing }; + const object = Object.values(pack.objects).find((o) => o.description !== undefined)!; + object.description = "y".repeat(500); + return analyze(pack).filter((d) => d.code === "text.too-long").length; + }; + expect(long(undefined)).toBe(1); + expect(long("narrative")).toBe(0); + }); +}); diff --git a/packages/engine/test/transcript.test.ts b/packages/engine/test/transcript.test.ts new file mode 100644 index 0000000..366b494 --- /dev/null +++ b/packages/engine/test/transcript.test.ts @@ -0,0 +1,25 @@ +import { describe, expect, it } from "vitest"; +import { walkthroughTranscript } from "../src/transcript.ts"; +import { loadLockedStudy } from "./fixtures/runtime/helpers.ts"; + +describe("walkthroughTranscript", () => { + it("renders the whole winning play as Markdown, without system lines", () => { + const pack = loadLockedStudy(); + const t = walkthroughTranscript(pack); + expect(t.ok).toBe(true); + expect(t.steps).toBe(pack.walkthrough.length); + expect(t.markdown.startsWith(`# ${pack.title}\n`)).toBe(true); + expect(t.markdown).toContain("## Entrance Hall"); + expect(t.markdown).toMatch(/\n> \S/); + expect(t.markdown).toMatch(/\n### /); + expect(t.markdown).not.toMatch(/\n\(/); + }); + + it("stops at the first rejected step and says so", () => { + const pack = { ...loadLockedStudy(), walkthrough: ["go nowhere_at_all"] }; + const t = walkthroughTranscript(pack); + expect(t.ok).toBe(false); + expect(t.steps).toBe(0); + expect(t.markdown).toContain("The walkthrough stops here after 0 accepted steps"); + }); +}); diff --git a/packs/README.md b/packs/README.md index e608a99..ee13a87 100644 --- a/packs/README.md +++ b/packs/README.md @@ -10,8 +10,8 @@ releases as `.lexpack.json`. | Pack | Language | Length | License | Status | |---|---|---|---|---| -| [`letzte-nacht-der-reichsmark`](letzte-nacht-der-reichsmark/pack.yaml): *Die letzte Nacht der Reichsmark* | German | 45 minutes (estimated 47, speedrun 24; 74-step walkthrough) | CC-BY-4.0 | Noir mystery, Hamburg 1948; design notes in [`design/`](letzte-nacht-der-reichsmark/design/) | -| [`locked-study`](locked-study/pack.yaml): *The Locked Study* | English | 5 minutes (estimated 6; 17-step walkthrough) | CC0-1.0 | Demo and reference example for authors and the prompt kit | +| [`letzte-nacht-der-reichsmark`](letzte-nacht-der-reichsmark/pack.yaml): *Die letzte Nacht der Reichsmark* | German | 65 minutes, narrative pacing (estimated 68, 59% reading, speedrun 39; 74-step walkthrough) | CC-BY-4.0 | Noir mystery, Hamburg 1948; design notes in [`design/`](letzte-nacht-der-reichsmark/design/) | +| [`locked-study`](locked-study/pack.yaml): *The Locked Study* | English | 7 minutes (estimated 7; 17-step walkthrough) | CC0-1.0 | Demo and reference example for authors and the prompt kit | Length is the pack's `playtime` target, shown on its library card; the estimate is what `lexvm check` computes from the texts and the walkthrough. diff --git a/packs/letzte-nacht-der-reichsmark/design/CHANGES.md b/packs/letzte-nacht-der-reichsmark/design/CHANGES.md index c1e6a2c..2af3711 100644 --- a/packs/letzte-nacht-der-reichsmark/design/CHANGES.md +++ b/packs/letzte-nacht-der-reichsmark/design/CHANGES.md @@ -357,3 +357,76 @@ answers players asked for; the merged dialogue steps save about half a minute. Text: every hard limit holds; above style.md's soft targets are only `h_verhoer` step 2 (122 characters) and the names from world.md listed above. + +## Narrative revision + +Input: a review of the playtested pack. The mechanics and the puzzles were +sound, but the story was hard to follow: telegram-style sentences, scenes +without arrivals or transitions, characters reduced to the facts a puzzle +needs. The truth, the motives and the backstory lived in these design files +and reached the player only in fragments. A second note asked for fewer +harbour terms that readers outside northern Germany do not know. + +### Diagnosis + +Measured on the pack before this revision: median sentence length six words, +78% of all sentences eight words or shorter; about 6,000 player-visible words +against about 20,000 words of design documents. Three rules had pushed the +text there: style.md's »6–14 words, one observation per sentence«, the +authoring guide's advice to grow a game through mechanics rather than text, +and the play time model, which priced a command at 18 seconds of tapping but +only 8 of reading and therefore made every added sentence a cost. The +integration pass and playtest round 1 both cut text to meet the 45-minute +target. The engine and prompt changes that address the cause are recorded in +[ADR 0012](../../../docs/adr/0012-narrative-pacing.md). + +### Decisions + +1. **Pacing `narrative`, `playtime: 65`.** The mechanics stay exactly as they + were (same ids, conditions, effects, walkthrough, score and state space: + 6,869 states). Keeping 45 minutes with a 60% reading share would have + meant cutting about a third of the puzzles. With the recalibrated model + the estimate is about 68 minutes, 59% of it reading (before: 51 minutes + with the new model, 46% reading). +2. **New [story.md](story.md):** the truth with every motive, the + through-line, a scene plan with arrival, turn and way out per scene, and a + revelation map that names, for every fact the ending relies on, where the + player learns it. +3. **style.md:** varied rhythm instead of 6–14 words; Voss thinks (one or two + sentences after a clue that changes the case); scenes instead of data + fields; narrative text budgets; the plain-language glossary. +4. **Texts rewritten scene by scene** (rooms, dialogues, solving responses, + deductions, intro, endings). Notable additions, all text only: + - the intro sets up Voss's past as Asmussen's insurer, which the finale + pays off; + - Anni's scene ends with Voss ordering the three leads; + - Kröger's first talk ends with Voss noting that he had his four claims + ready, which teaches the interrogation as a checklist; + - Asmussen's warning ends with Voss's conclusion (he denied Speicher K + before anyone asked); + - every deduction says what it changes; D4 turns the case from »where is + Jakob« to »who wants him gone«; + - Tadeusz's scene points to the tally sheet (or confirms it) and links + Speicher K to Asmussen's card; + - the confession is a scene: the fall, the doctor Kröger wanted, the + water every evening; the Persilschein is explained in one sentence; + - the crossing is told on arrival at the water side, not before the + player boards; + - the finale gives each proof a reaction; the endings name what happens + to every character. + New conditional lines use `if` effects that only print text. +5. **Plain language.** Harbour terms replaced or explained on first use; the + table is in style.md. Display names changed: Ladeliste (200 Kisten), + ZĂ€hlzettel (180 Kisten), Schuppen 17, Vierter Stock, BrandschutztĂŒr, + Krögers SchlĂŒssel, BĂŒrotĂŒr, Asmussens BĂŒro, LastkĂ€hne, Lastkahn »Elise 7«. + The old words stay as synonyms. Hints use the new names. +6. **Version 1.1.0.** + +### Verification + +`lexvm check`: 0 errors, 0 warnings; walkthrough 74 steps, 25/25; +exploration complete, 6,869 states, 0 dead ends. A comparison of the +compiled pack before and after, with every text field, name, synonym and +hint step removed, is identical: the revision changes no mechanics. Both +tap-walkthrough end-to-end tests pass. `lexvm transcript` prints the text a +player reads along the walkthrough (about 5,800 words, before about 3,000). diff --git a/packs/letzte-nacht-der-reichsmark/design/cast.md b/packs/letzte-nacht-der-reichsmark/design/cast.md index d928af6..a09ed97 100644 --- a/packs/letzte-nacht-der-reichsmark/design/cast.md +++ b/packs/letzte-nacht-der-reichsmark/design/cast.md @@ -374,7 +374,7 @@ answer, as LucasArts would have it. ## Reactions outside dialogues (command rules) Tap-first players show and give things directly. Specific rules come first, -then one catch-all per NPC (guide, section 6). All of these are text only, +then one catch-all per NPC (guide, section 7). All of these are text only, unless noted. | Command | Reaction | diff --git a/packs/letzte-nacht-der-reichsmark/design/concept.md b/packs/letzte-nacht-der-reichsmark/design/concept.md index 04ddec2..966d8d3 100644 --- a/packs/letzte-nacht-der-reichsmark/design/concept.md +++ b/packs/letzte-nacht-der-reichsmark/design/concept.md @@ -12,7 +12,8 @@ in [style.md](style.md). | `subtitle` | Ein Hamburger Kriminalfall, Juni 1948 | | `language` | `de` | | `policy` | `forgiving` | -| `playtime` | 45 (raised from 40 after playtests; estimate 47) | +| `playtime` | 65 (45 before the narrative revision; see CHANGES.md) | +| `pacing` | `narrative` (about 60% of the play time is reading) | | `maxScore` | 25 | | `license` | Recommended `CC0-1.0`, like the demo pack, so the pack can also serve as a reference example for the prompt kit. Final call: product owner. | | `start.room` | `detektei` | @@ -132,9 +133,10 @@ Full ending drafts are in [puzzles.md](puzzles.md#endings). ## 5. Play time -- **Estimated play time:** 35–50 minutes (`playtime: 40`; `lexvm check` - estimates about 47, a speedrun about 24). The game is heavy on reading and - dialogue. +- **Estimated play time:** about 65 minutes (`playtime: 65`, + `pacing: narrative`; `lexvm check` estimates about 68 with 59% reading, a + speedrun about 39). Before the narrative revision the target was 45 and the + text was cut to meet it; see CHANGES.md, »Narrative revision«. - **Critical path:** 74 canonical commands (see the walkthrough in [puzzles.md](puzzles.md#walkthrough)). Typical sessions take 2–2.5 times as many taps, for looking around, wrong attempts and re-reading the diff --git a/packs/letzte-nacht-der-reichsmark/design/story.md b/packs/letzte-nacht-der-reichsmark/design/story.md new file mode 100644 index 0000000..97fe2e5 --- /dev/null +++ b/packs/letzte-nacht-der-reichsmark/design/story.md @@ -0,0 +1,122 @@ +# Story + +The narrative backbone of *Die letzte Nacht der Reichsmark*, written after +the first playtest review found the pack's story hard to follow: the +mechanics were sound, but the truth, the motives and the transitions lived +in these design documents and reached the player only as fragments. This +document is binding for every player-facing text, like +[style.md](style.md). Ids are the pack's ids. + +## 1. The truth + +In causal order; the full version with dates is +[concept.md, section 2](concept.md#2-the-truth-solution). + +1. Thursday night, 17 June 1948: Kröger's gang unloads 200 crates of NAAFI + cigarettes, lot 4471, from the »Elspeth Gray«. On Asmussen's order Kröger + lowers 20 crates into Asmussen's barge »Elise 7« and, standing in for the + tally clerk, writes 180 on the tally sheet. Asmussen hoards for Monday, + when goods will sell for D-Mark. +2. Jakob counts 200, as he counts everything since his captivity. At half past + one he leaves his notebook with Tadeusz (»Wenn ich bis morgen nicht zurĂŒck + bin, gib es Anni«) and follows the barge to Speicher K. +3. Kröger catches him at the hatch on the fourth floor; Jakob falls down the + hatch stairs and breaks his leg. Kröger wants a doctor. Asmussen arrives and + forbids it: »Kein Arzt. Ärzte reden.« Jakob is to stay upstairs until the + goods are gone on Monday. Nobody believes a thief. +4. Friday dawn: Kröger plants two cartons in Jakob's locker 23 with the + foreman's spare key (Jakob's own key has hung at home since Thursday noon) + and opens the locker for the police at seven. At six he has sold five + cartons to Lene: »Der Rest gehört dem Kaffeemann aus der Speicherstadt.« +5. Friday evening, out of guilt, Kröger brings Anni 200 Reichsmark in an + envelope stamped »A. & Co. · Speicher K«, »von der Kolonne«. Every + evening since he has borrowed Tadeusz's boat to take water to Jakob; + Tadeusz looks away, because a displaced person who sees too much is the + first suspect. +6. Saturday: Anni hires Voss with exactly that money. If it is hush money, + it should at least speak for Jakob. + +**Why each one acts.** Asmussen: money, and the certainty that men like him +are always washed clean (he wrote Kröger's Persilschein). Kröger: fear of +losing that Persilschein, then guilt. Tadeusz: fear, learned over five years +of forced labour, and loyalty that fights it. Lene: business, and three huts' +distance from the Brodersens. Anni: pride, and three ration cards for Sunday. +Voss: a bill for the rent, a past as Asmussen's insurer who never asked where +cargo came from, and a client who pays in money that dies tonight. + +## 2. Through-line + +- **Goal:** find Jakob, and prove he is no thief, before the money changes and + the goods disappear on Monday. +- **Voss at the start:** a missing-person case for an accused thief, paid in + Reichsmark. Voss expects to find a man who ran. +- **Voss at the end:** Jakob was made a thief so he could be kept; the brute + wanted a doctor and the gentleman said no; and Voss's own old signature on + Asmussen's cargo policies is part of the same habit of not asking. +- **The open question that pulls the player on:** first »Wo ist Jakob?«, then + »Wer hat ihm das angehĂ€ngt?«, then »Wer gibt Kröger die Befehle?«. + +## 3. Scene plan + +Act II's strands can be played in any order; the order below is the +walkthrough's. + +| # | Scene | Arrival | Turn | Way out | +|---|---|---|---|---| +| 1 | **Detektei** (`detektei`, `anni_auftrag`) | Rain in a half-bombed office; a woman holds her handbag as if it could be taken. Voss's own past (insurer until 1943) is set up. | Anni tells the accusation and the key; her fee is 200 Reichsmark that die tomorrow. Voss lays out the three leads. | The locker, the friend at the Zollkanal, the foreman. Down to the Baumwall. | +| 2 | **Baumwall** (`baumwall`) | The city's crossroads under the viaduct; the poster about the new money. | The deadline becomes concrete: Sunday the money, Monday the shop windows. | Three directions and the tram. | +| 3 | **Kaischuppen 17** (`kaischuppen`, P1, D2, D3, D4) | »DIEB« chalked on locker 23. The lading list on the gate. | The locker's own door says a second key exists; the pack the police missed carries a lot number; the notebook turns two facts into a proof: the goods came ashore when only Kröger could reach the locker. | Jakob is innocent, so someone made him a thief. Who saw him last? Tadeusz. | +| 4 | **Kneipe, first talk** (`kroeger_verhoer`) | A basement bar; a foreman who does not drink his Köm; a gang that does not look. | Kröger states his four claims unasked: a man who prepared his story. | He becomes the suspect. On the way out, Asmussen. | +| 5 | **Asmussen's warning** (`asmussen_warnung`) | A camel-hair coat in the rain, the only dry hat in Hamburg. He knows Voss from before the war. | He denies Brodersen and Speicher K before anyone asked about Speicher K, and offers 500 Reichsmark to go home. | Voss now knows who is afraid. | +| 6 | **Zollkanal** (`tadeusz_gespraech`) | Black water, the customs gate, a watchman with a thermos for two. | Proof of innocence opens him: Jakob's counting notebook, the barge, the register. And why he kept silent. | The tally sheet: fishing it out with the boat hook. | +| 7 | **Tallyzettel** (P2, D1) | The glass cabin, the clipboard out of reach. | 180 in Kröger's hand against 200 on the list. Twenty crates are missing, and the counter was Kröger. | Who profits? St. Pauli. | +| 8 | **Hinterhof** (P4, `lene_gespraech`, D5) | Paying with dead money; the back door opens on a market under a tarpaulin. | Lene recognises the lot; Kröger sold it to her and visited the Brodersens with an envelope. | Anni has not told everything. | +| 9 | **NissenhĂŒtte** (P6, `anni_huette`) | A tin half-barrel in the mud, a child asleep, a stove in June. | The envelope with Asmussen's stamp: the fee was hush money, and Anni used it to buy the truth. | Back to Kröger with everything. | +| 10 | **Das Verhör** (P7, confession) | Kröger expects Voss now. | Four claims fall one by one; the confession is a scene: the fall, the doctor he wanted, the water he brings every night. He gives the key and Asmussen's Persilschein. | Across the water. | +| 11 | **Die Überfahrt** (`t_rudern`, `speicher_wasserseite`) | Tadeusz admits his own guilt and rows across the customs border. | The empty »Elise 7« smelling of coffee. | Up the stairs. | +| 12 | **Treppenhaus, Vierter Boden** (P8, `jakob_gespraech`, D6) | Darkness, a lantern, a door with the only new lock in the building. | Jakob alive; the man in the camel-hair coat forbade the doctor; the note in green ink matches the Persilschein. | Down to the light under the office door. | +| 13 | **Die Abrechnung** (`asmussen_finale`) | Mahogany and real coffee; as if the war had never happened. | Three lies, three proofs; the bribe and the jab at Voss's past; the refusal. | The choice: the British or the Kripo. | +| 14 | **Ending** | Dawn. | Who pays what. | The queue at the ration-card office; the full shop windows on Monday. | + +## 4. Revelation map + +| Fact | Scene | Source | +|---|---|---| +| Jakob is accused, locker 23, Kröger opened it for the police | 1 | Anni (`an_jakob`), `clue_auftrag` | +| Jakob's key hung at home since Thursday noon | 1 | Anni (`an_schluessel`) | +| Voss insured Asmussen's cargo before the war | 1, 5, 13 | intro, Asmussen (`a_w_start`, `f_angebot`) | +| A second key is with the foreman | 3 | locker door (`open_spind`) | +| Lot 4471 = »Elspeth Gray«, Thursday night | 3 | lading list, deduction D2 | +| Only Kröger could reach the locker when the goods arrived | 3 | deduction D3, D4 | +| Kröger's four claims | 4 | Kröger (`k_hub`) | +| Asmussen fears questions about Speicher K | 5 | Asmussen (`a_w_geld`), Voss's thought | +| Jakob followed the »Elise 7« at 01:30; it belongs to A. & Co., Speicher K | 6 | notebook and register (`t_heft`, `t_elise`) | +| Why Tadeusz kept silent | 6, 11 | Tadeusz (`t_dp`, `t_rudern`) | +| Kröger counted 180 himself | 7 | tally sheet | +| Kröger sold lot 4471 for the »Kaffeemann«; visited Anni with an envelope | 8 | Lene | +| The fee is Asmussen's hush money | 9 | Anni (`ah_kuvert`, `ah_warum`) | +| The fall, the doctor Kröger wanted, the water every evening | 10 | confession | +| Asmussen wrote Kröger's Persilschein | 10 | `k_wo` | +| Asmussen forbade the doctor | 12 | Jakob (`j_was`) | +| Asmussen wrote the order to keep Jakob upstairs | 12 | note + D6 | +| What happens to everyone | 14 | endings | + +## 5. Key scenes + +The prose is in the pack files, where it is read: the intro and endings in +`pack.yaml`, the arrivals in `rooms.yaml`, the turning points in +`dialogues.yaml` and the solving responses and deductions in `rules.yaml`. + +## 6. Voice + +Voss reasons like the claims adjuster Voss used to be: times, access, who +signed. The narrator stays dry and lets details carry the feeling. Sample: + +> Du gehst die Zeiten noch einmal durch, wie frĂŒher bei einem Schaden, der zu +> glatt aussah. Donnerstagmittag hĂ€ngt Jakobs SchlĂŒssel zu Hause am Haken. +> Donnerstagnacht kommt die Ware an Land. Freitag frĂŒh liegt sie in seinem +> Spind. Dazwischen gibt es nur einen SchlĂŒssel, und den hat der Vorarbeiter. + +> Kröger sieht lange in sein Glas, als stĂŒnde darin, was er sagen soll. Dann +> schiebt er es weg, und du merkst, dass er die ganze Zeit nur darauf gewartet +> hat, dass jemand fragt. diff --git a/packs/letzte-nacht-der-reichsmark/design/style.md b/packs/letzte-nacht-der-reichsmark/design/style.md index 10929ab..9c050f8 100644 --- a/packs/letzte-nacht-der-reichsmark/design/style.md +++ b/packs/letzte-nacht-der-reichsmark/design/style.md @@ -11,15 +11,27 @@ German, as they appear in the game. - **Second person, »du«, present tense:** »Du stehst unter dem Viadukt.« Never »ich«, never past tense in narration. Characters may use the past in their own speech. -- **Short sentences.** Aim for 6–14 words. One observation or one action per - sentence. A paragraph has 1–3 sentences. -- **The first sentence says what matters** (what is here, what changed); the - atmosphere comes second. +- **Varied rhythm, not telegram style.** Sentences range from three words to + thirty. A long sentence carries an observation together with its + consequence; a short one sets the accent after it. Thoughts that belong + together are joined by their logic (»weil«, »aber«, »also«, »wĂ€hrend«, + »obwohl«). Never three fragments in a row. (The first version of this pack + prescribed 6–14 words per sentence; the result had a median of six words + and read like a telegram. See CHANGES.md, »Narrative revision«.) +- **Scenes, not data fields.** Every place has an arrival (where you are, who + is here, what is at stake), every conversation a turning point that is + written out with a reaction, every chapter a transition that says why Voss + goes on and where. The scene plan is in [story.md](story.md). +- **Voss thinks.** After a clue that changes the case, one or two sentences + in Voss's head say what it means: what is now certain, what is still open, + what follows. Voss reasons like a claims adjuster: lists, times, who had + access. Never a summary of what the player has just read. - **Noir, dry and precise.** The narrator notices a lot and judges little. Understatement beats adjectives: »Der Schuppen ist lang wie eine Straße und leer bis auf den Geruch.« not »Der riesige, unheimliche, verlassene Schuppen  « -- **One image per paragraph,** sensory and concrete. The pack's palette: +- **Images, sensory and concrete,** one leading image per paragraph. The + pack's palette: - Rain on corrugated iron. - Coal smoke, diesel, tar, wet jute. - Raw coffee, Muckefuck, Köm, petroleum. @@ -94,11 +106,32 @@ as a joke at someone's expense. ## Period vocabulary -**Use** (all attested for Hamburg 1948): - -- **Harbour:** Schauermann, Kolonne, Vorarbeiter, Hieve, Tallymann, - Tallyzettel, Löschliste, Kaischuppen, Schute, Bootshaken, Freihafen, - Zollkanal, Speicher, Boden (warehouse floor), Ladeluke, Kontor. +**Understandable first.** Players outside northern Germany must follow every +sentence without a glossary. Narration uses plain words for harbour work; a +period term appears only where it carries the setting, and is explained the +first time it occurs, in the sentence itself (»ein Köm, ein KĂŒmmelschnaps«, +»Muckefuck, Ersatzkaffee«, »Persilschein, so nennt man diese +GefĂ€lligkeitsbescheinigungen  «). The plain-language revision replaced: + +| Harbour term (old) | In the pack now | +|---|---| +| Schauermann, Schauerleute | Hafenarbeiter | +| Hieve | Kiste (am Kran), Last am Haken | +| Löschliste, löschen | Ladeliste, entladen | +| Tallyzettel, Tallymann, Tally | ZĂ€hlzettel, KontrollzĂ€hler, ZĂ€hlung | +| Kaischuppen 17 | Schuppen 17 (»ein Lagerschuppen am Kai«) | +| Schute, SchutenwĂ€chter, Schutenregister | Lastkahn, Wachmann bei den LastkĂ€hnen, Register | +| Boden (warehouse floor), BodentĂŒr, BodenschlĂŒssel | Stock, BrandschutztĂŒr, Krögers SchlĂŒssel | +| Kontor, KontortĂŒr, Kontorhaus | BĂŒro, BĂŒrotĂŒr, BĂŒrohaus | +| Lukentreppe, Wassertreppe | Treppe an der Ladeluke, Treppe ins Wasser | +| Ducht, Riemen, Fleet | Sitzbank, Ruder, Kanal | + +The old words stay as parser synonyms, so typed commands still work. + +**Use** (all attested for Hamburg 1948, explained where needed): + +- **Harbour:** Kolonne, Vorarbeiter, Bootshaken, Freihafen, Zollkanal, + Speicher, Ladeluke. - **Everyday life:** Lebensmittelkarte, Kartenstelle, Kopfgeld, NissenhĂŒtte, Straßenbahn, Hochbahn, Viadukt, LitfaßsĂ€ule. - **Black market:** Stangen, Amis, Kippen, Feuersteine, Bauchladen. @@ -168,19 +201,22 @@ When a line could be read as making light of any of the above, cut it. ## Length limits for phones -The authoring guide sets the hard limits; this pack aims lower: +The pack declares `pacing: narrative` (about 60% of the play time is +reading), so the narrative text budgets of the spec apply. They are upper +limits for scenes, not targets for every text. -| Text | Hard limit | Target in this pack | +| Text | Hard limit | Guidance in this pack | |---|---|---| -| Room description (rendered, all variants) | 600 | ≀ 400; current drafts 213–377 | -| Object description | 400 | ≀ 250 | -| Dialogue node `say` | 300 | ≀ 250 | +| Room description, first visit | 1000 | the arrival of the scene, 2–3 paragraphs | +| Room description, return visit | 1000 | one or two full sentences that still name every object | +| Object description | 600 | what is odd or useful about it; documents in full | +| Dialogue node `say` | 600 | turning points as a scene: line, reaction, line | | Option text | 80 | ≀ 60 | -| Rule message (`say`) | – | 1–2 sentences, ≀ 250 | -| Clue description | 400 | ≀ 300 | +| Rule message (`say`) | – | a reaction 1–3 sentences; a solving response may be a short scene | +| Clue description | 600 | the fact, its source, the open question | | Names | 24 | ≀ 20; no article | | Hint step | – | one sentence, ≀ 120 | -| Ending variant | – | ≀ 800 | +| Ending variant | – | ≀ 1600, three to five paragraphs | More rules for small screens: diff --git a/packs/letzte-nacht-der-reichsmark/dialogues.yaml b/packs/letzte-nacht-der-reichsmark/dialogues.yaml index 35e618e..4985fc0 100644 --- a/packs/letzte-nacht-der-reichsmark/dialogues.yaml +++ b/packs/letzte-nacht-der-reichsmark/dialogues.yaml @@ -2,10 +2,11 @@ # # Dialogues of »Die letzte Nacht der Reichsmark«. Design: design/cast.md # (dialogue plans), design/puzzles.md (walkthrough, score), design/style.md -# (voices). Option ids are unique across the whole pack. No option uses -# `once`: options that must disappear are gated on the clue they teach. -# A side question whose answer closes the topic ends the conversation -# instead of asking for a »Verstehe.« tap; talking again reopens the hub. +# (voices), design/story.md (scenes and turning points). Option ids are +# unique across the whole pack. No option uses `once`: options that must +# disappear are gated on the clue they teach. A side question whose answer +# closes the topic ends the conversation instead of asking for a +# »Verstehe.« tap; talking again reopens the hub. dialogues: # ------------------------------------------------------------------------- @@ -18,24 +19,24 @@ dialogues: start: an_start nodes: an_start: - say: "»Mein Mann ist weg. Jakob Brodersen, Schauermann. Seit Donnerstagnacht.« Sie sagt es wie eine Adresse, die sie zu oft aufschreiben musste." + say: "Die Frau sieht dich an, als mĂŒsste sie erst entscheiden, ob du es wert bist. Dann sagt sie es, ohne Umweg: »Mein Mann ist weg. Jakob Brodersen, Hafenarbeiter. Seit Donnerstagnacht.« Sie sagt es wie eine Adresse, die sie in den letzten zwei Tagen zu oft aufschreiben musste. »Ich heiße Anni. Die Polizei sucht ihn auch. Nur aus einem anderen Grund.«" options: - id: an_frag_jakob text: "»ErzĂ€hlen Sie mir von ihm.«" goto: an_jakob an_jakob: - say: "»Er ist in Krögers Kolonne, Kaischuppen 17. Jakob klaut nicht. Jakob zĂ€hlt. Seit Russland zĂ€hlt er jeden Löffel Suppe – und jede Hieve. Alles in ein Heft.«" + say: "»Er ist in Krögers Kolonne, Schuppen 17. Jakob klaut nicht. Jakob zĂ€hlt.« Zum ersten Mal sieht sie weg, auf ihre HĂ€nde. »Seit Russland zĂ€hlt er jeden Löffel Suppe, jede Stufe, jede Kiste, die der Kran aus einem Schiff hebt. Alles schreibt er in ein Heft. Das hat ihn durch die Gefangenschaft gebracht, sagt er.«" do: - - say: "Sie holt Luft. »Freitag frĂŒh haben sie seinen Spind aufgemacht, Nummer 23. Kröger hat aufgeschlossen, Kommissar Petersen hat zugesehen. Zwei Stangen englische Zigaretten. Jetzt ist Jakob ein Dieb, der abgehauen ist.«" + - say: "Sie holt Luft, und ihre Stimme wird hĂ€rter. »Freitag frĂŒh haben sie seinen Spind aufgemacht, Nummer 23. Kröger hat aufgeschlossen, das ist sein Vorarbeiter, und Kommissar Petersen hat zugesehen. Drin lagen zwei Stangen englische Zigaretten. Jetzt ist Jakob ein Dieb, der mit der Beute abgehauen ist. Das schreibt Petersen in seine Akte, und dann sucht er nicht weiter.«" - learn: clue_auftrag options: - id: an_frag_schluessel text: "»Wer hat einen SchlĂŒssel zu dem Spind?«" goto: an_schluessel an_schluessel: - say: "Sie legt einen kleinen SchlĂŒssel auf den Schreibtisch. »Jakob. Und der hĂ€ngt seit Donnerstagmittag bei uns am Haken. Er hatte ihn vergessen.«" + say: "Statt einer Antwort öffnet sie die Handtasche und legt einen kleinen SchlĂŒssel auf deinen Schreibtisch. An ihm hĂ€ngt eine Blechmarke mit der Nummer 23. »Jakob hat ihn. Und der hĂ€ngt seit Donnerstagmittag bei uns am Haken. Er hatte ihn vergessen, zum ersten Mal in elf Jahren. Ich hab es dem Kommissar gesagt. Er hat es nicht aufgeschrieben.«" do: - - say: Du schreibst mit, wie frĂŒher bei der Versicherung. Ein einzelner Eintrag im Notizbuch beweist nichts. Erst wenn du zwei kombinierst, die zusammenpassen, wird ein Schluss daraus. + - say: Du schreibst mit, wie frĂŒher bei der Versicherung, wenn ein Schaden zu glatt aussah. Ein einzelner Eintrag im Notizbuch beweist nichts. Erst wenn du zwei kombinierst, die zusammenpassen, wird ein Schluss daraus, und mit SchlĂŒssen kann man arbeiten. - learn: clue_schluessel - move: { object: spindschluessel, to: inventory } options: @@ -43,9 +44,10 @@ dialogues: text: "»Ich ĂŒbernehme den Fall. Ich finde ihn.«" goto: an_bezahlung an_bezahlung: - say: "Sie schiebt dir ein BĂŒndel Scheine hin. »Zweihundert Reichsmark. Ab morgen ist es Papier, also nehmen Sie es heute. Den Rest brauch ich Sonntag an der Kartenstelle: vierzig fĂŒr mich, vierzig fĂŒr Lotte, vierzig fĂŒr Jakob.«" + say: "Sie nickt, als hĂ€tte sie nichts anderes erwartet, und schiebt dir ein BĂŒndel Scheine ĂŒber den Tisch. »Zweihundert Reichsmark. Ab morgen ist es Papier, also nehmen Sie es heute. Den Rest brauch ich Sonntag an der Kartenstelle: vierzig fĂŒr mich, vierzig fĂŒr Lotte, vierzig fĂŒr Jakob.« Sie sagt den letzten Namen genauso fest wie die anderen." do: - - say: "»Fragen Sie Tadeusz am Zollkanal. Jakobs Freund. Ich bin in der Siedlung, HĂŒtte 14.« Dann ist sie fort. Auf dem Besucherstuhl bleibt ein nasser Fleck." + - say: "»Fragen Sie Tadeusz am Zollkanal. Er ist Jakobs Freund, sie trinken nachts zusammen Muckefuck, Ersatzkaffee aus der Thermoskanne. Ich bin in der Siedlung, HĂŒtte 14.« Dann ist sie fort, so schnell, wie man geht, wenn man nicht weinen will. Auf dem Besucherstuhl bleibt ein nasser Fleck." + - say: Du ordnest, was du hast. Ein Spind, zu dem Jakob seit Donnerstagmittag keinen SchlĂŒssel mehr hatte, und in dem trotzdem Diebesgut lag. Ein Freund am Zollkanal. Ein Vorarbeiter, der beim Aufschließen dabei war. Das ist nicht viel. Aber es ist mehr, als der Kommissar aufgeschrieben hat. - move: { object: reichsmark, to: inventory } - set: auftrag_angenommen - move: { object: anni, to: nissenhuette } @@ -62,8 +64,8 @@ dialogues: ah_hub: say: - when: { has: clue_schweigegeld } - text: "Anni lĂ€sst die Nadel sinken. »Haben Sie ihn gefunden, Voss?«" - - text: "»Und? Haben Sie was?« Die Nadel geht weiter durch den Stoff." + text: "Anni lĂ€sst die Nadel sinken. »Haben Sie ihn gefunden, Voss?« Sie fragt es jedes Mal, und jedes Mal klingt es, als hĂ€tte sie sich die Antwort schon selbst gegeben." + - text: "»Und? Haben Sie was?« Die Nadel geht weiter durch den Stoff, gleichmĂ€ĂŸig, als hinge davon etwas ab. Hinter der Wolldecke atmet Lotte im Schlaf." options: - id: ah_kuvert text: "»Kröger war Freitagabend hier. Mit einem Kuvert.«" @@ -81,10 +83,16 @@ dialogues: - id: ah_tschuess text: "»Ich melde mich.«" ah_kuvert: - say: "Lange sagt sie nichts. Dann holt sie die Blechdose vom Bord. Darin ein leeres Kuvert mit Stempel: â€șA. & Co. · Speicher Kâ€č. »Zweihundert Reichsmark. â€șVon der Kolonneâ€č, hat er gesagt.«" + say: "Lange sagt sie nichts. Die Nadel steckt im Stoff, ihre Hand liegt daneben. Dann steht sie auf, holt die Blechdose vom Bord und stellt sie vor dich hin, wie man einen Beweis vor Gericht hinlegt. Darin liegt nur noch ein leeres Kuvert mit einem Stempel: â€șA. & Co. · Speicher Kâ€č. »Zweihundert Reichsmark«, sagt sie. »â€șVon der Kolonneâ€č, hat er gesagt. Die Kolonne hat noch nie fĂŒr irgendwen gesammelt.«" do: - learn: clue_schweigegeld - score: 1 + - if: + when: { has: clue_asmussen } + then: + - say: Du drehst das Kuvert um. A. & Co., Speicher K, und Speicher K steht auch auf der Karte, die dir Asmussen am Baumwall in die Hand gedrĂŒckt hat. Kröger hat nicht sein eigenes Geld gebracht. Jemand hat ihm das Kuvert gefĂŒllt, und dieser Jemand sitzt in Speicher K. + else: + - say: Du drehst das Kuvert um. A. & Co., Speicher K. Kröger hat nicht sein eigenes Geld gebracht, nicht zweihundert Mark von einem Vorarbeiterlohn. Jemand hat ihm das Kuvert gefĂŒllt, und dieser Jemand sitzt in Speicher K. options: - id: ah_warum text: "»Und wo ist das Geld jetzt?«" @@ -92,17 +100,17 @@ dialogues: ah_warum: say: - when: { has: reichsmark } - text: "»In Ihrer Tasche, Voss. Ich hab Sie davon bezahlt. Wenn es schon Schweigegeld ist, soll es wenigstens fĂŒr Jakob reden.«" - - text: "»Ich hab Sie davon bezahlt, Voss. Wo es jetzt ist, will ich nicht wissen. Wenn es schon Schweigegeld ist, soll es wenigstens fĂŒr Jakob reden.«" + text: "Zum ersten Mal lĂ€chelt sie, und es ist kein freundliches LĂ€cheln. »In Ihrer Tasche, Voss. Ich hab Sie davon bezahlt. Ich hab mir gedacht: Wenn es schon Schweigegeld ist, soll es wenigstens fĂŒr Jakob reden.« Sie nimmt die Nadel wieder auf. »Jetzt reden Sie.«" + - text: "Zum ersten Mal lĂ€chelt sie, und es ist kein freundliches LĂ€cheln. »Ich hab Sie davon bezahlt, Voss. Wo es jetzt ist, will ich nicht wissen. Ich hab mir gedacht: Wenn es schon Schweigegeld ist, soll es wenigstens fĂŒr Jakob reden.« Sie nimmt die Nadel wieder auf. »Jetzt reden Sie.«" # No options: her line closes the scene. ah_lebt: say: - when: { has: clue_jakob_aussage } - text: "Anni legt die Nadel weg. »Haben Sie ihn gesehen?« Du nickst und richtest aus: Er hat richtig gezĂ€hlt. Sie nickt, als hĂ€tte sie nie etwas anderes geglaubt." - - text: "Anni legt die Nadel weg, sehr langsam. »Dann holen Sie ihn nach Hause. Was stehen Sie hier noch rum?« Sie dreht sich zur Wand, damit du ihr Gesicht nicht siehst." + text: "Anni legt die Nadel weg. »Haben Sie ihn gesehen?« Du nickst und erzĂ€hlst ihr vom vierten Stock, vom Bein, von der Wasserkanne, und dann richtest du aus, was er dir aufgetragen hat: Er hat richtig gezĂ€hlt. Sie nickt, als hĂ€tte sie nie etwas anderes geglaubt, und erst als du schon an der TĂŒr bist, hörst du, dass sie sehr leise weint." + - text: "Anni legt die Nadel weg, sehr langsam, als könnte sie sonst etwas zerbrechen. »Lebt«, sagt sie nur. Dann wird ihre Stimme wieder die alte. »Dann holen Sie ihn nach Hause. Was stehen Sie hier noch rum?« Sie dreht sich zur Wand, damit du ihr Gesicht nicht siehst." # No options: the scene ends on Anni's gesture. ah_lotte: - say: "»Sie schlĂ€ft. Wer schlĂ€ft, hat keinen Hunger.«" + say: "»Sie schlĂ€ft.« Anni sieht zur Wolldecke hinĂŒber. »Wer schlĂ€ft, hat keinen Hunger. Morgen gibt es vierzig neue Mark fĂŒr sie, und am Montag vielleicht Brot, das nach Brot schmeckt.«" # ------------------------------------------------------------------------- # P7: Das Verhör. Default dialogue of kroeger (in kneipe). @@ -120,13 +128,17 @@ dialogues: k_hub: say: - when: { has: clue_gestaendnis } - text: "Kröger dreht sein leeres Glas. »Was wollen Se noch? Ich hab alles gesagt.«" + text: "Kröger dreht sein leeres Glas zwischen den Fingern. »Was wollen Se noch? Ich hab alles gesagt. Mehr als in zwanzig Jahren.«" - when: { counter: { name: kroeger_stufe, gte: 1 } } - text: "Kröger sieht dich kommen und dreht das Glas weg. »Se geben wohl nie auf, Voss.«" + text: "Kröger sieht dich kommen und dreht das Glas weg, als könnte er so auch sich selbst wegdrehen. »Se geben wohl nie auf, Voss.«" - when: { has: clue_kroeger_version } - text: "»Na, Voss. Noch ’ne Runde?« Kröger schiebt dir keinen Stuhl hin." - - text: "Kröger mustert dich ĂŒber seinen Köm hinweg. »Die SpĂŒrnase von der Brodersen. Hundertachtzig Kisten, sauber gezĂ€hlt, der Rest is Schwund. Brodersen hat um Mitternacht Schluss gemacht. Im Spind lag die Ware. Mit seiner Frau hab ich nix zu schaffen.«" + text: "»Na, Voss. Noch ’ne Runde?« Kröger schiebt dir keinen Stuhl hin, und seine Kolonne zwei Tische weiter hört auf zu reden." + - text: "Kröger mustert dich ĂŒber seinen Köm hinweg, bevor du etwas gesagt hast. »Die SpĂŒrnase von der Brodersen. Hab schon gehört.« Dann zĂ€hlt er es dir auf, Punkt fĂŒr Punkt, wie einer, der es geĂŒbt hat: »Hundertachtzig Kisten, sauber gezĂ€hlt, der Rest is Schwund. Brodersen hat um Mitternacht Schluss gemacht. Im Spind lag die Ware. Und mit seiner Frau hab ich nix zu schaffen.«" do: + - if: + when: { not: { has: clue_kroeger_version } } + then: + - say: Vier Behauptungen, fertig sortiert, bevor du eine einzige Frage gestellt hast. Wer so vorbereitet ist, hat damit gerechnet, dass jemand kommt. Du schreibst alle vier in dein Notizbuch. FĂŒr jede wirst du einen Beweis brauchen, und ohne Beweise lĂ€sst dich Kröger hier nur seinen Köm bewachen. - learn: clue_kroeger_version options: - id: k_verhoer1 @@ -154,7 +166,7 @@ dialogues: # Stage 1: Schwund. Valid: clue_kein_schwund (D5). k_s1: - say: "»Was fehlt, is Schwund. Im Hafen schwindet immer was. Kisten, Kaffee – Leute.«" + say: "Kröger lehnt sich zurĂŒck. »Was fehlt, is Schwund. Im Hafen schwindet immer was. Kisten, Kaffee  « Er macht eine Pause, die zu lang ist. »  Leute.«" do: - if: when: @@ -165,7 +177,7 @@ dialogues: - { has: clue_zaehlheft } - { has: clue_kein_schwund } then: - - say: Du hast nichts in der Hand, was dagegen hĂ€lt. Noch nicht. + - say: Er hat seine Geschichte, und du hast nichts in der Hand, was dagegen hĂ€lt. Noch nicht. Seine ZĂ€hlung mĂŒsstest du nachprĂŒfen, und herausfinden, wo die Ware hingeht. options: - id: k_s1_zwanzig text: "»Zwanzig Kisten fehlen. Und Sie haben gezĂ€hlt.«" @@ -177,27 +189,27 @@ dialogues: then: - say: - when: { has: clue_lene } - text: Gute Frage. Die Antwort steht schon in deinem Notizbuch, verteilt auf zwei EintrĂ€ge. Erst kombiniert nagelt sie ihn fest. - - text: Gute Frage. Eine fehlende Zahl ist noch kein Beweis. Wer verdient an den zwanzig Kisten? + text: Gute Frage, und die Antwort steht schon in deinem Notizbuch, verteilt auf zwei EintrĂ€ge. Erst kombiniert nagelt sie ihn fest. + - text: Gute Frage. Eine fehlende Zahl ist noch kein Beweis, solange keiner weiß, wo die Kisten geblieben sind. Wer verdient an zwanzig Kisten Zigaretten? goto: k_s1 - id: k_s1_lene text: "»Sie haben Lene Zigaretten verkauft.«" when: { has: clue_lene } do: - - say: "»’n paar Stangen. Was hat das mit meiner ZĂ€hlung zu tun?«" + - say: "»’n paar Stangen, na und? Die ganze Stadt verkauft Stangen. Was hat das mit meiner ZĂ€hlung zu tun?«" - if: when: { not: { has: clue_kein_schwund } } then: - say: - when: { has: clue_zwanzig_kisten } text: Mehr, als er glaubt. Die Antwort steht schon in deinem Notizbuch, verteilt auf zwei EintrĂ€ge. Erst kombiniert nagelt sie ihn fest. - - text: Mehr, als er glaubt. Hast du nachgeprĂŒft, was er gezĂ€hlt hat? + - text: Mehr, als er glaubt, aber das musst du erst beweisen. Hast du nachgeprĂŒft, was er gezĂ€hlt hat? goto: k_s1 - id: k_s1_kein_schwund text: "»Kein Schwund. Lene verkauft Ihr Los 4471.«" when: { has: clue_kein_schwund } do: - - say: "Kröger setzt das Glas an und trinkt doch nicht. »Lene redet viel, wenn der Tag lang is.«" + - say: "Kröger setzt das Glas an und trinkt doch nicht. Du erzĂ€hlst ihm, was auf der Ladeliste steht, was auf seinem ZĂ€hlzettel steht und was Lene im Bauchladen hat, und mit jedem Satz wird er stiller. »Lene redet viel, wenn der Tag lang is«, sagt er schließlich. Aber er sagt nicht mehr, dass es Schwund war." - counter: { name: kroeger_stufe, set: 1 } - score: 1 goto: k_s2 @@ -209,30 +221,30 @@ dialogues: - if: when: { not: { has: clue_kein_schwund } } then: - - say: Ein Heft gegen sein Wort. Gegen den Schwund brauchst du einen Schluss aus deinem Notizbuch, keinen einzelnen Eintrag. + - say: Ein Heft gegen sein Wort, und das Heft gehört einem Mann, den die Polizei fĂŒr einen Dieb hĂ€lt. Gegen den Schwund brauchst du einen Schluss aus deinem Notizbuch, keinen einzelnen Eintrag. goto: k_s1 - id: k_s1_raus text: "»Ein andermal.«" # Stage 2: Mitternacht Schluss. Valid: clue_zaehlheft (P5). k_s2: - say: "Kröger lehnt sich zurĂŒck. »Brodersen hat um Mitternacht Schluss gemacht. Danach weiß ich nix.«" + say: "Kröger lehnt sich zurĂŒck und sucht sich die nĂ€chste Behauptung aus, wie man sich beim Kartenspiel die nĂ€chste Karte aussucht. »Brodersen hat um Mitternacht Schluss gemacht. Danach weiß ich nix. Wo einer nach Feierabend hingeht, is nich meine Sache.«" options: - id: k_s2_tally - text: "»Ihr Tallyzettel sagt hundertachtzig.«" + text: "»Ihr ZĂ€hlzettel sagt hundertachtzig.«" when: { has: clue_tally } do: - - say: "»Eben. Steht da was von Brodersen?«" + - say: "»Eben. Hundertachtzig. Steht da was von Brodersen?«" - if: when: { not: { has: clue_zaehlheft } } then: - - say: Nichts. Wer hat Jakob nach Mitternacht noch gesehen? Und wo ist sein Heft? + - say: Nichts. Wer hat Jakob nach Mitternacht noch gesehen? Und wo ist das Heft, in das er alles schreibt? goto: k_s2 - id: k_s2_heft - text: "»Sein ZĂ€hlheft sagt: letzte Hieve um 01:20.«" + text: "»Sein ZĂ€hlheft sagt: letzte Kiste um 01:20.«" when: { has: clue_zaehlheft } do: - - say: "Kröger dreht das Glas einmal um sich selbst. »Brodersen und sein Heft. Der zĂ€hlt sogar die Möwen.«" + - say: "Du legst das Heft auf den Tisch, aufgeschlagen bei der letzten Zeile. Kröger muss nicht lesen, um zu wissen, was dasteht. Er dreht das Glas einmal um sich selbst. »Brodersen und sein Heft«, sagt er, und es klingt fast zĂ€rtlich. »Der zĂ€hlt sogar die Möwen.« Um Mitternacht hat keiner Schluss gemacht. Das weiß er, und jetzt weiß er, dass du es weißt." - counter: { name: kroeger_stufe, set: 2 } - score: 1 goto: k_s3 @@ -242,13 +254,13 @@ dialogues: # Stage 3: Dieb bleibt Dieb. Valid: clue_untergeschoben (D4). # Each half of D4 alone gets a rebuttal that names the other half. k_s3: - say: "»Dieb bleibt Dieb. Ich hab den Spind selbst aufgeschlossen. Vor der Polizei.«" + say: "Kröger beugt sich vor. Jetzt kommt die Behauptung, auf die er sich am meisten verlĂ€sst. »Dieb bleibt Dieb. Ich hab den Spind selbst aufgeschlossen, vor der Polizei. Da lag die Ware. Das hat der Kommissar mit eigenen Augen gesehen.«" options: - id: k_s3_frisch text: "»Die Ware kam erst Donnerstagnacht an Land.«" when: { has: clue_frisch_an_land } do: - - say: "»Na und? Er war ja Donnerstagnacht an Bord.«" + - say: "»Na und? Er war ja Donnerstagnacht an Bord. Da kann er sich bedient haben.«" goto: k_s3 - id: k_s3_nur text: "»Seit Donnerstagmittag kam nur Ihr SchlĂŒssel an den Spind.«" @@ -260,7 +272,7 @@ dialogues: text: "»Sie haben ihm die Stangen untergeschoben.«" when: { has: clue_untergeschoben } do: - - say: "Zum ersten Mal sagt Kröger nichts. Zwei Tische weiter hört seine Kolonne auf zu reden." + - say: "Du legst es ihm in zwei SĂ€tzen hin. Die Ware kam Donnerstagnacht an Land. Da hing Jakobs SchlĂŒssel schon seit Stunden zu Hause am Haken, und der einzige andere steckt in Krögers Tasche. Zum ersten Mal sagt Kröger nichts. Zwei Tische weiter hört seine Kolonne auf zu reden, und das Schweigen breitet sich durch die Kneipe aus, bis sogar der Wirt nicht mehr zapft." - counter: { name: kroeger_stufe, set: 3 } - score: 1 goto: k_s4 @@ -269,7 +281,7 @@ dialogues: # Stage 4: Nix mit den Brodersens. Valid: clue_schweigegeld (P6). k_s4: - say: "Kröger wird laut. »Ich hab mit den Brodersens nix zu schaffen! Seine Frau kenn ich kaum.«" + say: "Kröger wird laut, und das ist neu. »Ich hab mit den Brodersens nix zu schaffen! Seine Frau kenn ich kaum!« Ein paar Köpfe drehen sich um. Er senkt die Stimme wieder, aber seine Hand um das Glas ist weiß geworden." options: - id: k_s4_lene text: "»Lene hat Sie Freitag bei den Brodersens gesehen.«" @@ -279,7 +291,7 @@ dialogues: - if: when: { not: { has: clue_schweigegeld } } then: - - say: Was in dem Kuvert war, weiß nur eine. Und die hat es dir nicht erzĂ€hlt. + - say: Beigestanden, mit einem Kuvert. Was in dem Kuvert war, weiß nur eine, und die hat es dir nicht erzĂ€hlt. goto: k_s4 - id: k_s4_heft text: "»Im Heft steht â€șK.â€č – K wie Kröger.«" @@ -289,7 +301,7 @@ dialogues: - if: when: { not: { has: clue_schweigegeld } } then: - - say: Ein Buchstabe reicht nicht. Was hat Kröger bei den Brodersens gewollt? Das weiß nur eine. + - say: Ein Buchstabe reicht nicht. Was hat Kröger am Freitagabend bei den Brodersens gewollt? Das weiß nur eine. goto: k_s4 - id: k_s4_kuvert text: "»Sie haben Anni zweihundert Reichsmark gebracht.«" @@ -302,8 +314,9 @@ dialogues: # Confession: linear, ends with the only optional toggle (kroeger_zeuge). k_gestaendnis: - say: "Kröger starrt in sein Glas. Lange. »Ich hab ihn nicht geschubst, ehrlich. Er is auf der Lukentreppe ausgerutscht, das Bein war hin. Ich wollt ’n Arzt holen.« Er schluckt. »Seitdem bring ich ihm jeden Abend Wasser. Jeden Abend.«" + say: "»Von der Kolonne«, sagst du. »In einem Kuvert mit dem Stempel von Speicher K.« Kröger starrt in sein Glas. Lange. Dann schiebt er es weg, und du merkst, dass er die ganze Zeit nur darauf gewartet hat, dass jemand fragt. »Ich hab ihn nicht geschubst, ehrlich. Er is mir nach, bis rauf zur Luke. Da is er auf der Treppe an der Ladeluke ausgerutscht, und das Bein war hin. Ich hab’s knacken hören.«" do: + - say: "Er schluckt. »Ich wollt ’n Arzt holen. Wirklich. Aber dann kam 
 es kam einer, der hat gesagt, das geht nich. Seitdem bring ich ihm jeden Abend Wasser. Jeden Abend, Voss. Mit dem Boot.« Er sieht dich an wie einer, der eine Last abgesetzt hat und nicht weiß, wohin mit den HĂ€nden." - learn: clue_gestaendnis - score: 2 options: @@ -312,9 +325,10 @@ dialogues: goto: k_wo # Location, key, Persilschein and the way across in one beat. k_wo: - say: "»Speicher K. Vierter Boden.« Er legt einen SchlĂŒssel auf den Tisch, dann ein gefaltetes Papier. »Das hat Asmussen mir geschrieben. Persilschein. Ohne den Wisch bin ich wieder der Kröger von dreiunddreißig.«" + say: "»Speicher K. Vierter Stock.« Er legt einen SchlĂŒssel an einer Schnur auf den Tisch, dann ein gefaltetes Papier, abgegriffen an den Kanten. »Das hat Asmussen mir geschrieben. Persilschein. Fleißiger, unpolitischer Arbeiter. Ohne den Wisch bin ich wieder der Kröger von dreiunddreißig, mit der Binde am Arm, und keiner gibt mir mehr ’ne Kolonne.«" do: - - say: "Â»Ăœber die BrĂŒcke kommen Se nachts nicht. Ich nehm jeden Abend das Boot vom WĂ€chter am Zollkanal. Der sieht weg. Der sieht immer weg.« Kröger hebt den Kopf. »Was wird jetzt aus mir?«" + - say: "Â»Ăœber die BrĂŒcke kommen Se nachts nicht, da is der Zoll. Ich nehm jeden Abend das Boot vom WĂ€chter am Zollkanal. Der sieht weg. Der sieht immer weg.« Kröger hebt den Kopf, und zum ersten Mal an diesem Abend fragt er etwas. »Was wird jetzt aus mir?«" + - say: "Ein Persilschein, so nennt man diese GefĂ€lligkeitsbescheinigungen, mit denen einer dem anderen bestĂ€tigt, er sei nie ein richtiger Nazi gewesen. Asmussen also. Der Mann, der Kröger damit reingewaschen hat, ist derselbe, dem Speicher K gehört und der am Baumwall nichts von Brodersen wissen wollte. Kröger hat einen Herrn, und er hat ihn gerade genannt, ohne es zu merken. Wer den Arzt verboten hat, kann dir nur einer sagen, der dabei war: Jakob." - move: { object: bodenschluessel, to: inventory } - learn: clue_persilschein options: @@ -322,13 +336,13 @@ dialogues: text: "»Sagen Sie gegen Asmussen aus. Dann sag ich fĂŒr Sie aus.«" do: - set: kroeger_zeuge - - say: "Kröger nickt einmal, wie beim Verladen." + - say: "Kröger nickt einmal, kurz und schwer, wie beim Verladen, wenn die Last am Haken sitzt. »Is gut«, sagt er. »Is gut.«" - id: k_g_richter text: "»Das entscheidet ein Richter.«" do: - - say: "Kröger nickt. Er hat nichts anderes erwartet." + - say: "Kröger nickt. Er hat nichts anderes erwartet, und vielleicht ist es ihm sogar lieber so." k_weg: - say: "Â»Ăœbers Wasser. Fragen Se den WĂ€chter am Zollkanal.« Er sieht auf seine HĂ€nde. »Und sagen Se Brodersen  « Er bricht ab. »Ach, lassen Se’s.«" + say: "Â»Ăœbers Wasser. Fragen Se den WĂ€chter am Zollkanal.« Er sieht auf seine HĂ€nde. »Und sagen Se Brodersen  « Er bricht ab und schĂŒttelt den Kopf, als wĂ€re der Satz zu schwer fĂŒr ihn. »Ach, lassen Se’s.«" # ------------------------------------------------------------------------- # Forced scene at the Baumwall. Started by enter rule asmussen_hinterhalt. @@ -339,7 +353,7 @@ dialogues: start: a_w_start nodes: a_w_start: - say: "Ein Mann im Kamelhaarmantel tritt aus dem Regen. Sein Hut ist der einzige trockene in Hamburg. Er reicht dir eine Karte. »Voss? Asmussen, Kaffee-Import. Sie haben vor dem Krieg meine Ladungen versichert. Jetzt fragen Sie im Hafen herum.«" + say: "Unter dem Viadukt löst sich ein Mann aus dem Regen, als hĂ€tte er auf dich gewartet. Kamelhaarmantel, Siegelring, und sein Hut ist der einzige trockene in Hamburg. Er reicht dir eine Karte, bevor du ausweichen kannst. »Voss, nicht wahr? Asmussen, Kaffee-Import. Sie haben vor dem Krieg meine Ladungen versichert.« Er lĂ€chelt. »Und jetzt fragen Sie im Hafen herum, höre ich.«" do: - learn: clue_asmussen options: @@ -347,13 +361,14 @@ dialogues: text: "»Kennen Sie Jakob Brodersen?«" goto: a_w_geld a_w_geld: - say: "»Ich kenne keinen Brodersen. Und Speicher K ist seit dreiundvierzig eine Ruine, da lagert niemand etwas.« Er zĂ€hlt Scheine ab. »FĂŒnfhundert Reichsmark. FĂŒr Ihre MĂŒhe. Gehen Sie nach Hause, Voss.«" + say: "»Ich kenne keinen Brodersen. Und Speicher K ist seit dreiundvierzig eine Ruine, da lagert niemand etwas.« Er zieht ein BĂŒndel aus der Manteltasche und zĂ€hlt Scheine ab, ohne hinzusehen. »FĂŒnfhundert Reichsmark. FĂŒr Ihre MĂŒhe, und fĂŒr die Erinnerung an alte Zeiten. Gehen Sie nach Hause, Voss. Es regnet.«" options: - id: a_w_ablehnen text: "»Behalten Sie’s. Ab morgen ist es Altpapier.«" do: - move: { object: asmussen, to: kontor } - - say: "Er lĂ€chelt, als kenne er den Witz schon. »Wie Sie meinen.« Der Mantel verschwindet Richtung Speicherstadt." + - say: "Er lĂ€chelt, als kenne er den Witz schon. »Wie Sie meinen.« Der Mantel verschwindet Richtung Speicherstadt, und der Regen schließt sich hinter ihm." + - say: Du siehst auf die Karte in deiner Hand. Nach Speicher K hatte ihn niemand gefragt, und trotzdem war es das Erste, was er abgestritten hat. Ein Mann, der fĂŒnfhundert Mark bietet, damit du aufhörst, hat Angst vor dem, was du findest, wenn du weitermachst. # ------------------------------------------------------------------------- # P4b: the backyard. Default dialogue of lene (in hinterhof). @@ -368,7 +383,7 @@ dialogues: say: - when: { has: clue_lene } text: "»Ich hab dir alles gesagt. Und ’n bisschen mehr.« Lene zĂ€hlt Feuersteine ab, als wĂ€rst du schon weg." - - text: "»Feuersteine, NĂ€hnadeln, gute RatschlĂ€ge, SchĂ€tzchen. Die RatschlĂ€ge kosten extra.«" + - text: "Lene lĂ€sst dich herankommen und sieht dabei nicht dich an, sondern deine Taschen. »Feuersteine, NĂ€hnadeln, gute RatschlĂ€ge, SchĂ€tzchen. Die RatschlĂ€ge kosten extra.«" options: - id: l_zigaretten text: "»Haben Sie auch Zigaretten?«" @@ -386,20 +401,21 @@ dialogues: - id: l_tschuess text: "»Schönen Abend noch.«" l_luege: - say: "»Zigaretten? Ich rauch nicht mal.« Unter den Hosenknöpfen in ihrem Bauchladen blitzt eine Banderole." + say: "»Zigaretten? Ich rauch nicht mal.« Sie sagt es, ohne zu zögern, aber unter den Hosenknöpfen in ihrem Bauchladen blitzt eine Banderole, und sie rĂŒckt die Knöpfe nicht zurecht." options: - id: l_zurueck1 text: "»NatĂŒrlich nicht.«" goto: l_hub l_redet: - say: "Lene sieht das PĂ€ckchen an, dann dich. »Freitag, sechs Uhr frĂŒh. Kröger. FĂŒnf Stangen, dieselbe Nummer. â€șDer Rest gehört dem Kaffeemann aus der Speicherstadtâ€č, hat er gesagt.«" + say: "Du hĂ€ltst ihr das PĂ€ckchen hin, die Banderole nach oben. Lene sieht es an, dann dich, und zum ersten Mal hört sie auf zu rechnen. »Freitag, sechs Uhr frĂŒh. Kröger. FĂŒnf Stangen, dieselbe Nummer, fĂŒr einen Preis, der zu gut war.« Sie spricht leise. »â€șDer Rest gehört dem Kaffeemann aus der Speicherstadtâ€č, hat er gesagt. Als ob ich das wissen wollte.«" do: - - say: "»Am Abend is er bei den Brodersens rein. Mit ’nem Kuvert. Ich wohn drei HĂŒtten weiter, ich seh so was.« Sie tippt an ihre SchaffnermĂŒtze. »Der Ratschlag war umsonst. Wegen Jakob.«" + - say: "»Und am Abend is er bei den Brodersens rein. Mit ’nem Kuvert in der Hand und ’nem Gesicht wie zur Beerdigung. Ich wohn drei HĂŒtten weiter, ich seh so was.« Sie tippt an ihre SchaffnermĂŒtze. »Der Ratschlag war umsonst, SchĂ€tzchen. Wegen Jakob. Der hat mir mal beim Ofen geholfen.«" - learn: clue_lene - score: 1 + - say: FĂŒnf Stangen fĂŒr Lene, der Rest fĂŒr einen Kaffeemann. Kröger hat die Ware nicht verloren, er hat sie verteilt. Und hinterher ist er mit einem Kuvert zu der Frau gegangen, deren Mann er zum Dieb gemacht hat. Davon hat Anni dir nichts erzĂ€hlt. # No options: she has said what she will say. l_montag: - say: "»Wart’s ab: Am Montag sind die Schaufenster voll. Und keiner fragt, wo das Zeug bis Sonntag war.«" + say: "»Wart’s ab: Am Montag sind die Schaufenster voll. Alles, was es seit Jahren nicht gibt, liegt dann da, als wĂ€r’s vom Himmel gefallen.« Sie lacht kurz. »Und keiner fragt, wo das Zeug bis Sonntag war. Ich mach dann wieder Straßenbahn.«" # ------------------------------------------------------------------------- # P5 and the Act III crossing. Default dialogue of tadeusz (in zollkanal). @@ -412,12 +428,12 @@ dialogues: t_hub: say: - when: { has: clue_jakob_aussage } - text: "Tadeusz hĂ€lt das Boot an der Kaimauer fest. Auf der Ducht stehen zwei Becher Muckefuck. Einer ist fĂŒr Jakob." + text: "Tadeusz hĂ€lt das Boot an der Kaimauer fest. Auf der Sitzbank stehen zwei Becher Muckefuck, und einer davon ist fĂŒr Jakob." - when: { flag: tadeusz_rudert } - text: "Tadeusz hĂ€lt das Boot an der Kaimauer fest. »Wann immer Sie so weit sind, Voss.«" + text: "Tadeusz hĂ€lt das Boot an der Kaimauer fest und sieht hinĂŒber zur Speicherstadt. »Wann immer Sie so weit sind, Voss.«" - when: { has: clue_zaehlheft } - text: "Die Thermoskanne steht offen. Tadeusz hat dir einen Becher eingeschenkt." - - text: "Tadeusz schraubt die Thermoskanne fester zu, als wĂ€re das GesprĂ€ch damit beendet." + text: "Die Thermoskanne steht offen, und Tadeusz hat dir einen Becher eingeschenkt. Er sieht aufs Wasser, wenn er spricht, als wĂ€re das leichter." + - text: "Tadeusz sieht dich kommen und schraubt die Thermoskanne fester zu, als wĂ€re das GesprĂ€ch damit schon beendet. Er ist schmal und Ă€lter, als er sein dĂŒrfte, und er wartet darauf, dass du zuerst etwas sagst." options: - id: t_jakob text: "»Sie sind Jakobs Freund.«" @@ -430,7 +446,7 @@ dialogues: - not: { has: clue_zaehlheft } goto: t_heft - id: t_ueberfahrt - text: "»Jakob lebt. Speicher K, vierter Boden.«" + text: "»Jakob lebt. Speicher K, vierter Stock.«" when: - has: clue_gestaendnis - not: { flag: tadeusz_rudert } @@ -443,30 +459,45 @@ dialogues: - id: t_tschuess text: "»Gute Nacht, Tadeusz.«" t_jakob: - say: "»Wir trinken jede Nacht zusammen Muckefuck, seit einem Jahr. Seit Donnerstag trinke ich allein.« Er sieht aufs Wasser. »Wenn Jakob ein Dieb ist, bin ich der Freund eines Diebes. Wenn nicht 
 dann ist das etwas anderes.«" + say: "»Wir trinken jede Nacht zusammen Muckefuck, seit einem Jahr. Er zĂ€hlt die KĂ€hne, ich zĂ€hle die Stunden.« Er sieht aufs Wasser. »Seit Donnerstag trinke ich allein. Wenn Jakob ein Dieb ist, bin ich der Freund eines Diebes, und das kann ich mir nicht leisten. Wenn nicht  « Er hebt die Schultern. »Dann ist das etwas anderes. Dann kommen Sie mit einem Beweis wieder.«" # No options: he has set his condition. t_heft: - say: "Er hört zu, ohne zu nicken. Dann holt er ein Heft aus der Wachbude. »Von Jakob. Um halb zwei. â€șWenn ich bis morgen nicht zurĂŒck bin, gib es Anni.â€č Ich habe es ihr nicht gegeben.«" + say: "Du erklĂ€rst es ihm: die Ware, die erst Donnerstagnacht an Land kam, und der SchlĂŒssel, der seit Mittag zu Hause hing. Er hört zu, ohne zu nicken. Dann steht er auf, geht in die Wachbude und kommt mit einem Heft zurĂŒck, dessen Ecken vom vielen BlĂ€ttern rund sind. »Von Jakob. Um halb zwei hat er es mir gegeben. â€șWenn ich bis morgen nicht zurĂŒck bin, gib es Anni.â€č« Er hĂ€lt es dir hin. »Ich habe es ihr nicht gegeben.«" do: - learn: clue_zaehlheft - score: 1 + - say: "Du blĂ€tterst bis zur letzten beschriebenen Seite. Jakobs Schrift ist klein und ordentlich, Zahl unter Zahl: â€ș200 Kisten, letzte 01:20. ZĂ€hlung 180?! K. lĂ€sst 20 Ki. in Elise 7. Geh hinterher.â€č Jakob hat gesehen, was du dir erst zusammenrechnen musstest, und er ist der Ware nachgegangen." options: - id: t_wohin text: "»Wohin ist er gegangen?«" goto: t_elise t_elise: - say: "»Hinter der Schute â€șElise 7â€č her, am Kanal entlang. Im Register steht, wem sie gehört: A. & Co., Speicher K.«" + say: "»Hinter dem Lastkahn â€șElise 7â€č her, am Kanal entlang, Richtung Speicherstadt. Ich habe ihm nachgesehen, bis der Regen ihn hatte.« Tadeusz schlĂ€gt das Register der LastkĂ€hne in der Wachbude auf und legt den Finger auf eine Zeile. »Hier steht, wem sie gehört: A. & Co., Speicher K.«" + do: + - if: + when: { has: clue_asmussen } + then: + - say: Speicher K. Das Haus, das Asmussen am Baumwall so eilig zur Ruine erklĂ€rt hat, obwohl niemand ihn danach gefragt hatte. options: - id: t_angst text: "»Warum haben Sie geschwiegen?«" goto: t_dp t_dp: - say: "»Am Freitag hat die Polizei â€șdie Polenâ€č befragt. FĂŒr Ihre Polizei bin ich ein DP, ein Mensch am falschen Ort. Und wer am falschen Ort ist, hat immer etwas gestohlen.«" + say: "Er antwortet nicht sofort. »Am Freitag hat die Polizei â€șdie Polenâ€č befragt. So hat es der Beamte gesagt, â€șdie Polenâ€č. FĂŒr Ihre Polizei bin ich ein DP, eine Displaced Person, ein Mensch am falschen Ort. Und wer am falschen Ort ist, hat immer etwas gestohlen.« Er dreht den Becher in den HĂ€nden. »Ein Heft von einem Dieb, bei einem Polen gefunden. Was meinen Sie, wem man geglaubt hĂ€tte?«" + do: + - if: + when: { has: clue_tally } + then: + - say: Du siehst noch einmal ins Heft. â€șZĂ€hlung 180?!â€č Jakob hat dieselbe Zahl gesehen, die auf Krögers ZĂ€hlzettel steht, und gewusst, dass sie nicht stimmt. + else: + - say: Du siehst noch einmal ins Heft. â€șZĂ€hlung 180?!â€č Den ZĂ€hlzettel der Nacht hast du in Schuppen 17 hĂ€ngen sehen, hinter Glas, außer Reichweite. Mit etwas Langem, das einen Haken hat, kĂ€me man vielleicht heran. # No options: the answer ends the scene. t_rudern: - say: "Tadeusz steht auf. »Kröger nimmt jeden Abend mein Boot. Ich habe weggesehen. Ich habe fĂŒnf Jahre gelernt, nichts zu sehen.« Er macht das Boot los. »Die BrĂŒcke ist zu. Das Wasser nicht.«" + say: "Tadeusz steht auf, sehr langsam. »Kröger nimmt jeden Abend mein Boot. Er sagt, er holt Kaffee. Ich wusste, dass er lĂŒgt, und ich habe weggesehen.« Er sieht dich an. »Ich habe fĂŒnf Jahre gelernt, nichts zu sehen. Das verlernt man nicht in drei Jahren.« Dann geht er die Kaitreppe hinunter und macht das Boot los. »Die BrĂŒcke ist zu, Voss. Das Wasser nicht.«" + do: + - say: Unten im Boot nimmt er die Ruder und wartet, bis du eingestiegen bist. DrĂŒben, ĂŒber dem schwarzen Wasser, sind die Luken im vierten Stock von Speicher K frisch mit Brettern vernagelt. t_halina: - say: "»Auf Papiere. Kanada, als HolzfĂ€ller. Und auf einen Namen auf einer Suchliste: Halina Wrona, meine Schwester.« Er lĂ€chelt kaum. »Sie suchen einen Mann, ich suche eine Schwester. Wir haben beide nur Papier in der Hand.«" + say: "»Auf Papiere. Kanada, als HolzfĂ€ller, wenn sie mich nehmen. Und auf einen Namen auf einer Suchliste: Halina Wrona, meine Schwester. Sie war sechzehn, als man uns getrennt hat.« Er lĂ€chelt kaum. »Sie suchen einen Mann, Voss, ich suche eine Schwester. Wir haben beide nur Papier in der Hand.«" options: - id: t_zurueck2 text: "»Ich hoffe, Sie finden sie.«" @@ -482,8 +513,8 @@ dialogues: j_start: say: - when: { has: clue_jakob_aussage } - text: "»Bringen Sie’s zu Ende, Voss. Ich zĂ€hl solange die Tropfen vom Dach.«" - - text: "Der Mann am Pfeiler hebt die Hand gegen das Licht. »Zweihundert«, sagt er. »Ich hab zweihundert gezĂ€hlt. Ich zĂ€hl immer.«" + text: "»Bringen Sie’s zu Ende, Voss. Ich zĂ€hl solange die Tropfen vom Dach. Bin bei vierhundertzwölf.«" + - text: "Der Mann am Pfeiler hebt die Hand gegen das Licht der Laterne. Er ist unrasiert, die Lippen sind rissig, und er hat Fieber, das siehst du von hier. Aber seine Stimme ist klar. »Zweihundert«, sagt er, bevor du dich vorstellen kannst. »Ich hab zweihundert gezĂ€hlt. Ich zĂ€hl immer.«" options: - id: j_was text: "»Was ist passiert, Jakob?«" @@ -493,16 +524,17 @@ dialogues: text: "»Ich hole Sie hier raus.«" when: { has: clue_jakob_aussage } j_was: - say: "»Kröger hat mich oben an der Luke erwischt. Ich bin die Treppe runter. Dann kam einer im Kamelhaarmantel. Kröger wollte ’n Arzt holen. Der Mantel hat gesagt: â€șKein Arzt. Ärzte reden.â€č«" + say: "»Kröger hat mich oben an der Luke erwischt. Ich wollt nur sehen, wo die Kisten hingehen. Dann bin ich die Treppe runter, rĂŒckwĂ€rts.« Er verzieht das Gesicht. »Das Bein. Kröger is runtergekommen und war weißer als ich. Dann kam einer im Kamelhaarmantel, mit Hut. Kröger wollte ’n Arzt holen, das hat er gesagt, zweimal. Und der Mantel hat gesagt: â€șKein Arzt. Ärzte reden.â€č«" do: - learn: clue_jakob_aussage - score: 1 + - say: Ein Mann im Kamelhaarmantel. Du hast heute Abend nur einen gesehen, und der hat dir fĂŒnfhundert Mark geboten, damit du nach Hause gehst. Der grobe Vorarbeiter wollte einen Arzt holen. Der feine Herr hat Nein gesagt. options: - id: j_durchhalten text: "»Halten Sie durch. Heute Nacht noch.«" goto: j_ende j_ende: - say: "»GrĂŒĂŸen Sie Anni. Sagen Sie ihr, ich hab richtig gezĂ€hlt.«" + say: "Jakob nickt und lĂ€sst den Kopf gegen den Pfeiler sinken. »GrĂŒĂŸen Sie Anni. Sagen Sie ihr, ich hab richtig gezĂ€hlt.« Nach einer Weile, als du schon glaubst, er schlĂ€ft: »Und Kröger 
 nee. Kröger sagen Sie gar nix. Der weiß es selber.«" # ------------------------------------------------------------------------- # Finale: Die Abrechnung. Default dialogue of asmussen (in kontor). @@ -515,50 +547,50 @@ dialogues: start: f_start nodes: f_start: - say: "Asmussen sieht nicht auf. »Voss. Sie tropfen auf meinen Teppich.«" + say: "Asmussen sieht nicht auf, als du hereinkommst. Er schreibt etwas zu Ende, schraubt den FĂŒllhalter zu und legt ihn parallel zur Tischkante. »Voss«, sagt er dann. »Sie tropfen auf meinen Teppich.«" options: - id: f_anklage - text: "»Ich war oben, Asmussen. Vierter Boden.«" + text: "»Ich war oben, Asmussen. Vierter Stock.«" do: - - say: "»Oben? Da lagert nichts. Und wenn doch, fragen Sie Kröger.«" + - say: "»Oben?« Er hebt eine Augenbraue, als hĂ€tte er das Wort noch nie gehört. »Da lagert nichts. Und wenn doch, fragen Sie Kröger. Der hat die SchlĂŒssel.«" goto: f_s1 - id: f_gehen text: "»Ein andermal.«" # Rung 1: »Ich kenne den Mann kaum.« Valid: clue_persilschein. f_s1: - say: "»Ein Vorarbeiter unter Hunderten. Ich kenne den Mann kaum.«" + say: "»Kröger ist ein Vorarbeiter unter Hunderten, Voss. Ich beschĂ€ftige Leute, ich kenne sie nicht. Ich kenne den Mann kaum.«" options: - id: f_s1_kuvert text: "»Ihr Kuvert lag bei Anni Brodersen.«" when: { has: clue_schweigegeld } do: - - say: "»Kuverts mit meinem Stempel liegen im ganzen Hafen herum.«" + - say: "»Kuverts mit meinem Stempel liegen im ganzen Hafen herum. Ich verschicke viel Post.«" goto: f_s1 - id: f_s1_persil text: "»â€șIch kenne Herrn Kröger seit 1934.â€č Ihr Persilschein.«" when: { has: clue_persilschein } do: - - say: "»Persilschein. Ein hĂ€ssliches Wort. Ich nenne es: fĂŒr einen Mitarbeiter gebĂŒrgt.«" + - say: "Du legst das Papier auf den Mahagoni, so dass er seine eigene Unterschrift lesen kann. Er liest sie nicht. »Persilschein«, sagt er. »Ein hĂ€ssliches Wort. Ich nenne es: fĂŒr einen Mitarbeiter gebĂŒrgt. Das haben in diesem FrĂŒhjahr viele getan, Voss. Es war eine Christenpflicht.«" goto: f_s2 - id: f_s1_jakob text: "»Jakob hat Sie gesehen.«" when: { has: clue_jakob_aussage } do: - - say: "»Ein Mann im Fieber sieht einen Mantel.«" + - say: "»Ein Mann im Fieber sieht einen Mantel. Davon gibt es viele in Hamburg.«" goto: f_s1 - id: f_gehen1 text: "»Ein andermal.«" # Rung 2: »Hinter meinem RĂŒcken.« Valid: clue_dieselbe_hand (D6). f_s2: - say: "Asmussen faltet die HĂ€nde. »Wenn oben Ware liegt, hat Kröger sie versteckt. Hinter meinem RĂŒcken.«" + say: "Asmussen faltet die HĂ€nde auf dem Tisch. Er wechselt die Verteidigung, ohne dass sich sein Gesicht bewegt. »Gut. Wenn oben Ware liegt, hat Kröger sie versteckt. Hinter meinem RĂŒcken. Sie wissen selbst, was Vorarbeiter in diesen Zeiten alles nebenher machen.«" options: - id: f_s2_elise - text: "»Ihre Schute hat die Kisten gebracht.«" + text: "»Ihr Lastkahn hat die Kisten gebracht.«" when: { has: clue_zaehlheft } do: - - say: "»Meine Schute fĂ€hrt fĂŒr jeden, der zahlt.«" + - say: "»Mein Kahn fĂ€hrt fĂŒr jeden, der zahlt.«" goto: f_s2 - id: f_s2_zettel text: "»Oben lag Ihre Anweisung an Kröger.«" @@ -570,14 +602,14 @@ dialogues: text: "»â€șMontag sechs Uhr geht die Ware raus.â€č Ihre Tinte. Ihr â€șgâ€č.«" when: { has: clue_dieselbe_hand } do: - - say: "Asmussen stellt die Tasse ab. Zum ersten Mal sieht er dich an." + - say: "Du legst die Abschrift des Zettels neben den Persilschein, und dann zeigst du auf den FĂŒllhalter, der vor ihm liegt. GrĂŒne Tinte. Das »g« mit der Schleife nach rechts, auf beiden BlĂ€ttern dasselbe. Asmussen stellt die Tasse ab. Zum ersten Mal an diesem Abend sieht er dich wirklich an." goto: f_s3 - id: f_gehen2 text: "»Ein andermal.«" # Rung 3: »Ich habe ihm das Leben gerettet.« Valid: clue_jakob_aussage. f_s3: - say: "»Ich habe Ware zurĂŒckgehalten, wie jeder Kaufmann diese Woche. Und ohne mich lĂ€ge Brodersen im Fleet. Ich habe ihm das Leben gerettet.«" + say: "»Also schön.« Er lehnt sich zurĂŒck, und jetzt spricht er wie ein Kaufmann, der eine Bilanz erklĂ€rt. »Ich habe Ware zurĂŒckgehalten, wie jeder vernĂŒnftige Kaufmann in dieser Woche. Und ohne mich lĂ€ge Brodersen jetzt im Kanal, das kann ich Ihnen versichern. Kröger war in Panik. Ich habe ihm das Leben gerettet.«" options: - id: f_s3_spind text: "»Sie haben Jakob zum Dieb gemacht.«" @@ -594,19 +626,21 @@ dialogues: - id: f_s3_arzt text: "»Kröger wollte einen Arzt holen. Sie haben Nein gesagt.«" when: { has: clue_jakob_aussage } + do: + - say: "Du sagst es ihm Wort fĂŒr Wort, so wie Jakob es gesagt hat: »Kein Arzt. Ärzte reden.« Seit Donnerstagnacht liegt ein Mann mit gebrochenem Bein auf dem vierten Stock, ĂŒber diesem Zimmer mit dem warmen Ofen, und bekommt Wasser, aber kein Licht. Asmussen antwortet nicht. Er sieht auf seine HĂ€nde, als prĂŒfe er, ob sie sauber sind." goto: f_angebot - id: f_gehen3 text: "»Ein andermal.«" # The bribe and the refusal. The refrain is used here and nowhere else. f_angebot: - say: "Asmussen schweigt eine Weile. »Zwei Sack Rohkaffee, Voss. Ab Montag mehr wert als Ihr ganzes BĂŒro.« Er lehnt sich zurĂŒck. »Sie haben vor dem Krieg meine Ladungen versichert. Damals haben Sie auch nicht gefragt, woher die Ware kam.«" + say: "Als er wieder spricht, ist seine Stimme freundlich, und das ist schlimmer. »Zwei Sack Rohkaffee, Voss. Ab Montag mehr wert als Ihr ganzes BĂŒro.« Er lehnt sich zurĂŒck. »Und tun Sie nicht so. Sie haben vor dem Krieg meine Ladungen versichert, Jahr fĂŒr Jahr. Damals haben Sie auch nicht gefragt, woher die Ware kam.«" options: - id: f_ablehnen text: "»Geld kann man umtauschen. Schuld nicht.«" goto: f_wahl f_wahl: - say: "Draußen wird der Regen grau. Asmussen greift nach dem Telefon und lĂ€sst die Hand dann liegen. »Und jetzt? Wem wollen Sie mich verkaufen?«" + say: "Draußen wird der Regen grau, und irgendwo im Hafen lĂ€uft die erste Winde an. Asmussen greift nach dem Telefon und lĂ€sst die Hand dann darauf liegen, ohne abzuheben. »Und jetzt?«, fragt er. »Wem wollen Sie mich verkaufen?«" options: - id: f_englaender text: "»Den EnglĂ€ndern. Es ist ihre Ware.«" diff --git a/packs/letzte-nacht-der-reichsmark/objects.yaml b/packs/letzte-nacht-der-reichsmark/objects.yaml index a123846..dba088a 100644 --- a/packs/letzte-nacht-der-reichsmark/objects.yaml +++ b/packs/letzte-nacht-der-reichsmark/objects.yaml @@ -57,8 +57,8 @@ objects: - text: Eine Sturmlaterne, halb voll Petroleum. Kröger stellt sie wohl jeden Abend hierher. bodenschluessel: - name: BodenschlĂŒssel - synonyms: [SchlĂŒssel, Schnur] + name: Krögers SchlĂŒssel + synonyms: [SchlĂŒssel, BodenschlĂŒssel, Schnur] location: nowhere portable: true description: Ein neuer SchlĂŒssel an einer Schnur. Er riecht nach Krögers Hosentasche. @@ -74,7 +74,7 @@ objects: dialogue: anni_huette roomText: - when: { at: detektei } - text: "{anni} wartet auf deinem {besucherstuhl}." + text: "{anni|Die Frau} wartet auf deinem {besucherstuhl}." - text: "{anni} sitzt am Ofen und flickt eine Hose, die keinem mehr passt." description: - when: { at: detektei } @@ -92,7 +92,7 @@ objects: text: Am Ecktisch sitzt {kroeger} vor einem leeren Glas. - when: { has: clue_kroeger_version } text: Am Ecktisch sitzt {kroeger} und rĂŒhrt seinen Köm nicht an. - - text: Am Ecktisch sitzt {kroeger} vor einem Köm, den er nicht anrĂŒhrt. + - text: Am Ecktisch sitzt {kroeger} vor einem Köm, einem KĂŒmmelschnaps, den er nicht anrĂŒhrt. description: - when: { has: clue_gestaendnis } text: Willi Kröger, Vorarbeiter. Er sitzt da wie einer, der eine Last abgesetzt hat und nicht weiß, wohin mit den HĂ€nden. Das Glas ist leer. @@ -101,7 +101,7 @@ objects: # Right after Kröger, so its roomText follows his. kolonne: name: Kolonne - synonyms: [Krögers Kolonne, MĂ€nner, Schauerleute, Kollegen, Arbeiter] + synonyms: [Krögers Kolonne, MĂ€nner, Hafenarbeiter, Kollegen, Arbeiter] location: kneipe roomText: - when: { has: clue_gestaendnis } @@ -140,7 +140,7 @@ objects: - when: { flag: tadeusz_rudert } text: "{tadeusz} sitzt unten im Boot und wartet." - text: Auf einem Poller sitzt {tadeusz}. - description: Tadeusz Wrona, SchutenwĂ€chter. Ein Mantel, der einmal einem grĂ¶ĂŸeren Mann gehört hat, und Augen, die alles sehen und nichts zeigen. + description: Tadeusz Wrona, Wachmann bei den LastkĂ€hnen. Ein Mantel, der einmal einem grĂ¶ĂŸeren Mann gehört hat, und Augen, die alles sehen und nichts zeigen. asmussen: name: Asmussen @@ -165,8 +165,8 @@ objects: dialogue: jakob_gespraech description: - when: { has: clue_jakob_aussage } - text: Jakob Brodersen, Schauermann. Fiebrig, aber wach. Er zĂ€hlt jetzt die Tropfen, die durchs Dach kommen. - - text: Jakob Brodersen, Schauermann. Unrasiert und fiebrig, das rechte Bein mit zwei Latten geschient. Er zĂ€hlt leise vor sich hin. + text: Jakob Brodersen, Hafenarbeiter. Fiebrig, aber wach. Er zĂ€hlt jetzt die Tropfen, die durchs Dach kommen. + - text: Jakob Brodersen, Hafenarbeiter. Unrasiert und fiebrig, das rechte Bein mit zwei Latten geschient. Er zĂ€hlt leise vor sich hin. # A sleeping child: a character, so the action sheet offers no »Benutzen«. # Every talk, show and give is answered by rules (»Du lĂ€sst sie schlafen.«). @@ -294,8 +294,8 @@ objects: location: kaischuppen description: - when: { has: clue_tally } - text: "â€șTally – Elspeth Grayâ€č. Es hĂ€ngt wieder hinter dem Spalt, ein wenig schief. Was draufsteht, steht jetzt auch in deinem Notizbuch." - - text: "â€șTally – Elspeth Grayâ€č. Es hĂ€ngt an einem Nagel hinter dem Spalt ĂŒber der TĂŒr. Dein Arm reicht nicht bis dorthin. Du brĂ€uchtest etwas Langes mit einem Haken." + text: "â€șZĂ€hlung – Elspeth Grayâ€č. Es hĂ€ngt wieder hinter dem Spalt, ein wenig schief. Was draufsteht, steht jetzt auch in deinem Notizbuch." + - text: "â€șZĂ€hlung – Elspeth Grayâ€č. Es hĂ€ngt an einem Nagel hinter dem Spalt ĂŒber der TĂŒr. Dein Arm reicht nicht bis dorthin. Du brĂ€uchtest etwas Langes mit einem Haken." # ------------------------------------------------------------------------- # Zum Letzten Groschen, Hinterhof @@ -349,10 +349,10 @@ objects: - when: - { has: clue_zaehlheft } - { flag: tadeusz_rudert } - text: "Eine Bretterbude mit Petroleumlampe. Das Schutenregister liegt offen, eine Zeile ist unterstrichen: â€șElise 7 – A. & Co., Speicher Kâ€č." + text: "Eine Bretterbude mit Petroleumlampe. Das Register der LastkĂ€hne liegt offen, eine Zeile ist unterstrichen: â€șElise 7 – A. & Co., Speicher Kâ€č." - when: { has: clue_zaehlheft } - text: "Eine Bretterbude mit Petroleumlampe. Tadeusz schiebt dir das Schutenregister hin. Eine Zeile ist unterstrichen: â€șElise 7 – A. & Co., Speicher Kâ€č." - - text: Eine Bretterbude mit Petroleumlampe. Auf dem Tisch liegt das Schutenregister. Als du hineinsehen willst, legt Tadeusz die Hand darauf. »Das ist nicht fĂŒr Fremde.« + text: "Eine Bretterbude mit Petroleumlampe. Tadeusz schiebt dir das Register der LastkĂ€hne hin. Eine Zeile ist unterstrichen: â€șElise 7 – A. & Co., Speicher Kâ€č." + - text: Eine Bretterbude mit Petroleumlampe. Auf dem Tisch liegt das Register der LastkĂ€hne. Als du hineinsehen willst, legt Tadeusz die Hand darauf. »Das ist nicht fĂŒr Fremde.« # After Tadeusz, so its roomText follows his. thermoskanne: @@ -361,7 +361,7 @@ objects: location: zollkanal roomText: - when: { flag: tadeusz_rudert } - text: Die {thermoskanne} steht neben ihm auf der Ducht. + text: Die {thermoskanne} steht neben ihm auf der Sitzbank. - text: Er hĂ€lt eine {thermoskanne} auf den Knien. description: - when: { has: clue_zaehlheft } @@ -369,13 +369,13 @@ objects: - text: Eine verbeulte Thermoskanne, zugeschraubt. Muckefuck fĂŒr zwei, seit Donnerstag fĂŒr einen. schuten: - name: Schuten - synonyms: [Schute, Boote, KĂ€hne, Bootshaken] + name: LastkĂ€hne + synonyms: [Lastkahn, Kahn, Schuten, Schute, Boote, KĂ€hne, Bootshaken] location: zollkanal description: - when: { in: { object: bootshaken, location: zollkanal } } - text: Leere Schuten, Bordwand an Bordwand. Fast an jeder lehnt ein Bootshaken. An der Wachbude lehnt einer, der niemandem zu gehören scheint. - - text: Leere Schuten, Bordwand an Bordwand. Fast an jeder lehnt ein Bootshaken. + text: Leere LastkĂ€hne, Bordwand an Bordwand. Fast an jeder lehnt ein Bootshaken. An der Wachbude lehnt einer, der niemandem zu gehören scheint. + - text: Leere LastkĂ€hne, Bordwand an Bordwand. Fast an jeder lehnt ein Bootshaken. zollgitter: name: Zollgitter @@ -388,20 +388,20 @@ objects: name: Speicher K synonyms: [Speicher, Speicherblock, Block K, Ruine, Speicherstadt, Luken] location: zollkanal - description: Speicherblock K, halb verbrannt, die oberen Fenster schwarz. Aber die Luken im vierten Boden sind frisch mit Brettern vernagelt. Wer vernagelt einen leeren Speicher? + description: Speicherblock K, halb verbrannt, die oberen Fenster schwarz. Aber die Luken im vierten Stock sind frisch mit Brettern vernagelt. Wer vernagelt einen leeren Speicher? # ------------------------------------------------------------------------- # Speicher K # ------------------------------------------------------------------------- schute_elise: - name: Schute »Elise 7« - synonyms: [Schute, Elise, Elise 7, Laderaum] + name: Lastkahn »Elise 7« + synonyms: [Lastkahn, Kahn, Schute, Elise, Elise 7, Laderaum] location: speicher_wasserseite description: "Die »Elise 7«, leer. Am Bug: â€șA. & Co.â€č. Im Laderaum Kaffeestaub und ein abgerissenes StĂŒck NAAFI-Banderole." bodentuer: - name: BodentĂŒr - synonyms: [TĂŒr, BrandschutztĂŒr, Schloss] + name: BrandschutztĂŒr + synonyms: [TĂŒr, BodentĂŒr, BrandschutztĂŒr, Schloss] location: speicher_treppe alsoIn: [vierter_boden] openable: true @@ -416,8 +416,8 @@ objects: - text: Die BrandschutztĂŒr ist aufgeschlossen. kontortuer: - name: KontortĂŒr - synonyms: [Kontor, Lichtstreifen, Klinke] + name: BĂŒrotĂŒr + synonyms: [Kontor, BĂŒrotĂŒr, BĂŒro, Lichtstreifen, Klinke] location: speicher_treppe verbs: [open] description: Unter der TĂŒr ein Lichtstreifen. Dahinter klirrt eine Tasse. @@ -482,7 +482,7 @@ objects: synonyms: [Fall, Auftrag] location: nowhere clue: true - description: "Jakob Brodersen, Schauermann in Krögers Kolonne, Kaischuppen 17. Verschwunden seit Donnerstagnacht. ZĂ€hlt alles in ein Heft. Freitag frĂŒh: zwei Stangen englische Zigaretten in seinem verschlossenen Spind 23; Kröger schloss auf, Kommissar Petersen sah zu. Freund: Tadeusz am Zollkanal." + description: "Jakob Brodersen, Hafenarbeiter in Krögers Kolonne, Schuppen 17. Verschwunden seit Donnerstagnacht. ZĂ€hlt alles in ein Heft. Freitag frĂŒh: zwei Stangen englische Zigaretten in seinem verschlossenen Spind 23; Kröger schloss auf, Kommissar Petersen sah zu. Freund: Tadeusz am Zollkanal." clue_schluessel: name: Der vergessene SchlĂŒssel @@ -511,11 +511,11 @@ objects: description: Konrad Asmussen, Kaffee-Import, Speicher K, Kehrwieder. Kennt angeblich keinen Brodersen. Speicher K sei seit 1943 eine Ruine. Bot dir 500 Reichsmark fĂŒrs Nachhausegehen. Nach Speicher K hatte ihn niemand gefragt. clue_loeschliste: - name: Löschliste (200 Kisten) - synonyms: [Löschliste, Liste] + name: Ladeliste (200 Kisten) + synonyms: [Ladeliste, Ladeliste, Liste] location: nowhere clue: true - description: "Kaischuppen 17, Donnerstag, 17. Juni, Nachtschicht: Dampfer »Elspeth Gray«, NAAFI-Ware Los 4471, 200 Kisten Zigaretten. Abtransport ins NAAFI-Depot Freitag, 5 Uhr, unter Bewachung." + description: "Schuppen 17, Donnerstag, 17. Juni, Nachtschicht: Dampfer »Elspeth Gray«, NAAFI-Ware Los 4471, 200 Kisten Zigaretten. Abtransport ins NAAFI-Depot Freitag, 5 Uhr, unter Bewachung." clue_zweitschluessel: name: ZweitschlĂŒssel @@ -549,17 +549,17 @@ objects: description: "Die Ware kam Donnerstagnacht an Land, als nur noch Kröger an Spind 23 konnte. Jakob kann sie nicht hineingelegt haben. Jemand hat sie ihm untergeschoben: Kröger." clue_tally: - name: Tallyzettel (180 Kisten) - synonyms: [Tallyzettel, Tally, ZĂ€hlung] + name: ZĂ€hlzettel (180 Kisten) + synonyms: [ZĂ€hlzettel, ZĂ€hlzettel, Tally, ZĂ€hlung] location: nowhere clue: true - description: "Tallyzettel »Elspeth Gray«, Donnerstag, Nachtschicht: 180 Kisten in den Schuppen gezĂ€hlt. Unterschrift: â€șW. Kröger, i. V. Tallymannâ€č. Kröger hat selbst gezĂ€hlt, in Vertretung des Tallymanns. Ausgerechnet er." + description: "ZĂ€hlzettel »Elspeth Gray«, Donnerstag, Nachtschicht: 180 Kisten in den Schuppen gezĂ€hlt. Unterschrift: â€șW. Kröger, i. V. KontrollzĂ€hlerâ€č. Kröger hat selbst gezĂ€hlt, in Vertretung des KontrollzĂ€hlers. Ausgerechnet er." clue_zwanzig_kisten: name: Zwanzig Kisten fehlen location: nowhere clue: true - description: 200 Kisten laut Löschliste, 180 auf Krögers Tallyzettel. Zwanzig Kisten sind zwischen Schiff und Schuppen verschwunden. GezĂ€hlt hat Kröger. Und wer verdient daran? + description: 200 Kisten laut Ladeliste, 180 auf Krögers ZĂ€hlzettel. Zwanzig Kisten sind zwischen Schiff und Schuppen verschwunden. GezĂ€hlt hat Kröger. Und wer verdient daran? clue_lene: name: Lenes Aussage @@ -579,7 +579,7 @@ objects: synonyms: [ZĂ€hlheft, Heft] location: nowhere clue: true - description: "Jakobs Heft, von Tadeusz: â€ș200 Hieven, letzte 01:20. Tally 180?! K. lĂ€sst 20 Ki. in Elise 7. Geh hinterher.â€č Tadeusz sah Jakob um halb zwei der Schute folgen. Laut Register gehört die »Elise 7« A. & Co., Speicher K." + description: "Jakobs Heft, von Tadeusz: â€ș200 Kisten, letzte 01:20. ZĂ€hlung 180?! K. lĂ€sst 20 Ki. in Elise 7. Geh hinterher.â€č Tadeusz sah Jakob um halb zwei dem Lastkahn folgen. Laut Register gehört die »Elise 7« A. & Co., Speicher K." clue_schweigegeld: name: Zweihundert Reichsmark @@ -593,7 +593,7 @@ objects: synonyms: [GestĂ€ndnis] location: nowhere clue: true - description: Kröger hat Jakob Donnerstagnacht in Speicher K erwischt. Jakob stĂŒrzte die Lukentreppe hinunter, das Bein gebrochen. Gestoßen hat er ihn nicht, sagt Kröger. Er wollte einen Arzt holen. Seitdem bringt er ihm jeden Abend Wasser. Jakob liegt auf dem vierten Boden. + description: Kröger hat Jakob Donnerstagnacht in Speicher K erwischt. Jakob stĂŒrzte an der Ladeluke die Treppe hinunter, das Bein gebrochen. Gestoßen hat er ihn nicht, sagt Kröger. Er wollte einen Arzt holen. Seitdem bringt er ihm jeden Abend Wasser. Jakob liegt auf dem vierten Stock. clue_persilschein: name: Krögers Persilschein diff --git a/packs/letzte-nacht-der-reichsmark/pack.yaml b/packs/letzte-nacht-der-reichsmark/pack.yaml index b239992..78d076f 100644 --- a/packs/letzte-nacht-der-reichsmark/pack.yaml +++ b/packs/letzte-nacht-der-reichsmark/pack.yaml @@ -7,10 +7,10 @@ # dialogues are in the other YAML files of this directory. format: lexvm-pack/1 id: letzte-nacht-der-reichsmark -version: 1.0.0 +version: 1.1.0 title: Die letzte Nacht der Reichsmark subtitle: Ein Hamburger Kriminalfall, Juni 1948 -description: "Hamburg, 19. Juni 1948: Morgen wird die Reichsmark zu Altpapier, und der Schauermann Jakob Brodersen ist verschwunden – angeblich mit gestohlenen Zigaretten. Ein Noir-Krimi aus Indizien und Verhören ĂŒber Schwarzmarkt, Persilscheine und Schuld." +description: "Hamburg, 19. Juni 1948: Morgen wird die Reichsmark zu Altpapier, und der Hafenarbeiter Jakob Brodersen ist verschwunden – angeblich mit gestohlenen Zigaretten. Ein Noir-Krimi aus Indizien und Verhören ĂŒber Schwarzmarkt, Persilscheine und Schuld." language: de author: LexVM contributors license: CC-BY-4.0 @@ -18,15 +18,19 @@ policy: forgiving generator: pipeline: "LexVM staged design pipeline (three proposals, lead-designer synthesis, staged writing, automated verification, blind playtests)" notes: "Written with an LLM and reviewed by the maintainers. All persons, firms, ships and places in the plot are fictional." -playtime: 45 +playtime: 65 +# Story first: about 60% of the play time is reading (spec section 17, design/story.md). +pacing: narrative maxScore: 25 start: room: detektei intro: |- - Hamburg, Sonnabend, 19. Juni 1948. Es regnet seit Tagen. Seit gestern Abend weiß es die ganze Stadt aus dem Radio: Am Sonntag gibt es neues Geld. Vierzig Mark pro Kopf. Was du in Reichsmark besitzt, ist ab morgen kaum noch das Papier wert. + Hamburg, Sonnabend, 19. Juni 1948. Es regnet seit Tagen, und seit gestern Abend weiß es die ganze Stadt aus dem Radio: Am Sonntag gibt es neues Geld, vierzig Mark pro Kopf. Was du in Reichsmark besitzt, ist ab morgen kaum noch das Papier wert, auf dem es gedruckt ist. Die Leute sind seit dem Morgen unterwegs, um ihre Schulden zu bezahlen, solange das alte Geld noch etwas gilt. - Auf deinem Besucherstuhl sitzt eine Frau in einem umgefĂ€rbten Wehrmachtsmantel und hĂ€lt ihre Handtasche fest, als könnte jemand sie ihr wegnehmen. + Du gehörst nicht zu ihnen. Bis zum Sommer dreiundvierzig hast du fĂŒr eine Seeversicherung Ladungen geprĂŒft, dann brannte das Haus der Versicherung mitsamt den Akten, und seitdem nimmst du FĂ€lle an, die sonst keiner will: verschwundene MĂ€nner, verschwundene Waren, manchmal beides. + + Heute Abend sitzt eine Frau auf deinem Besucherstuhl. Sie trĂ€gt einen umgefĂ€rbten Wehrmachtsmantel und hĂ€lt ihre Handtasche fest, als könnte jemand sie ihr wegnehmen. Sie hat noch nichts gesagt. Sie wartet, bis du sie ansprichst. # Documents are read with look: the parser maps »lies« to it, because the # pack has no verb of its own for reading (playtest round 1, CHANGES.md). @@ -72,34 +76,42 @@ endings: text: - when: { flag: kroeger_zeuge } text: |- - Um halb sechs stehen zwei Jeeps der MilitĂ€rpolizei am Kehrwieder. Ein Captain zĂ€hlt die Kisten nach und schreibt â€șLot 4471 – completeâ€č. Asmussen steigt ohne Mantel in den Wagen. Vor einem britischen Gericht zĂ€hlen seine Persilscheine nicht. + Um halb sechs stehen zwei Jeeps der MilitĂ€rpolizei am Kehrwieder. Ein Captain lĂ€sst die Kisten auf dem vierten Stock nachzĂ€hlen, zweimal, weil er es nicht glauben will, und schreibt dann â€șLot 4471 – completeâ€č in sein Buch. Asmussen steigt ohne Mantel in den Wagen. Vor einem britischen Gericht zĂ€hlen seine Persilscheine nicht, und das scheint er erst zu begreifen, als die TĂŒr zuschlĂ€gt. + + Jakob tragen sie auf einer ausgehĂ€ngten TĂŒr hinunter zum Boot. »Zweihundert«, sagt er zu jedem, der fragt, und zu einigen, die nicht fragen. Tadeusz rudert, dann sagt er aus, langsam und in ganzen SĂ€tzen. Weggesehen hat er lange genug. - Jakob tragen sie auf einer TĂŒr zum Boot. »Zweihundert«, sagt er zu jedem, der fragt. Tadeusz rudert, dann sagt er aus. Weggesehen hat er lange genug. Kröger redet drei Stunden lang, ohne Köm. Er bekommt zwei Jahre. + Kröger redet drei Stunden lang, ohne Köm. Er erzĂ€hlt von der Luke, vom Arzt, den er holen wollte, und von dem Mann, der Nein gesagt hat. Er bekommt zwei Jahre, und du sagst fĂŒr ihn aus, wie versprochen. - Sonntagmorgen. Anni und Lotte stehen in der Schlange vor der Kartenstelle. Anni legt drei Lebensmittelkarten auf den Tisch und hundertzwanzig Reichsmark: vierzig fĂŒr jeden Kopf. Am Montag sind die Schaufenster voll, als hĂ€tte jemand sie ĂŒber Nacht gefĂŒllt. Hat ja auch jemand. + Sonntagmorgen. Anni und Lotte stehen in der Schlange vor der Kartenstelle, und der Regen hat endlich aufgehört. Anni legt drei Lebensmittelkarten auf den Tisch und hundertzwanzig Reichsmark: vierzig fĂŒr jeden Kopf, auch fĂŒr den, der noch im Krankenhaus liegt. Am Montag sind die Schaufenster voll, als hĂ€tte jemand sie ĂŒber Nacht gefĂŒllt. Hat ja auch jemand. - text: |- - Um halb sechs stehen zwei Jeeps der MilitĂ€rpolizei am Kehrwieder. Ein Captain zĂ€hlt die Kisten nach und schreibt â€șLot 4471 – completeâ€č. Asmussen steigt ohne Mantel in den Wagen. Vor einem britischen Gericht zĂ€hlen seine Persilscheine nicht. + Um halb sechs stehen zwei Jeeps der MilitĂ€rpolizei am Kehrwieder. Ein Captain lĂ€sst die Kisten auf dem vierten Stock nachzĂ€hlen, zweimal, weil er es nicht glauben will, und schreibt dann â€șLot 4471 – completeâ€č in sein Buch. Asmussen steigt ohne Mantel in den Wagen. Vor einem britischen Gericht zĂ€hlen seine Persilscheine nicht, und das scheint er erst zu begreifen, als die TĂŒr zuschlĂ€gt. + + Jakob tragen sie auf einer ausgehĂ€ngten TĂŒr hinunter zum Boot. »Zweihundert«, sagt er zu jedem, der fragt, und zu einigen, die nicht fragen. Tadeusz rudert, dann sagt er aus, langsam und in ganzen SĂ€tzen. Weggesehen hat er lange genug. - Jakob tragen sie auf einer TĂŒr zum Boot. »Zweihundert«, sagt er zu jedem, der fragt. Tadeusz rudert, dann sagt er aus. Weggesehen hat er lange genug. Kröger ist am Morgen fort, nach Harburg, heißt es. Von da an kommt jeden Monat ein Kuvert ohne Absender nach HĂŒtte 14. + Kröger ist am Morgen fort, nach Harburg, heißt es, oder weiter. Ohne ihn fehlt dem Gericht der Mann, der dabei war, als Asmussen den Arzt verbot. Von da an kommt jeden Monat ein Kuvert ohne Absender nach HĂŒtte 14. - Sonntagmorgen. Anni und Lotte stehen in der Schlange vor der Kartenstelle. Anni legt drei Lebensmittelkarten auf den Tisch und hundertzwanzig Reichsmark: vierzig fĂŒr jeden Kopf. Am Montag sind die Schaufenster voll, als hĂ€tte jemand sie ĂŒber Nacht gefĂŒllt. Hat ja auch jemand. + Sonntagmorgen. Anni und Lotte stehen in der Schlange vor der Kartenstelle, und der Regen hat endlich aufgehört. Anni legt drei Lebensmittelkarten auf den Tisch und hundertzwanzig Reichsmark: vierzig fĂŒr jeden Kopf, auch fĂŒr den, der noch im Krankenhaus liegt. Am Montag sind die Schaufenster voll, als hĂ€tte jemand sie ĂŒber Nacht gefĂŒllt. Hat ja auch jemand. ende_hamburger_regen: title: Hamburger Regen win: true text: - when: { flag: kroeger_zeuge } text: |- - Kommissar Petersen kommt selbst, im nassen Mantel. Am Freitag hat er zugesehen, wie Kröger Jakobs Spind aufschloss. Jetzt sieht er die Kisten an, dann dich, und schreibt lange. Asmussen will telefonieren; sein Anwalt bringt drei neue Persilscheine. + Kommissar Petersen kommt selbst, im nassen Mantel und ohne Eile. Am Freitag hat er zugesehen, wie Kröger Jakobs Spind aufschloss, und eine Akte angelegt, die schon fertig war, bevor sie begann. Jetzt steht er zwischen den Kisten, sieht sie an, dann dich, und schreibt lange. Asmussen will telefonieren. Um acht ist sein Anwalt da, mit drei neuen Persilscheinen. - Jakob tragen sie auf einer TĂŒr zum Boot. »Zweihundert«, sagt er zu jedem, der fragt. Tadeusz rudert, dann sagt er aus. Weggesehen hat er lange genug. Und Kröger hat unterschrieben; diesmal zĂ€hlt seine Unterschrift. + Jakob tragen sie auf einer ausgehĂ€ngten TĂŒr hinunter zum Boot. »Zweihundert«, sagt er zu jedem, der fragt, und zu einigen, die nicht fragen. Tadeusz rudert, dann sagt er aus, langsam und in ganzen SĂ€tzen. Weggesehen hat er lange genug. - Sonntagmorgen. Anni und Lotte stehen in der Schlange vor der Kartenstelle. Anni legt drei Lebensmittelkarten auf den Tisch und hundertzwanzig Reichsmark: vierzig fĂŒr jeden Kopf. Am Montag sind die Schaufenster voll, als hĂ€tte jemand sie ĂŒber Nacht gefĂŒllt. Hat ja auch jemand. + Und Kröger hat unterschrieben, Seite fĂŒr Seite, mit einer Hand, die nicht zittert. Gegen diese Unterschrift kommt auch Asmussens Anwalt nicht an. Diesmal zĂ€hlt sie. + + Sonntagmorgen. Anni und Lotte stehen in der Schlange vor der Kartenstelle, und der Regen hat endlich aufgehört. Anni legt drei Lebensmittelkarten auf den Tisch und hundertzwanzig Reichsmark: vierzig fĂŒr jeden Kopf, auch fĂŒr den, der noch im Krankenhaus liegt. Am Montag sind die Schaufenster voll, als hĂ€tte jemand sie ĂŒber Nacht gefĂŒllt. Hat ja auch jemand. - text: |- - Kommissar Petersen kommt selbst, im nassen Mantel. Am Freitag hat er zugesehen, wie Kröger Jakobs Spind aufschloss. Jetzt sieht er die Kisten an, dann dich, und schreibt lange. Asmussen will telefonieren; sein Anwalt bringt drei neue Persilscheine. + Kommissar Petersen kommt selbst, im nassen Mantel und ohne Eile. Am Freitag hat er zugesehen, wie Kröger Jakobs Spind aufschloss, und eine Akte angelegt, die schon fertig war, bevor sie begann. Jetzt steht er zwischen den Kisten, sieht sie an, dann dich, und schreibt lange. Asmussen will telefonieren. Um acht ist sein Anwalt da, mit drei neuen Persilscheinen. + + Jakob tragen sie auf einer ausgehĂ€ngten TĂŒr hinunter zum Boot. »Zweihundert«, sagt er zu jedem, der fragt, und zu einigen, die nicht fragen. Tadeusz rudert, dann sagt er aus, langsam und in ganzen SĂ€tzen. Weggesehen hat er lange genug. - Jakob tragen sie auf einer TĂŒr zum Boot. »Zweihundert«, sagt er zu jedem, der fragt. Tadeusz rudert, dann sagt er aus. Weggesehen hat er lange genug. Kröger ist am Morgen fort und mit ihm der beste Zeuge. Von da an kommt jeden Monat ein Kuvert ohne Absender nach HĂŒtte 14. + Kröger ist am Morgen fort und mit ihm der beste Zeuge. Was bleibt, sind ein Zettel ohne Unterschrift, ein Persilschein und das Wort eines Mannes mit Fieber gegen das Wort eines Kaufmanns. Von da an kommt jeden Monat ein Kuvert ohne Absender nach HĂŒtte 14. - Sonntagmorgen. Anni und Lotte stehen in der Schlange vor der Kartenstelle. Anni legt drei Lebensmittelkarten auf den Tisch und hundertzwanzig Reichsmark: vierzig fĂŒr jeden Kopf. Am Montag sind die Schaufenster voll, als hĂ€tte jemand sie ĂŒber Nacht gefĂŒllt. Hat ja auch jemand. + Sonntagmorgen. Anni und Lotte stehen in der Schlange vor der Kartenstelle, und der Regen hat endlich aufgehört. Anni legt drei Lebensmittelkarten auf den Tisch und hundertzwanzig Reichsmark: vierzig fĂŒr jeden Kopf, auch fĂŒr den, der noch im Krankenhaus liegt. Am Montag sind die Schaufenster voll, als hĂ€tte jemand sie ĂŒber Nacht gefĂŒllt. Hat ja auch jemand. # In solving order: the first hint whose `until` does not hold is shown. # Combining notebook entries is »Kombinieren mit  « in the action sheet and @@ -114,15 +126,15 @@ hints: - id: h_aushang until: { has: clue_loeschliste } steps: - - Im Kaischuppen hĂ€ngt etwas am Tor. - - Der Aushang verrĂ€t, was Donnerstagnacht gelöscht wurde. - - Lies den Aushang im Kaischuppen. + - In Schuppen 17 hĂ€ngt etwas am Tor. + - Der Aushang verrĂ€t, was Donnerstagnacht entladen wurde. + - Lies den Aushang in Schuppen 17. - id: h_spind until: { has: clue_zweitschluessel } steps: - Anni hat dir Jakobs SpindschlĂŒssel gegeben. - - Kaischuppen 17 liegt sĂŒdlich vom Baumwall. Such dort Spind 23. - - Geh nach SĂŒden in den Kaischuppen und öffne Spind 23. + - Schuppen 17 liegt sĂŒdlich vom Baumwall. Such dort Spind 23. + - Geh nach SĂŒden in Schuppen 17 und öffne Spind 23. - id: h_paeckchen until: { has: clue_los4471 } steps: @@ -139,8 +151,8 @@ hints: until: { has: clue_frisch_an_land } steps: - Losnummern verraten das Schiff. Wann kam dieses Los an Land? - - Vergleiche das Los mit der Löschliste. - - "Im Notizbuch: Kombiniere »Los 4471« mit »Löschliste (200 Kisten)«." + - Vergleiche das Los mit der Ladeliste. + - "Im Notizbuch: Kombiniere »Los 4471« mit »Ladeliste (200 Kisten)«." - id: h_untergeschoben until: { has: clue_untergeschoben } steps: @@ -162,15 +174,15 @@ hints: - id: h_tally until: { has: clue_tally } steps: - - Im Kaischuppen hĂ€ngt hinter Glas, was Kröger gezĂ€hlt hat. + - In Schuppen 17 hĂ€ngt hinter Glas, was Kröger gezĂ€hlt hat. - Durch den Spalt ĂŒber der Glaskabine reicht dein Arm nicht. Am Zollkanal liegen Boote – und was man an Booten so braucht. - - Nimm den Bootshaken am Zollkanal und benutze ihn im Kaischuppen mit dem Klemmbrett. + - Nimm den Bootshaken am Zollkanal und benutze ihn in Schuppen 17 mit dem Klemmbrett. - id: h_zwanzig until: { has: clue_zwanzig_kisten } steps: - - Zweihundert laut Löschliste. Und laut Kröger? + - Zweihundert laut Ladeliste. Und laut Kröger? - Leg die beiden Zahlen nebeneinander. Beide stehen in deinem Notizbuch. - - "Im Notizbuch: Kombiniere »Tallyzettel (180 Kisten)« mit »Löschliste (200 Kisten)«." + - "Im Notizbuch: Kombiniere »ZĂ€hlzettel (180 Kisten)« mit »Ladeliste (200 Kisten)«." - id: h_hintertuer until: { flag: hintertuer_frei } steps: @@ -206,7 +218,7 @@ hints: steps: - Jakob ist in Speicher K. Die ZollbrĂŒcke ist nachts zu. - Kröger hat gesagt, wessen Boot er nimmt. - - "Sprich am Zollkanal mit Tadeusz: »Jakob lebt. Speicher K, vierter Boden.«" + - "Sprich am Zollkanal mit Tadeusz: »Jakob lebt. Speicher K, vierter Stock.«" - id: h_laterne until: { flag: laterne_an } steps: @@ -218,7 +230,7 @@ hints: steps: - Kröger hat dir einen SchlĂŒssel gegeben. - Mit Licht findest du auch das Schloss. - - Öffne die BodentĂŒr und geh hinauf. + - Öffne die BrandschutztĂŒr und geh hinauf. - id: h_jakob until: { has: clue_jakob_aussage } steps: diff --git a/packs/letzte-nacht-der-reichsmark/rooms.yaml b/packs/letzte-nacht-der-reichsmark/rooms.yaml index 1c1ed26..17d083a 100644 --- a/packs/letzte-nacht-der-reichsmark/rooms.yaml +++ b/packs/letzte-nacht-der-reichsmark/rooms.yaml @@ -1,6 +1,8 @@ # yaml-language-server: $schema=../../schema/lexvm-pack-1.schema.json # -# Eleven rooms. Map and gates: design/world.md. +# Eleven rooms. Map and gates: design/world.md. First visits are the arrival +# of their scene (design/story.md, scene plan); return visits get a short +# variant that still names every object of the room. rooms: detektei: name: Detektei Voss @@ -8,18 +10,18 @@ rooms: description: - when: { flag: auftrag_angenommen } text: |- - Dritter Stock eines halben Kontorhauses; die andere HĂ€lfte liegt seit dreiundvierzig unten auf der Straße. Durch die Decke tropft der Regen in einen {regeneimer}, Takt fĂŒr Takt. Auf dem {schreibtisch} liegen unbezahlte Rechnungen, auf dem {besucherstuhl} trocknet ein nasser Fleck. + Dein BĂŒro im dritten Stock eines halben BĂŒrohauses; die andere HĂ€lfte liegt seit dreiundvierzig unten auf der Straße. Durch die Decke tropft der Regen in einen {regeneimer}, Takt fĂŒr Takt. Auf dem {schreibtisch} liegen die unbezahlten Rechnungen, und auf dem {besucherstuhl} trocknet der Fleck, den Annis Mantel hinterlassen hat. - Die Treppe fĂŒhrt hinunter zum Baumwall. + Die Treppe fĂŒhrt hinunter zum Baumwall, wo der Fall anfĂ€ngt. - text: |- - Dritter Stock eines halben Kontorhauses; die andere HĂ€lfte liegt seit dreiundvierzig unten auf der Straße. Durch die Decke tropft der Regen in einen {regeneimer}, Takt fĂŒr Takt. Auf dem {schreibtisch} liegen unbezahlte Rechnungen. + Dein BĂŒro im dritten Stock eines halben BĂŒrohauses; die andere HĂ€lfte liegt seit dreiundvierzig unten auf der Straße. Durch die Decke tropft der Regen in einen {regeneimer}, Takt fĂŒr Takt, und niemand repariert ein Dach, solange es Wichtigeres gibt. Auf dem {schreibtisch} liegen Rechnungen, die du seit Wochen nicht bezahlt hast. Die Treppe fĂŒhrt hinunter zum Baumwall. exits: down: to: baumwall when: { flag: auftrag_angenommen } - blocked: Anni Brodersen sitzt noch auf deinem Besucherstuhl. Erst hörst du ihr zu. + blocked: Anni Brodersen sitzt noch auf deinem Besucherstuhl. Wer bei diesem Wetter drei Treppen hochsteigt, um mit dir zu reden, hat etwas zu sagen. Erst hörst du ihr zu. baumwall: name: Am Baumwall @@ -31,11 +33,11 @@ rooms: - { visited: zollkanal } - { visited: kneipe } - { visited: nissenhuette } - text: Unter dem {viadukt}, an der {bekanntmachung}. Kaischuppen im SĂŒden, Zollkanal im Osten, St. Pauli im Westen. + text: Wieder unter dem {viadukt}, an der {bekanntmachung} zum neuen Geld. Schuppen 17 liegt im SĂŒden, der Zollkanal im Osten, St. Pauli im Westen; an der Haltestelle wartet die Straßenbahn zur Siedlung, und die Treppe fĂŒhrt hinauf in deine Detektei. - text: |- - Unter dem {viadukt} der Hochbahn stehen PfĂŒtzen voller Ziegelstaub. An der LitfaßsĂ€ule klebt die {bekanntmachung} zum neuen Geld, darĂŒber ragen KrĂ€ne wie Galgen in den Regen. + Unter dem {viadukt} der Hochbahn stehen PfĂŒtzen voller Ziegelstaub, und ĂŒber den Hafen ragen die KrĂ€ne wie Galgen in den Regen. An der LitfaßsĂ€ule klebt die {bekanntmachung} zum neuen Geld. Davor bleiben die Leute stehen, lesen und rechnen mit den Lippen, als könnten sie das Ergebnis noch Ă€ndern. - Nach SĂŒden geht es zum Kaischuppen 17, noch diesseits des Zollzauns. Nach Osten liegt der Zollkanal, nach Westen liegen die Kneipen von St. Pauli. An der Haltestelle wartet die Straßenbahn zur Siedlung. Die Treppe hinauf fĂŒhrt in deine Detektei. + Von hier aus erreichst du alles, was Anni genannt hat. Nach SĂŒden geht es zu Schuppen 17, einem Lagerschuppen am Kai noch diesseits des Zollzauns, wo Jakobs Spind steht. Nach Osten liegt der Zollkanal, wo sein Freund Tadeusz Wache hĂ€lt. Nach Westen liegen die Kneipen von St. Pauli, in denen ein Vorarbeiter nach Feierabend sitzt. An der Haltestelle wartet die Straßenbahn zur Siedlung, und die Treppe hinauf fĂŒhrt zurĂŒck in deine Detektei. exits: up: { to: detektei } south: { to: kaischuppen } @@ -49,9 +51,9 @@ rooms: nissenhuette: name: NissenhĂŒtte 14 description: |- - Ein halbes Wellblechfass im Schlamm, eins von hundert hinter dem Bahndamm. Der Regen trommelt aufs Dach. + Die Straßenbahn lĂ€sst dich am Bahndamm aussteigen. Dahinter liegen die NissenhĂŒtten im Schlamm, hundert halbe WellblechfĂ€sser in Reihen, und auf jedes trommelt derselbe Regen. HĂŒtte 14 ist die mit dem geflickten Fenster. - Ein {kanonenofen}, zwei {feldbetten}, eine Wolldecke als Wand; dahinter schlĂ€ft {lotte}. Auf dem Bord neben der TĂŒr steht eine {blechdose}. Draußen hĂ€lt die Straßenbahn in die Stadt. + Drinnen ist es warm und eng. Ein {kanonenofen} brennt, obwohl es Juni ist, zwei {feldbetten} stehen an der Wand, und eine Wolldecke an einer Schnur trennt eine Ecke ab, in der {lotte} schlĂ€ft. Auf dem Bord neben der TĂŒr steht eine {blechdose}. Draußen hĂ€lt die Straßenbahn in die Stadt. exits: stadt: to: baumwall @@ -59,20 +61,20 @@ rooms: synonyms: [Straßenbahn, Bahn, Stadt, Baumwall, Tram, Haltestelle] kaischuppen: - name: Kaischuppen 17 + name: Schuppen 17 # After the first visit (Aushang read or locker open) a short text; text variants only. description: - when: { has: clue_tally } - text: Der Schuppen riecht nach Jute und Teer. Am Tor der {aushang}, an der Wand die {spindreihe}, mittendrin {spind_jakob}. In der {glaskabine} hĂ€ngt das {klemmbrett} schief am Nagel. Nach Norden geht es zum Baumwall. + text: Der Schuppen riecht nach Jute und Teer. Am Tor hĂ€ngt der {aushang}, an der Wand stehen die {spindreihe}, mittendrin der offene {spind_jakob}. In der {glaskabine} hĂ€ngt das {klemmbrett} wieder am Nagel, ein wenig schiefer als vorher. Nach Norden geht es zum Baumwall. - when: any: - { has: clue_loeschliste } - { isOpen: spind_jakob } - text: Der Schuppen riecht nach Jute und Teer. Am Tor der {aushang}, an der Wand die {spindreihe}, mittendrin {spind_jakob}. In der {glaskabine} hĂ€ngt das {klemmbrett}, außer Reichweite. Nach Norden geht es zum Baumwall. + text: Der Schuppen riecht nach Jute und Teer. Am Tor hĂ€ngt der {aushang}, an der Wand stehen die {spindreihe}, mittendrin {spind_jakob}. In der {glaskabine} hĂ€ngt das {klemmbrett}, außer Reichweite. Nach Norden geht es zum Baumwall. - text: |- - Der Schuppen ist lang wie eine Straße und leer bis auf den Geruch: nasse Jute, Teer, Tabak. Am Tor hĂ€ngt ein {aushang}. An der Wand stehen die {spindreihe}; einer ist mit Kreide markiert: {spind_jakob}. + Der Schuppen ist lang wie eine Straße und leer bis auf den Geruch: nasse Jute, Teer und, ganz schwach, Tabak. Am Sonnabendabend arbeitet hier keiner. Nur das Wasser schlĂ€gt draußen gegen die Kaimauer, und durch ein Loch im Dach fĂ€llt ein Streifen Regen auf den Beton. - Daneben die verschlossene {glaskabine} des Schuppenmeisters. Durch einen Spalt ĂŒber ihrer TĂŒr siehst du ein {klemmbrett} an einem Nagel. Nach Norden geht es zum Baumwall. + Am Tor hĂ€ngt ein {aushang}. An der Wand stehen die {spindreihe}, grau und verbeult. Auf einem steht mit Kreide eine 23 und darunter, kleiner, ein Wort: DIEB. Das ist {spind_jakob|Jakobs Spind}. Daneben steht die verschlossene {glaskabine} des Schuppenmeisters. Durch einen Spalt ĂŒber ihrer TĂŒr siehst du ein {klemmbrett} an einem Nagel hĂ€ngen. Nach Norden geht es zum Baumwall. exits: north: { to: baumwall } @@ -81,13 +83,13 @@ rooms: # Short texts once you have been here (paid the Wirt or talked to Kröger); text variants only. description: - when: { flag: hintertuer_frei } - text: Rauch unter der niedrigen Decke. Der {wirt} zapft am {tresen} DĂŒnnbier, auf der {kreidetafel} steht etwas ĂŒber Reichsmark. Die {hoftuer} zum Hof steht dir offen, nach Osten geht es zum Baumwall. + text: Rauch unter der niedrigen Decke. Der {wirt} zapft am {tresen} DĂŒnnbier, auf der {kreidetafel} steht noch immer, bis wann Reichsmark gelten. Die {hoftuer} zum Hof steht dir offen, und nach Osten geht es zum Baumwall. - when: { has: clue_kroeger_version } - text: Rauch unter der niedrigen Decke. Der {wirt} zapft am {tresen} DĂŒnnbier, auf der {kreidetafel} steht etwas ĂŒber Reichsmark. Eine {hoftuer} fĂŒhrt auf den Hof, nach Osten geht es zum Baumwall. + text: Rauch unter der niedrigen Decke. Der {wirt} zapft am {tresen} DĂŒnnbier, auf der {kreidetafel} steht etwas ĂŒber Reichsmark. Die {hoftuer} zum Hof bewacht der Wirt, und nach Osten geht es zum Baumwall. - text: |- - Eine Kellerkneipe in St. Pauli, die Decke so niedrig, dass der Rauch nicht weiß, wohin. Hinter dem {tresen} zapft der {wirt} DĂŒnnbier. Auf der {kreidetafel} steht etwas ĂŒber Reichsmark. + Eine Kellerkneipe in St. Pauli, sieben Stufen unter dem Pflaster und die Decke so niedrig, dass der Rauch nicht weiß, wohin. Es ist voller als sonst an einem Sonnabend. Wer heute noch Reichsmark hat, trinkt sie aus, bevor sie morgen nichts mehr wert sind. - Eine {hoftuer} fĂŒhrt auf den Hof. Nach Osten geht es zurĂŒck zum Baumwall. + Hinter dem {tresen} zapft der {wirt} DĂŒnnbier, und auf der {kreidetafel} ĂŒber seinem Kopf steht etwas ĂŒber Reichsmark. In der Ecke fĂŒhrt eine {hoftuer} auf den Hof; dahinter wird geflĂŒstert. Nach Osten geht es zurĂŒck zum Baumwall. exits: east: { to: baumwall } hintertuer: @@ -95,14 +97,14 @@ rooms: label: Durch die HintertĂŒr synonyms: [HintertĂŒr, TĂŒr, Hof, Hinterhof] when: { flag: hintertuer_frei } - blocked: Der Wirt stellt sich vor die TĂŒr. »Da hinten nur Kundschaft, die zahlt.« + blocked: Der Wirt stellt sich vor die TĂŒr, ohne dass es nach Absicht aussieht. »Da hinten nur Kundschaft, die zahlt.« hinterhof: name: Hinterhof description: |- - Zwischen zwei Brandmauern spannt sich eine {plane}. Darunter wird geflĂŒstert und getauscht: Feuersteine, Nylons, Kaffee in TĂŒten. Ein Pfiff, und der Hof wĂ€re leer. + Zwischen zwei Brandmauern spannt sich eine {plane}, und darunter ist Markt. Man flĂŒstert und tauscht: Feuersteine gegen Nylons, Kaffee in TĂŒten gegen Schnaps in Flaschen ohne Etikett. Keiner sieht dir ins Gesicht, alle sehen auf deine HĂ€nde. Ein Pfiff, und der Hof wĂ€re leer. - Unter der Plane steht {lene} mit ihrem {bauchladen}. Die TĂŒr fĂŒhrt hinein in die Kneipe. + Unter der Plane steht {lene} mit ihrem {bauchladen}, die SchaffnermĂŒtze schief auf dem Kopf, und lĂ€sst dich herankommen, ohne sich zu rĂŒhren. Die TĂŒr fĂŒhrt hinein in die Kneipe. exits: in: { to: kneipe } @@ -111,11 +113,11 @@ rooms: # Short text once the boat hook is gone (you have been here before); text variants only. description: - when: { not: { in: { object: bootshaken, location: zollkanal } } } - text: Schwarzes Wasser, {schuten|Schuten} im Regen, drĂŒben {speicher_k}. Ein {zollgitter} sperrt die BrĂŒcke, in der {wachbude} brennt Petroleum. Nach Westen geht es zum Baumwall. + text: Schwarzes Wasser, {schuten|LastkĂ€hne} im Regen und drĂŒben {speicher_k}. Ein {zollgitter} sperrt die BrĂŒcke, in der {wachbude} brennt Petroleum. Nach Westen geht es zum Baumwall. - text: |- - Schwarzes Wasser zwischen Kaimauern. {schuten|Schuten} liegen Bordwand an Bordwand und sammeln Regen. DrĂŒben stehen die Giebel der Speicherstadt ohne DĂ€cher, mittendrin {speicher_k}. + Schwarzes Wasser zwischen Kaimauern. {schuten|LastkĂ€hne} liegen Bordwand an Bordwand und sammeln Regen. DrĂŒben, auf der anderen Seite des Kanals, beginnt der Freihafen: die Giebel der Speicherstadt ohne DĂ€cher, ausgebrannt seit dem Sommer dreiundvierzig, und mittendrin {speicher_k}. - Die BrĂŒcke hinĂŒber sperrt ein {zollgitter}. In der {wachbude} brennt Petroleum. Nach Westen geht es zum Baumwall. + Die BrĂŒcke hinĂŒber sperrt ein {zollgitter}, denn nachts ist die Zollgrenze zu. Daneben steht eine {wachbude}, in der eine Petroleumlampe brennt. Hier hĂ€lt jemand Wache ĂŒber leere KĂ€hne. Nach Westen geht es zum Baumwall. exits: west: { to: baumwall } ueberfahrt: @@ -126,10 +128,14 @@ rooms: speicher_wasserseite: name: Speicher K, Wasserseite - description: |- - Eine glitschige Wassertreppe, grĂŒn bis zur Hochwassermarke. An einem Ring liegt die leere {schute_elise}; sie riecht nach Rohkaffee. + # The crossing is told on the first arrival; later arrivals get a short text (text variant only). + description: + - when: { visited: speicher_treppe } + text: Die glitschige Treppe am Wasser, an ihrem Ring der leere {schute_elise}. Die Ladeluke fĂŒhrt hinauf ins Treppenhaus, und Tadeusz wartet im Boot. + - text: |- + Tadeusz rudert, ohne ein Wort zu sagen, und das Boot gleitet unter dem Zollgitter hindurch in den Freihafen, wo du ohne Ausweis nichts zu suchen hast. Der Regen macht die Ufer gleich. Vor euch wĂ€chst Speicher K aus dem Dunkel, bis das Boot gegen eine steinerne Treppe stĂ¶ĂŸt, die ins Wasser fĂŒhrt, grĂŒn und glitschig bis zur Hochwassermarke. - Über dir vier Stockwerke Backstein, schwarz vom Feuer. Eine Ladeluke steht offen, dahinter geht eine Treppe hinauf. Tadeusz wartet im Boot. + An einem Eisenring daneben liegt der leere {schute_elise}, und noch im Regen riecht er nach Rohkaffee. Über dir steigen vier Stockwerke Backstein auf, schwarz vom Feuer. Nur eine Ladeluke dicht ĂŒber dem Wasser steht offen, dahinter fĂŒhrt eine Treppe nach oben. Irgendwo da oben ist Jakob. Tadeusz hĂ€lt das Boot an der Mauer und wartet. exits: up: { to: speicher_treppe } boot: @@ -141,18 +147,18 @@ rooms: name: Treppenhaus Speicher K description: - when: { isOpen: bodentuer } - text: Im Laternenlicht verkohlte Stufen. Oben steht die {bodentuer} zum vierten Boden offen, unten liegt ein Lichtstreifen unter der {kontortuer}. Hinaus geht es zur Wasserseite. + text: Im Laternenlicht die verkohlten Stufen. Oben steht die {bodentuer} zum vierten Stock offen, und unten liegt noch immer ein Lichtstreifen unter der {kontortuer}. Hinaus geht es zur Wasserseite. - when: { flag: laterne_an } - text: Im Laternenlicht verkohlte Stufen. Oben verschließt eine {bodentuer} den vierten Boden, unten liegt ein Lichtstreifen unter der {kontortuer}. Hinaus geht es zur Wasserseite. + text: Im Laternenlicht siehst du jetzt, wie die Treppe gebaut ist, und wo sie nicht mehr hĂ€lt. Oben verschließt eine {bodentuer} den vierten Stock, unten liegt ein Lichtstreifen unter der {kontortuer}. Hinaus geht es zur Wasserseite. - text: |- - Fast dunkel. Verkohlte Stufen, die noch halten; es riecht nach kaltem Rauch und, absurd, nach Kaffee. + Es ist fast dunkel. Unter deinen FĂŒĂŸen verkohlte Stufen, die noch halten, wenn man an der Wand bleibt. Es riecht nach kaltem Rauch und, absurd in diesem ausgebrannten Haus, nach frischem Kaffee. - Oben ahnst du eine {bodentuer}. Unten liegt ein Lichtstreifen unter der {kontortuer}. Hinaus geht es zur Wasserseite. + Oben ahnst du eine {bodentuer}. Unten, ein halbes Stockwerk tiefer, liegt ein Lichtstreifen unter der {kontortuer}, und hinter ihr klirrt etwas. In diesem Haus ist noch jemand wach. Hinaus geht es zur Wasserseite. exits: up: to: vierter_boden door: bodentuer - blocked: Die BodentĂŒr ist zu. + blocked: Die BrandschutztĂŒr ist zu. # Asmussen gets you only with every proof in hand: the finale ladder # forgets your progress when you leave it (no state), so it is never # entered half-armed. The blocked texts point to what is missing. @@ -163,29 +169,29 @@ rooms: - { has: clue_dieselbe_hand } blocked: - when: { not: { has: clue_jakob_aussage } } - text: Unter der KontortĂŒr liegt ein Lichtstreifen. Asmussen kann warten. Erst Jakob. + text: Unter der BĂŒrotĂŒr liegt ein Lichtstreifen. Wer da unten sitzt, kann warten. Erst Jakob. - when: { not: { has: clue_anweisung } } - text: Du legst die Hand auf die Klinke und zögerst. Asmussen wird alles abstreiten. Hast du oben wirklich alles gesehen? + text: Du legst die Hand auf die Klinke und zögerst. Asmussen wird alles abstreiten, und mit Jakobs Wort allein steht Fieber gegen einen Kaufmann. Hast du oben wirklich alles gesehen? - text: Du legst die Hand auf die Klinke und zögerst. Asmussen wird alles abstreiten. Wer hat die Anweisung geschrieben? Die Antwort steckt schon in deinem Notizbuch. out: { to: speicher_wasserseite } vierter_boden: - name: Vierter Boden + name: Vierter Stock description: |- - Kisten bis unter die verkohlten Balken, sorgfĂ€ltig gestapelt und mit Teerpappe abgedeckt: {kisten|NAAFI-Kisten}, {kaffeesaecke|SĂ€cke mit Rohkaffee}. Das Trockenste, was du heute gesehen hast. + Hinter der TĂŒr ist es trocken, zum ersten Mal an diesem Tag. Kisten stehen bis unter die verkohlten Balken, sorgfĂ€ltig gestapelt und mit Teerpappe gegen den Regen abgedeckt, als hĂ€tte hier jemand mehr Sorgfalt auf die Ware verwendet als auf das Haus: {kisten|NAAFI-Kisten} und {kaffeesaecke|SĂ€cke mit Rohkaffee}. - Am Pfeiler liegt {jakob}, das Bein mit zwei Latten geschient. Neben ihm steht eine {wasserkanne}; darunter klemmt ein {zettel}. Durch die offene {bodentuer} fĂŒhrt die Treppe hinunter. + Am Pfeiler liegt {jakob} auf einer Decke, das rechte Bein mit zwei Latten geschient. Neben ihm steht eine {wasserkanne}, und darunter klemmt ein {zettel}. Durch die offene {bodentuer} fĂŒhrt die Treppe hinunter. exits: down: to: speicher_treppe door: bodentuer - blocked: Die BodentĂŒr ist zu. + blocked: Die BrandschutztĂŒr ist zu. kontor: - name: Kontor Asmussen + name: Asmussens BĂŒro description: |- - Mahagoni, ein {kachelofen}, der wirklich brennt, und der Geruch von echtem Bohnenkaffee. Auf dem {kontortisch|Schreibtisch} liegt ein {fuellhalter} neben einer {kaffeetasse}. + Drei Stufen tiefer ist Frieden. Mahagoni an den WĂ€nden, ein {kachelofen}, der wirklich brennt, und der Geruch von echtem Bohnenkaffee, den es in dieser Stadt seit Jahren nur gegen Beziehungen gibt. Auf dem {kontortisch|Schreibtisch} liegt ein {fuellhalter} neben einer {kaffeetasse}. - Hier unten ist es, als hĂ€tte es den Krieg nie gegeben. Die Treppe fĂŒhrt hinauf. + Hier unten ist es, als hĂ€tte es den Krieg nie gegeben, und vielleicht ist das fĂŒr manche Leute auch so. Die Treppe fĂŒhrt hinauf. exits: up: { to: speicher_treppe } diff --git a/packs/letzte-nacht-der-reichsmark/rules.yaml b/packs/letzte-nacht-der-reichsmark/rules.yaml index 43096f2..2a615e3 100644 --- a/packs/letzte-nacht-der-reichsmark/rules.yaml +++ b/packs/letzte-nacht-der-reichsmark/rules.yaml @@ -43,11 +43,12 @@ rules: on: { verb: look, object: aushang } do: - say: |- - Ein Aushang am Tor, mit Reißzwecken gegen den Wind gehalten. Mit Schreibmaschine getippt, schon etwas aufgeweicht: - LÖSCHLISTE · Kaischuppen 17 + Ein Aushang am Tor, mit Reißzwecken gegen den Wind gehalten. Mit Schreibmaschine getippt, schon etwas aufgeweicht, aber lesbar: + LADELISTE · Schuppen 17 Do. 17.6.48, Nachtschicht D. Elspeth Gray, NAAFI-Ware, Los 4471: 200 Kisten Zigaretten Abtransport NAAFI-Depot Fr. 5 Uhr unter Bewachung + - say: Die Ladeliste der Nacht, in der Jakob verschwunden ist. Zweihundert Kisten englische Zigaretten, Ware der NAAFI, die die britischen Truppen versorgt. In dieser Stadt ist eine Kiste davon mehr wert als ein Monatslohn. Du schreibst dir die Zahlen ab. - learn: clue_loeschliste - id: look_zettel @@ -57,6 +58,8 @@ rules: Ein Zettel, unter die Wasserkanne geklemmt, damit er nicht wegweht. GrĂŒne Tinte, steile Schrift: â€șW. – Der Mann bleibt oben. Wasser ja, Licht nein. Montag sechs Uhr geht die Ware raus, dann lass ihn laufen. Wer glaubt schon einem Dieb?â€č Keine Unterschrift. Jedes »g« hat eine Schleife nach rechts. + + Du liest es zweimal. â€șWer glaubt schon einem Dieb?â€č Das ist der ganze Plan, in einem Satz: Jakob bleibt hier oben, bis die Ware am Montag fort ist, und danach kann er erzĂ€hlen, was er will. Kröger hat die Anweisung bekommen, nicht geschrieben. Wer schreibt mit grĂŒner Tinte? - learn: clue_anweisung - id: take_zettel @@ -78,9 +81,9 @@ rules: - unlock: spind_jakob - open: spind_jakob - move: { object: spindschluessel, to: nowhere } - - say: "Der SchlĂŒssel dreht sich schwer, dann gibt das Bartschloss nach. Du lĂ€sst den SchlĂŒssel stecken. Innen an der TĂŒr, schabloniert: â€șZweitschlĂŒssel beim Vorarbeiterâ€č. Der Spind ist leer. Fast: Hinter der RĂŒckwand klemmt ein {zigarettenpaeckchen}." + - say: "Der SchlĂŒssel dreht sich schwer, dann gibt das Bartschloss nach, und du lĂ€sst den SchlĂŒssel stecken. Der Spind ist leer; die Polizei hat mitgenommen, was sie finden wollte. Innen an der TĂŒr steht etwas, schabloniert, wie in jedem dieser Spinde: â€șZweitschlĂŒssel beim Vorarbeiterâ€č. Und hinter der RĂŒckwand klemmt ein {zigarettenpaeckchen}, das sie ĂŒbersehen haben." - learn: clue_zweitschluessel - - say: Ein zweiter SchlĂŒssel, beim Vorarbeiter. Und Jakobs eigener hing zu Hause am Haken. Zwei EintrĂ€ge in deinem Notizbuch, die zusammengehören. + - say: Ein zweiter SchlĂŒssel also, und den hat der Vorarbeiter, Kröger, derselbe Mann, der am Freitag vor dem Kommissar aufgeschlossen hat. Jakobs eigener SchlĂŒssel hing seit Donnerstagmittag zu Hause am Haken. Zwei EintrĂ€ge in deinem Notizbuch, die zusammengehören. - score: 1 - id: use_schluessel_spind @@ -92,9 +95,9 @@ rules: - unlock: spind_jakob - open: spind_jakob - move: { object: spindschluessel, to: nowhere } - - say: "Der SchlĂŒssel dreht sich schwer, dann gibt das Bartschloss nach. Du lĂ€sst den SchlĂŒssel stecken. Innen an der TĂŒr, schabloniert: â€șZweitschlĂŒssel beim Vorarbeiterâ€č. Der Spind ist leer. Fast: Hinter der RĂŒckwand klemmt ein {zigarettenpaeckchen}." + - say: "Der SchlĂŒssel dreht sich schwer, dann gibt das Bartschloss nach, und du lĂ€sst den SchlĂŒssel stecken. Der Spind ist leer; die Polizei hat mitgenommen, was sie finden wollte. Innen an der TĂŒr steht etwas, schabloniert, wie in jedem dieser Spinde: â€șZweitschlĂŒssel beim Vorarbeiterâ€č. Und hinter der RĂŒckwand klemmt ein {zigarettenpaeckchen}, das sie ĂŒbersehen haben." - learn: clue_zweitschluessel - - say: Ein zweiter SchlĂŒssel, beim Vorarbeiter. Und Jakobs eigener hing zu Hause am Haken. Zwei EintrĂ€ge in deinem Notizbuch, die zusammengehören. + - say: Ein zweiter SchlĂŒssel also, und den hat der Vorarbeiter, Kröger, derselbe Mann, der am Freitag vor dem Kommissar aufgeschlossen hat. Jakobs eigener SchlĂŒssel hing seit Donnerstagmittag zu Hause am Haken. Zwei EintrĂ€ge in deinem Notizbuch, die zusammengehören. - score: 1 - id: use_schluessel_glaskabine @@ -124,8 +127,8 @@ rules: - move: { object: zigarettenpaeckchen, to: inventory } - say: - when: { has: clue_loeschliste } - text: "Du ziehst das PĂ€ckchen hinter der RĂŒckwand hervor. Auf der Banderole: â€șNAAFI – LOT 4471â€č. Ein Los, ein Schiff – das weißt du noch aus der Versicherung. Welches Schiff, steht auf der Löschliste." - - text: "Du ziehst das PĂ€ckchen hinter der RĂŒckwand hervor. Auf der Banderole: â€șNAAFI – LOT 4471â€č. Ein Los, ein Schiff – das weißt du noch aus der Versicherung." + text: "Du ziehst das PĂ€ckchen hinter der RĂŒckwand hervor. Auf der Banderole steht â€șNAAFI – LOT 4471â€č. Das weißt du noch aus der Versicherung: Die NAAFI vergibt Losnummern pro Lieferung, ein Los, ein Schiff. Welches Schiff, steht auf der Ladeliste am Tor." + - text: "Du ziehst das PĂ€ckchen hinter der RĂŒckwand hervor. Auf der Banderole steht â€șNAAFI – LOT 4471â€č. Das weißt du noch aus der Versicherung: Die NAAFI vergibt Losnummern pro Lieferung, ein Los, ein Schiff. Mit der Nummer lĂ€sst sich herausfinden, wann diese Zigaretten an Land kamen." - learn: clue_los4471 # ------------------------------------------------------------------------- @@ -137,16 +140,16 @@ rules: when: { not: { has: bootshaken } } do: - move: { object: bootshaken, to: inventory } - - say: "»Nehmen Sie«, sagt Tadeusz, ohne aufzusehen. »Er gehört mir sowieso nicht.«" + - say: "»Nehmen Sie«, sagt Tadeusz, ohne aufzusehen. »Er gehört mir sowieso nicht. Hier gehört mir gar nichts.«" - id: angeln_klemmbrett on: { verb: use, object: bootshaken, with: klemmbrett } when: { not: { has: clue_tally } } do: - say: |- - Du schiebst den Bootshaken durch den Spalt und angelst nach dem Nagel. Beim dritten Mal kommt das Klemmbrett mit: â€șElspeth Gray, Do. Nachtschicht: 180 Kisten. W. Kröger, i. V. Tallymann.â€č + Du schiebst den Bootshaken durch den Spalt und angelst nach dem Nagel. Zweimal rutscht das Brett ab, beim dritten Mal kommt es mit, und du hĂ€ltst den ZĂ€hlzettel der Donnerstagnacht in der Hand: â€șElspeth Gray, Do. Nachtschicht: 180 Kisten. W. Kröger, i. V. KontrollzĂ€hler.â€č - Du hĂ€ngst es zurĂŒck. Dabei rutscht dir der Haken aus der Hand und poltert in die Kabine. Er gehörte Tadeusz ja sowieso nicht. + Kröger hat also selbst gezĂ€hlt, ausgerechnet in dieser Nacht, in Vertretung des KontrollzĂ€hlers. Du schreibst die Zahl ab und hĂ€ngst das Brett zurĂŒck. Dabei rutscht dir der Haken aus der Hand und poltert in die Kabine. Er gehörte Tadeusz ja sowieso nicht. - move: { object: bootshaken, to: nowhere } - learn: clue_tally - score: 1 @@ -156,9 +159,9 @@ rules: when: { not: { has: clue_tally } } do: - say: |- - Du schiebst den Bootshaken durch den Spalt und angelst nach dem Nagel. Beim dritten Mal kommt das Klemmbrett mit: â€șElspeth Gray, Do. Nachtschicht: 180 Kisten. W. Kröger, i. V. Tallymann.â€č + Du schiebst den Bootshaken durch den Spalt und angelst nach dem Nagel. Zweimal rutscht das Brett ab, beim dritten Mal kommt es mit, und du hĂ€ltst den ZĂ€hlzettel der Donnerstagnacht in der Hand: â€șElspeth Gray, Do. Nachtschicht: 180 Kisten. W. Kröger, i. V. KontrollzĂ€hler.â€č - Du hĂ€ngst es zurĂŒck. Dabei rutscht dir der Haken aus der Hand und poltert in die Kabine. Er gehörte Tadeusz ja sowieso nicht. + Kröger hat also selbst gezĂ€hlt, ausgerechnet in dieser Nacht, in Vertretung des KontrollzĂ€hlers. Du schreibst die Zahl ab und hĂ€ngst das Brett zurĂŒck. Dabei rutscht dir der Haken aus der Hand und poltert in die Kabine. Er gehörte Tadeusz ja sowieso nicht. - move: { object: bootshaken, to: nowhere } - learn: clue_tally - score: 1 @@ -174,9 +177,9 @@ rules: when: { has: bootshaken } do: - say: |- - Du schiebst den Bootshaken durch den Spalt und angelst nach dem Nagel. Beim dritten Mal kommt das Klemmbrett mit: â€șElspeth Gray, Do. Nachtschicht: 180 Kisten. W. Kröger, i. V. Tallymann.â€č + Du schiebst den Bootshaken durch den Spalt und angelst nach dem Nagel. Zweimal rutscht das Brett ab, beim dritten Mal kommt es mit, und du hĂ€ltst den ZĂ€hlzettel der Donnerstagnacht in der Hand: â€șElspeth Gray, Do. Nachtschicht: 180 Kisten. W. Kröger, i. V. KontrollzĂ€hler.â€č - Du hĂ€ngst es zurĂŒck. Dabei rutscht dir der Haken aus der Hand und poltert in die Kabine. Er gehörte Tadeusz ja sowieso nicht. + Kröger hat also selbst gezĂ€hlt, ausgerechnet in dieser Nacht, in Vertretung des KontrollzĂ€hlers. Du schreibst die Zahl ab und hĂ€ngst das Brett zurĂŒck. Dabei rutscht dir der Haken aus der Hand und poltert in die Kabine. Er gehörte Tadeusz ja sowieso nicht. - move: { object: bootshaken, to: nowhere } - learn: clue_tally - score: 1 @@ -217,7 +220,7 @@ rules: on: { verb: use, object: clue_tally, with: clue_loeschliste } when: { not: { has: clue_zwanzig_kisten } } do: - - say: Laut Löschliste sollten zweihundert Kisten an Land, Kröger hat hundertachtzig gezĂ€hlt. Zwanzig Kisten haben sich zwischen Schiff und Schuppen in Luft aufgelöst. + - say: Du legst die beiden Zahlen nebeneinander. Laut Ladeliste sollten zweihundert Kisten an Land, Kröger hat hundertachtzig in den Schuppen gezĂ€hlt. Zwanzig Kisten haben sich zwischen Schiff und Schuppen in Luft aufgelöst, in einer Nacht, in der ausgerechnet der Vorarbeiter selbst die ZĂ€hlung gemacht hat. Kröger nennt das Schwund. Aber Schwund verkauft man nicht, und irgendwer verdient an zwanzig Kisten Zigaretten. - learn: clue_zwanzig_kisten - score: 1 @@ -230,7 +233,7 @@ rules: on: { verb: use, object: clue_tally, with: clue_zaehlheft } when: { not: { has: clue_zwanzig_kisten } } do: - - say: Jakob hat zweihundert Hieven gezĂ€hlt, Kröger hundertachtzig Kisten. Zwanzig Kisten haben sich zwischen Schiff und Schuppen in Luft aufgelöst. + - say: Jakob hat zweihundert Kisten am Kran gezĂ€hlt, Kröger hundertachtzig Kisten. Zwanzig Kisten haben sich zwischen Schiff und Schuppen in Luft aufgelöst, in einer Nacht, in der ausgerechnet der Vorarbeiter selbst die ZĂ€hlung gemacht hat. Kröger nennt das Schwund. Aber irgendwer verdient an zwanzig Kisten Zigaretten. - learn: clue_zwanzig_kisten - score: 1 @@ -243,7 +246,7 @@ rules: on: { verb: use, object: clue_los4471, with: clue_loeschliste } when: { not: { has: clue_frisch_an_land } } do: - - say: "Los 4471: die »Elspeth Gray«, Donnerstagnacht. Was in Jakobs Spind lag, war am Donnerstagmittag noch auf See." + - say: "Los 4471, das ist die Ladung der »Elspeth Gray«, entladen in der Donnerstagnacht. Was in Jakobs Spind lag, war am Donnerstagmittag also noch auf See. Wer es hineingelegt hat, hat das frĂŒhestens in der Nacht getan, in der Jakob verschwand." - learn: clue_frisch_an_land - score: 1 @@ -256,7 +259,7 @@ rules: on: { verb: use, object: zigarettenpaeckchen, with: clue_loeschliste } when: { not: { has: clue_frisch_an_land } } do: - - say: "Los 4471: die »Elspeth Gray«, Donnerstagnacht. Was in Jakobs Spind lag, war am Donnerstagmittag noch auf See." + - say: "Los 4471, das ist die Ladung der »Elspeth Gray«, entladen in der Donnerstagnacht. Was in Jakobs Spind lag, war am Donnerstagmittag also noch auf See. Wer es hineingelegt hat, hat das frĂŒhestens in der Nacht getan, in der Jakob verschwand." - learn: clue_frisch_an_land - score: 1 @@ -269,7 +272,7 @@ rules: on: { verb: use, object: clue_schluessel, with: clue_zweitschluessel } when: { not: { has: clue_nur_kroeger } } do: - - say: Jakobs SchlĂŒssel hing zu Hause, der zweite beim Vorarbeiter. Seit Donnerstagmittag hatte nur einer Zugang zu Spind 23. + - say: Du gehst es durch, wie du frĂŒher einen Schaden durchgegangen bist, der zu glatt aussah. Jakobs SchlĂŒssel hĂ€ngt seit Donnerstagmittag zu Hause am Haken. Den zweiten hat der Vorarbeiter. Ein Bartschloss geht nicht ohne SchlĂŒssel auf und nicht ohne SchlĂŒssel wieder zu. Seit Donnerstagmittag hatte also nur ein Mann Zugang zu Spind 23, und das ist Kröger. - learn: clue_nur_kroeger - score: 1 @@ -282,7 +285,10 @@ rules: on: { verb: use, object: clue_frisch_an_land, with: clue_nur_kroeger } when: { not: { has: clue_untergeschoben } } do: - - say: Die Ware kam an Land, als Jakob nicht mehr an seinen Spind konnte. Kröger schon. Jakob ist kein Dieb. Man hat ihn dazu gemacht. + - say: |- + Jetzt passt es zusammen. Die Ware kam in der Donnerstagnacht an Land, und zu diesem Zeitpunkt konnte Jakob seit Stunden nicht mehr an seinen Spind. Kröger schon. Jakob hat diese Zigaretten nicht gestohlen. Jemand hat sie ihm hineingelegt und am Freitagmorgen dafĂŒr gesorgt, dass der Kommissar sie findet. + + Das Ă€ndert den Fall. Wer einen Mann zum Dieb macht, will, dass niemand nach ihm sucht. Jakob ist nicht weggelaufen; irgendwer will, dass er wegbleibt. Und Tadeusz, sein Freund am Zollkanal, wird nur mit dir reden, wenn du das beweisen kannst. - learn: clue_untergeschoben - score: 2 @@ -295,7 +301,7 @@ rules: on: { verb: use, object: clue_zwanzig_kisten, with: clue_lene } when: { not: { has: clue_kein_schwund } } do: - - say: Zwanzig Kisten fehlen, und Kröger verkauft genau dieses Los. Das ist kein Schwund. Das ist ein GeschĂ€ft. + - say: Zwanzig Kisten fehlen auf Krögers ZĂ€hlung, und am Freitagmorgen verkauft Kröger genau dieses Los auf dem Schwarzmarkt. Das ist kein Schwund. Das ist ein GeschĂ€ft, und Kröger macht es nicht auf eigene Rechnung. Damit hĂ€lt Krögers erste Behauptung nicht mehr. - learn: clue_kein_schwund - score: 1 @@ -308,7 +314,7 @@ rules: on: { verb: use, object: clue_anweisung, with: clue_persilschein } when: { not: { has: clue_dieselbe_hand } } do: - - say: GrĂŒne Tinte, steile Schrift, das »g« mit der Schleife. Der Mann, der Kröger reingewaschen hat, hat auch Jakobs GefĂ€ngnis bestellt. + - say: GrĂŒne Tinte, steile Schrift, und jedes »g« hat dieselbe Schleife nach rechts, auf beiden BlĂ€ttern. Der Mann, der Kröger im Mai mit einem Persilschein reingewaschen hat, hat auch die Anweisung geschrieben, Jakob ohne Licht hier oben liegen zu lassen. Das war Asmussen, und er sitzt ein paar Stockwerke tiefer bei seinem Kaffee. - learn: clue_dieselbe_hand - score: 2 @@ -321,7 +327,7 @@ rules: on: { verb: use, object: zettel, with: clue_persilschein } when: { not: { has: clue_dieselbe_hand } } do: - - say: Du legst den Persilschein neben den Zettel. GrĂŒne Tinte, steile Schrift, das »g« mit der Schleife. Der Mann, der Kröger reingewaschen hat, hat auch Jakobs GefĂ€ngnis bestellt. + - say: Du legst den Persilschein neben den Zettel. GrĂŒne Tinte, steile Schrift, und jedes »g« hat dieselbe Schleife nach rechts, auf beiden BlĂ€ttern. Der Mann, der Kröger im Mai mit einem Persilschein reingewaschen hat, hat auch die Anweisung geschrieben, Jakob ohne Licht hier oben liegen zu lassen. Das war Asmussen, und er sitzt ein paar Stockwerke tiefer bei seinem Kaffee. - learn: clue_anweisung - learn: clue_dieselbe_hand - score: 2 @@ -335,7 +341,7 @@ rules: - id: nm_tally_los on: { verb: use, object: clue_tally, with: clue_los4471 } do: - - say: Auf dem Tallyzettel steht keine Losnummer. Aber irgendwo anders vielleicht. + - say: Auf dem ZĂ€hlzettel steht keine Losnummer. Aber irgendwo anders vielleicht. - id: nm_auftrag_zweitschluessel on: { verb: use, object: clue_auftrag, with: clue_zweitschluessel } @@ -370,7 +376,7 @@ rules: - id: nm_lene_tally on: { verb: use, object: clue_lene, with: clue_tally } do: - - say: Kröger verkauft Los 4471. Aber fehlt ĂŒberhaupt etwas? Erst gehört der Tallyzettel neben die Löschliste. + - say: Kröger verkauft Los 4471. Aber fehlt ĂŒberhaupt etwas? Erst gehört der ZĂ€hlzettel neben die Ladeliste. - id: nm_zwanzig_zaehlheft on: { verb: use, object: clue_zwanzig_kisten, with: clue_zaehlheft } @@ -432,7 +438,7 @@ rules: do: - say: - when: { has: clue_loeschliste } - text: Was auf dem Aushang steht, hast du als »Löschliste (200 Kisten)« im Notizbuch. Damit lĂ€sst sich arbeiten. + text: Was auf dem Aushang steht, hast du als »Ladeliste (200 Kisten)« im Notizbuch. Damit lĂ€sst sich arbeiten. - text: Erst mĂŒsstest du lesen, was auf dem Aushang steht. - id: use_aushang @@ -440,7 +446,7 @@ rules: do: - say: - when: { has: clue_loeschliste } - text: Was auf dem Aushang steht, hast du als »Löschliste (200 Kisten)« im Notizbuch. Damit lĂ€sst sich arbeiten. + text: Was auf dem Aushang steht, hast du als »Ladeliste (200 Kisten)« im Notizbuch. Damit lĂ€sst sich arbeiten. - text: Erst mĂŒsstest du lesen, was auf dem Aushang steht. # ------------------------------------------------------------------------- @@ -452,7 +458,7 @@ rules: on: { verb: give, object: reichsmark, with: wirt } when: { not: { flag: hintertuer_frei } } do: - - say: Der Wirt wiegt das BĂŒndel in der Hand, statt zu zĂ€hlen. »Zweihundert, schĂ€tz ich. Damit zahl ich der Brauerei meine Schulden, in Altpapier, und die mĂŒssen’s nehmen.« Er nickt zur HintertĂŒr. »Geh’n Se ruhig durch.« + - say: Du legst Annis BĂŒndel auf den Tresen. Der Wirt wiegt es in der Hand, statt zu zĂ€hlen, und zum ersten Mal an diesem Abend lĂ€chelt er. »Zweihundert, schĂ€tz ich. Damit zahl ich der Brauerei meine Schulden, in Altpapier, und bis Sonntag mĂŒssen die’s noch nehmen.« Er nickt zur HintertĂŒr. »Geh’n Se ruhig durch.« Das einzige Geld in Hamburg, das heute noch jemandem nĂŒtzt, ist das Honorar fĂŒr deinen Fall. - move: { object: reichsmark, to: nowhere } - set: hintertuer_frei - score: 1 @@ -466,7 +472,7 @@ rules: on: { verb: bezahlen, object: wirt } when: { not: { flag: hintertuer_frei } } do: - - say: Der Wirt wiegt das BĂŒndel in der Hand, statt zu zĂ€hlen. »Zweihundert, schĂ€tz ich. Damit zahl ich der Brauerei meine Schulden, in Altpapier, und die mĂŒssen’s nehmen.« Er nickt zur HintertĂŒr. »Geh’n Se ruhig durch.« + - say: Du legst Annis BĂŒndel auf den Tresen. Der Wirt wiegt es in der Hand, statt zu zĂ€hlen, und zum ersten Mal an diesem Abend lĂ€chelt er. »Zweihundert, schĂ€tz ich. Damit zahl ich der Brauerei meine Schulden, in Altpapier, und bis Sonntag mĂŒssen die’s noch nehmen.« Er nickt zur HintertĂŒr. »Geh’n Se ruhig durch.« Das einzige Geld in Hamburg, das heute noch jemandem nĂŒtzt, ist das Honorar fĂŒr deinen Fall. - move: { object: reichsmark, to: nowhere } - set: hintertuer_frei - score: 1 @@ -475,7 +481,7 @@ rules: on: { verb: bezahlen, object: tresen } when: { not: { flag: hintertuer_frei } } do: - - say: Der Wirt wiegt das BĂŒndel in der Hand, statt zu zĂ€hlen. »Zweihundert, schĂ€tz ich. Damit zahl ich der Brauerei meine Schulden, in Altpapier, und die mĂŒssen’s nehmen.« Er nickt zur HintertĂŒr. »Geh’n Se ruhig durch.« + - say: Du legst Annis BĂŒndel auf den Tresen. Der Wirt wiegt es in der Hand, statt zu zĂ€hlen, und zum ersten Mal an diesem Abend lĂ€chelt er. »Zweihundert, schĂ€tz ich. Damit zahl ich der Brauerei meine Schulden, in Altpapier, und bis Sonntag mĂŒssen die’s noch nehmen.« Er nickt zur HintertĂŒr. »Geh’n Se ruhig durch.« Das einzige Geld in Hamburg, das heute noch jemandem nĂŒtzt, ist das Honorar fĂŒr deinen Fall. - move: { object: reichsmark, to: nowhere } - set: hintertuer_frei - score: 1 @@ -484,7 +490,7 @@ rules: on: { verb: bezahlen, object: hoftuer } when: { not: { flag: hintertuer_frei } } do: - - say: Der Wirt wiegt das BĂŒndel in der Hand, statt zu zĂ€hlen. »Zweihundert, schĂ€tz ich. Damit zahl ich der Brauerei meine Schulden, in Altpapier, und die mĂŒssen’s nehmen.« Er nickt zur HintertĂŒr. »Geh’n Se ruhig durch.« + - say: Du legst Annis BĂŒndel auf den Tresen. Der Wirt wiegt es in der Hand, statt zu zĂ€hlen, und zum ersten Mal an diesem Abend lĂ€chelt er. »Zweihundert, schĂ€tz ich. Damit zahl ich der Brauerei meine Schulden, in Altpapier, und bis Sonntag mĂŒssen die’s noch nehmen.« Er nickt zur HintertĂŒr. »Geh’n Se ruhig durch.« Das einzige Geld in Hamburg, das heute noch jemandem nĂŒtzt, ist das Honorar fĂŒr deinen Fall. - move: { object: reichsmark, to: nowhere } - set: hintertuer_frei - score: 1 @@ -495,7 +501,7 @@ rules: - { at: kneipe } - { not: { flag: hintertuer_frei } } do: - - say: Der Wirt wiegt das BĂŒndel in der Hand, statt zu zĂ€hlen. »Zweihundert, schĂ€tz ich. Damit zahl ich der Brauerei meine Schulden, in Altpapier, und die mĂŒssen’s nehmen.« Er nickt zur HintertĂŒr. »Geh’n Se ruhig durch.« + - say: Du legst Annis BĂŒndel auf den Tresen. Der Wirt wiegt es in der Hand, statt zu zĂ€hlen, und zum ersten Mal an diesem Abend lĂ€chelt er. »Zweihundert, schĂ€tz ich. Damit zahl ich der Brauerei meine Schulden, in Altpapier, und bis Sonntag mĂŒssen die’s noch nehmen.« Er nickt zur HintertĂŒr. »Geh’n Se ruhig durch.« Das einzige Geld in Hamburg, das heute noch jemandem nĂŒtzt, ist das Honorar fĂŒr deinen Fall. - move: { object: reichsmark, to: nowhere } - set: hintertuer_frei - score: 1 @@ -573,8 +579,9 @@ rules: on: { verb: show, object: zigarettenpaeckchen, with: lene } when: { not: { has: clue_lene } } do: - - say: Lene sieht das PĂ€ckchen an, dann dich. »Freitag, sechs Uhr frĂŒh. Kröger. FĂŒnf Stangen, dieselbe Nummer. â€șDer Rest gehört dem Kaffeemann aus der Speicherstadtâ€č, hat er gesagt.« - - say: "»Am Abend is er bei den Brodersens rein. Mit ’nem Kuvert. Ich wohn drei HĂŒtten weiter, ich seh so was.« Sie tippt an ihre SchaffnermĂŒtze. »Der Ratschlag war umsonst. Wegen Jakob.«" + - say: Du hĂ€ltst ihr das PĂ€ckchen hin, die Banderole nach oben. Lene sieht es an, dann dich, und zum ersten Mal hört sie auf zu rechnen. »Freitag, sechs Uhr frĂŒh. Kröger. FĂŒnf Stangen, dieselbe Nummer, fĂŒr einen Preis, der zu gut war.« Sie spricht leise. »â€șDer Rest gehört dem Kaffeemann aus der Speicherstadtâ€č, hat er gesagt. Als ob ich das wissen wollte.« + - say: "»Und am Abend is er bei den Brodersens rein. Mit ’nem Kuvert in der Hand und ’nem Gesicht wie zur Beerdigung. Ich wohn drei HĂŒtten weiter, ich seh so was.« Sie tippt an ihre SchaffnermĂŒtze. »Der Ratschlag war umsonst, SchĂ€tzchen. Wegen Jakob. Der hat mir mal beim Ofen geholfen.«" + - say: FĂŒnf Stangen fĂŒr Lene, der Rest fĂŒr einen Kaffeemann. Kröger hat die Ware nicht verloren, er hat sie verteilt. Und hinterher ist er mit einem Kuvert zu der Frau gegangen, deren Mann er zum Dieb gemacht hat. Davon hat Anni dir nichts erzĂ€hlt. - learn: clue_lene - score: 1 @@ -582,8 +589,9 @@ rules: on: { verb: show, object: clue_los4471, with: lene } when: { not: { has: clue_lene } } do: - - say: Lene liest die Nummer in deinem Notizbuch, dann sieht sie dich an. »Freitag, sechs Uhr frĂŒh. Kröger. FĂŒnf Stangen, dieselbe Nummer. â€șDer Rest gehört dem Kaffeemann aus der Speicherstadtâ€č, hat er gesagt.« - - say: "»Am Abend is er bei den Brodersens rein. Mit ’nem Kuvert. Ich wohn drei HĂŒtten weiter, ich seh so was.« Sie tippt an ihre SchaffnermĂŒtze. »Der Ratschlag war umsonst. Wegen Jakob.«" + - say: Lene liest die Nummer in deinem Notizbuch, dann sieht sie dich an, und zum ersten Mal hört sie auf zu rechnen. »Freitag, sechs Uhr frĂŒh. Kröger. FĂŒnf Stangen, dieselbe Nummer, fĂŒr einen Preis, der zu gut war.« Sie spricht leise. »â€șDer Rest gehört dem Kaffeemann aus der Speicherstadtâ€č, hat er gesagt. Als ob ich das wissen wollte.« + - say: "»Und am Abend is er bei den Brodersens rein. Mit ’nem Kuvert in der Hand und ’nem Gesicht wie zur Beerdigung. Ich wohn drei HĂŒtten weiter, ich seh so was.« Sie tippt an ihre SchaffnermĂŒtze. »Der Ratschlag war umsonst, SchĂ€tzchen. Wegen Jakob. Der hat mir mal beim Ofen geholfen.«" + - say: FĂŒnf Stangen fĂŒr Lene, der Rest fĂŒr einen Kaffeemann. Kröger hat die Ware nicht verloren, er hat sie verteilt. Und hinterher ist er mit einem Kuvert zu der Frau gegangen, deren Mann er zum Dieb gemacht hat. Davon hat Anni dir nichts erzĂ€hlt. - learn: clue_lene - score: 1 @@ -731,7 +739,7 @@ rules: on: { verb: use, object: streichhoelzer, with: sturmlaterne } when: { not: { flag: laterne_an } } do: - - say: Der Docht fĂ€ngt beim zweiten Streichholz. Du hebst die Laterne an. Gelbes Licht auf schwarzen Stufen. + - say: Der Docht fĂ€ngt beim zweiten Streichholz. Du hebst die Laterne an, und gelbes Licht fĂ€llt auf schwarze Stufen, auf Ruß an den WĂ€nden und auf frische Fußspuren im Staub, immer dieselben Stiefel, hinauf und wieder hinunter. Jemand geht diese Treppe jeden Abend. - set: laterne_an - move: { object: sturmlaterne, to: inventory } @@ -748,7 +756,7 @@ rules: - { not: { flag: laterne_an } } - { has: streichhoelzer } do: - - say: Der Docht fĂ€ngt beim zweiten Streichholz. Du hebst die Laterne an. Gelbes Licht auf schwarzen Stufen. + - say: Der Docht fĂ€ngt beim zweiten Streichholz. Du hebst die Laterne an, und gelbes Licht fĂ€llt auf schwarze Stufen, auf Ruß an den WĂ€nden und auf frische Fußspuren im Staub, immer dieselben Stiefel, hinauf und wieder hinunter. Jemand geht diese Treppe jeden Abend. - set: laterne_an - move: { object: sturmlaterne, to: inventory } @@ -785,7 +793,7 @@ rules: do: - unlock: bodentuer - open: bodentuer - - say: Der SchlĂŒssel passt, natĂŒrlich. Das Schloss ist geölt, die TĂŒr schwingt lautlos nach innen auf. + - say: "Krögers SchlĂŒssel passt, natĂŒrlich. Das Schloss ist geölt, das einzige Ding in diesem Haus, das jemand pflegt, und die TĂŒr schwingt lautlos nach innen auf. Von oben kommt warme, abgestandene Luft und ein GerĂ€usch, das du erst nach einem Moment erkennst: Jemand zĂ€hlt, leise und ohne Fehler." - score: 1 - id: bodentuer_auf_use @@ -796,7 +804,7 @@ rules: do: - unlock: bodentuer - open: bodentuer - - say: Der SchlĂŒssel passt, natĂŒrlich. Das Schloss ist geölt, die TĂŒr schwingt lautlos nach innen auf. + - say: "Krögers SchlĂŒssel passt, natĂŒrlich. Das Schloss ist geölt, das einzige Ding in diesem Haus, das jemand pflegt, und die TĂŒr schwingt lautlos nach innen auf. Von oben kommt warme, abgestandene Luft und ein GerĂ€usch, das du erst nach einem Moment erkennst: Jemand zĂ€hlt, leise und ohne Fehler." - score: 1 - id: close_bodentuer @@ -819,7 +827,7 @@ rules: - { has: clue_jakob_aussage } - { has: clue_dieselbe_hand } do: - - say: Sie ist nur angelehnt. Drei Stufen tiefer brennt Licht, und es riecht nach Bohnenkaffee. + - say: Du hast, was du brauchst. Die TĂŒr ist nur angelehnt, als erwarte da unten jemand Besuch. Drei Stufen tiefer brennt Licht, und es riecht nach Bohnenkaffee. - goto: kontor - id: open_kontortuer_beweis @@ -864,7 +872,7 @@ rules: - id: zaehlen_kisten on: { verb: zaehlen, object: kisten } do: - - say: Zwanzig. Genau die zwanzig, die auf Krögers Tallyzettel fehlen. + - say: Zwanzig. Genau die zwanzig, die auf Krögers ZĂ€hlzettel fehlen. - id: zaehlen_reichsmark on: { verb: zaehlen, object: reichsmark } diff --git a/packs/locked-study/pack.yaml b/packs/locked-study/pack.yaml index 3dbbe48..31ec593 100644 --- a/packs/locked-study/pack.yaml +++ b/packs/locked-study/pack.yaml @@ -1,18 +1,18 @@ # yaml-language-server: $schema=../../schema/lexvm-pack-1.schema.json # -# A five-minute demo that exercises most of the format: a locked door, a hidden +# A short demo that exercises most of the format: a locked door, a hidden # item, a container, a pack verb, a clue, a conversation, hints and a score. # It doubles as the reference example for authors and LLM prompts. format: lexvm-pack/1 id: locked-study -version: 1.0.1 +version: 1.0.2 title: The Locked Study -subtitle: A five-minute LexVM demo +subtitle: A short LexVM demo description: Your uncle has vanished and his study is locked. A tiny tour of rooms, items, a locked door, a clue and a conversation. language: en author: LexVM contributors license: CC0-1.0 -playtime: 5 +playtime: 7 maxScore: 3 start: diff --git a/prompts/oneshot.md b/prompts/oneshot.md index 3235c56..df863c7 100644 --- a/prompts/oneshot.md +++ b/prompts/oneshot.md @@ -1,6 +1,6 @@ # Write a LexVM text adventure -You are an experienced adventure game designer in the tradition of the classic LucasArts and Infocom games, and a precise technical writer. Your task: turn the idea at the very end of this prompt into a complete, playable **LexVM content pack** — one `pack.yaml` file. +You are an experienced adventure game designer in the tradition of the classic LucasArts and Infocom games, a writer of fiction who can carry a story through scenes, and a precise technical writer. Your task: turn the idea at the very end of this prompt into a complete, playable **LexVM content pack** — one `pack.yaml` file. LexVM is an offline text-adventure player for phones and tablets. Players mostly tap: they tap an object, pick a verb from its action sheet, and for two-object verbs pick a second object; a text parser is optional. A pack is pure data in the YAML format specified below; it contains no code. Every pack is checked by `lexvm check`: schema, references, a replay of the walkthrough, and an exhaustive exploration of all reachable game states that proves the game can always still be won. @@ -8,14 +8,23 @@ LexVM is an offline text-adventure player for phones and tablets. Players mostly - **Pack language:** the language the idea is written in — `de` for German, `en` for English. LexVM supports these two pack languages; if the idea is written in another language, use English (`en`) unless the user asks for German. - **Target play time:** the length the idea asks for; if it names none, about 30 minutes. Write it into `playtime`. -- **Size budget:** LexVM estimates the play time from the walkthrough and the texts, and `lexvm check` warns when the estimate misses `playtime` by more than 25%. Pick the row that matches the requested length (no length requested: 30 minutes; between two rows: interpolate) and keep the walkthrough and the player-visible text of the whole pack within it. About a quarter of the walkthrough steps are dialogue choices, and about 60% of the words appear along the walkthrough. - -| Play time | `de`: walkthrough steps | `de`: words of text | `en`: walkthrough steps | `en`: words of text | -|---|---|---|---|---| -| 15 min | 37–47 | 890–1,130 | 39–49 | 920–1,180 | -| 30 min | 74–94 | 1,800–2,250 | 77–98 | 1,850–2,350 | -| 45 min | 111–142 | 2,700–3,400 | 115–147 | 2,800–3,500 | -| 60 min | 148–189 | 3,550–4,550 | 154–197 | 3,700–4,700 | +- **Pacing:** `narrative` if the idea is story-driven (a mystery, a drama, a character story: about 60% of the play time is reading), `puzzle` for a puzzle box or escape room (about 30%), otherwise `balanced` (about 45%). Write it into `pacing`. +- **Size budget:** LexVM estimates the play time from the walkthrough and the texts, and `lexvm check` warns when the estimate misses `playtime` by more than 25%, or when the reading share misses the pacing. Pick the row that matches the requested length and the pacing (no length requested: 30 minutes; between two rows: interpolate) and keep the walkthrough and the player-visible text of the whole pack within it. About a quarter of the walkthrough steps are dialogue choices, and about 60% of the words appear along the walkthrough. + +| Play time | Pacing | `de`: walkthrough steps | `de`: words of text | `en`: walkthrough steps | `en`: words of text | +|---|---|---|---|---|---| +| 15 min | narrative | 17–21 | 1,900–2,350 | 17–21 | 2,150–2,700 | +| 15 min | balanced | 23–29 | 1,390–1,780 | 23–29 | 1,600–2,050 | +| 15 min | puzzle | 30–37 | 930–1,190 | 30–37 | 1,070–1,360 | +| 30 min | narrative | 34–42 | 3,750–4,750 | 34–42 | 4,300–5,450 | +| 30 min | balanced | 46–58 | 2,800–3,550 | 46–58 | 3,200–4,100 | +| 30 min | puzzle | 59–74 | 1,900–2,350 | 59–74 | 2,150–2,700 | +| 45 min | narrative | 50–64 | 5,600–7,100 | 50–64 | 6,400–8,200 | +| 45 min | balanced | 69–88 | 4,200–5,350 | 69–88 | 4,800–6,150 | +| 45 min | puzzle | 88–112 | 2,800–3,550 | 88–112 | 3,200–4,100 | +| 60 min | narrative | 67–85 | 7,450–9,500 | 67–85 | 8,550–10,950 | +| 60 min | balanced | 92–117 | 5,600–7,100 | 92–117 | 6,400–8,200 | +| 60 min | puzzle | 117–149 | 3,750–4,750 | 117–149 | 4,300–5,450 | - **Policy:** `forgiving` — no deaths, no losing endings, no dead ends. @@ -30,10 +39,20 @@ Everything below up to "How to answer" is reference material: first the authorin - End with a climax that uses what the player learned (a confrontation, a deduction), then a winning ending. - Score is a progress signal: usually 1 point per solved puzzle, 2 for a major deduction. Award each point exactly once (guard with a flag, a `not: { has: 
 }` condition or a `once` rule). `maxScore` equals the total score collected by the walkthrough. -## Length budget -- LexVM estimates the play time of a pack: reading the text the walkthrough shows (German 200, English 230 words per minute), about 10 seconds per walkthrough command and 6 per dialogue choice, plus part of the optional content (descriptions the walkthrough never examines, unchosen dialogue options, custom responses) and of the wrong attempts a player makes. `lexvm check` warns when the estimate misses `playtime` by more than 25%; set `playtime` to the target length. -- Typical proportions: about 20 words of new text per walkthrough command; about a quarter of the walkthrough steps are dialogue choices; optional text about 60% of the walkthrough's text; about one described object for every two walkthrough commands that the walkthrough never examines. -- Follow the size budget the prompt gives for the target length (walkthrough steps and words of player-visible text). Length comes from content, not padding: add a puzzle, a character to question, custom responses and side dialogue rather than longer descriptions (the text budgets for phone screens still apply). To shorten, cut a side puzzle or trim descriptions. +## Story and scenes +- Write the story before the data: the truth in causal order (who did what, and why), the player character's goal and how their understanding changes, and a scene plan in play order. Then derive room, object, dialogue and rule texts from the scenes. +- Everything the ending relies on reaches the player in game text. Motives, relationships and backstory that only live in the design notes do not exist for the player. +- Every scene has an arrival (where am I, who is here, what is at stake), a turn (something learned or changed) and a way out (why the player goes on, and where). Write the transitions: the first entry to a room, the moment after a key clue, the move from one chapter to the next (a `once` rule on `enter`, or the response that solves the puzzle). +- Give the player character an inner voice in moderation: after a key clue or deduction, one or two sentences on what it means and what follows from it. That is how a reader keeps track of a case. +- Characters want something the player can see, and speak like themselves. A conversation has a turning point; write it out as a scene, not as one line of information. +- Prose rhythm: vary sentence length. Short sentences are accents, not the default; join thoughts that belong together with their logic (because, but, so, while). No telegram style, no chains of fragments, no adjective padding. +- Review the transcript of the walkthrough (`lexvm transcript`): it must read as a story a reader can follow from start to end. + +## Length budget and pacing +- LexVM estimates the play time of a pack: reading the text the walkthrough shows (German 200, English 230 words per minute), about 10 seconds per walkthrough command and 6 per dialogue choice, plus part of the optional content (descriptions the walkthrough never examines, unchosen dialogue options, custom responses) and about one wrong attempt per productive command. `lexvm check` warns when the estimate misses `playtime` by more than 25%; set `playtime` to the target length. +- `pacing` says how that time divides between reading and acting: `narrative` (about 60% reading: mysteries, dramas, character stories), `balanced` (about 45%, the default), `puzzle` (about 30%: puzzle boxes, escape rooms). Declare it in the metadata; `lexvm check` then warns when the reading share leaves the band (±10 points). A narrative pack with the same play time has fewer puzzles and more story. +- Follow the size budget the prompt gives for the target length and pacing (walkthrough steps and words of player-visible text). About a quarter of the walkthrough steps are dialogue choices; optional text is about 60% of the walkthrough's text. +- Length comes from content, never from padding. Content is both mechanics (a puzzle, a character to question, custom responses) and story (an arrival, a turning point, what a clue means, a transition between acts). Padding is adjectives, repeated atmosphere and summaries of what the player just saw. To shorten a narrative pack, cut a side puzzle before you cut a scene. ## Puzzle dependency chart - Design the puzzles as a dependency chart (Ron Gilbert): start from the winning ending and work backwards — what must be true right before it, and what before that. Nodes are puzzles, events, items and clues; an arrow means "is needed for". @@ -96,12 +115,13 @@ Everything below up to "How to answer" is reference material: first the authorin - The first hint whose `when` holds and whose `until` does not is shown, so order hints in the usual solving order, and make sure some hint applies at every point until the ending. ## Text for phone screens -- Budgets: room descriptions ≀ 600 characters, object descriptions ≀ 400, dialogue lines ≀ 300, option texts ≀ 80, names ≀ 24. Aim well below. -- Short paragraphs of 1–3 sentences. The first sentence says what matters; atmosphere second. +- Budgets: room descriptions ≀ 600 characters, object descriptions ≀ 400, dialogue lines ≀ 300 (`pacing: narrative`: 1,000, 600 and 600); option texts ≀ 80, names ≀ 24 for every pacing. The player scrolls like a book; a long text needs paragraphs, not cuts. +- Paragraphs of 1–4 sentences, separated by a blank line. In descriptions the first sentence says what matters; atmosphere second. +- First visits get the full scene; return visits to a room get one or two sentences (a text variant with `visited`). - Mention exits naturally in the room description ("The library lies to the west."). - Every interactable object appears as `{id}` (or `{id|inflected text}`) in its room's description or in its own `roomText`. Portable objects without `roomText` are listed automatically. - Names are short, without articles, and distinct: "brass key", not "the small brass key". -- Rule messages (`say`) are 1–2 sentences. +- Rule messages (`say`) are 1–3 sentences; the response that solves a puzzle or reveals a clue may be a short scene. ## Language conventions - All player-facing text is in the pack `language`. Ids are ASCII `lower_snake_case` (English ids are fine for any language). @@ -197,6 +217,7 @@ which is what the player loads. The player can also import `.yaml` and | `policy` | `"forgiving"` | no | Default and currently the only policy: no losing endings, no dead ends. | | `generator` | `{pipeline?, notes?}` | no | Provenance, free text. | | `playtime` | int (minutes) | no | Target play time. `lexvm check` compares its play time estimate against it (section 17). | +| `pacing` | `"narrative"` \| `"balanced"` \| `"puzzle"` | no | How the play time divides between reading and interaction (about 60%, 45% or 30% reading). Sizes the text budgets (section 4) and, when declared, is checked by the play time estimate (section 17). | | `maxScore` | int | no | Enables the score display. | | `start` | `{room, intro?}` | yes | Starting room and intro text. | | `verbs` | map id → Verb | no | Pack verbs and overrides for core verbs. | @@ -232,9 +253,12 @@ Inside strings: - A blank line separates paragraphs; a single newline is a line break. - Nothing else is markup. Text is never interpreted as HTML. -Keep texts short for phone screens: room descriptions ≀ 600 characters, +Keep texts readable on phone screens: room descriptions ≀ 600 characters, object descriptions ≀ 400, dialogue lines ≀ 300, option texts ≀ 80, names ≀ 24. -Longer texts produce warnings. +A pack with `pacing: narrative` tells its scenes in full and gets room +descriptions ≀ 1000, object descriptions ≀ 600 and dialogue lines ≀ 600; option +texts and names keep their limits, because they are buttons. Longer texts +produce warnings (`text.too-long`). ### 5. Rooms and exits @@ -654,7 +678,7 @@ in `@lexvm/engine`. | `t_cmd` | 10 s | `secondsPerCommand` | Per command: perceive the scene, tap the object, pick the verb. | | `t_choice` | 6 s | `secondsPerChoice` | Per dialogue choice. | | `c` | 0.6 | `coverage` | Share of the optional content a typical player sees. | -| `f` | 0.5 | `failedAttemptsPerCommand` | Unproductive attempts per productive command. | +| `f` | 1 | `failedAttemptsPerCommand` | Unproductive attempts per productive command. | | tolerance | 0.25 | `tolerance` | Allowed relative deviation from the target. | | target | `playtime` | `targetMinutes`; CLI `--target-minutes` | The length the pack should have. | @@ -667,12 +691,33 @@ per minute in German and 1234 in English; German words are longer, so German gets fewer words per minute. The defaults are deliberately below the lab values: the text is read on a phone screen, in a game, and partly re-read. +The attempt rate `f` comes from the playtests of +`packs/letzte-nacht-der-reichsmark` (74 walkthrough steps, 47 of them +commands): a tap-only player made 180 commands, an adventure veteran 226. +After the optional looks and dialogue options the model counts separately, +that leaves about 0.9 and 1.8 unproductive attempts per productive command; +`f = 1` is the cautious end. Earlier versions used 0.5, which underestimated +the interaction time of real players and therefore pushed packs to cut text +to meet their target ([ADR 0012](../adr/0012-narrative-pacing.md)). + +**Reading share and pacing.** `reading = (W_path + c · W_optional) / wpm` is +the part of `minutes_expected` spent reading; the reading share is +`reading / minutes_expected`. A pack declares how it means to divide its time +with `pacing`: `narrative` 0.6, `balanced` 0.45, `puzzle` 0.3. When `pacing` is +declared and the share is more than 0.1 away from its value, `lexvm check` +warns (`playtime.pacing`): a narrative pack whose story is told too thinly for +its mechanics, or a pack that reads much more than it plays. A pack without +`pacing` is never warned and is sized as `balanced`. + **Diagnostics** (path `playtime`; Appendix A): - `playtime.estimate` (info, always): "≈ 34 min expected (speedrun 21 min); target 35 min", followed by the counts the estimate is based on. - `playtime.no-target` (info): the pack has no `playtime`; suggests the rounded expected time. +- `playtime.pacing` (warning, only when `pacing` is declared): the reading + share is outside the pacing's band; the message says how many words of scene + prose are missing, or what to trim. - `playtime.too-short` / `playtime.too-long` (warning): `|expected / target − 1|` is greater than the tolerance. The message gives concrete numbers derived from the pack's own proportions, e.g. "≈ 12 min short: add 1-2 puzzles, or ≈ @@ -680,20 +725,25 @@ values: the text is read on a phone screen, in a game, and partly re-read. "≈ 4 min too long: trim ≈ 1,100 words or ≈ 20 commands". They are left out while the walkthrough does not reach a winning ending. -**Budget.** `budgetForMinutes(minutes, language)` inverts the model for a -target length with typical ratios of a pack: `W_optional ≈ 0.6 · W_path`, -`D_path ≈ 0.25 ·` all walkthrough steps, `W_path ≈ 20 · C_path` (words of new -text per productive command), `L_unseen ≈ 0.5 · C_path` and -`O_unchosen ≈ 0.25 · D_path`. The ratios are calibrated against the reference -pack `packs/locked-study` (English) and the German test fixture -`packages/engine/test/fixtures/runtime/hafen.yaml`, pooled over both -walkthroughs: measured 0.34, 0.28, 20.7, 0.56 and 0.14. The optional-word -ratio is set higher than measured because these two packs are tiny, and a -full-length game carries more side content (custom responses to wrong -attempts, dialogue branches); the unchosen-option ratio is rounded up for the -same reason. The budget gives ranges of walkthrough steps and player-visible -words of ±tolerance/2 around the target, so a pack that stays within both -ranges lands within the tolerance under the model's assumptions. +**Budget.** `budgetForMinutes(minutes, language, { pacing })` inverts the +model for a target length. The reading share of the pacing (default +`balanced`) splits the minutes: the interaction part sizes the walkthrough +(steps × interaction minutes per step, with tapping, wrong attempts, side looks +and unchosen options), the reading part sizes the text +(`W_path + c · W_optional = reading minutes · wpm`). The other ratios are +typical of a pack: `W_optional ≈ 0.6 · W_path`, `D_path ≈ 0.25 ·` all +walkthrough steps, `L_unseen ≈ 0.5 · C_path` and `O_unchosen ≈ 0.25 · D_path`. +They are calibrated against the reference pack `packs/locked-study` (English) +and the German test fixture `packages/engine/test/fixtures/runtime/hafen.yaml`, +pooled over both walkthroughs: measured 0.34, 0.28, 0.56 and 0.14. The +optional-word ratio is set higher than measured because these two packs are +tiny, and a full-length game carries more side content (custom responses to +wrong attempts, dialogue branches); the unchosen-option ratio is rounded up +for the same reason. Earlier versions fixed the words per command at 20 instead +of deriving them from a reading share; that implied a reading share of about +30% for every pack. The budget gives ranges of walkthrough steps and +player-visible words of ±tolerance/2 around the target, so a pack that stays +within both ranges lands within the tolerance under the model's assumptions. **Where it is used.** @@ -704,15 +754,16 @@ ranges lands within the tolerance under the model's assumptions. catalog entry in `index.json` when the walkthrough reaches a win. The player's library shows `playtime` and falls back to `estimatedMinutes`; imported packs keep the estimate computed at import. -- `lexvm generate --minutes ` writes the target to `playtime` in the - metadata (world) stage and keeps it there, puts the budget into the stage - prompts, and checks the estimate in its verification gate. Play time - warnings come right after the errors in repair prompts. A pack that passes - every gate but misses the target gets one more repair round for its length - (if `--max-repairs` allows); if that round breaks the pack and the - remaining rounds cannot fix it, the last passing version is restored. The - generic one-shot prompt contains a budget table for 15, 30, 45 and 60 - minutes. +- `lexvm generate --minutes --pacing ` writes the target to + `playtime` and the pacing to `pacing` in the metadata (world) stage and + keeps them there, puts the budget into the stage prompts, and checks the + estimate in its verification gate. Play time warnings come right after the + errors in repair prompts. A pack that passes every gate but misses the + target or its pacing gets one more repair round for its length (if + `--max-repairs` allows); if that round breaks the pack and the remaining + rounds cannot fix it, the last passing version is restored. The generic + one-shot prompt contains a budget table for 15, 30, 45 and 60 minutes and + every pacing. ### Appendix A. Diagnostic codes @@ -828,6 +879,7 @@ walkthrough, play time and exploration results. | `playtime.estimate` | info | The estimate and what it is based on. | | `playtime.no-target` | info | No `playtime`; suggests a value. | | `playtime.too-short`, `playtime.too-long` | warning | The expected time misses the target by more than the tolerance, with concrete advice. | +| `playtime.pacing` | warning | The reading share misses the declared `pacing` by more than 0.1. | **Tools** @@ -839,22 +891,22 @@ walkthrough, play time and exploration results. # Worked example -A complete five-minute pack. Copy its structure and style, not its content. +A complete short pack. Copy its structure and style, not its content. ```yaml -# A five-minute demo that exercises most of the format: a locked door, a hidden +# A short demo that exercises most of the format: a locked door, a hidden # item, a container, a pack verb, a clue, a conversation, hints and a score. # It doubles as the reference example for authors and LLM prompts. format: lexvm-pack/1 id: locked-study -version: 1.0.1 +version: 1.0.2 title: The Locked Study -subtitle: A five-minute LexVM demo +subtitle: A short LexVM demo description: Your uncle has vanished and his study is locked. A tiny tour of rooms, items, a locked door, a clue and a conversation. language: en author: LexVM contributors license: CC0-1.0 -playtime: 5 +playtime: 7 maxScore: 3 start: @@ -1084,17 +1136,19 @@ walkthrough: Answer in exactly three parts, in this order. -**Part 1 — Design** (short: at most about 400 words, in the pack language or in English): -- premise, player character, goal, tone and narrative voice; +**Part 1 — Design** (at most about 700 words, in the pack language or in English): +- premise, player character, goal, tone, narrative voice and pacing; +- the truth: what really happened, in causal order, with every motive — and for each fact the ending relies on, where the player learns it in the game text; +- the scene plan: the scenes in play order, each with its arrival, its turn and why the player goes on; - the cast: who knows what, who hides what; - the rooms with their ids and how they connect; - the **puzzle dependency chart** as a Mermaid `flowchart` (or an indented list): every puzzle with the items, clues and flags it needs and what it unlocks, down to the winning ending. Check that it branches — the player should almost always have two or three things to work on; - for each puzzle, one line: where it is signposted in the text, and its solution in canonical commands. -**Part 2 — The pack:** ONE complete `pack.yaml` in a single fenced code block that starts with ```` ```yaml ````. Everything goes into this one file. Write the top-level keys in this order: metadata, `start`, `verbs`, `flags`, `counters`, `rooms`, `objects`, `rules`, `dialogues`, `endings`, `hints`, and **`walkthrough` last** — write it after everything else, replaying the game step by step, so it only uses ids that exist. Never abbreviate: no "
", no "and so on", no comments standing in for content. +**Part 2 — The pack:** ONE complete `pack.yaml` in a single fenced code block that starts with ```` ```yaml ````. Everything goes into this one file. Write the top-level keys in this order: metadata, `start`, `verbs`, `flags`, `counters`, `rooms`, `objects`, `rules`, `dialogues`, `endings`, `hints`, and **`walkthrough` last** — write it after everything else, replaying the game step by step, so it only uses ids that exist. Never abbreviate: no "
", no "and so on", no comments standing in for content. Write the texts scene by scene, as the player will read them (see "Story and scenes" in the guide), not one field at a time. Metadata: -- `format: lexvm-pack/1`, a kebab-case `id` derived from the title, `version: 1.0.0`, `title`, optional `subtitle`, a one- or two-sentence `description`, `language`, `playtime` (the target play time in minutes), `maxScore` (the walkthrough's total score), `policy: forgiving`; +- `format: lexvm-pack/1`, a kebab-case `id` derived from the title, `version: 1.0.0`, `title`, optional `subtitle`, a one- or two-sentence `description`, `language`, `playtime` (the target play time in minutes), `pacing`, `maxScore` (the walkthrough's total score), `policy: forgiving`; - `author`: the user's name or handle if they gave one, otherwise `Anonymous`, followed by ` (written with an LLM)`; - `license`: `CC-BY-4.0` unless the user asks for another SPDX license id; - `generator`: `{ pipeline: "lexvm one-shot prompt", notes: "Drafted by an LLM chat assistant from the LexVM one-shot prompt." }`. diff --git a/prompts/templates/concept.md b/prompts/templates/concept.md index 337b537..112eb64 100644 --- a/prompts/templates/concept.md +++ b/prompts/templates/concept.md @@ -1,11 +1,12 @@ - -# Stage 1 of 4: concept + +# Stage 1 of 5: concept -Write the **concept** for a LexVM adventure based on the idea below. Later stages will design the puzzles, build the world and write the logic from this document, so make it concrete. It is a working document for the designers, not player-facing text. +Write the **concept** for a LexVM adventure based on the idea below. The next stage writes the story as scenes; later stages design the puzzles, build the world and write the logic from this document, so make it concrete. It is a working document for the designers, not player-facing text. Parameters: - pack language: {{LANG}} - target play time: about {{MINUTES}} minutes +- pacing: {{PACING}} - pack id: {{PACK_ID}} {{BUDGET}} @@ -13,7 +14,7 @@ Parameters: Scale the cast, locations and structure to this budget. Cover, in this order and briefly (at most about 800 words in total): 1. **Title** (and optional subtitle), a one-sentence pitch, and the one- or two-sentence `description` for the library. -2. **Language and voice:** the pack language code (`de` or `en`); narrative person and tense; how characters address the player; the quote style; the tone (with two or three adjectives). +2. **Language and voice:** the pack language code (`de` or `en`); the pacing; narrative person and tense; how characters address the player; the quote style; the tone (with two or three adjectives). 3. **Premise:** setting, the player character, their goal, and what they know at the start (the gist of the intro). 4. **Cast** (3–5 characters for 30–45 minutes): id, name, role, what they know, what they hide, how the player gets it out of them. 5. **Structure:** 2–3 chapters with the bottleneck between them, the climax, and the ending (a win — there are no losing endings). diff --git a/prompts/templates/logic.md b/prompts/templates/logic.md index 1ec55d6..312be25 100644 --- a/prompts/templates/logic.md +++ b/prompts/templates/logic.md @@ -1,12 +1,14 @@ - -# Stage 4 of 4: logic + +# Stage 5 of 5: logic -Write the **logic** of the adventure on top of the world files below: rules, dialogues, endings, hints and the walkthrough. Pack language: {{LANG}}; target play time: about {{MINUTES}} minutes. +Write the **logic** of the adventure on top of the world files below: rules, dialogues, endings, hints and the walkthrough. Pack language: {{LANG}}; target play time: about {{MINUTES}} minutes; pacing: {{PACING}}. {{BUDGET}} The walkthrough length and the texts of rules, dialogues and endings decide whether the game hits this target: count the walkthrough steps before you answer. +The dialogues and rule messages carry most of the story. Write the conversations' turning points, the responses that solve puzzles, the deductions and the endings from the story's scenes and key-scene prose: what the player learns, how the character reacts, and in a sentence or two of the player character's voice what it means. Write the transitions between chapters (a `once` rule on `enter`, or the solving response). Follow the voice and rhythm of the story document. + Return these files: 1. `rules.yaml` — the `rules` list: every puzzle solution from the puzzle design, the custom responses to plausible wrong attempts, deductions (`use clue_a clue_b`), confrontations (`show clue npc`), `enter` and `start` events. Specific rules before general ones; every rule has an `id`. @@ -21,6 +23,10 @@ Before you answer, go through the checklist of common mistakes. {{CONCEPT}} +# Story + +{{STORY}} + # Puzzle design {{PUZZLES}} diff --git a/prompts/templates/oneshot.md b/prompts/templates/oneshot.md index 79088c5..793178a 100644 --- a/prompts/templates/oneshot.md +++ b/prompts/templates/oneshot.md @@ -1,7 +1,7 @@ # Write a LexVM text adventure -You are an experienced adventure game designer in the tradition of the classic LucasArts and Infocom games, and a precise technical writer. Your task: turn the idea at the very end of this prompt into a complete, playable **LexVM content pack** — one `pack.yaml` file. +You are an experienced adventure game designer in the tradition of the classic LucasArts and Infocom games, a writer of fiction who can carry a story through scenes, and a precise technical writer. Your task: turn the idea at the very end of this prompt into a complete, playable **LexVM content pack** — one `pack.yaml` file. LexVM is an offline text-adventure player for phones and tablets. Players mostly tap: they tap an object, pick a verb from its action sheet, and for two-object verbs pick a second object; a text parser is optional. A pack is pure data in the YAML format specified below; it contains no code. Every pack is checked by `lexvm check`: schema, references, a replay of the walkthrough, and an exhaustive exploration of all reachable game states that proves the game can always still be won. @@ -9,7 +9,8 @@ LexVM is an offline text-adventure player for phones and tablets. Players mostly - **Pack language:** {{LANG}}. - **Target play time:** the length the idea asks for; if it names none, about {{MINUTES}} minutes. Write it into `playtime`. -- **Size budget:** LexVM estimates the play time from the walkthrough and the texts, and `lexvm check` warns when the estimate misses `playtime` by more than 25%. Pick the row that matches the requested length (no length requested: {{MINUTES}} minutes; between two rows: interpolate) and keep the walkthrough and the player-visible text of the whole pack within it. About a quarter of the walkthrough steps are dialogue choices, and about 60% of the words appear along the walkthrough. +- **Pacing:** `narrative` if the idea is story-driven (a mystery, a drama, a character story: about 60% of the play time is reading), `puzzle` for a puzzle box or escape room (about 30%), otherwise `balanced` (about 45%). Write it into `pacing`. +- **Size budget:** LexVM estimates the play time from the walkthrough and the texts, and `lexvm check` warns when the estimate misses `playtime` by more than 25%, or when the reading share misses the pacing. Pick the row that matches the requested length and the pacing (no length requested: {{MINUTES}} minutes; between two rows: interpolate) and keep the walkthrough and the player-visible text of the whole pack within it. About a quarter of the walkthrough steps are dialogue choices, and about 60% of the words appear along the walkthrough. {{BUDGET_TABLE}} @@ -27,7 +28,7 @@ Everything below up to "How to answer" is reference material: first the authorin # Worked example -A complete five-minute pack. Copy its structure and style, not its content. +A complete short pack. Copy its structure and style, not its content. {{EXAMPLE}} @@ -35,17 +36,19 @@ A complete five-minute pack. Copy its structure and style, not its content. Answer in exactly three parts, in this order. -**Part 1 — Design** (short: at most about 400 words, in the pack language or in English): -- premise, player character, goal, tone and narrative voice; +**Part 1 — Design** (at most about 700 words, in the pack language or in English): +- premise, player character, goal, tone, narrative voice and pacing; +- the truth: what really happened, in causal order, with every motive — and for each fact the ending relies on, where the player learns it in the game text; +- the scene plan: the scenes in play order, each with its arrival, its turn and why the player goes on; - the cast: who knows what, who hides what; - the rooms with their ids and how they connect; - the **puzzle dependency chart** as a Mermaid `flowchart` (or an indented list): every puzzle with the items, clues and flags it needs and what it unlocks, down to the winning ending. Check that it branches — the player should almost always have two or three things to work on; - for each puzzle, one line: where it is signposted in the text, and its solution in canonical commands. -**Part 2 — The pack:** ONE complete `pack.yaml` in a single fenced code block that starts with ```` ```yaml ````. Everything goes into this one file. Write the top-level keys in this order: metadata, `start`, `verbs`, `flags`, `counters`, `rooms`, `objects`, `rules`, `dialogues`, `endings`, `hints`, and **`walkthrough` last** — write it after everything else, replaying the game step by step, so it only uses ids that exist. Never abbreviate: no "
", no "and so on", no comments standing in for content. +**Part 2 — The pack:** ONE complete `pack.yaml` in a single fenced code block that starts with ```` ```yaml ````. Everything goes into this one file. Write the top-level keys in this order: metadata, `start`, `verbs`, `flags`, `counters`, `rooms`, `objects`, `rules`, `dialogues`, `endings`, `hints`, and **`walkthrough` last** — write it after everything else, replaying the game step by step, so it only uses ids that exist. Never abbreviate: no "
", no "and so on", no comments standing in for content. Write the texts scene by scene, as the player will read them (see "Story and scenes" in the guide), not one field at a time. Metadata: -- `format: lexvm-pack/1`, a kebab-case `id` derived from the title, `version: 1.0.0`, `title`, optional `subtitle`, a one- or two-sentence `description`, `language`, `playtime` (the target play time in minutes), `maxScore` (the walkthrough's total score), `policy: forgiving`; +- `format: lexvm-pack/1`, a kebab-case `id` derived from the title, `version: 1.0.0`, `title`, optional `subtitle`, a one- or two-sentence `description`, `language`, `playtime` (the target play time in minutes), `pacing`, `maxScore` (the walkthrough's total score), `policy: forgiving`; - `author`: {{AUTHOR}}; - `license`: {{LICENSE}}; - `generator`: {{GENERATOR}}. diff --git a/prompts/templates/puzzles.md b/prompts/templates/puzzles.md index e62a89e..aaff3bf 100644 --- a/prompts/templates/puzzles.md +++ b/prompts/templates/puzzles.md @@ -1,15 +1,15 @@ - -# Stage 2 of 4: puzzles + +# Stage 3 of 5: puzzles -Design the puzzles for the adventure described in the concept below, as a **puzzle dependency chart** (Ron Gilbert). Target play time: about {{MINUTES}} minutes; pack language: {{LANG}}. +Design the puzzles for the adventure described in the concept and the story below, as a **puzzle dependency chart** (Ron Gilbert). Target play time: about {{MINUTES}} minutes; pack language: {{LANG}}; pacing: {{PACING}}. {{BUDGET}} -The puzzles and their solutions make up most of the walkthrough, so plan enough of them (with their wrong attempts and dialogue) to fill the step budget. +The puzzles and their solutions make up most of the walkthrough, so plan enough of them (with their wrong attempts and dialogue) to fill the step budget, and no more: the rest of the play time belongs to the story. Every puzzle serves a scene of the story's scene plan; every fact of its revelation map is learned through a puzzle, a dialogue or a document the walkthrough passes. Write a Markdown document with these sections: -1. **Chart:** a Mermaid `flowchart TD` from the start to the winning ending. Nodes are puzzles, events, items and clues (use their ids); an arrow means "is needed for". The chart must branch: at almost every point the player has two or three open puzzles. About 6–8 puzzles for 30–45 minutes. +1. **Chart:** a Mermaid `flowchart TD` from the start to the winning ending. Nodes are puzzles, events, items and clues (use their ids); an arrow means "is needed for". The chart must branch: at almost every point the player has two or three open puzzles. About 6–8 puzzles for 30–45 minutes with `balanced` pacing, about 4–6 with `narrative` pacing. 2. **Puzzles:** for each puzzle, in solving order: - id and one-line goal; - the obstacle, and where it is signposted in the text before the player must solve it; @@ -27,6 +27,10 @@ Answer with the Markdown document only, starting with `# Puzzles`. {{CONCEPT}} +# Story + +{{STORY}} + # The original idea {{IDEA}} diff --git a/prompts/templates/repair.md b/prompts/templates/repair.md index ba6ce4b..961a4e1 100644 --- a/prompts/templates/repair.md +++ b/prompts/templates/repair.md @@ -1,4 +1,4 @@ - + # Repair `lexvm check` reported problems with the pack below. Fix them. @@ -7,6 +7,8 @@ - Read each message carefully: it says where the problem is (`path`, file and line when known) and usually how to fix it. Find the root cause — a rejected walkthrough step often means an earlier step is missing, a door is still closed, or a dialogue is still open. - If a diagnostic reveals a design problem (a dead end, an unwinnable state, an unreachable room), change the design, keeping the puzzle dependency chart branching and the game fair. - `playtime.too-short` / `playtime.too-long` mean the estimated play time misses the target length. Add or trim content as the message suggests (puzzles, walkthrough steps, optional descriptions and dialogue), keep `playtime` as it is, and keep the walkthrough, hints and `maxScore` consistent with the change. +- `playtime.pacing` means the reading share misses the pacing: write out thin scenes (arrivals, turning points, what a clue means, transitions) or cut commands that tell nothing, as the message says. Never pad with adjectives. +- When you shorten text, cut repetition and padding, not the story: keep motives, transitions and the reactions at turning points. - Keep everything that works. Do not rename ids unless a diagnostic requires it; if you do, update every reference, including the walkthrough and the hints. - Return **only the files you changed**, each one **complete**, in fenced blocks named with `file=` as usual. Then add at most one line per fix. @@ -22,4 +24,6 @@ {{CONCEPT}} +{{STORY}} + {{PUZZLES}} diff --git a/prompts/templates/review.md b/prompts/templates/review.md new file mode 100644 index 0000000..2f1cef2 --- /dev/null +++ b/prompts/templates/review.md @@ -0,0 +1,34 @@ + +# Editorial review + +The pack below passes every check of `lexvm check`: it can be won and has no dead ends. Now review it as a **story editor**. Below is the transcript of a winning play — everything the player reads along the walkthrough, in order (`lexvm transcript`). Pack language: {{LANG}}; pacing: {{PACING}}. + +{{BUDGET}} + +Read the transcript from start to end as a player would, then judge it against the story document and this rubric: + +1. **Can it be followed?** After each chapter, could a reader retell what happened, who wants what, and why? Mark every step that happens without a reason the player can see, and every fact the ending relies on that the transcript never states. +2. **Arrivals and transitions:** does each first arrival say where the player is, who is here and what is at stake? Is it clear why the player goes on, and where? +3. **What a clue means:** after each key clue or deduction, does the player character say in a sentence or two what it changes? +4. **Turning points:** is the turning point of every major conversation written out as a scene, with a reaction, or reduced to one line of information? +5. **Characters:** does each one want something visible and speak like themselves? +6. **Rhythm:** varied sentence lengths, thoughts joined by their logic. Rewrite telegram-style chains of fragments; cut adjective padding and repeated atmosphere. + +Then improve the **text** of the pack: + +- Change player-facing text only: descriptions and their variants, `say` texts, dialogue lines, the intro, endings. Add text variants or `once` rules on `enter` for arrivals and chapter transitions where a scene is missing. +- Do not change ids, conditions, effects, exits, scores, hints' conditions or the walkthrough, unless a new transition rule needs a flag (declare it in `pack.yaml`). Every `{id}` reference must stay valid, and every interactable object must stay mentioned in its room. +- Keep within the text budgets of the pack's pacing and keep the reading share near its target: write out scenes where the transcript is thin, cut where it repeats itself. +- Return **only the files you changed**, each one **complete**, in fenced blocks named with `file=` as usual. Then list your five most important changes, one line each. + +# Transcript of the walkthrough + +{{TRANSCRIPT}} + +# Story (design) + +{{STORY}} + +# Current files + +{{FILES}} diff --git a/prompts/templates/story.md b/prompts/templates/story.md new file mode 100644 index 0000000..c0fe5a2 --- /dev/null +++ b/prompts/templates/story.md @@ -0,0 +1,27 @@ + +# Stage 2 of 5: story + +Write the **story** of the adventure described in the concept below: the narrative backbone that the later stages turn into puzzles, rooms, dialogue and rule messages. Pack language: {{LANG}}; target play time: about {{MINUTES}} minutes; pacing: {{PACING}}. + +{{BUDGET}} + +Why this stage exists: the player only ever reads the game text. What happened, who wants what and why, and how the player character comes to understand it must end up in that text, not stay in the design notes. Write the story as scenes now, so the later stages can cut it into the data model instead of inventing text one field at a time. + +Write a Markdown document with these sections: + +1. **The truth:** what really happened before and during the game, in causal order, with every motive (who did what, and why). Short paragraphs, in English or the pack language. +2. **Through-line:** what the player character wants, what they believe at the start, what they understand at the end, and the open question that pulls the player from scene to scene. +3. **Scene plan:** the scenes in the order a typical play meets them (chapters may hold scenes the player can take in any order — say so). Per scene: place, who is there, the *arrival* (what the player sees and what is at stake), the *turn* (what is learned or changes, in a fact or a relationship), and the *way out* (why the player goes on, and where). Mark the turning point of every major conversation. +4. **Revelation map:** a table — every fact of section 1 that the ending relies on, the scene where the player learns it, and the source (a dialogue line, a document, a deduction, the player character's own conclusion). A fact without a scene does not exist for the player. +5. **Key scenes in prose:** in the pack language, written as the player will read them, without length limits: the intro, the first arrival at the central location, the turning point of every major conversation, the climax and the ending. Later stages split them into room texts, dialogue nodes and rule messages; keep them close to that shape (narration in second person, present tense, as the guide says for the language). +6. **Voice:** the narrator's stance, the player character's inner voice (what they notice, how they draw conclusions — in moderation), how each character speaks, and three sample paragraphs that show the rhythm: varied sentence lengths, thoughts joined by their logic, no telegram style and no adjective padding. + +Answer with the Markdown document only, starting with `# Story`. + +# Concept + +{{CONCEPT}} + +# The original idea + +{{IDEA}} diff --git a/prompts/templates/system.md b/prompts/templates/system.md index 0c865f3..01936cf 100644 --- a/prompts/templates/system.md +++ b/prompts/templates/system.md @@ -1,5 +1,5 @@ -You are an experienced adventure game designer in the tradition of the classic LucasArts and Infocom games, and a precise technical writer. You are writing a **LexVM content pack** in several stages: concept, puzzle design, world, logic, and repair rounds driven by the verifier's diagnostics. +You are an experienced adventure game designer in the tradition of the classic LucasArts and Infocom games, a writer of fiction who can carry a story through scenes, and a precise technical writer. You are writing a **LexVM content pack** in several stages: concept, story, puzzle design, world, logic, repair rounds driven by the verifier's diagnostics, and an editorial review of the finished text. A pack is a game and a story: the mechanics are verified by machine, the story is only as good as the text the player actually reads. LexVM is an offline text-adventure player for phones and tablets. Players mostly tap: they tap an object, pick a verb from its action sheet, and for two-object verbs pick a second object; a text parser is optional. A pack is pure data in the YAML format specified below; it contains no code. Every pack is checked by `lexvm check`: schema, references, a replay of the walkthrough, and an exhaustive exploration of all reachable game states that proves the game can always still be won (`forgiving` policy: no deaths, no losing endings, no dead ends). @@ -19,7 +19,7 @@ The reference material follows: the authoring guide (how to make the game good), # Worked example -A complete five-minute pack in a single file. Copy its structure and style, not its content. +A complete short pack in a single file. Copy its structure and style, not its content. {{EXAMPLE}} diff --git a/prompts/templates/world.md b/prompts/templates/world.md index c4c6596..a465da3 100644 --- a/prompts/templates/world.md +++ b/prompts/templates/world.md @@ -1,12 +1,12 @@ - -# Stage 3 of 4: world + +# Stage 4 of 5: world -Build the **world** of the adventure from the concept and the puzzle design below: metadata, rooms, exits and objects. The next stage writes rules, dialogues, endings, hints and the walkthrough on top of it, so define every room, object and clue the puzzles need now. +Build the **world** of the adventure from the concept, the story and the puzzle design below: metadata, rooms, exits and objects. The next stage writes rules, dialogues, endings, hints and the walkthrough on top of it, so define every room, object and clue the puzzles need now. Return exactly these three files: 1. `pack.yaml` — metadata and global declarations: - - `format: lexvm-pack/1`, `version: 1.0.0`, `title`, optional `subtitle`, `description`, `playtime: {{MINUTES}}` (the target play time; keep it), `policy: forgiving`, `maxScore` (the total from the puzzle design); + - `format: lexvm-pack/1`, `version: 1.0.0`, `title`, optional `subtitle`, `description`, `playtime: {{MINUTES}}` (the target play time; keep it), `pacing: {{PACING_ID}}`, `policy: forgiving`, `maxScore` (the total from the puzzle design); - `id`: {{PACK_ID}}; - `language`: {{LANG}}; - `author`: {{AUTHOR}}; @@ -19,6 +19,7 @@ Return exactly these three files: Requirements: - Every interactable object is referenced as `{id}` in its room's description or has a `roomText`. - Object descriptions carry the signposting described in the puzzle design. +- Derive room and object texts from the story's scenes: a first visit gets the arrival of its scene (where the player is, who is here, what is at stake), return visits a short variant. Use the key-scene prose of the story where it fits; cut it into paragraphs rather than into fragments. - Respect the text budgets and the language conventions of the guide. - Size the texts for the whole game: room and object texts are a large part of the word budget below; the next stage adds dialogue, responses and endings. @@ -29,6 +30,10 @@ Requirements: {{CONCEPT}} +# Story + +{{STORY}} + # Puzzle design {{PUZZLES}} diff --git a/schema/lexvm-pack-1.schema.json b/schema/lexvm-pack-1.schema.json index 56a7628..1242854 100644 --- a/schema/lexvm-pack-1.schema.json +++ b/schema/lexvm-pack-1.schema.json @@ -65,6 +65,14 @@ "exclusiveMinimum": 0, "maximum": 9007199254740991 }, + "pacing": { + "type": "string", + "enum": [ + "narrative", + "balanced", + "puzzle" + ] + }, "maxScore": { "type": "integer", "exclusiveMinimum": 0,