Skip to content

Developer_document

HTony03 edited this page Aug 5, 2024 · 5 revisions

V2 note

mod-manager-v2 does not require any additional processing of dll files.

Make sure the Plugin name you use for dotnet-packaged dll files is unique, and try not to use the following default names:

MyFirstPlugin

Avoid using mod names that have already been created by others.

When updating versions, be sure to change your Plugin Version and strongly recommend adding a version number to the end of the dll file name.

Recognizable ZIP Format

In the current version, the manager recognizes the following ZIP format: zip样式

ZIP Style

meta-inf.json中的数据

Data in meta-inf.json

The data in meta-inf.json includes:

  • "name": Name of the mod
  • "ver": Version of the mod (optional, currently not used)
  • "desc": Description/introduction of the mod
  • "file_name": Name of the .dll file corresponding to the mod
  • "dependencies": Pre-requisite mods for the mod

Style of the "dependencies" section

"dependencies": [
      {
        "name": "<dependence_mod_name>",
        "file": "<the_file_name_of_the_dependence>"
      }
]

If there are no dependencies:

"dependencies": 0

Sample of meta-inf.json

{
    "name": "AircraftRouteDisplayMod",
    "desc": "Aircraft Route Display Mod",
    "file_name": "AircraftRouteDisplayMod.dll",
    "dependencies": 0
}
{
    "name": "MiniRealisticAirways",
    "desc": "Mini Realistic Airways",
    "file_name": "MiniRealisticAirways.dll",
    "dependencies": [
      {
        "name": "VerticalLevel",
        "file": "VerticalLevel.dll"
      }
    ]
  }

Clone this wiki locally