Difference between revisions of "Modding guide for KCD"

From Nexus Mods Wiki
Jump to: navigation, search
(Updated Visuals and certain page mistakes from last submit.)
(Edits to correct alignment and page characteristics from errors during conversion by copy and pasting from source.)
Line 2: Line 2:
 
 
 
 
  
The features in this article are available in KCD version 1.9.5 and later.
+
<span style="font-size:large;">The features in this article are available in KCD version 1.9.5 and later.</span>
  
 
&nbsp;
 
&nbsp;
Line 16: Line 16:
 
&nbsp;
 
&nbsp;
  
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">In the <span style="color:#0070c0">STEAM</span> version you can usually find it at:</span></span></span></span>  
+
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:">In the <span style="color:#0070c0">STEAM</span> version you can usually find it at:</span></span></span></span>  
  
 
<span style="border:solid windowtext 1.0pt; padding:0in">C:\Program Files (x86)\Steam\steamapps\common\KingdomComeDeliverance\Mods\</span>
 
<span style="border:solid windowtext 1.0pt; padding:0in">C:\Program Files (x86)\Steam\steamapps\common\KingdomComeDeliverance\Mods\</span>
Line 22: Line 22:
 
&nbsp;
 
&nbsp;
  
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">In the <span style="color:#cc0099">GOG</span> version you can usually find it at:</span></span></span></span>  
+
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:">In the <span style="color:#cc0099">GOG</span> version you can usually find it at:</span></span></span></span>  
  
 
<span style="border:solid windowtext 1.0pt; padding:0in">C:\Program Files (x86)\Steam\steamapps\common\KingdomComeDeliverance\Mods\</span>
 
<span style="border:solid windowtext 1.0pt; padding:0in">C:\Program Files (x86)\Steam\steamapps\common\KingdomComeDeliverance\Mods\</span>
Line 36: Line 36:
 
To <u>install</u> a mod — '''move''' it into the “Mods” folder.
 
To <u>install</u> a mod — '''move''' it into the “Mods” folder.
  
