Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Modding

Gijs edited this page Jul 13, 2024 · 2 revisions

Making mods

  1. Once you've edited decrypted game files, add them to your mod folder.
  2. In order for the modloader to load your mod files, you need to register them in your mod metadata file. Create a mod metadata file called mod.json. For a reference file, check out mods/gomori/mod.json.
  3. Register files by adding their paths, relative to the mod folder as root, to the correct files array. You may also register entire folders by suffixing a path with "/".
    • plugins are patched to /www/js/plugins. They should have a js extension. Plugin files that do not replace an existing plugin are loaded as new plugins at runtime.
    • text files are patched to /www/languages/en. They should have a yml extension.
    • data files are patched to /www/data. They should have a json extension.
    • maps files are patched to /www/maps. They should have a json extension.
    • assets files are patched to /www/. Files with a png or ogg extension are converted to rpgmvp and rpgmvo respectively. For example, /img/characters/DW_OMORI.png in the mod is patched to /www/img/characters/DW_OMORI.rpgmvp in the game directory.
    • exec files are patched and instantly executed while your mod is being built. They should have a js extension and have a function as module export.
  4. Choose a unique ID for your mod and enter it in mod.json. Your mod's ID should be identical to the mod folder's name.
  5. Add the mod folder to a zip file named with your mod ID. The zip file should contain only one folder in its root; your mod folder.
Clone this wiki locally