Crime Engine
Type: Game development framework (2D detective stories)
Packages: Divooka.GameDev.CrimeEngine and its .Services, .ShadowGUI, .Audio and .Nodes layers
Editor: A standalone application that opens a project folder and hosts the runtime (in development)
Status: The Crime Engine toolbox ships in Divooka Explore and Divooka Compute (Standard): nodes that open a case, check it, publish it as a pack, and play or capture it. See the Crime Engine toolbox.
Crime Engine is a framework for building detective stories you talk your way through. The player interviews a cast of characters in natural language, and the characters answer from authored memory retrieved per question by a local language model — not from a dialogue tree. Around that sit the things that make an interview a game: a map with travel costs, people who are only in certain places at certain hours, evidence that unlocks more evidence, items that can be given as gifts, and a court where a name is finally said.
These pages were written while the engine was extracted from A Detective Story. Where a page still describes the game rather than the engine, it says so.
What is in it
| Capability | What it means |
|---|---|
| LLM interrogation | a character answers in their own voice, from authored memory searched per question |
| Retrieval over authored memory | three stores — shared world knowledge, personal memory, remembered dialogue — with a measured relevance floor |
| A location map | a tree of places with travel costs in hours, opening hours, keys and time-of-day schedules |
| Evidence and discovery | documents gated behind the evidence already collected, so a case has a route rather than a pile |
| Items and tool use | a character can hand something over, but only through an offer the case authored and only after the engine's own checks |
| Verdicts and endings | one irreversible accusation, a fixed cascade over the case's answer key, and an ending per outcome |
| Character authoring | personality, memory, public dossier, appearance brief and prompt-template overrides, as separate files with separate routes to the model |
| A headless play driver | the whole game as typed commands and a JSON Lines transcript, runnable blind |
It runs entirely locally. The weights ship with the game; there is no server and no network call during play. See The model runtime.
Who it is for
Somebody making a story-driven mystery who wants the conversation to be real conversation. That is a narrow brief and the engine is honest about its shape rather than general-purpose: it assumes a case with a solution, a cast with secrets, a map with a clock, and a player who will eventually be asked to commit to an answer.
It is not a general visual-novel framework. If what you want is a scripted branching narrative inside Divooka, that is Novella, and Architecture explains why the two are different things rather than layers of one thing.
What a project looks like
A project is content, not code: the case's wording, its prologue, its map, its cast and their authored text, its items, its suspects and its private solution. The engine supplies the mechanics and the playable front-end; the project supplies everything a player sees.
For one character that means a handful of small files, each with a different route to the model — a personality that is always present, a memory that is retrieved when relevant, override keys for the facts that must never be forgotten, a public dossier for the player and an appearance brief for the artist. The division is the craft, and Authoring a Character is about it.
A project is a folder of YAML, CSV and Markdown files. See Cases and projects.
The three rules worth knowing first
Everything specific on these pages follows from three decisions.
Speech is not evidence. Nothing a character says, and nothing a player claims, changes the world. Only collected evidence unlocks a discovery; only a verified gift receipt lets an item change hands. The engine holds the authoritative state and the conversation is a view onto it. This is what makes a case shippable on a model that can be talked into anything.
Context is the scarce resource. Four thousand tokens is the whole budget, so what a character knows is searched rather than supplied, and each authored file earns its place in the prompt or does not get one.
A picture of a result is not a result. The tooling is built around blind play and probe pass rates rather than one-shot checks, because a sampling model makes a single successful run meaningless.
Where to start
- Architecture: the package split, and why the playable runtime is engine rather than game.
- Concepts: the case model — cases, characters, locations, evidence, knowledge, verdicts.
- Authoring a Character: the practice, with a worked example from the shipped case.
- The model runtime: the Basic and Advanced models, the context limit and what they cost.
- Testing a case: how to find out whether your mystery is actually solvable.
- A Detective Story: the demo product.
Links
- A Detective Story, the demo product, and its Steam page
- Player-facing game documentation