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.