rpd:version_json
Differences
This shows you the differences between two versions of the page.
| rpd:version_json [2025/12/25 21:04] – list fix Mikhael | rpd:version_json [2025/12/25 21:25] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== version_json ====== | ||
| + | ===== Description ===== | ||
| + | **version.json** is a required file for all mods in Remixed Dungeon. It contains metadata about the mod that the game uses to properly load and manage the mod. | ||
| + | |||
| + | ===== File Structure ===== | ||
| + | <code javascript> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Fields ==== | ||
| + | * **version** (integer, required) - Machine readable mod version, used for update checks | ||
| + | * **name** (string, optional) - Mod name as displayed to the player; defaults to directory name if not specified | ||
| + | * **rpd_version** (integer, optional) - Remixed Dungeon version required to run the mod; if not specified, defaults to 0 | ||
| + | * **author** (string, optional) - Mod developer name as displayed to player; defaults to " | ||
| + | * **description** (string, optional) - Mod description as displayed to player; defaults to empty string if not specified | ||
| + | * **url** (string, optional) - Clickable link to developer' | ||
| + | * **hr_version** (string, optional) - Human-readable version as displayed to player; defaults to string representation of " | ||
| + | |||
| + | ===== Mechanics ===== | ||
| + | * The game checks for the existence of version.json in potential mod directories | ||
| + | * Only directories containing a valid version.json file will be loaded as mods | ||
| + | * The " | ||
| + | * A mod is considered compatible if its rpd_version is less than or equal to (current version code % 2000) | ||
| + | * The " | ||
| + | |||
| + | ===== Content Verification ===== | ||
| + | * Information source: Java classes [[https:// | ||
| + | * Field definitions and defaults: Extracted from the fromJson() method in ModDesc.java | ||
| + | * Compatibility logic: Extracted from the isCompatible() method in ModDesc.java | ||
| + | * Last updated: December 2025, source: Remixed Dungeon 1.9.3 | ||
| + | |||
| + | ===== Source Code ===== | ||
| + | * Java: [[https:// | ||
| + | * Java: [[https:// | ||
| + | |||
| + | ===== See Also ===== | ||
| + | * [[rpd: | ||
| + | * [[rpd: | ||
| + | * [[rpd: | ||
| + | |||
| + | {{tag> rpd modding json}} | ||
rpd/version_json.txt · Last modified: by 127.0.0.1
