Modding guide for KCD
This is a draft for the upcoming mod loading and ordering feature in Kingdom Come: Deliverance It doesn't work in the latest released (1.2.5) version yet.
The game reads mods from the folder /data/mods/
In this directory there is a mod_order.txt file with the format:
# Comment name_of_mod_1_without_pak_extension name_of_mod_2_without_pak_extension # Comment name_of_mod_3_without_pak_extension
For each entry in the file, the game will try to load file name_of_the_mod.manifest and optional files name_of_the_mod.pak and name_of_the_mod.cfg (either of them can be missing).
The format of the manifest is:
<?xml version="1.0" encoding="utf-8"?> <kcd_mod> <info> <name>Name of mod -- can be different from filename</name> <description>Some text</description> <author>Name of mod -- can be different from filename</author> <version>Version of the mod -- string</version> <created_on>some date -- string</created_on> <dependencies> <req_mod>name of a required other mod</req_mod> ... </dependencies> </info> <supports> <kcd_version>number of version as string, must match exactly canonical version number x.y(.z)</kcd_version> ... </supports> </kcd__mod>
The whole info block is skipped for now, but the game checks that one of the entries in kcd_version matches against the current game version.
The name_of_the_mod.cfg file is loaded after system.cfg, but before user.cfg, which means it overrides CVars in system.cfg, but not in user.cfg