Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Kiln

Kiln is a frontend for handheld consoles. It lists your systems and games and starts them in place of the console’s main menu. The emulators, the saves, Onion’s GameSwitcher and the firmware’s own keys keep working as before.

Kiln adds these features to a plain game list:

  • A “To download” tab in every system folder, with the games of the sources that a small file in that folder lists. Kiln has no sources of its own.
  • Hacks and translations from romhacking.net’s archive, patched on the console.
  • Box art, screenshots and title screens for every game you install.
  • A panel with the year, developer, genre, players, rating and description of each game, in your language when ScreenScraper has it.
  • A list of every Wi-Fi network you join. The console joins any of them that is in range.
  • Updates from Kiln’s GitHub releases, installed from Settings.

Consoles

ConsoleFirmwareHow Kiln runs
Miyoo Mini FlipOnion OS or the stock Miyoo firmwareAs an app in the Apps menu, or in place of MainUI
Miyoo Mini Plusthe stock Miyoo firmware or Onion OSThe same, with the same release zip as the Flip
Anbernic RG35XXSPthe stock Anbernic firmwareIn place of the stock frontend, with the games of both SD cards

On the Miyoo consoles Kiln detects the firmware at start, and sets volume, brightness and Wi-Fi the way that firmware expects. Some settings exist only on one console or firmware, and this guide names them.

Kiln changes none of the firmware’s files. Hold SELECT while the console boots to open the console’s own menu instead of Kiln. The console’s own menu also opens by itself when Kiln exits with an error.

Parts of this guide

  • Getting started installs Kiln and explains what to do when it does not start.
  • Using Kiln describes the pages and the buttons.
  • Downloads explains the games to download, the queue, and hacks and translations.
  • Writing .kiln.toml explains how to add your own download sources, such as a server at home, a NAS, a website or a torrent.

Kiln is free software under the GNU GPL, version 3 or later. The source code is at github.com/mtorromeo/kiln.

Install

Download the release

Download the zip for your console from the releases page:

  • kiln-miyoo-<version>.zip for the Miyoo Mini Flip and the Miyoo Mini Plus, with Onion OS or with the stock firmware.
  • kiln-rg35xxsp-<version>.zip for the Anbernic RG35XXSP with its stock firmware.

Extract the zip on the SD card

  1. Turn the console off and put its SD card in your computer.
  2. Extract the zip at the root of the card. The zip has the folders of the card, so its files must not end up in a new folder named after the zip. Some “Extract all” commands create that folder, so check that the result matches the steps below.
  3. The zip replaces the files of an earlier version of Kiln. Your games and saves are not in the zip, and it does not change them.

Miyoo Mini Flip and Miyoo Mini Plus

The zip creates the folder App/Kiln. Put the card back and turn the console on. Kiln is in the firmware’s Apps menu.

Kiln works as an app from there. To open Kiln at boot and after every game, open it and turn on Settings, Interface, “Kiln as main interface”. See Kiln as the main interface.

Anbernic RG35XXSP

Use the card in the first slot, the one with the Roms folder that the stock frontend reads. The zip creates the folder Kiln and the file dmenu.bin at the root of the card. The firmware runs that dmenu.bin in place of its own frontend, so Kiln opens at the next boot.

Next steps

  • Turn on Wi-Fi in Settings, Network, Wi-Fi. Kiln needs it for downloads, images, game information and updates.
  • To download games, add a .kiln.toml file to each folder you want to download into. Your first source file shows how.

Updates

Kiln updates itself from its releases on GitHub.

  • Settings, System, “Check for updates” asks GitHub for the newest release and offers to install it. Kiln downloads the zip for its console, writes the new files to its folder and starts again.
  • With “Check for updates automatically” on, Kiln checks once a day at most, while Wi-Fi is connected. When it finds a new version, it shows a message, an “Update” badge on the Settings tile of Home, and the new version on the update row.
  • An update needs free space on the SD card of eight times the size of the zip, plus 16 MB.

Kiln ignores the buttons while it downloads and installs an update, so a game cannot start in the middle of it. Do not turn the console off during that time.

Manual update

Extract the zip of the new version at the root of the card, as in Install. Kiln keeps your settings and your download queue.

Uninstall

Miyoo Mini Flip and Miyoo Mini Plus

  1. If Kiln is the main interface, turn off Settings, Interface, “Kiln as main interface”. MainUI then opens at boot again.
  2. Delete App/Kiln from the card. That folder has Kiln’s settings, download queue and caches.

Deleting App/Kiln does not delete the games, images, saves and .kiln.toml files on the card. MainUI ignores the .kiln.toml files, because their names start with a dot.

Anbernic RG35XXSP

  • Delete dmenu.bin from the root of the card. The stock frontend then opens at boot again.
  • Delete the Kiln folder to remove Kiln and its settings.

If Kiln does not start

Opening the console’s own menu

  • Hold SELECT while the console boots. The firmware’s own menu opens in place of Kiln until the next boot. That menu is MainUI on the Miyoo and the stock frontend on the RG35XXSP.
  • Kiln exits with an error. The console’s own menu then opens by itself until the next boot, so a Kiln that fails at start does not lock you out of the console.

Turning Kiln off from a computer

  • Miyoo with Onion: delete .tmp_update/startup/kiln-home.sh from the SD card. MainUI then opens at every boot.
  • Miyoo with the stock firmware: open miyoo285/app/ on the Flip’s card, or miyoo354/app/ on the Mini Plus’s card. If the folder has MainUI.stock, delete MainUI and rename MainUI.stock to MainUI. If it does not, delete MainUI, and the console then starts the MainUI in its internal memory.
  • RG35XXSP: delete dmenu.bin from the root of the first card.

Then install Kiln again, or uninstall it.

Log files

Kiln writes a log to kiln.log in its folder, which is App/Kiln/ on the Miyoo and Kiln/ on the RG35XXSP. At each start, Kiln renames the previous log to kiln.log.old. After a failed start, read kiln.log before you start Kiln again. When you report a problem on GitHub, attach both files.

Buttons

The bar at the bottom of the screen shows the action of the main buttons on the selected row. These buttons work the same on every page:

ButtonAction
D-padMoves the selection. On a setting, LEFT and RIGHT change its value.
AOpens the row, plays the game, turns a setting on or off, or picks the option.
BReturns to the previous page. In a search, B first clears the search.
L1, R1Switch to the previous or next tab on a page with tabs, such as Settings or a system’s folder. On other lists they move the selection by one screen.
L2, R2Move the selection to the previous or next first letter in a list of games.
XShows the games that your filters hide, dimmed. X again hides them.
YSearches the page. On Games it searches every system.
SELECTOpens the menu of the selected game or system.
STARTOpens or closes the information panel of the selected game.
MENUOn Home, opens the GameSwitcher when Kiln is the main interface on Onion, and exits Kiln when it runs as an app.

Grids and lists

