Secret of Chronicles
Neo-Noir Detective Experience & Real-Time AI Dialogue
- C++ lines
- 145K+
- commits
- 1.2K+
- PowerShell / Python lines
- 11K+
- first-party plugins
- 7
Secret of Chronicles (SoC) is a neo-noir detective game built with UE 5.8. TextGen uses an LLM to generate NPC replies that fit the scenario and gameplay flow.
SpeechGen produces voice and synchronized mouth and facial animation at runtime; ConvCore manages the full process.
The AI dialogue pipeline is complete; asset placement and scenario implementation remain. Steam AppID setup is complete.
The game will be available to wishlist on Steam once the vertical slice is finished.
Technical Problems and Constraints
Preventing external LLM responses from changing quest, evidence, or knowledge state without validation, and separating runtime code from editor tools.
Solution
TextGen uses an LLM to generate dialogue that fits the scenario and gameplay flow. SpeechGen produces voice and synchronized mouth and facial animation.
ConvCore manages requests, replies, and gameplay effects. NarrativeDirector coordinates the Quest, Investigation, and Knowledge domains.
Design Decisions
- Real-time AI dialogue pipeline: TextGen uses an LLM for scenario-aware replies; SpeechGen produces voice and synchronized mouth/facial animation; ConvCore manages the full flow
- NarrativeDirector composition root: separates Quest, Investigation, and Knowledge state
- ConvCore action-token validator: checks gameplay messages before state changes
- Pure Binding MVVM: FieldNotify data bindings between UMG views and C++ ViewModels
- Custom, quality-gated U8/S8 Kokoro-82M quantization for SpeechGen: 3.00× warm synthesis on a mid-range CPU; 1.82 dB median mel-spectral error vs. FP32 (excludes model load, phonemization, queueing, and playback)
- 7 standalone open-source Unreal Engine plugins (TextGen, ProcessRuntime, SpeechGen, LevelInstanceDeepCopy, etc.)
Custom Unreal Engine Plugins
7 Custom PluginsUnreal Editor plugin for copying Level Instance hierarchies independently of their source.
UsageNested Level Instance hierarchies remain editable independently of the source level.
View GitHub repository ↗PCG plugin for placing buildings along spline-based road networks in UE 5.8.
UsagePCG workflows generate road networks and level content inside the editor.
View GitHub repository ↗Manages external processes and inter-process communication from Unreal Engine.
UsageExternal applications launch from Unreal Engine; their output and IPC messages flow into the project.
View GitHub repository ↗Brings local LLM inference with CUDA and Vulkan support to Unreal Engine.
UsageLocal LLM responses stream into in-game dialogue systems.
View GitHub repository ↗Deterministic texture generation and import tools for Unreal Editor.
UsageGenerated textures enter the editor workflow and remain reusable in the project.
View GitHub repository ↗In-editor project asset backup and recovery utility.
UsageEarlier asset versions can be browsed and restored without leaving the editor.
View GitHub repository ↗Offline speech synthesis plugin powered by Kokoro and ONNX Runtime.
UsageCharacter dialogue is synthesized offline with Kokoro and ONNX Runtime.
View GitHub repository ↗