To <u>uninstall</u> a mod — '''delete''' it from the “Mods” folder. You can also temporarily disable a mod by using[[#Mod_loading_order|mod_order.txt]].
+
To <u>uninstall</u> a mod — '''delete''' it from the “Mods” folder. You can also temporarily disable a mod by using&nbsp;[[#Mod_loading_order|mod_order.txt]].
  
 
&nbsp;
 
&nbsp;
Line 52: Line 52:
 
&nbsp;
 
&nbsp;
  
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name\mod.cfg</span></span></span></span>  
+
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name\mod.cfg</span></span></span></span>  
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name\mod.manifest</span></span></span></span>  
+
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name\mod.manifest</span></span></span></span>  
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name\Data\mod.pak</span></span></span></span>  
+
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name\Data\mod.pak</span></span></span></span>  
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name\Data\Levels\rataje\mod.pak</span></span></span></span>  
+
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name\Data\Levels\rataje\mod.pak</span></span></span></span>  
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name\Data\Levels\new_level_name_1\level.pak</span></span></span></span>  
+
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name\Data\Levels\new_level_name_1\level.pak</span></span></span></span>  
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name\Data\Levels\new_level_name_2\level.pak</span></span></span></span>  
+
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name\Data\Levels\new_level_name_2\level.pak</span></span></span></span>  
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name\Localization\english_xml.pak</span></span></span></span>  
+
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name\Localization\english_xml.pak</span></span></span></span>  
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name\Localization\english.pak</span></span></span></span>  
+
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name\Localization\english.pak</span></span></span></span>  
  
 
&nbsp;
 
&nbsp;
Line 71: Line 71:
 
&nbsp;
 
&nbsp;
  
[file:///D:/Data%20Center/Archives/CH/Documents/KCD%20Modding%20Guide.docx#Mod_manifest mod.manifest]
+
#mod.manifest  
 
+
#mod.cfg  
[file:///D:/Data%20Center/Archives/CH/Documents/KCD%20Modding%20Guide.docx#Mod_config mod.cfg].
 
  
 
&nbsp;
 
&nbsp;
Line 85: Line 84:
 
&nbsp;
 
&nbsp;
  
All game data must be stored in'''.pak'''files. To make a'''.pak'''file, create a zip archive and rename the extension to'''.pak'''—<span style="color:red">.rar, .tar, .7z or other archive types are NOT supported.</span> Most of the Data in the zipped file can be compressed, '''except videos''', which must be stored without compression. In the mod's Data folder you can name your paks however you like. You do not have to mimic the game's pak names. Usually a single mod.pak or mod_name.pak will suffice. Paks have a maximal size of around 2GB. If your mod is larger, you can use multiple paks.
+
All game data must be stored in&nbsp;'''.pak&nbsp;'''files. To make a&nbsp;'''.pak&nbsp;'''file, create a zip archive and rename the extension to&nbsp;'''.pak&nbsp;'''—<span style="color:red">.rar, .tar, .7z or other archive types are NOT supported.</span> Most of the Data in the zipped file can be compressed, '''except videos''', which must be stored without compression. In the mod's Data folder you can name your paks however you like. You do not have to mimic the game's pak names. Usually a single mod.pak or mod_name.pak will suffice. Paks have a maximal size of around 2GB. If your mod is larger, you can use multiple paks.
  
 
&nbsp;
 
&nbsp;
  
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Levels can be <u>modded</u> by creating pak files in themod_name\Data\Levels\level_name\folder.</span></span></span></span>  
+
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:">Levels can be <u>modded</u> by creating pak files in the: "mod_name\Data\Levels\level_name\" folder.</span></span></span></span>  
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">New levels can be <u>added</u> by creating level.pak inmod_name\Data\Levels\new_level_name\folder.</span></span></span></span>  
+
*<span style="line-height:normal"><span style="tab-stops:list .5in"><span style="font-size:12.0pt"><span style="font-family:">New levels can be <u>added</u> by creating level.pak in the: "mod_name\Data\Levels\new_level_name\" folder.</span></span></span></span>  
  
 
&nbsp;
 
&nbsp;
Line 120: Line 119:
 
<u>With game versions 1.9.5 and later</u>:
 
<u>With game versions 1.9.5 and later</u>:
  
If you're making a mod that overrides a parameter file insideTables.pak—it is now BEST PRACTICE to create mod-specific table files with individual rows—<u>instead</u>of overwriting entire tables.
+
If you're making a mod that overrides a parameter file inside "Tables.pak" —it is now BEST PRACTICE to create mod-specific table files with individual rows—<u>instead</u> of overwriting entire tables.
  
 
&nbsp;
 
&nbsp;
  
Simply rename the .xml file to this format: “<span style="font-family:" courier="" new""="">[Table]__[Mod Name].xml</span>”.
+
Simply rename the .xml file to this format: “<span style="font-family:">[Table]__[Mod Name].xml</span>”.
  
 
&nbsp;
 
&nbsp;
  
#<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">The original table’s name, followed by</span></span><span style="font-size:12.0pt"><span style="font-family:" courier="" new""="">2</span></span><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">underscores.</span></span></span>  
+
#<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">The original table’s name, followed by</span></span><span style="font-size:12.0pt"><span style="font-family:">2</span></span><span style="font-size:12.0pt"><span style="font-family:">underscores.</span></span></span>  
#<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Typed completely in lowercase mode.</span></span></span>  
+
#<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Typed completely in lowercase mode.</span></span></span>  
#<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mod name must match the name used in the mod’s respectivemod.manifest,for example if the mod’s name appears in the mod manifest as: “'''This Is My Mod – Average Edition'''” your .xml file should be <u>named</u>:</span></span></span>  
+
#<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Mod name must match the name used in the mod’s respectivemod.manifest,for example if the mod’s name appears in the mod manifest as: “'''This Is My Mod – Average Edition'''” your .xml file should be <u>named</u>:</span></span></span>  
 
#“this_is_my_mod_-_average_edition.xml”.  
 
#“this_is_my_mod_-_average_edition.xml”.  
#<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Replace any spaces in the name with underscores,</span></span></span>  
+
#<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Replace any spaces in the name with underscores,</span></span></span>  
  
 
&nbsp;
 
&nbsp;
Line 156: Line 155:
 
&nbsp;
 
&nbsp;
  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Data\*.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Data\*.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Engine\*.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Engine\*.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Localization\language_name_xml.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Localization\language_name_xml.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Localization\ipl_language_name.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Localization\ipl_language_name.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Localization\language_name.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Localization\language_name.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Data\Levels\level_name\level.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Data\Levels\level_name\level.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Data\Levels\level_name\*.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Data\Levels\level_name\*.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Data\_fastload\*.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Data\_fastload\*.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name_1\Data\*.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name_1\Data\*.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name_2\Data\*.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name_2\Data\*.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name_1\Localization\language_name_xml.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name_1\Localization\language_name_xml.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name_2\Localization\language_name_xml.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name_2\Localization\language_name_xml.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name_1\Localization\language_name.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name_1\Localization\language_name.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name_2\Localization\language_name.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name_2\Localization\language_name.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name_1\Data\Levels\level_name\*.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name_1\Data\Levels\level_name\*.pak</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">Mods\mod_name_2\Data\Levels\level_name\*.pak</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">Mods\mod_name_2\Data\Levels\level_name\*.pak</span></span></span>  
  
 
&nbsp;
 
&nbsp;
  
Some of the early mods were named zzz_* to ensure that they are loaded last and override all other paks. As you can see, this is not necessary anymore, because paks in <span style="font-family:" courier="" new""="">Mods\</span> are loaded after all other paks.
+
Some of the early mods were named zzz_* to ensure that they are loaded last and override all other paks. As you can see, this is not necessary anymore, because paks in <span style="font-family:">Mods\</span> are loaded after all other paks.
  
 
&nbsp;
 
&nbsp;
Line 187: Line 186:
 
&nbsp;
 
&nbsp;
  
Mods in Mods folder are loaded in alphabetical order by default. You can specify custom mod loading order by creating an optional mod_order.txt file in the Mods folder. For each line in <span style="font-family:" courier="" new""="">mod_order.txt</span> the game will try to load the mod from the specified folder.
+
Mods in Mods folder are loaded in alphabetical order by default. You can specify custom mod loading order by creating an optional mod_order.txt file in the Mods folder. For each line in <span style="font-family:">mod_order.txt</span> the game will try to load the mod from the specified folder.
  
 
&nbsp;
 
&nbsp;
Line 195: Line 194:
 
&nbsp;
 
&nbsp;
 
<div style="border:solid windowtext 1.0pt; padding:1.0pt 4.0pt 1.0pt 4.0pt">
 
<div style="border:solid windowtext 1.0pt; padding:1.0pt 4.0pt 1.0pt 4.0pt">
<span style="font-family:" courier="" new""=""># Comment</span>
+
<span style="font-family:"># Comment</span>
  
<span style="font-family:" courier="" new""="">mod_name_2</span>
+
<span style="font-family:">mod_name_2</span>
  
<span style="font-family:" courier="" new""="">mod_name_1 # Comment</span>
+
<span style="font-family:">mod_name_1 # Comment</span>
  
<span style="font-family:" courier="" new""="">mod_name_3</span>
+
<span style="font-family:">mod_name_3</span>
 
</div>  
 
</div>  
 
&nbsp;
 
&nbsp;
Line 217: Line 216:
 
&nbsp;
 
&nbsp;
  
For each installed mod the game will try to load the optional “<span style="font-family:" courier="" new""="">mod.manifest</span>” file in the mod's root. Below is an example of the format of a <span style="font-family:" courier="" new""="">mod.manifest</span>, from the mod: “'''Inventoried'''” by Silencer711:
+
For each installed mod the game will try to load the optional “<span style="font-family:">mod.manifest</span>” file in the mod's root. Below is an example of the format of a <span style="font-family:">mod.manifest</span>, from the mod: “'''Inventoried'''” by Silencer711:
  
 
&nbsp;
 
&nbsp;
 
<div style="border:solid windowtext 1.0pt; padding:1.0pt 4.0pt 1.0pt 4.0pt">
 
<div style="border:solid windowtext 1.0pt; padding:1.0pt 4.0pt 1.0pt 4.0pt">
<span style="font-family:" courier="" new""=""><?xml version="1.0" encoding="utf-8"?></span>
+
<span style="font-family:"><?xml version="1.0" encoding="utf-8"?></span>
  
<span style="font-family:" courier="" new""=""><kcd_mod></span>
+
<span style="font-family:"><kcd_mod></span>
  
<span style="font-family:" courier="" new""=""><info></span>
+
<span style="font-family:"><info></span>
  
<span style="font-family:" courier="" new""=""><name>Inventoried - Standard</name></span>
+
<span style="font-family:"><name>Inventoried - Standard</name></span>
  
<span style="font-family:" courier="" new""=""><description>A Comprehensive and fully detailed item sorting methodology implemented into Kingdom Come: Deliverance. This mod sorts 100% of all in-game items in your inventory by adding (Tags), and painstakingly renaming every single item for maximum utility and readability. Expanding upon the the original item categories, the result is a clean yet highly-organized naming convention that is both UI-friendly -AND- less burdening than the vanilla experience.</description></span>
+
<span style="font-family:"><description>A Comprehensive and fully detailed item sorting methodology implemented into Kingdom Come: Deliverance. This mod sorts 100% of all in-game items in your inventory by adding (Tags), and painstakingly renaming every single item for maximum utility and readability. Expanding upon the the original item categories, the result is a clean yet highly-organized naming convention that is both UI-friendly -AND- less burdening than the vanilla experience.</description></span>
  
<span style="font-family:" courier="" new""=""><author>S I L E N C E R</author></span>
+
<span style="font-family:"><author>S I L E N C E R</author></span>
  
<span style="font-family:" courier="" new""=""><version>1.6.3</version></span>
+
<span style="font-family:"><version>1.6.3</version></span>
  
<span style="font-family:" courier="" new""=""><created_on>13 Nov 2020</created_on></span>
+
<span style="font-family:"><created_on>13 Nov 2020</created_on></span>
  
<span style="font-family:" courier="" new""=""><dependencies></span>
+
<span style="font-family:"><dependencies></span>
  
<span style="font-family:" courier="" new""=""><req_mod>NONE</req_mod></span>
+
<span style="font-family:"><req_mod>NONE</req_mod></span>
  
<span style="font-family:" courier="" new""=""></dependencies></span>
+
<span style="font-family:"></dependencies></span>
  
<span style="font-family:" courier="" new""=""></info></span>
+
<span style="font-family:"></info></span>
  
<span style="font-family:" courier="" new""=""><supports></span>
+
<span style="font-family:"><supports></span>
  
<span style="font-family:" courier="" new""=""><kcd_version>1.9.*</kcd_version></span>
+
<span style="font-family:"><kcd_version>1.9.*</kcd_version></span>
  
<span style="font-family:" courier="" new""=""></supports></span>
+
<span style="font-family:"></supports></span>
  
<span style="font-family:" courier="" new""=""></kcd_mod></span>
+
<span style="font-family:"></kcd_mod></span>
 
</div>  
 
</div>  
 
&nbsp;
 
&nbsp;
  
The game checks that one of the entries in <kcd_version> matches with the game’s current version; (found in wh_sys_version in <span style="font-family:" courier="" new""="">system.cfg</span>). If no matching version is found, the mod will be disabled.
+
The game checks that one of the entries in <kcd_version> matches with the game’s current version; (found in wh_sys_version in <span style="font-family:">system.cfg</span>). If no matching version is found, the mod will be disabled.
  
 
&nbsp;
 
&nbsp;
Line 271: Line 270:
 
&nbsp;
 
&nbsp;
 
<div style="border:solid windowtext 1.0pt; padding:1.0pt 4.0pt 1.0pt 4.0pt">
 
<div style="border:solid windowtext 1.0pt; padding:1.0pt 4.0pt 1.0pt 4.0pt">
<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"=""><kcd_version>1.*.6</kcd_version></span></span></span>
+
<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:"><kcd_version>1.*.6</kcd_version></span></span></span>
  
<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"=""><kcd_version>1.9.[1-6]</kcd_version>.</span></span></span>
+
<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:"><kcd_version>1.9.[1-6]</kcd_version>.</span></span></span>
 
</div>  
 
</div>  
 
&nbsp;
 
&nbsp;
Line 285: Line 284:
 
&nbsp;
 
&nbsp;
  
Another optional file in the mod's root ismod.cfg. When present, it will be loaded aftersystem.cfg, but beforeuser.cfg, which means it overrides CVars in system.cfg, but not in user.cfg. You can use the mod.cfg in simple mods when all you want to do is set some CVars. The order in which mod.cfg files are loaded also depends on[[#Mod_loading_order|mod order]].
+
Another optional file in the mod's root is "mod.cfg". When present, it will be loaded after "system.cfg", but before "user.cfg", which means it overrides CVars in "system.cfg", but not in "user.cfg". You can use the "mod.cfg" in simple mods when all you want to do is set some CVars. The order in which "mod.cfg" files are loaded also depends on&nbsp;[[#Mod_loading_order|mod order]].
  
 
&nbsp;
 
&nbsp;
Line 297: Line 296:
 
&nbsp;
 
&nbsp;
  
The purpose of paks in Data\_fastloadis to reduce disk access during level load. They contain a number of small files: various xml files (.mtl, .animevents, .bspace, .chrparams, .cdf...), smallest mipmaps of splitted dds files and cgf files without render geometry. At the beginning of level loading, all fastload paks are loaded in the memory. Since they are loaded after regular Data paks, they will be searched first, and the game doesn't have to access the disk. At the end of level loading, all fastload paks are unloaded from the memory and are closed.
+
The purpose of paks in Data\_fastload is to reduce disk access during level load. They contain a number of small files: various xml files (.mtl, .animevents, .bspace, .chrparams, .cdf...), smallest mipmaps of splitted dds files and cgf files without render geometry. At the beginning of level loading, all fastload paks are loaded in the memory. Since they are loaded after regular Data paks, they will be searched first, and the game doesn't have to access the disk. At the end of level loading, all fastload paks are unloaded from the memory and are closed.
  
 
&nbsp;
 
&nbsp;
  
Some of the early mods required copying the mod paks to both: <span style="border:solid windowtext 1.0pt; font-family:" courier="" new";="" padding:0in"="">Data\</span> and <span style="border:solid windowtext 1.0pt; font-family:" courier="" new";="" padding:0in"="">Data\_fastload</span> folders to ensure that the mod properly overrides the game data. This is not necessary anymore, because paks in <span style="font-family:" courier="" new""="">Mods\</span> are loaded after the fastload paks.
+
Some of the early mods required copying the mod paks to both: <span style="border:solid windowtext 1.0pt; font-family:">Data\</span> and <span style="border:solid windowtext 1.0pt; font-family:">Data\_fastload</span> folders to ensure that the mod properly overrides the game data. This is not necessary anymore, because paks in <span style="font-family:">Mods\</span> are loaded after the fastload paks.
  
 
&nbsp;
 
&nbsp;
  
A mod can have its own fastload paks in <span style="border:solid windowtext 1.0pt; font-family:" courier="" new";="" padding:0in"="">Mods\mod_name_1\Data\_fastload\*.pak</span>, but for small mods it is unnecessary. For large mods like texture packs with thousands of textures or total conversion mods with hundreds of new geometry creating fastload paks could be beneficial.
+
A mod can have its own fastload paks in <span style="border:solid windowtext 1.0pt; font-family:">Mods\mod_name_1\Data\_fastload\*.pak</span>, but for small mods it is unnecessary. For large mods like texture packs with thousands of textures or total conversion mods with hundreds of new geometry creating fastload paks could be beneficial.
  
 
&nbsp;
 
&nbsp;
Line 329: Line 328:
 
&nbsp;
 
&nbsp;
  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">[https://forum.kingdomcomerpg.com/t/what-we-know-about-modding-so-far/38589 https://forum.kingdomcomerpg.com/t/what-we-know-about-modding-so-far/38589] (nice overview of the various file types)</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">[https://forum.kingdomcomerpg.com/t/what-we-know-about-modding-so-far/38589 https://forum.kingdomcomerpg.com/t/what-we-know-about-modding-so-far/38589] (nice overview of the various file types)</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">[https://docs.google.com/document/d/1_m_zhrX_2Q65AFEzLU4dZhFtzLRSvKKOVcYBDVUwXY8/edit Guide to Clothing and Armor Tables in Tables.pak]</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">[https://docs.google.com/document/d/1_m_zhrX_2Q65AFEzLU4dZhFtzLRSvKKOVcYBDVUwXY8/edit Guide to Clothing and Armor Tables in Tables.pak]</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">[http://docs.cryengine.com/display/CEMANUAL/Attachment+System+Tutorial+-+Character+Tool Attachment System & Character Tool]</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">[http://docs.cryengine.com/display/CEMANUAL/Attachment+System+Tutorial+-+Character+Tool Attachment System & Character Tool]</span></span></span>  
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:" times="" new="" roman",serif"="">[http://forum.xentax.com/viewtopic.php?f=33&t=13137 Cryengine Converter - convert Cryengine games into .dae and .obj]</span></span></span>  
+
*<span style="line-height:normal"><span style="font-size:12.0pt"><span style="font-family:">[http://forum.xentax.com/viewtopic.php?f=33&t=13137 Cryengine Converter - convert Cryengine games into .dae and .obj]</span></span></span>  
  
 
&nbsp;
 
&nbsp;

Revision as of 01:49, 27 November 2020

 

The features in this article are available in KCD version 1.9.5 and later.

 

 

Mod Installation:

 

Mods are loaded from the "Mods" folder in the game's root directory.

 

  • In the STEAM version you can usually find it at:

C:\Program Files (x86)\Steam\steamapps\common\KingdomComeDeliverance\Mods\

 

  • In the GOG version you can usually find it at:

C:\Program Files (x86)\Steam\steamapps\common\KingdomComeDeliverance\Mods\

 

 

If the Mods folder does NOT exist — create it.

 

To install a mod — move it into the “Mods” folder.

To uninstall a mod — delete it from the “Mods” folder. You can also temporarily disable a mod by using mod_order.txt.

 

 

 

Mod Structure:

 

In the Mods folder, each mod has its own subfolder, which replicates the game's directory structure, for example:

 

  • Mods\mod_name\mod.cfg
  • Mods\mod_name\mod.manifest
  • Mods\mod_name\Data\mod.pak
  • Mods\mod_name\Data\Levels\rataje\mod.pak
  • Mods\mod_name\Data\Levels\new_level_name_1\level.pak
  • Mods\mod_name\Data\Levels\new_level_name_2\level.pak
  • Mods\mod_name\Localization\english_xml.pak
  • Mods\mod_name\Localization\english.pak

 

 

All files in a mod are optional; you only have to create the ones you wish to override / patch.

In the mod's root folder: (Mods\mod_name) you can create two special files:

 

  1. mod.manifest
  2. mod.cfg

 

 

 

Pak Files:

 

All game data must be stored in .pak files. To make a .pak file, create a zip archive and rename the extension to .pak .rar, .tar, .7z or other archive types are NOT supported. Most of the Data in the zipped file can be compressed, except videos, which must be stored without compression. In the mod's Data folder you can name your paks however you like. You do not have to mimic the game's pak names. Usually a single mod.pak or mod_name.pak will suffice. Paks have a maximal size of around 2GB. If your mod is larger, you can use multiple paks.

 

  • Levels can be modded by creating pak files in the: "mod_name\Data\Levels\level_name\" folder.
  • New levels can be added by creating level.pak in the: "mod_name\Data\Levels\new_level_name\" folder.

 

 

When modding localization files, the mod pak name must exactly match the pak name in the game's localization folder.

 

You can also add new languages by creating “new_language_name_xml.pak” and “new_language_name.pak” files in the mod's localization folder.

 

When adding a new language, you will have to correctly set sys_languages and sys_languages_audio CVars.

If you want to override data from the Engine folder, you have to put your pak in the mod's “Data” folder.

 

 

 

Tables.Pak modding:

 

With game versions 1.9.5 and later:

If you're making a mod that overrides a parameter file inside "Tables.pak" —it is now BEST PRACTICE to create mod-specific table files with individual rows—instead of overwriting entire tables.

 

Simply rename the .xml file to this format: “[Table]__[Mod Name].xml”.

 

  1. The original table’s name, followed by2underscores.
  2. Typed completely in lowercase mode.
  3. Mod name must match the name used in the mod’s respectivemod.manifest,for example if the mod’s name appears in the mod manifest as: “This Is My Mod – Average Edition” your .xml file should be named:
  4. “this_is_my_mod_-_average_edition.xml”.
  5. Replace any spaces in the name with underscores,

 

 

If everything is correct, you will see the tables patched in the console window (opened by pressing the ` key once the main menu screen appears) when the game is loaded.

 

 

 

Pak loading order:

 

When a pak file is loaded, it overrides data in previously loaded paks.

Paks are loaded in this order:

 

  • Data\*.pak
  • Engine\*.pak
  • Localization\language_name_xml.pak
  • Localization\ipl_language_name.pak
  • Localization\language_name.pak
  • Data\Levels\level_name\level.pak
  • Data\Levels\level_name\*.pak
  • Data\_fastload\*.pak
  • Mods\mod_name_1\Data\*.pak
  • Mods\mod_name_2\Data\*.pak
  • Mods\mod_name_1\Localization\language_name_xml.pak
  • Mods\mod_name_2\Localization\language_name_xml.pak
  • Mods\mod_name_1\Localization\language_name.pak
  • Mods\mod_name_2\Localization\language_name.pak
  • Mods\mod_name_1\Data\Levels\level_name\*.pak
  • Mods\mod_name_2\Data\Levels\level_name\*.pak

 

Some of the early mods were named zzz_* to ensure that they are loaded last and override all other paks. As you can see, this is not necessary anymore, because paks in Mods\ are loaded after all other paks.

 

 

 

Mod loading order:

 

Mods in Mods folder are loaded in alphabetical order by default. You can specify custom mod loading order by creating an optional mod_order.txt file in the Mods folder. For each line in mod_order.txt the game will try to load the mod from the specified folder.

 

The format of mod_order.txt is:

 

# Comment

mod_name_2

mod_name_1 # Comment

mod_name_3

 

When the mod_order.txt file exists, it also functions as a whitelist: only the mods mentioned in it will be loaded. This can be used to disable a mod without deleting it, by simply commenting out that line.

 

 

 

Mod Manifest:

 

For each installed mod the game will try to load the optional “mod.manifest” file in the mod's root. Below is an example of the format of a mod.manifest, from the mod: “Inventoried” by Silencer711:

 

<?xml version="1.0" encoding="utf-8"?>

<kcd_mod>

<info>

<name>Inventoried - Standard</name>

<description>A Comprehensive and fully detailed item sorting methodology implemented into Kingdom Come: Deliverance. This mod sorts 100% of all in-game items in your inventory by adding (Tags), and painstakingly renaming every single item for maximum utility and readability. Expanding upon the the original item categories, the result is a clean yet highly-organized naming convention that is both UI-friendly -AND- less burdening than the vanilla experience.</description>

<author>S I L E N C E R</author>

<version>1.6.3</version>

<created_on>13 Nov 2020</created_on>

<dependencies>

<req_mod>NONE</req_mod>

</dependencies>

</info>

<supports>

<kcd_version>1.9.*</kcd_version>

</supports>

</kcd_mod>

 

The game checks that one of the entries in <kcd_version> matches with the game’s current version; (found in wh_sys_version in system.cfg). If no matching version is found, the mod will be disabled.

 

Since KCD version 1.3.4 you are able to use wildcards like:

 

<kcd_version>1.9.*</kcd_version>

 

The wildcard is implemented as a string comparison up until the "*" character, so the below attempts will not work as expected:

 

<kcd_version>1.*.6</kcd_version>

<kcd_version>1.9.[1-6]</kcd_version>.

 

 

 

Mod Config:

 

Another optional file in the mod's root is "mod.cfg". When present, it will be loaded after "system.cfg", but before "user.cfg", which means it overrides CVars in "system.cfg", but not in "user.cfg". You can use the "mod.cfg" in simple mods when all you want to do is set some CVars. The order in which "mod.cfg" files are loaded also depends on mod order.

 

 

 

Fastload .paks:

 

The purpose of paks in Data\_fastload is to reduce disk access during level load. They contain a number of small files: various xml files (.mtl, .animevents, .bspace, .chrparams, .cdf...), smallest mipmaps of splitted dds files and cgf files without render geometry. At the beginning of level loading, all fastload paks are loaded in the memory. Since they are loaded after regular Data paks, they will be searched first, and the game doesn't have to access the disk. At the end of level loading, all fastload paks are unloaded from the memory and are closed.

 

Some of the early mods required copying the mod paks to both: Data\ and Data\_fastload folders to ensure that the mod properly overrides the game data. This is not necessary anymore, because paks in Mods\ are loaded after the fastload paks.

 

A mod can have its own fastload paks in Mods\mod_name_1\Data\_fastload\*.pak, but for small mods it is unnecessary. For large mods like texture packs with thousands of textures or total conversion mods with hundreds of new geometry creating fastload paks could be beneficial.

 

 

 

Textures and Images:

 

SeeTextures and Images

 

 

 

See Also:

 

 

 

Kingdom Come Deliverance Modding Guides Tutorials