Home and Games are grids of two columns. UP and DOWN move the selection by one row of two tiles, and LEFT and RIGHT move it by one tile. Every other page is a list. UP on the first row selects the last row, and DOWN on the last row selects the first.

On-screen keyboard

A search, a Wi-Fi password and a ScreenScraper login open a keyboard on the screen:

ButtonAction
ATypes the selected key
BDeletes the last character
XTypes a space
YShift
L1Symbols
STARTDone
MENUCancel

A search filters the list while you type.

Dialogs

Kiln shows a dialog before an action that you cannot undo, or that pauses the downloads. UP and DOWN, or LEFT and RIGHT, select an option, A confirms it, and B cancels the dialog.

Exiting Kiln

When Kiln runs as an app, B on Home exits to the firmware’s menu. As the main interface, Kiln has no exit, because the console returns to Kiln after every game and app. When the queue has downloads, a dialog asks before Kiln exits or starts a game, because the downloads pause while Kiln is closed.

Home

Home is the first page. It has these tiles:

TileContent
RecentThe games you played last. See Recent and Favourites.
FavouritesThe games you added to your favourites.
GamesEvery system on the card. See Games.
AppsThe apps of the firmware. See Apps.
DownloadsThe download queue, and the folders outside Roms that have sources. The tile shows the number of queued downloads. Kiln hides it when Settings, Downloads, “Download games” is off.
SettingsThe settings of Kiln and of the console. The tile has an “Update” badge when a new version of Kiln is available.

The bar at the top shows the page title, the time and the battery. It also shows the Wi-Fi network when “Network name in title bar” is on in Settings, Interface.

Games

Games lists every system that has a ROM folder on the card, or an emulator that could start the games of one, with the number of games in each. Kiln dims the systems with no games. With “Systems with games first” on in Settings, Interface, those systems come after the others.

A system’s tile shows the progress of its active download, or the number of its queued downloads.

Folder tabs

A on a system opens its folder. The folder has up to three tabs, and L1 and R1 switch between them.

TabContent
On SDThe games on the SD card. A plays the selected game.
To downloadThe games you can download into this folder. Only a folder with sources has this tab. See Games to download.
SettingsThe systems of the folder and the emulator that starts its games. See Systems and emulator of a folder.

The folder opens on “On SD”, or on “To download” when it has no game on the SD card yet. Each tab’s label shows its number of rows.

The list shows the subfolders first, then the games, each group in name order. Kiln hides files whose name starts with a dot, and the Imgs folder. A game shows its file name without the extension. Arcade games show their full title in place of the short file name, as in MainUI. Kiln lists an EasyRPG game folder as one game, which A starts.

  • Y in a folder searches both of its tabs.
  • Y on Games searches every system. The results list the games on the SD card first, which A plays, and then the games to download. The search skips a system whose list of games to download Kiln has not read yet, and a row at the end offers to download the missing lists.

System menu

SELECT on a system opens its menu:

  • Open opens the folder.
  • Fetch missing images downloads the images that the folder’s games lack. See Game images.
  • Fetch game information asks ScreenScraper about every game that has no information yet, one game at a time.
  • Refresh download list reads the folder’s sources again.
  • Enable and Disable, on Onion, install or remove the system’s emulator package, as Onion’s Package Manager does.

Systems that are not installed

On Onion, a “Not installed” section after the installed systems lists the emulator packages of the Package Manager that the card lacks. A on one of them asks for confirmation, then installs it. Disable removes only the package’s files. It does not delete your ROMs, saves and images.

Kiln also lists a folder whose system no emulator runs. Starting a game there opens the folder’s Settings tab, where you choose an emulator.

The game menu

SELECT on a game opens its menu. The entries depend on the page.

Games on the SD card

In a system’s folder, Recent, Favourites and the search, the menu has:

  • Play.
  • Add to favourites, or Remove from favourites.
  • Remove from recent, on the Recent page.
  • Hacks & translations, when romhacking.net’s archive has patches for the game. See Hacks and translations.
  • Fetch images and information, which downloads the images the game lacks and asks ScreenScraper about the game again. Its label is “Fetch missing images” or “Fetch game information” when only one of the two has something to download. It needs Wi-Fi.
  • Download SBI file, for a PlayStation game that needs one. See SBI files for PlayStation.
  • Delete and Purge, in a system’s folder. See Delete and Purge.

Games to download

  • Download, or Versions when the game has more than one version.
  • Hacks & translations, when the game has patches.
  • Move to end of queue and Cancel download, after you queue the game.

Game information

START on a game opens a panel on the right of the list. START again closes it, and Kiln remembers the choice. The panel works on the games of a folder, Recent, Favourites, the search and the games to download.

The panel shows:

  • the game’s image;
  • the developer, the publisher and the year;
  • the genre and the number of players;
  • the rating out of 10;
  • for a game to download, its size and its number of versions and patches;
  • the system, outside the system’s own folder;
  • the description.

LEFT and RIGHT scroll the panel when the text does not fit on the screen.

Information sources

Kiln ships facts from libretro-database for about 47 systems. They work without a network, and only the PlayStation facts have a description.

When the panel shows a game that Kiln has not asked about yet and Wi-Fi is connected, Kiln asks ScreenScraper and fills the panel with the answer. The description is in Kiln’s language when ScreenScraper has it, and in English otherwise. Kiln saves each answer on the card, so the panel needs no network the next time.

ScreenScraper limits the number of requests per day. A ScreenScraper account of your own raises the limit. Enter it in Settings, Downloads, “ScreenScraper account”. On Onion, when that setting is empty, Kiln uses the account of Onion’s Scraper app.

To fetch the information of a whole system, use “Fetch game information” in the system’s menu on Games. Kiln asks about one game at a time, and shows the progress in a message at the bottom of the screen.

When ScreenScraper does not know a game, Kiln asks again after 30 days, or at once when you change the folder’s systems.

Game images

A game can have three images: box art, a screenshot and a title screen. Two settings in Settings, Interface choose the images that Kiln shows.

SettingPositionDefault
Image beside the listOn the right of the list, in the half away from the selected rowBox art
Background imageBehind the whole window, darkened so that the text is readableScreenshot

Each one is None, Box art, Screenshot or Title screen, and both can be on at once. When the game lacks the chosen image, Kiln shows no image. It does not show another type in its place.

An icon in place of the image shows its state. The game has no image, Kiln could not read or download it, its download is queued, or it is downloading.

Image files

The box art is the image file that the firmware’s own menu shows:

  • Roms/<folder>/Imgs/<game>.png on Onion and the RG35XXSP;
  • Imgs/<folder>/<game>.png on the stock Miyoo firmware.

Kiln saves screenshots in Snaps/ and title screens in Titles/ inside that Imgs folder. Kiln uses an image that you put in Imgs/ yourself, for example with Onion’s Scraper, as box art.

