Reference
A .kiln.toml starts with a few top keys, then has any number of
[[source]] and [[patches]] tables.
format = 1
systems = [21, 2]
emulator = "Emu/GG"
[[source]]
url = "https://example.org/roms/gamegear/"
include = ["*.zip"]
[[patches]]
url = "webdavs://cloud.example.org/patches/gamegear/"
Top keys
Write these keys before the first table.
| Key | Required | Meaning |
|---|---|---|
format | yes | The version of the format, which is 1. Kiln rejects a file with another number. |
systems | no | The folder’s systems, the main one first. Only a folder under Roms/ reads it. |
emulator | no | The emulator that starts the folder’s games. Only a folder under Roms/ reads it. |
systems
systems is a list of ScreenScraper system ids. 21 is the Game Gear and
2 is the Master System, so systems = [21, 2] describes a folder of Game
Gear games that also has Master System games. The first system is the
main one. The folder’s name, icon, images and game information come from
the main system.
Without systems, Kiln knows many folders by their name, such as GB,
SFC or PS, on every console. See
Folders and system ids. A folder inside another
folder, with no systems of its own, has the systems of the outer folder.
For example, Roms/MD/Hacks/ is a Mega Drive folder.
emulator
- On the Miyoo,
emulatoris a folder of the card,Emu/<name>orRApp/<name>, such as"Emu/GG". - On the RG35XXSP,
emulatoris a folder name from the stock frontend’s list of systems, such as"PS"or"FBNEO".
Without emulator, Kiln chooses the emulator that runs the main system
best.
The folder’s Settings tab writes these two keys for you. See Systems and emulator of a folder.
[[source]]
| Key | Default | Meaning |
|---|---|---|
url | required | The address of the files. Its scheme selects the protocol. See Supported protocols. |
as | from the URL | The kind of resource at the URL: "file", "listing", "index" or "archive". |
path | "" | A folder inside the resource, such as a folder of the torrent, of the listing or of the zip. It ends with /. |
depth | 0 | The number of subfolder levels below path that a listing reads. |
archive | none | The path of a zip inside a torrent or a listing, from its root. Only with as = "archive". |
include | every file | Patterns. Kiln lists a file only when it matches one of them. |
exclude | none | Patterns. Kiln does not list a file that matches one of them. |
label | none | A short text that Kiln shows next to the files of this source, such as "Aftermarket". |
install | "keep" | "keep" saves the file unchanged. "extract" extracts a zip into the folder. |
core | none | On Onion, the libretro core that starts the games of this source, such as "fbneo_libretro". |
sets | none | A set list that Kiln ships, for arcade games. |
id | from url, path and archive | A fixed name for the source, for when you change its URL. |
as
"file": the URL is one file. It is the default for a URL that does not end with/, except torrents."listing": the URL is a folder, and Kiln lists its files. It is the default for a URL that ends with/, for torrents and for magnet links."index": the URL is an index file, a list of files that you write."archive": the URL is a zip file, and Kiln lists the files in it. Kiln downloads only the bytes of the file you choose, so a 10 GB zip needs no more time or space than a small one. Witharchiveset, the zip is a file inside a torrent or a listing. The server must support partial downloads. See Supported protocols.
path and depth
path names a folder inside the source, relative to its root, such as
"Nintendo - Game Boy/". It must end with /, and must not start with
/.
A listing reads only that folder. depth = 1 also reads its subfolders,
depth = 2 also reads their subfolders, and so on.
include and exclude
Kiln matches each pattern against the file’s path below path, and
ignores upper and lower case.
| Pattern | Matches |
|---|---|
* | any sequence of characters |
? | one character |
[abc] | one of the characters in the brackets |
Examples:
include = ["*.zip", "*.7z"]
exclude = ["*(Beta)*", "*(Proto)*", "*[BIOS]*"]
include and exclude decide which files Kiln lists at all. The filters
of Settings, Downloads, “Hidden ROMs” apply afterwards, and only hide
rows that X can show again.
install
Use install = "extract" for a source of zips that each contain a disc
with its tracks, such as PlayStation games. Kiln extracts the zip in the
folder, and writes a .m3u playlist for a game with more than one disc.
core
On Onion, every game of this source starts with this core in place of
the emulator’s default core. This applies also to games you copied
yourself, and the GameSwitcher and Recent use the same core. Kiln also
writes a .game_config/<game>.cfg file for each game it installs. A
folder with emulator set ignores core. Only Onion uses core. The
stock Miyoo firmware and the RG35XXSP ignore it.
id
Each queued download records the id of its source. Without id, Kiln
computes the id from url, path and archive, so a change to one of
them makes the queued jobs of that source fail. Set id before you
change the URL of a source with queued jobs:
[[source]]
id = "nas-gba"
url = "smb://nas.local/games/gba/"
[[patches]]
A [[patches]] table lists hacks and translations for the folder’s
games. It has the keys url, as, path, depth, archive,
include, exclude, label and id of a source, and also
catalogue. See Patches.
Two cards
On the RG35XXSP, when the same folder has a .kiln.toml on both cards,
Kiln uses the sources of both files. Two sources with the same url,
path and archive count as one. Kiln reads systems and emulator
from the first card that sets them.
Updates of a source’s list
Kiln saves the list of each source on the card. It checks an index file and a web server’s listing once a day at most, when the folder opens and Wi-Fi is on. It downloads the list again only when the server reports a change. Kiln reads other sources again only with “Refresh download list”.