Skip to content

Mod structure

PouPeuu edited this page Jul 21, 2024 · 1 revision

Mod structure

Files and folders marked with ? are optional
> mods/
-> modid/
--> description.pml ?
--> metadata.json
--> graphics/ ?
--> levels/ ?
--> music/ ?
--> objects/ ?
--> sound/ ?
--> weapons/ ?

modid/metadata.json:

{
    "name": "Example Mod"
}

name is the name shown in the list of mods

Weapon structure

> mods/
-> modid/
--> weapons/
---> WeaponId/
----> objects/ ?
-----> weapon_object.lua ?
----> metadata.json
----> WeaponId.lua

WeaponId/metadata.json:

{
    "type": "ship"
}

type can be ship, pilot, or both

The modloader automatically handles creation of the Weapons.dat file for you, based on these weapon metadata files.

Clone this wiki locally