Difference between revisions of "Installing a Mod"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "To install mods, simply place the mod's directory in the Mods/ folder, open the file Base/Scripts/Default/DefaultMods.as, and add this inside the method "LoadDefaultMods": <synt...")
 
 
Line 1: Line 1:
To install mods, simply place the mod's directory in the Mods/ folder, open the file Base/Scripts/Default/DefaultMods.as, and add this inside the method "LoadDefaultMods":
+
To install mods, simply place the mod's directory in the Mods/ folder, open the file mods.cfg in the top-level directory, and add this:
  
 
<syntaxhighlight lang="cpp" enclose="div">
 
<syntaxhighlight lang="cpp" enclose="div">
AddMod("nameofmymod");
+
nameofmymod
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
This would load your mod whenever KAG loads. Note that the mod's name is ''case-sensitive'', so make sure you get that right.
 
This would load your mod whenever KAG loads. Note that the mod's name is ''case-sensitive'', so make sure you get that right.
 +
 +
Separate each mod with a linebreak.
  
 
The order of the mods is important - mods that may have conflicting files might cause issues, and mods loaded last will take preference.
 
The order of the mods is important - mods that may have conflicting files might cause issues, and mods loaded last will take preference.
  
 
[[Category:Scripting]]
 
[[Category:Scripting]]

Latest revision as of 06:09, 29 January 2013

To install mods, simply place the mod's directory in the Mods/ folder, open the file mods.cfg in the top-level directory, and add this:

nameofmymod

This would load your mod whenever KAG loads. Note that the mod's name is case-sensitive, so make sure you get that right.

Separate each mod with a linebreak.

The order of the mods is important - mods that may have conflicting files might cause issues, and mods loaded last will take preference.