NpcAct documentation

NpcAct runs a small language model on the player's device and turns what an NPC says into tool calls your game checks and performs. Replies are made on the device; no server takes part in a turn.

Start with Setup: the Mock backend runs the example NPCs with no model file, so you can see a tool call fire in a few minutes.

Page What it covers
Setup Install, enable, a first NPC on Mock, then the real model
Writing NPCs and tools Personas, tools the model will call, game-side checks, fallback lines, Generate Text and Generate Struct
Platforms What runs where, as measured
Project settings The settings your project needs for iOS, Android and the GPU backend, and the plugin's own settings page
Getting the model onto the device Where the file goes, how your game delivers it, free space, warm-up
Performance Turn times, load times, memory and tool-call accuracy per backend and device
Keeping the AI out of sight The output guard, failure codes, logs, and what a player can still find out
Troubleshooting Known problems and what to do
Licences The model's licence and the third-party notices your game ships

How to read the numbers

Every number in these pages was measured by the plugin's developer, on the device and date given next to it. A number from one device doesn't predict another device: the same model gives different speeds, and sometimes different replies, on different GPUs. Measure on your target hardware before you rely on a figure.

The example project, NpcActDemo, shows the patterns from these pages in a playable map. Its README says how to open it.