Image downloads

  • After each install, Kiln downloads the chosen types of image for the new game from libretro’s thumbnails.
  • “Fetch missing images” in a system’s menu downloads them for every game of the folder that lacks one. Kiln never replaces an image you already have.
  • “Fetch images and information” in a game’s menu does the same for one game.
  • With “Images of games to download” on in Settings, Downloads, Kiln also shows the images of a game that is not on the card yet, half a second after you select it. Kiln keeps up to 300 of these images per system and type, and moves them into the image folder when you install the game.

A PICO-8 cart is also its own image. See PICO-8.

Recent and Favourites

These two pages read and write the same lists as MainUI, so the lists are the same in Kiln and in MainUI.

Recent

Recent lists the games you played last, the newest first. Kiln lists a game you played more than once one time only. Each row shows the game’s system on the right.

A plays the game. SELECT offers Play, Add to or Remove from favourites, and Remove from recent.

Favourites

Favourites lists the games you added, in name order. To add a game, use “Add to favourites” in the SELECT menu of a folder, Recent or the search. On Favourites, SELECT offers Play and Remove from favourites.

When the card no longer has a game’s file, A shows a message in place of starting the game.

Apps

Miyoo

Apps lists the apps in the card’s App/ folder, in name order, as MainUI’s Apps menu does. A starts the app. When the queue has downloads, a dialog asks first. When the app exits, the console returns to Kiln.

RG35XXSP

Apps first lists the firmware’s own programs: Music, Video, E-book, File Manager and Wiliwili. Kiln lists each one only when the firmware has it. With two cards, E-book asks which card to read.

After them, Apps lists the scripts of the stock frontend’s Apps room, which are the .sh files in Roms/APPS/ on either card. Kiln shows each _ in a file name as a space.

Delete and Purge

SELECT on a game in a system’s folder has two entries that remove the game. Both show a dialog first, with the number of files to delete.

Delete removes the game itself. That is the ROM file, the tracks of a CD game, the discs of a multi-disc game, or the folder of an EasyRPG game. Delete also removes the game from Recent and Favourites. It keeps the saves, states, images and screenshots.

Purge removes the game, and also these files when the card has them:

  • the game’s images;
  • its per-game settings in .game_config/;
  • its saves and save states in both of Onion’s profiles;
  • its RetroArch per-game settings and play logs;
  • its GameSwitcher screenshot;
  • its screenshots in Screenshots/.

Purge keeps the files of another game whose name starts the same way, such as “Game.v2” next to “Game”.

Neither entry changes the play time in Onion’s Activity Tracker.

Kiln as the main interface

Miyoo Mini Flip and Miyoo Mini Plus

Kiln first runs as an app from the firmware’s Apps menu. To open Kiln at boot and after every game and app, turn on Settings, Interface, “Kiln as main interface”. A dialog asks for confirmation, and Kiln then starts again in place of MainUI.

To use MainUI again, turn the same setting off. MainUI then opens at boot, and Kiln remains available in Apps.

Anbernic RG35XXSP

Kiln is the frontend as soon as its dmenu.bin is on the card. See Install.

Differences from Kiln as an app

  • After a game or an app, Kiln opens the page and the row you left, with the same search and filter.
  • B on Home does nothing, because the console returns to Kiln after every game and app.
  • On Onion, MENU on Home opens the GameSwitcher. Kiln opens again when the GameSwitcher closes.
  • To open the firmware’s own menu once, hold SELECT while the console boots. See If Kiln does not start.

Missing MainUI features

Kiln does not have these MainUI features:

  • the theme’s background music;
  • the MENU, X and Y shortcuts of Onion’s Tweaks.

How downloads work

Kiln downloads games into the folders of the SD card, only from the sources that each folder’s .kiln.toml file lists. Kiln has no sources of its own. A folder without that file offers no downloads, and Kiln shows its games as usual. Download only what you have the right to.

Downloads need Wi-Fi. Turn it on in Settings, Network, Wi-Fi.

The queue

Download adds the game to the end of the queue. Home, Downloads lists every queued job with its state:

StateMeaning
QueuedThe job waits for its turn.
A percentageThe file is downloading.
WaitingNo peer or server has sent data for a while. Kiln keeps trying.
Waiting to installThe file is complete, and waits for the previous install to end.
InstallingKiln is extracting the game or moving it into its folder.
Waiting for its SD cardThe console does not have the card of the job. Kiln moves the job to the end of the queue.
FailedThe download or the install failed. The row shows the reason.

A on a job offers Move to end of queue and Cancel download. In a folder, the rows of queued games have the same badge and a thin progress bar, and the system’s tile on Games shows its active download.

Simultaneous downloads

The Miyoo runs one download at a time. The RG35XXSP runs up to four, as Settings, Downloads, “Simultaneous downloads” sets, with 2 by default. When a download has waited for peers for 90 seconds, Kiln starts the next job in its place. Kiln runs installs and patches one at a time, after the downloads.

Pausing and resuming

Downloads run only while Kiln is open. Kiln pauses them when you start a game or an app, or exit Kiln, and a dialog asks first when the queue is not empty. The next time Kiln opens, it resumes the queue. A partial file continues from where it stopped when its server supports that.

Settings, Downloads, “Download games” turns every download off. Kiln then keeps the queue paused until you turn downloads back on.

Temporary files

During a download, Kiln writes the file as .kiln-<number>.part in its destination folder. The name starts with a dot, so the firmware does not list the file. At the end, Kiln renames it to its final name. Cancel deletes the temporary files of the job.

After an install, Kiln also:

  • downloads the game’s images;
  • extracts a zip when the source sets install = "extract", as for CD games;
  • puts the discs of a multi-disc game in a hidden .<Game>/ folder, with a <Game>.m3u playlist next to it, as Onion does;
  • on Onion, writes .game_config/<game>.cfg for an arcade game, so that the game starts with the right core;
  • for a PlayStation game, downloads the SBI file the game needs, if any.

Games to download

A system’s folder with sources has a “To download” tab after “On SD”. The tab lists the games of the folder’s sources that are not on the card. A game is on the card when the folder has a file or folder with the same name, with any extension.

Each row shows the game’s size, and its number of versions and patches. While Kiln reads the list, the tab shows one line that says so. It shows the same kind of line when Wi-Fi is off and Kiln has not read the list before. Kiln saves each list on the card, and checks some kinds of sources for changes once a day at most. “Refresh download list” in the system’s menu reads the sources again.

Versions

With “Group ROM versions” on in Settings, Downloads, Kiln shows the regions and revisions of a game as one row. A opens its Versions page, where the versions on the card have an “On SD” badge. A game with one version opens its download dialog at once.

The download dialog

The dialog shows the size, the destination folder, and the other files the game needs:

  • “Also downloads …” lists the files the game needs, such as the parent and BIOS sets of an arcade game, with their size.
  • “Already on the SD card: it will be replaced.” means that the folder has a file with the same name.
  • “Which SD card?” asks for the card when both cards have the folder.

Hidden categories

