Mod icons
Since 0.2.0-dev.32.2 every mod can have an icon: the Kiln Launcher's mod list shows it next to the mod's name, and Kiln's in-game menu shows it on its Mods page (the list and the mod's page) and in Settings (kiln-menu.md). It works for mods of every framework Kiln runs: Kiln, ShroudForge, EML, XHL, EMF, ShroudLink, Greeneye, Shroudtopia, native DLL mods, and any other.
The one rule: mod-icon.png
Put a file named mod-icon.png at the root of your mod's folder, beside its manifest or its DLL, and in the same
place in your zip. No manifest change is needed, and no framework reads a file of that name, so it changes nothing for
players without Kiln.
MyMod/
mod-icon.png <- the icon
mod.json (or kiln.mod.json, native.json, your DLL ...)
...
A mod that is one bare DLL has nowhere to keep an icon: ship the DLL in a folder (or a zip) with its mod-icon.png
beside it. The launcher keeps the file when it adds the mod to its Library.
The picture
- 256 x 256 px PNG, sRGB, transparent background (straight alpha, 8 bits a channel).
- Keep the silhouette inside the middle 214 x 214 px (21 px free on each side) and important marks clear of the corners. Kiln draws the slot, the selection and the focus outline around it.
- Lists draw it at about 32 to 56 px, the detail pane larger, all from this one file: make it read at a small size.
- Kiln reads an icon of at most 1024 px a side and 2 MiB. A missing file, one that is not a PNG, or one over those limits shows the default emblem instead. In the game, so does a PNG whose image data unpacks to more than a picture of its size can hold (a broken or hostile file; every PNG an image editor saves is fine).
Without an icon
A mod without one shows the default emblem of its framework, an embossed plaque with a raised glyph:
| Framework | Glyph | Colour |
|---|---|---|
| Kiln (Kiln mods, native mods, Kiln plugins) | Flame | Ember brown |
| ShroudForge | Crossed smith's tools | Aubergine |
| EML | Crystal cluster | Blue-green |
| XHL | Leafy bough | Moss |
| Every other framework | Compass rose | Slate |
A manifest that names its icon
A manifest that already has an icon field is read first, and mod-icon.png is the fallback:
- Kiln mods:
"icon": "icons/my-mod.png"inkiln.mod.json, a.pngpath inside the mod folder (manifest.md). With Kiln.Sdk, putmod-icon.pngbeside the project file (it is copied into the mod), or set<KilnIcon>icons/my-mod.png</KilnIcon>for another file. Everykiln newtemplate starts with a placeholdermod-icon.png: replace it. - ShroudForge and EML packages: their
mod.json"icon"(a file in the package root or underassets/). - XHL, EMF, Shroudtopia: a
mod.json"icon"when one is there.
kiln lint checks a Kiln mod's icon: KL501 (a named file is missing),
KL503 (not a PNG), KL506 (not 256 x 256, not sRGB, no transparency,
or too large to be read).
To draw your icon in your own window, use ModIcons.Image(icon) or UiKit.ModPicture
(ui-kit.md, since 0.2.0-dev.32.9).
For tools: kiln_manage::mod_icons (Rust) and Kiln.Ui's ModIcons (C#, experimental KILNX033) apply these rules;
schema/fixtures/mod-icons/cases.json holds the cases both are tested on. The emblems are in
launcher/src/assets/mod-icons/.