Creating a Mod File - Gorzontrok/Bro-Maker GitHub Wiki
Mod Files
A mod file is a JSON file that shows BroMaker where all of your custom bros and abilities are. The file must end with .mod.json.
Example from Bronobi:
{
"Name": "Bronobi",
"Version": "1.0.0",
"BroMakerVersion": "2.6.0",
"Author": "Gorzontrok",
"CustomBros":[
"Bronobi.json"
],
"Assemblies": [
"Bronobi.dll"
],
"Abilities":[
"BronobiForceWave.json"
]
}
| Field | Type | Required | Purpose |
|---|---|---|---|
Name |
String | Yes | Name of the mod. |
Version |
String | Yes | Version of the mod. |
BroMakerVersion |
String | Yes | Minimum version of BroMaker required to load the mod. |
Author |
String | Yes | Author of the mod. |
Assemblies |
String[] | No | Paths to custom .dll files the mod needs. Paths start from the mod file's folder. |
CustomBros |
String[] | Yes | Paths to the [Custom Bro JSON files](/Gorzontrok/Bro-Maker/wiki/Creating-a-Bro-Via-a-JSON-File) to load. Paths start from the mod file's folder. |
Abilities |
String[] | No | Paths to ability JSON files to load. Paths start from the mod file's folder. |
BroMakerVersion is required. BroMaker rejects bros whose BroMakerVersion is older than the installed BroMaker, so set this to the version you're developing against.
Abilities is optional. Custom abilities can also be added entirely through programming instead of a JSON file.
Bronobi's File Hierarchy is:
Bronobi/
- Bronobi.mod.json
- Bronobi.dll
- Bronobi.json
- ...
Each entry in CustomBros points to a bro JSON file. Paths are relative to the mod file's folder, so a bro file in a subfolder is referenced as subfolder/MyBro.json.