Settings, Downloads, “Hidden ROMs” removes categories from the list: BIOS, betas, protos, demos, pirates, unlicensed and aftermarket. Kiln hides all of them by default. X in the folder shows them dimmed, and X again hides them. Kiln reads the category from the tags in the file name, such as (Beta) or [BIOS].

Search

Y searches both tabs of the folder. Y on Games searches every system that has sources. See Games.

Hacks and translations

A folder’s .kiln.toml can list a source of patches, which are hacks and fan translations of the folder’s games. The usual source is the archive of romhacking.net, a site that closed in August 2024. The row of a game with patches shows their number, and the game’s menu has “Hacks & translations”.

The page lists the patches with their kind and version, and the language of each translation. A on a patch offers two ways to install it:

  • Install writes the patched game next to the original, as <game> [<hack> v<version>].<ext>, with a copy of the original’s images.
  • Install, remove original also deletes the original game afterwards.

When the card does not have the original game, Kiln queues it first. When the patch archive has more than one patch file, a dialog asks which one to apply.

Patch formats

Kiln applies IPS, UPS, BPS, PPF and xdelta patches on the console. It also opens zip, 7z and RAR archives on the console.

  • UPS and BPS patches check the original game, and Kiln rejects a different dump.
  • IPS patches and most PPF patches have no check. When an archive has one patch per region or dump, Kiln installs any of them, but only the patch for your dump works.

CD games

PlayStation, Sega CD, PC Engine CD and Neo Geo CD games have patches too. Kiln copies every track of the disc and patches the data track, so you can delete the patched copy and the original separately. The dialog shows the free space that the copy needs. Kiln cannot patch a disc in the CHD, PBP or ISO format. Download the original as a .cue file with its tracks instead.

Your own patches

A folder can list your own patch files, for example a folder of .ips files on a server, each named after its game. See Patches.

Arcade, PICO-8 and other special cases

Arcade sets

An arcade game is a zip with a short name, such as mslug.zip. A source with a set list gives Kiln the full title of each game and the list of the other files it needs:

  • A clone, or a game that runs on a BIOS, needs its parent and BIOS zips. Kiln queues them with the game, also when the source’s filters exclude them.
  • Some MAME games also need a CHD disc image. Kiln queues it and installs it in the game’s folder, where the emulator reads it.
  • On Onion, Kiln writes .game_config/<game>.cfg for each FinalBurn Neo game, so that the game starts with the FinalBurn Neo core. Onion’s default arcade core expects older sets.

A line under the folder’s title names the kind of set the folder expects.

Disc games

A CD game usually comes as a zip of a .cue file and its .bin tracks. With install = "extract" in the source, Kiln extracts the zip into the folder. For a game with more than one disc, Kiln puts the discs in a hidden .<Game>/ folder and writes a <Game>.m3u playlist that the emulator opens, as Onion does.

SBI files for PlayStation

Many European PlayStation discs have LibCrypt copy protection. The emulator needs a <disc>.sbi file next to the disc, or the game stops at some point. After each PlayStation install, Kiln downloads the SBI files that the game needs from the psx-cue-sbi-collection repository on GitHub. For a game you copied yourself, the SELECT menu has “Download SBI file” when the collection has a file for the game and the folder does not. Delete and Purge also delete the SBI file of the disc.

PICO-8

The source lexaloffle-bbs:featured of the PICO folder lists the featured carts of the Lexaloffle BBS, the same list as PICO-8’s Splore. Kiln saves each cart as Roms/PICO/<title>.png. A PICO-8 cart is a PNG image, so the cart file is also the game’s box art. The list has no file sizes, so each row shows the cart’s author instead.

Kiln also shows a .p8 cart as its own image when the file is a PNG image.

EasyRPG

An EasyRPG game is a folder with an RPG_RT file in it. Kiln lists the folder as one game with the folder’s name, and A starts it. The game’s image, its information and Purge use the folder’s name.

Folders outside Roms

Sources also work for files other than games. A folder at the root of a card, or one level below the root, can have a .kiln.toml. Examples are BIOS/ for the BIOS files of the emulators, or Media/Music/ for music.

Kiln lists these folders in Home, Downloads, under “Folders”, after the queue. A folder’s page lists its files first, then “Available to download” with the files of its sources that the folder does not have. A on a file to download queues it. With two cards, Kiln asks for the destination card.

These pages have no images, versions, hidden categories or patches. Kiln does not look for these folders inside Roms/, because every folder there is a system’s folder.

The BIOS folder recipe is an example.

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 = 1 is 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.
  • url is 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

ConsolePath of the Game Boy folder’s file
Miyoo, Onion/mnt/SDCARD/Roms/GB/.kiln.toml
Miyoo, stock firmwareRoms/GB/.kiln.toml on the card
RG35XXSPRoms/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

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.

KeyRequiredMeaning
formatyesThe version of the format, which is 1. Kiln rejects a file with another number.
systemsnoThe folder’s systems, the main one first. Only a folder under Roms/ reads it.
emulatornoThe 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, emulator is a folder of the card, Emu/<name> or RApp/<name>, such as "Emu/GG".
  • On the RG35XXSP, emulator is 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]]

KeyDefaultMeaning
urlrequiredThe address of the files. Its scheme selects the protocol. See Supported protocols.
asfrom the URLThe 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 /.
depth0The number of subfolder levels below path that a listing reads.
archivenoneThe path of a zip inside a torrent or a listing, from its root. Only with as = "archive".
includeevery filePatterns. Kiln lists a file only when it matches one of them.
excludenonePatterns. Kiln does not list a file that matches one of them.
labelnoneA 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.
corenoneOn Onion, the libretro core that starts the games of this source, such as "fbneo_libretro".
setsnoneA set list that Kiln ships, for arcade games.
idfrom url, path and archiveA 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. With archive set, 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.

PatternMatches
*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”.

Supported protocols

The scheme at the start of a source’s url selects the protocol that Kiln uses to read it.

SchemeProtocolMiyooRG35XXSP
torrent://BitTorrent, from a .torrent file at the https:// address after the schemeyesyes
magnet:BitTorrent, from a magnet linkyesyes
http://, https://HTTP and HTTPSyesyes
webdav://, webdavs://WebDAV over HTTP or HTTPSyesyes
ftp://, ftps://FTP, and FTP over TLSyesyes
sftp://SFTP over SSHnoyes
smb://SMB 2 and 3, the protocol of Windows and Samba sharesyesyes
lexaloffle-bbs:featuredThe featured PICO-8 carts of the Lexaloffle BBSyesyes

Write spaces and other special characters of a URL as %20 and so on, as in a browser’s address bar. path, archive and the patterns are plain text and need no such encoding.

A URL can contain a login, as in ftp://user:password@host/. Do not share a file with a password in it. Kiln can read logins from a separate file instead. See Logins and certificates.

BitTorrent

[[source]]
url = "torrent://example.org/sets/Nintendo%20-%20Game%20Boy.torrent"
path = "Nintendo - Game Boy/"
include = ["*.zip"]

