A Detective Story

A Detective Story is the reason Crime Engine exists and the proof that it works. It is a realistic detective simulator set in the small coastal town of Baytown in 1987, in which a player interviews a cast of 120 people in natural language about a murder, collects evidence across a map, and finally names a culprit in court.

It began as the whole thing. It is now the engine's demo and first product: the mechanics move into the engine packages, and the game keeps its case, its town, its art and its pipelines, referencing the engine rather than containing it.

The published player-facing documentation lives in its own section: A Detective Story, with Basic Gameplay, the Game Guide, Maps and Dialogue Examples. This page is about its relationship to the engine.

1. What stays with the game

Stays Why
The Case 1 content pack the case: 120 characters, their authored text, the clue route, the evidence transcripts
Baytown's world data shared geography, local news and topic knowledge
The art portraits, dossier photos, maps, backgrounds, and the per-image layout files
The content pipelines the portrait export, the layout review tool, the author report generator
The game's own documentation the plot specification, the judgement review, the Steam release notes

A content pack is roughly 1,500 lines of C# and a tree of authored text; the world data is about 130. Against 20,000 lines of mechanics, that is the measure of how much of a detective game is engine and how much is story. See Architecture for the full survey.

2. What the case exercises

Case 1 is a demanding first project, which is why it is a good test of the engine. It uses every mechanic the core carries:

  • A large cast with real structure. 120 population entries, of which roughly two dozen have their own system template and about thirty have always-present override keys; the rest run on the shared default template and the random-townsperson system.
  • Shared history across characters. A divorced pair who each remember the same dated events differently. A collectibles scheme whose four creditors each know their own loan and nothing of the ledger. An overheard meeting that only one witness half-heard.
  • Boundaries the model is pressed against. A fortune teller who cannot divine the culprit. A neighbour who found the body but did not see the stabbing and cannot name the woman she glimpsed. A caretaker with a motive who is not a trembling confessor.
  • Time as a resource. Characters appear at particular locations at particular hours, bringing someone to the station costs days, and an interview is a small number of questions.
  • A corroborated evidence route that does not depend on model improvisation being correct — a venue register and a photographer's timed contact sheet carry an alibi that a witness alone would not.

3. Assets and models are folders, not assembly content

This is the game's hardest-won lesson, and it became an engine constraint.

The art used to be embedded resources in the content pack assembly, which made that one DLL 676.89 MB and copied it into every output folder in the tree. It also meant that a one-pixel art patch after launch would rebuild the whole assembly and cost every owner a 677 MB download. The assembly is 0.73 MB now; the pictures live in a folder named by an environment variable, and a development build reads them out of the checkout without copying them anywhere.

A clone without the art still runs: every missing picture draws a placeholder carrying the file's name, a committed set of design plates stands behind the pack, and the run reports on exit which assets it could not find and which folders it looked in. That behaviour — degrade visibly, say what is missing — is what the engine's runtime should keep.

4. Where the game's practice became engine documentation

Several of the pages in this section are generalisations of documents written for the game:

This section Generalised from
Authoring a Character the game's character authoring guide and the Case 1 resources
The model runtime the game's local dialogue models document
Testing a case the game's dialogue and model testing tools document
Evidence and items the character actions document and the clue definitions