| 65 | == How to make your mod show up in the mod selection screen == |
| 66 | |
| 67 | You need to add a `mod.json` file to your mod folder. See the public (0 A.D.) mod's [source:ps/trunk/binaries/data/mods/public/mod.json mod.json] file for a real world example of an standalone mod. |
| 68 | |
| 69 | The following is a (nearly minimal) sample: |
| 70 | {{{ |
| 71 | { |
| 72 | name: "samplemod", |
| 73 | version: "1.2.34", |
| 74 | label: "Sample Mod", |
| 75 | description: "This is an example discription", |
| 76 | dependencies: ["0ad=0.0.19"] |
| 77 | } |
| 78 | }}} |
| 79 | |
| 80 | There are also the `url` and `type` properties which are optional. `name` must be unique and must not contain whitespace. `dependencies` is an array that contains the `name` of mods it depends on, optionally with version constraints (<,<=,==,>=,>) and the versions of the dependency. |
| 81 | |
| 82 | For details of how the dependency checking is done please read the function comments in [source:ps/trunk/binaries/data/mods/mod/gui/modmod/modmod.js modmod.js]. |
| 83 | |