Frostdev

KilnAPI reference Guide

assets (asset registry)

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

References to the game's and the mods' assets (models, textures, materials, sounds, VFX, animations, impact programs, icons, UI images, other resources and content blobs), never their bytes: the bytes stay in files and in kiln.assets' blob catalog. Every way a mod serves bytes for an asset (assets/assets.json, Kiln.Assets, a VFX block, a player animation state, a generated impact program, a sound replacement) is a layer of the asset's entry with its owner; the last layer is served, a new-SDK mod's (generation 1) above every old-SDK one whatever the load order (two stacks), the report names every layer and the conflict, and removing a mod takes its layers off. Ids: game:/[/] for an asset the game has, :/ for one a mod adds, game:blob/--

-

for a content blob, :/ for a reference a Kiln service declared (a VFX block, a player state).

  • Key: an asset id; side: both; version 0.1.0, experimental (KILNX032)
  • A write is a layer of the writing mod (kiln.assets keeps each owner's layers; the last one is served). Removing the mod takes its layers off. Kiln.Gate: AssetRegistry.<Field>; refs: assets[<asset id>].<field>. The report: registry.json's assets member (every entry with a layer, its layers and the conflicts).
Field Type Applies Notes
kind enum (model, texture, material, sound, vfx, animation, impactProgram, icon, uiImage, resource, blob) restart read-only; What the asset is. An item's icon is a UI image keyed by the item; resource: any other resource the game loads by key.
source enum (game, file, code, kiln) restart read-only; Where the served bytes come from: game (the game's archive, no layer served), file (a mod's file), code (a mod's code gave the bytes), kiln (Kiln built them: an icon from a picture, a VFX block, the merged player graph, an impact program).
override ref assets restart a layer; A layer: the asset whose bytes this one serves instead (another asset of the same kind), or a file of the writing mod's own assets folder, :file/. A texture or an icon takes a picture file and is re-encoded to its own format and size (game client only); a resource takes the resource's bytes; a content blob takes bytes of the blob's size. Served from the next start for what the game reads once; an icon or a UI image as soon as the UI loads it again.
layers int 0..1000000 now read-only; How many layers (mods' and Kiln's registrations) the asset has now; the last one is served, a generation-1 layer above every generation-0 one.
usedBy list of ref assets now read-only; What Kiln knows references the asset: the references Kiln's services declared over it (a VFX block over its resource, a player state over the merged graph) and other assets' override layers that name it.
loaded int -9223372036854775808..9223372036854775807 now read-only; One scalar of a loaded resource a run-time writer changed in place (a hosted ShroudForge package through kiln.assets' loaded writes), keyed @:: journaled by the Gate as that writer's one-time write and put back when it is removed.

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