For torrent://example.org/x.torrent, Kiln downloads https://example.org/x.torrent and reads it. The file list of the torrent is the list of games, and a download fetches only the file you choose. A magnet link works the same way. Kiln first fetches the torrent’s information from its peers, for two minutes at most.

A torrent always contains files, so its as is "listing", or "archive" for a zip inside it. Kiln does not upload data to other peers.

Kiln reads large torrents. The Miyoo reads up to 20,000 files of one source, and the RG35XXSP up to 200,000. Use path and include to limit the list to the files of the folder.

HTTP

[[source]]
url = "https://example.org/files/gba/"

A URL that ends with / is a folder. Kiln reads the file list page that Apache, nginx and lighttpd generate for a folder without an index page. For a server without that page, write an index file and set as = "index" in the source.

A URL that does not end with / is one file.

WebDAV

[[source]]
url = "webdavs://cloud.example.org/remote.php/dav/files/alice/Games/GBA/"

webdav:// uses HTTP and webdavs:// uses HTTPS. Nextcloud, ownCloud, many NAS systems and rclone’s WebDAV server support WebDAV.

FTP

[[source]]
url = "ftps://nas.local:2121/games/snes/"
  • ftps:// is FTP with explicit TLS, which starts with the AUTH TLS command.
  • Kiln uses passive mode only.
  • On the Miyoo, Kiln cannot resume an FTP download, or read part of a file, past 4 GiB.

SFTP

Only the RG35XXSP supports SFTP.

[[source]]
url = "sftp://games@nas.local/srv/games/psx/"

Kiln logs in with a password, or with a private key without a passphrase. On the first connection to a server, Kiln saves the server’s key. A different key on a later connection is an error. See Logins and certificates.

SMB

[[source]]
url = "smb://nas.local/Games/MD/"

The URL has the form smb://host/share/folder/. Without a user, Kiln logs in as a guest. For a user in a domain, write smb://DOMAIN;user@host/share/.

Lexaloffle BBS

[[source]]
url = "lexaloffle-bbs:featured"

This source lists the featured PICO-8 carts, for the PICO folder. It accepts no as, path, depth or archive. See PICO-8.

Server requirements

  • To resume a download, the server must support partial downloads. HTTP and WebDAV servers support them with Range, and FTP servers with REST. SFTP and SMB servers always support them. When the server does not, or when the file on the server changed, Kiln downloads the file again from the start.
  • as = "archive" needs partial downloads too, because Kiln downloads only the bytes of one file of the zip. With a server that does not support them, the source shows an error. Kiln never downloads the whole zip instead.
  • A folder over HTTP needs the server’s file list page, as described above.

Index files

An index file is a list of files that you write by hand or with a script. Use one when the server shows no file list, when the files are on different servers, or when you want to give the files other names.

Format

An index is a UTF-8 text file with one file per line, and a tab between the columns. The first line is #kiln-index 1.

ColumnRequiredMeaning
1. nameyesThe name of the file in the folder. It can contain / for a subfolder.
2. sizeyesThe size in bytes.
3. urlnoThe address of the file. Kiln resolves a relative URL against the index’s own URL. An empty column means the index’s folder followed by the name.
4. crc32noThe file’s CRC32, as eight hex digits. Kiln checks the download against it.
5. labelnoA label for this row, in place of the source’s label.

A line can omit empty columns at its end.

Example

The file https://example.org/homebrew/index.tsv, with tabs between the columns:

#kiln-index 1
Tobu Tobu Girl (World).zip	291640
Dangan GB (World).zip	198112	https://mirror.example.net/dangan-gb.zip	1a2b3c4d
Infinity (World).zip	524288	files/infinity.zip		Homebrew
  • Kiln downloads the first file from https://example.org/homebrew/Tobu Tobu Girl (World).zip.
  • Kiln downloads the second file from another server, and checks its CRC32.
  • Kiln downloads the third file from https://example.org/homebrew/files/infinity.zip, and shows the label “Homebrew” on its row. Its CRC32 column is empty.

The source for this index:

format = 1

[[source]]
url = "https://example.org/homebrew/index.tsv"
as = "index"

include and exclude also apply to the names of an index.

Kiln checks an index for changes once a day at most. When the server sends ETag or Last-Modified headers, Kiln downloads the index again only after a change.

Patches

A [[patches]] table lists hacks and translations for the games of a folder. A patch modifies a game, and is not a file of the folder, so the “To download” tab does not list it. Kiln shows the patches on each game’s “Hacks & translations” page. See Hacks and translations.

A [[patches]] table has the keys of a source that locate the files: url, as, path, depth, archive, include, exclude, label and id. It also has catalogue.

Patches matched by name

Without catalogue, Kiln matches each patch file to the game with the same name, without the extension. A folder of patches with the names of their games is enough:

patches/snes/
  Super Mario World (USA).bps
  Chrono Trigger (USA).ips
format = 1

[[patches]]
url = "https://example.org/patches/snes/"

Kiln then offers Super Mario World (USA).bps for Super Mario World (USA).sfc or .zip. A patch file can be IPS, UPS, BPS, PPF or xdelta, or a zip, 7z or RAR archive of such files.

Patches with a catalogue

catalogue is a list that maps each patch to its game by the game’s No-Intro or Redump name and CRC32. Its value is the path of a file relative to the folder, or a URL. With a catalogue, the patch files can have any name, and they can all be inside one large archive.

The catalogue of romhacking.net’s archive is a generated file named .kiln-patches.tsv, one per folder, next to the .kiln.toml. The [[patches]] table for it looks like this:

[[patches]]
url = "torrent://example.org/archive/romhacking_net.torrent"
as = "archive"
archive = "romhacking.net-20240801/rhdn_20240801.zip"
catalogue = ".kiln-patches.tsv"

Your own patches need no catalogue. Name each patch file after its game instead.

Logins and certificates

credentials.toml

A URL can contain the login of a server:

[[source]]
url = "ftp://games:secret@nas.local/roms/gba/"

Do not share a file with a password in it. Kiln also reads logins from credentials.toml in its own folder, which is App/Kiln/ on the Miyoo and Kiln/ on the RG35XXSP. Kiln reads the file at start, so restart Kiln after you change it. Settings has no row for this file.

["sftp://nas.local"]
user = "games"
key = "keys/nas"

["webdavs://alice@cloud.example.org"]
password = "app-password-here"

["ftps://nas.local:2121"]
user = "games"
password = "secret"
fingerprint = "sha256:3f0a..."

["smb://nas.local"]
user = "games"
password = "secret"

The name of each table is the server’s address, scheme://host, with the user and the port when they matter, as in scheme://user@host:port. A table has these keys:

KeyMeaning
userThe user name.
passwordThe password.
keyFor SFTP, the path of a private key, relative to Kiln’s folder. The key must have no passphrase.
fingerprintThe fingerprint of the server’s certificate, or of the SFTP host key. See below.
insecuretrue turns off the certificate check of HTTPS, WebDAV and FTPS.

