Frostdev

KilnAPI reference Guide

localTexts (instance registry)

Generated from schema/registry/localTexts.json by tools/registrygen/registrygen.py: edit the schema, never this page.

The game's own texts on a game client, per language, as its loca tables hold them (with the game's markup): a read-only view, kiln.content's binder. Client-owned (owner decision 12): it lives only in the game client's own Gate and answers in the main menu and on a joined client too; a dedicated server's data has no texts (every read there is refused, a write gate:client_owned). The key is a language and a page of its table: localTexts[de-de].count, localTexts[de-de:3].texts (a table is read in pages of at most 60 KiB of JSON). Kiln's text readers (Content.TextIn, Content.TryGetTexts, Items.Description, the game's names) read it; a mod reads them there.

  • Key: language (one value per language); side: client; version 0.1.0, experimental (KILNX032)
  • Values are live: a write applies at the Gate's next turn (one-time, owned by the mod), a hold is re-applied at its cadence until released. Kiln.Gate: LocalTexts.<Field>; refs: localTexts[<key>].<field>.
Field Type Holds Cadence Saved Notes
languages list of text - - session read-only; unproven: writes refused (no game client runs in a lab: shown by host tests only); The languages the game ships ("en-us", "de-de", ...), in the game's order; the same under every key.
shipped bool - - session read-only; unproven: writes refused (no game client runs in a lab: shown by host tests only); The game ships the key's language.
count int 0..2000000 - - session read-only; unproven: writes refused (no game client runs in a lab: shown by host tests only); Texts in the language's table (its first read reads the table: a few MB, tens of milliseconds, off the game's threads). A text longer than 64 KiB is left out.
pages int 1..2000000 - - session read-only; unproven: writes refused (no game client runs in a lab: shown by host tests only); Pages of the language's table: texts reads page 0 .. pages - 1.
texts list of entries - - session read-only; unproven: writes refused (no game client runs in a lab: shown by host tests only); The key's page of the table: whole texts in the table's order, at most 60 KiB of JSON (a text larger than that is a page of its own). A later text of the same tag replaces an earlier one.

Enshrouded is a trademark of Keen Games GmbH. Kiln is unofficial.