Modding guide for KCD

From Nexus Mods Wiki
Revision as of 21:33, 23 February 2018 by Moggabor (talk | contribs) (Created page with "<pre style="color: red; font-size:20px"> 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....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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