For a source, Kiln first uses the user and password of its URL. Then it uses the table that names the URL’s user, and then the table without a user.

Certificates

Kiln checks the certificates of HTTPS, WebDAVS and FTPS servers against the list of certificate authorities that it ships. A server at home with a self-signed certificate fails that check. Two keys accept such a server:

  • fingerprint = "sha256:<hex>" accepts only the certificate with that fingerprint. This is the safe choice.
  • insecure = true accepts any certificate.

This command prints the fingerprint of a server’s certificate on a computer:

openssl s_client -connect nas.local:443 </dev/null 2>/dev/null \
  | openssl x509 -noout -fingerprint -sha256

For an FTPS server, add -starttls ftp and use its FTP port, such as nas.local:21. The command prints sha256 Fingerprint=3F:0A:.... Write it in credentials.toml as sha256:3F:0A:.... Kiln accepts the hex digits with or without colons, in upper or lower case.

SFTP host keys

On the first connection to an SFTP server, Kiln saves the server’s key in known_hosts in its folder. A different key on a later connection is an error, which stops another server from posing as yours. After you reinstall the server, delete its line from known_hosts.

For SFTP, fingerprint names the host key instead, in OpenSSH’s format SHA256:<base64>, and Kiln then ignores known_hosts. This command prints it on the server:

ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub

Recipes

These are complete .kiln.toml files for common setups. Replace the addresses and folder names with your own.

Web server at home

Kiln reads the file list page of Apache, nginx and lighttpd. In nginx, autoindex on turns that page on for a folder:

location /gba/ {
    root /srv/games;
    autoindex on;
}

Roms/GBA/.kiln.toml:

format = 1

[[source]]
url = "http://192.168.1.10/gba/"
include = ["*.zip", "*.gba"]

NAS over SMB

Roms/MD/.kiln.toml, for the share Games of a NAS:

format = 1

[[source]]
id = "nas-md"
url = "smb://nas.local/Games/Mega%20Drive/"
include = ["*.zip"]

The login, in App/Kiln/credentials.toml on the Miyoo or Kiln/credentials.toml on the RG35XXSP:

["smb://nas.local"]
user = "games"
password = "secret"

Nextcloud over WebDAV

Roms/SFC/.kiln.toml:

format = 1

[[source]]
url = "webdavs://cloud.example.org/remote.php/dav/files/alice/Games/SNES/"

credentials.toml, with an app password from Nextcloud’s security settings:

["webdavs://cloud.example.org"]
user = "alice"
password = "xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"

Single file

A source whose URL does not end with / is one file. This Roms/PICO/.kiln.toml adds a cart that is not in the BBS’s featured list:

format = 1

[[source]]
url = "lexaloffle-bbs:featured"

[[source]]
url = "https://example.org/carts/my-game.p8.png"
label = "Mine"

Subfolders of a torrent

This torrent has one subfolder per system, and the Game Boy Color folder reads two of them:

format = 1

[[source]]
url = "torrent://example.org/sets/Big%20Collection.torrent"
path = "Nintendo - Game Boy Color/"
include = ["*.zip"]
exclude = ["*(Beta*", "*(Proto*", "*(Demo)*"]

[[source]]
url = "torrent://example.org/sets/Big%20Collection.torrent"
path = "Nintendo - Game Boy Color (Aftermarket)/"
label = "Aftermarket"

Both sources use the same torrent, and Kiln reads its file list once.

CD games in zips

Roms/PS/.kiln.toml, for zips that each contain a .cue file and its tracks:

format = 1

[[source]]
url = "https://example.org/psx/"
include = ["*.zip"]
install = "extract"

Zip of many games

Kiln downloads one game at a time from this large zip on a web server:

format = 1

[[source]]
url = "https://example.org/collections/atari-2600.zip"
as = "archive"

The same zip, as a file inside a torrent:

format = 1

[[source]]
url = "torrent://example.org/collections.torrent"
as = "archive"
archive = "Atari/atari-2600.zip"

Arcade games for FinalBurn Neo

Roms/ARCADE/.kiln.toml on Onion:

format = 1

[[source]]
url = "torrent://example.org/fbneo.torrent"
path = "FinalBurn Neo/arcade/"
include = ["*.zip"]
core = "fbneo_libretro"
sets = "fbneo-arcade"

With sets, Kiln shows the full titles of the games, and queues the parent and BIOS zips that each game needs. See Set lists.

Patch files named after their games

Roms/GBA/.kiln.toml, with the patch files on the same server as the games. Each patch file has the name of its game:

format = 1

[[source]]
url = "http://192.168.1.10/gba/"
include = ["*.zip"]

[[patches]]
url = "http://192.168.1.10/gba-patches/"
include = ["*.ips", "*.ups", "*.bps", "*.zip"]

BIOS folder

BIOS/.kiln.toml, for the BIOS files of the emulators. Kiln lists this folder in Home, Downloads, under “Folders”:

format = 1

[[source]]
url = "smb://nas.local/Games/BIOS/"

Index file

For files on several servers, write an index file, and use its URL with as = "index":

format = 1

[[source]]
url = "https://example.org/homebrew/gb-index.tsv"
as = "index"

Folder with its own systems

Roms/HACKS/.kiln.toml, for a folder of Mega Drive hacks that Onion’s Mega Drive emulator starts:

format = 1
systems = [1]
emulator = "Emu/MD"

[[source]]
url = "https://example.org/md-hacks/"

1 is the ScreenScraper id of the Mega Drive. See Folders and system ids.

Systems and emulator of a folder

Each system’s folder has a Settings tab, after “On SD” and “To download”. The tab has two rows.

Systems lists the folder’s systems and the origin of each one:

LabelOrigin
set herethe folder’s .kiln.toml
from the folder namethe name of the folder
from the folder abovethe folder that contains this folder

Emulator shows the emulator that starts the folder’s games. “Automatic” means that Kiln chooses it.

Changing the systems

Systems opens a list of every system by name. A on a system adds it at the end of the folder’s list, or removes it from the list. “Automatic” deletes the folder’s own list, and the folder then has its default systems again.

The first system is the main one. The folder’s name, icon, images and game information come from it, so a folder named MYGAMES becomes a Game Boy folder when Game Boy is its first system.

Changing the emulator

Emulator lists the emulators that run the folder’s systems first, then the other emulators. “Automatic” restores Kiln’s choice.

Changes to the file

Kiln writes both choices as systems and emulator in the folder’s .kiln.toml, and creates the file when the folder has none. It changes only the lines before the first [[source]] or [[patches]] table, and keeps your sources and the comments below them unchanged.

Sound and Display

Settings has one tab per section, and L1 and R1 switch between the tabs. Kiln omits a tab that has no settings on your console. On a slider or a choice, LEFT and RIGHT change the value. On a switch, A turns it on or off.

Kiln saves its settings in settings.json in its folder. On the Miyoo it also writes the sound and display values to the firmware’s settings, so the volume and brightness keys start from the value you set.

Sound

