Your first source file
A source file lists what Kiln can download into one folder. It is a text
file named .kiln.toml in that folder, written in
TOML. Kiln reads it every time it opens the folder.
A minimal file
Suppose a computer at home has your Game Boy games, and a web server on
it shows the list of the folder’s files. Write this in
Roms/GB/.kiln.toml:
format = 1
[[source]]
url = "http://192.168.1.10/games/gb/"
The file has three parts:
format = 1is the version of the file format. Every file starts with it.[[source]]starts one source. A file can have any number of sources, each with its own[[source]]line.urlis the address of the files. The URL ends with/, so Kiln reads it as a folder and lists its files.
Open the Game Boy folder in Kiln and press R1. The “To download” tab lists the files of that folder that are not on the card.
Filters
This source lists only the zips, without betas:
format = 1
[[source]]
url = "http://192.168.1.10/games/gb/"
include = ["*.zip"]
exclude = ["*(Beta)*"]
Several sources
When two sources have a file with the same name, Kiln shows one row and downloads the file from the first of those sources in the file. When that download fails, Kiln tries the next source that has the file.
format = 1
[[source]]
url = "http://192.168.1.10/games/gb/"
[[source]]
url = "https://games.example.org/gb/"
label = "Mirror"
File location
| Console | Path of the Game Boy folder’s file |
|---|---|
| Miyoo, Onion | /mnt/SDCARD/Roms/GB/.kiln.toml |
| Miyoo, stock firmware | Roms/GB/.kiln.toml on the card |
| RG35XXSP | Roms/GB/.kiln.toml on either card |
A folder of games is a folder under Roms/. For other folders, such as
BIOS/, see Folders outside Roms.
The name starts with a dot, so the firmware does not list the file as a game. Some file managers on a computer hide such files until you turn on an option such as “show hidden files”.
TOML syntax
- Edit the file with a plain text editor, and save it as UTF-8.
- Write text values in double quotes. Write a list in square brackets, with commas between its values.
- A line that starts with
#is a comment. - Kiln rejects a file with an unknown key, so it reports a misspelled key as an error.
Errors
Kiln shows a problem with the file on the “To download” tab of the folder. The line starts with “Could not read the download sources” and ends with the reason. When only some sources fail, the line starts with “Some download sources could not be read”, and the other sources still work.
After you correct the file, open the folder again. To read a source again without a change to the file, use “Refresh download list” in the system’s menu on Games.
Further reading
- Reference lists every key.
- Supported protocols lists the kinds of servers that Kiln reads.
- Recipes has complete files for common setups.