summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/StardewModdingAPI.config.json
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-24 14:10:36 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-24 14:10:36 -0400
commitcb1f11a8462f3db34812ecbfb06227d3a2081d7f (patch)
tree7f3ca9519ce7ac56ae16e73f72aac22d579a096e /src/StardewModdingAPI/StardewModdingAPI.config.json
parent021e1a278b05d1ba177b3759e534cc372fdc8548 (diff)
downloadSMAPI-cb1f11a8462f3db34812ecbfb06227d3a2081d7f.tar.gz
SMAPI-cb1f11a8462f3db34812ecbfb06227d3a2081d7f.tar.bz2
SMAPI-cb1f11a8462f3db34812ecbfb06227d3a2081d7f.zip
update config documentation (#361)
Diffstat (limited to 'src/StardewModdingAPI/StardewModdingAPI.config.json')
-rw-r--r--src/StardewModdingAPI/StardewModdingAPI.config.json28
1 files changed, 24 insertions, 4 deletions
diff --git a/src/StardewModdingAPI/StardewModdingAPI.config.json b/src/StardewModdingAPI/StardewModdingAPI.config.json
index de7efcf8..3d156a15 100644
--- a/src/StardewModdingAPI/StardewModdingAPI.config.json
+++ b/src/StardewModdingAPI/StardewModdingAPI.config.json
@@ -39,10 +39,30 @@ This file contains advanced configuration for SMAPI. You generally shouldn't cha
"VerboseLogging": false,
/**
- * A list of mod versions SMAPI should consider compatible or broken regardless of whether it
- * detects incompatible code. The default for each record is to assume broken; to force SMAPI to
- * load a mod regardless of compatibility checks, add a "Compatibility": "AssumeCompatible" field.
- * Changing this field is not recommended and may destabilise your game.
+ * Extra metadata about some SMAPI mods. All fields except 'ID' are optional.
+ *
+ * - 'ID' uniquely identifies the mod across all versions, even if its manifest fields changed or
+ * the mod doesn't have a unique ID. The format is as follows:
+ * - If the mod's identifier changed over time, multiple variants are separated by |.
+ * - Each variant can take one of two forms: a simple string matching the mod's UniqueID,
+ * or a JSON structure containing any of three manifest fields (ID, Name, and Author) to
+ * match.
+ *
+ * - 'Defaults' specifies fields to inject into the mod's manifest if they're not already set.
+ * Supported fields: ChucklefishID, GitHubProject, and NexusID.
+ *
+ * - 'AlternativeUrl' specifies a URL where the player can find an unofficial update or
+ * alternative if the mod is no longer compatible.
+ *
+ * - 'Compatibility' overrides SMAPI's normal compatibility detection. The keys are version
+ * ranges in the form lower~upper, where either side can be blank for an unbounded range. (For
+ * example, "~1.0" means all versions up to 1.0 inclusively.) The values have two fields:
+ * - 'Status' specifies the compatibility. Valid values are Obsolete (SMAPI won't load it
+ * because the mod should no longer be used), AssumeBroken (SMAPI won't load it because
+ * the specified version isn't compatible), or AssumeCompatible (SMAPI will load it even
+ * if it detects incompatible code).
+ * - 'ReasonPhrase' (optional) specifies a message to show to the player explaining why the
+ * mod isn't loaded. This has no effect for AssumeCompatible.
*/
"ModData": [
{