SettingConsolesMeaning
VolumeallThe volume, from 0 to 20 on the Miyoo.
MuteMiyoo with OnionTurns the sound off.
Background music volumeMiyooThe volume of the theme’s music in MainUI. Kiln plays no music.
Audio fixMiyooThe firmware’s audio fix setting. Kiln writes it to the firmware’s settings.

Display

SettingConsolesMeaning
BrightnessallThe brightness of the backlight.
Luminance, Hue, Saturation, ContrastMiyooThe colours of the panel, from 0 to 20, as in Onion’s Tweaks.

Interface

SettingValuesMeaning
Image beside the listNone, Box art, Screenshot, Title screenThe image on the right of a list of games. Box art by default. See Game images.
Background imageNone, Box art, Screenshot, Title screenThe image behind the whole window. Screenshot by default.
Network name in title baron, offShows the Wi-Fi network next to the clock.
Systems with games firston, offOn Games, lists the systems with no games after the others. On by default.
BatteryIcon, Percentage and icon, Percentage in iconThe battery indicator in the title bar.
ThemeDark, LightThe colours of the interface.
Accent colourOrange, Yellow, Green, Teal, Blue, Purple, Pink, RedThe colour of the selection, the icons and the badges.
Kiln as main interfaceon, offMiyoo only. See Kiln as the main interface.

Network

Wi-Fi

The Wi-Fi row shows the network the console is connected to. A opens the Wi-Fi page, with the switch that turns Wi-Fi on and off, the saved networks and the networks in range.

In the list of available networks, A on a network asks for its password and connects. An open network needs no password. “Scan again” searches for networks again. “Add hidden network” asks for the name and the password of a network that does not broadcast its name.

In the list of saved networks, A connects to the network, X deletes it and Y makes it the preferred network. Kiln saves every network you join, and the console joins any saved network in range.

After a wrong password, Kiln shows “Could not connect to …: check the password”, and does not save the network. A password has 8 to 63 characters. For a network whose security Kiln does not support, such as WPA-Enterprise, Kiln shows “This network’s security is not supported”.

Hotspot

Onion only. The hotspot turns the console into a Wi-Fi access point, as in Onion’s Tweaks. It needs Wi-Fi on.

Network services

Onion only. These are the services of Tweaks, Network, and Kiln and Tweaks share their values.

SettingMeaning
SambaShares the SD card with computers on the network. Each share has its own switch.
HTTPOnion’s web file server, with the “HTTP authentication” switch.
SSHAn SSH server, with the “SSH authentication” switch.
FTPAn FTP server, with the “FTP authentication” switch.
TelnetA Telnet server.
VNCShows the console’s screen on a computer. “VNC framerate” sets 1 to 20 frames per second.
Disable services in gamesStops the services while a game runs.

Kiln shows the options of a service only while the service is on. With Wi-Fi off, Kiln dims the services.

A change to SSH or to SSH authentication ends every SSH session with the console.

System

SettingConsolesMeaning
Sleep timerMiyooOff, or 1, 3, 5, 10, 15, 30 or 60 minutes without a key press before the console sleeps.
LanguageallThe language of Kiln. See Languages and fonts.
Time zoneMiyoo with the stock firmware, RG35XXSPThe time zone of the clock. On Onion, Tweaks sets it.
Reset settingsMiyooRestores the default volume, display, sleep timer and language. It does not change the Wi-Fi networks or the SD card.
About deviceallThe versions of Kiln and of the firmware, and the used space of the card.

Updates

SettingMeaning
Check for updatesAsks GitHub for a newer Kiln and offers to install it. The row shows the running version, or the new version when there is one.
Check for updates automaticallyChecks once a day at most, while Wi-Fi is connected.

See Updates.

Clock

The RG35XXSP and the stock Miyoo firmware do not set the clock from the network. When the date is before 2026, Kiln sets the clock from the internet after Wi-Fi connects.

Downloads

SettingMeaning
Download gamesTurns every download on or off. When it is off, Kiln hides the “To download” tabs, the Downloads tile on Home and the hacks and translations, and pauses the queue. “Fetch missing images” still works.
Simultaneous downloadsRG35XXSP only. 1 to 4 downloads at a time, 2 by default. The Miyoo runs one download at a time.
Group ROM versionsShows the regions and revisions of a game as one row with a Versions page. On by default.
Hidden ROMsThe categories that Kiln hides from the games to download: BIOS, betas, protos, demos, pirates, unlicensed and aftermarket. Kiln hides all of them by default. X in a folder shows them.
Images of games to downloadDownloads the images of a game that is not on the card when you select it. On by default.
ScreenScraper accountYour ScreenScraper login, which raises the daily limit of game information requests. On Onion, when it is empty, Kiln uses the account of Onion’s Scraper app.

When you turn “Download games” off with jobs in the queue, a dialog asks first. Kiln keeps the jobs, and resumes them when you turn downloads back on.

Languages and fonts

Settings, System, Language sets the language of Kiln. Kiln has a translation for every language of MainUI, including Arabic, Korean and Bengali. Kiln shows a text without a translation in English. Kiln draws Arabic text from right to left, but does not mirror the layout of the pages.

Kiln does not translate the names of systems, games and Wi-Fi networks, or file paths.

Fonts

Kiln ships Noto Sans for the Latin, Greek and Cyrillic alphabets, and small fonts for Arabic, Bengali and Korean. For Chinese and Japanese, Kiln uses the font of the firmware. On Onion and the stock Miyoo firmware, that font is miyoo/app/wqy-microhei.ttc on the card.

To use another main font, such as the font of a theme, add a font key to settings.json in Kiln’s folder. Its value is the path of a .ttf, .otf or .ttc file, absolute or relative to Kiln’s folder:

{
  "font": "fonts/MyFont.ttf"
}

Edit the file while Kiln is closed, and keep its other keys. Kiln then uses Noto Sans for the characters that your font lacks.

Translations

The translations are gettext .po files in app/po/ of Kiln’s repository on GitHub. Send corrections and new translations as pull requests.

Questions and answers

Does Kiln include games?

No. Kiln downloads only from the sources that each folder’s .kiln.toml lists. Without those files, Kiln is a game list with images and information.

Why is the “To download” tab missing?

  • The folder has no .kiln.toml, or the file has no [[source]].
  • Settings, Downloads, “Download games” is off.
  • Only the top of a system’s folder has the tab. Its subfolders do not.

Why does the tab say “Turn on Wi-Fi to see the games to download”?

Kiln has not read the list of this folder yet, and Wi-Fi is off. After Kiln reads the list, it saves the list on the card and shows it also without Wi-Fi.

Why does a source fail?

The “To download” tab shows the reason. These are the common ones:

  • a misspelled key, which Kiln reports as an unknown field;
  • a path without a / at the end;
  • a server that needs a login, or has a certificate that Kiln does not trust. See Logins and certificates;
  • as = "archive" on a server without partial downloads.

Why does a download show “Waiting”?

