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 a content blob,
- 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'sassetsmember (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, |
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 |