Modding:Mod Configuration: Difference between revisions

m Change inaccurate version to build 210
m Clarify default load behaviour
Line 57: Line 57:
| '''Directories'''
| '''Directories'''
| Array of directory objects that can be loaded conditionally depending on game version or other mods in the load order.<br/>Refer to [[Modding:Mod Configuration#Directory Structure|directory structure]] for directory properties.<br/><b>New in build 210.</b>||
| Array of directory objects that can be loaded conditionally depending on game version or other mods in the load order.<br/>Refer to [[Modding:Mod Configuration#Directory Structure|directory structure]] for directory properties.<br/><b>New in build 210.</b>||
* Falls back to loading the entire mod if undefined.
* Falls back to loading the root directory if undefined.
|}
|}


Line 64: Line 64:
Each entry in the <code>Directories</code> array will be evaluated and loaded if optional conditions such as version and dependency match.<br/>
Each entry in the <code>Directories</code> array will be evaluated and loaded if optional conditions such as version and dependency match.<br/>
These can be used to include separate content/scripts for different game versions, or optional addons to other mods.
These can be used to include separate content/scripts for different game versions, or optional addons to other mods.
If no directories are explicitly defined the mod's root directory will be loaded.
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 73: Line 74:
| Array of paths to load, relative to the mod's root directory. Any leading or trailing separators are optional.<br/>Each path is deduplicated and only loaded once, even if a parent or sub directory is defined at any point.<br/>Be mindful of the fact that paths are <b>case-sensitive</b> on some operating systems. ||
| Array of paths to load, relative to the mod's root directory. Any leading or trailing separators are optional.<br/>Each path is deduplicated and only loaded once, even if a parent or sub directory is defined at any point.<br/>Be mindful of the fact that paths are <b>case-sensitive</b> on some operating systems. ||
* Prohibited from escaping the mod directory.
* Prohibited from escaping the mod directory.
* Recursive.
|-
|-
| '''Path'''
| '''Path'''