No peer of the torrent sends data. After 90 seconds, Kiln starts the next job, and keeps trying the waiting one.

Can I turn the console off during a download?

Yes. Kiln pauses the downloads when you exit it, start a game, or turn the console off with the power button. The download resumes the next time Kiln opens.

Do downloads run while I play?

No. Downloads run only while Kiln is open.

Where does Kiln save its settings?

In settings.json in Kiln’s folder, which is App/Kiln/ on the Miyoo and Kiln/ on the RG35XXSP. The same folder has the download queue, the caches and the logs.

How do I report a problem?

Open an issue on GitHub, and attach kiln.log and kiln.log.old from Kiln’s folder.

Set lists

The sets key of a source names one of the lists of arcade sets that Kiln ships. A list gives the full title of each game, and the parent, BIOS and CHD files that the game needs. Kiln queues those files with the game.

NameSetsFolder
fbneo-arcadeThe arcade games of FinalBurn NeoARCADE on the Miyoo, FBNEO on the RG35XXSP
fbneo-verticalThe arcade games of FinalBurn Neo with a vertical screenVARCADE on the RG35XXSP
fbneo-spectrumThe ZX Spectrum games of FinalBurn NeoZXS
mame-naomiThe NAOMI games of MAME that Flycast runs, with their CHD filesNAOMI
mame-atomiswaveThe Atomiswave games of MAMEATOMISWAVE
mame-pgm2The PGM2 games of MAME that the console’s MAME core runsPGM2
hbmameThe merged set of HBMAME. The NebulARM core starts the original game of each zipHBMAME

Kiln takes the files that a set list adds to a game from the same source, regardless of its include, exclude and depth. For a source other than a torrent, Kiln looks for them in path and in the folders one level below it.

Folders and system ids

Kiln recognises a folder of games by its name, in upper or lower case. Each folder in the table below has the listed systems, unless its .kiln.toml sets systems. The numbers are ScreenScraper system ids, the values that systems takes. Ids from 100000 up are systems that ScreenScraper does not list.

For a folder with another name, Kiln looks for a system with that name in ScreenScraper’s list, such as megadrive or snes, the folder names of Recalbox and RetroPie. The full list of ScreenScraper ids is on screenscraper.fr.

The folders APPS, GME, Imgs and BIOS are not systems, and their subfolders do not have the systems of an outer folder.

FolderSystems
CPC65 Amstrad CPC
ARCADE75 Arcade
FBNEO75 Arcade
VARCADE75 Arcade
HBMAME75 Arcade
MAME75 Arcade
MAME2003PLUS75 Arcade
PGM275 Arcade
ATOMISWAVE53 Atomiswave
NAOMI56 SEGA Naomi
Shoot75 Arcade
FBAHACK75 Arcade
ADVMAME75 Arcade
FBA201275 Arcade
MBA75 Arcade
MAME200075 Arcade
IGS176 IGS IGS
CPS16 Capcom Capcom Play System
CPS27 Capcom Capcom Play System 2
CPS38 Capcom Capcom Play System 3
NEOGEO142 SNK Neo-Geo
GNGEO142 SNK Neo-Geo
DAPHNE49 Daphne
ATARI26 Atari Atari 2600
A260026 Atari Atari 2600
FIFTYTWOHUNDRED40 Atari Atari 5200
A520040 Atari Atari 5200
SEVENTYEIGHTHUNDRED41 Atari Atari 7800
A780041 Atari Atari 7800
A80043 Atari Atari 8bit
EIGHTHUNDRED43 Atari Atari 8bit
LYNX28 Atari Lynx
ATARIST42 Atari Atari ST
JAGUAR27 Atari Jaguar
SUFAMI108 Sufami Turbo
WS45 WonderSwan
WSC45 WonderSwan
COLECO48 Colecovision
COMMODORE66 Commodore Commodore 64
C6466 Commodore Commodore 64
AMIGA64 Commodore Amiga, 130 Commodore Amiga CD32
AMIGACD130 Commodore Amiga CD32, 134 Commodore Amiga CD
VIC2073 Commodore Vic-20
FAIRCHILD80 Channel F
VECTREX102 Vectrex
ODYSSEY104 Videopac G7000
VIDEOPAC104 Videopac G7000
INTELLIVISION115 Intellivision
MEGADUCK90 Mega Duck
DOS135 Microsoft PC Dos
MSX113 Microsoft MSX
PCE31 PC Engine
PCECD114 PC Engine CD-Rom
SGFX105 PC Engine SuperGrafx
PCFX72 PC-FX
NDS15 Nintendo Nintendo DS
FDS106 Nintendo Family Computer Disk System
GB9 Nintendo Game Boy
GBC10 Nintendo Game Boy Color
SGB127 Nintendo Super Game Boy
GBA12 Nintendo Game Boy Advance
GW52 Nintendo Game & Watch
FC3 Nintendo NES
POKE211 Nintendo Pokémon mini
SFC4 Nintendo Super Nintendo
SATELLAVIEW107 Nintendo Satellaview
VB11 Nintendo Virtual Boy
N6414 Nintendo Nintendo 64
PICO234 Pico-8
TIC222 TIC-80
PORTS100002 Ports
PRBOOM290 PrBoom
SCUMMVM123 ScummVM
EASYRPG231 EasyRPG
OPENBOR214 OpenBOR
ONS100001 ONScripter
JAVA302 J2ME
NEOCD70 SNK Neo-Geo CD
NGP82 SNK Neo-Geo Pocket Color
THIRTYTWOX19 SEGA Megadrive 32X
SEGA32X19 SEGA Megadrive 32X
MD32X19 SEGA Megadrive 32X
SEGACD20 SEGA Mega-CD
MDCD20 SEGA Mega-CD
DREAMCAST23 SEGA Dreamcast
SATURN22 SEGA Saturn
GG21 SEGA Game Gear
GameGear21 SEGA Game Gear
MD1 SEGA Megadrive
MDHACKS1 SEGA Megadrive
MS2 SEGA Master System
SMS2 SEGA Master System
SEGASGONE109 SEGA SG-1000
ZXS76 Sinclair ZX Spectrum
ZXEIGHTYONE77 Sinclair ZX81
PS57 Sony Playstation
PSX57 Sony Playstation
PSP61 Sony PSP
SUPERVISION207 Watara Watara Supervision
PANASONIC29 Panasonic 3DO
ARDUBOY263 Arduboy
EBK93 Elektronika BK
XONE220 Sharp Sharp X1
X6800079 Sharp Sharp X68000
PCEIGHTYEIGHT221 NEC PC-8801
PCNINETYEIGHT208 NEC PC-9801
PALM219 Palm OS
THOMSON141 Thomson MO/TO
UZEBOX216 Uzebox
LOWRESNX244 LowRes NX
LUTRO206 Lutro
CHAI100003 ChaiLove
MICROW8100004 MicroW8
PUZZLE100005 PuzzleScript
VMU100006 Dreamcast VMU
TI83100007 TI-83