mpmxyz / ResoniteSampleMod

A sample/template mod for Resonite
Creative Commons Zero v1.0 Universal
8 stars 0 forks source link
resonite resonite-mod resonitemodloader

ResoniteSampleMod

Build & Test (MonkeyLoader) Build & Test (ResoniteModLoader)

A Mod for Resonite that just adds a "Hello World!" log entry whenever you click a button.

About this repository

This repository is a template everyone can copy from. It includes automatic github workflows to test your code (Continuous Integration including linting and style checking) and a manually triggered release workflow to publish a new version. Mods created using this template support two different mod loaders: ResoniteModLoader and MonkeyLoader

Using this Template

  1. Use this repository as a template (green button Use this template/Create a new repository on the top right)
  2. Inside the new repository go to the tab Actions and run the workflow Init Template (You can specify user/mod names that differ from the repository.)
  3. After the action is finished, follow the instructions in the newly created Issue Setup repository to support full CI/CD (most likely #1 when reading this in your repository)
  4. On your local machine make sure that the environment variables ResonitePath (required) and ResoniteCache (recommended) are set and that you have at least one mod loader installed.
  5. ???
  6. Happy coding!

Additional Notes:

Publishing a new Mod Version

  1. Increment the <Version> number within the files SampleMod.csproj and Mod.RML/SampleModRML.cs
  2. Execute the github workflow Create Release

Installation (ResoniteModLoader)

  1. Install ResoniteModLoader.
  2. Download release zip file and extract contents into Resonite directory. (e.g. rml_mods should be merged with rml_mods.)
  3. Start Resonite. (with -LoadAssembly Libraries/ResoniteModLoader.dll launch option)

Installation (MonkeyLoader)

(Work in Progress)

  1. ~Install MonkeyLoader.~
  2. ~Add package source "https://nuget.pkg.github.com/mpmxyz/index.json"~
  3. ~Add package "mpmxyz.SampleMod.MonkeyLoader"~
  4. ~Start Resonite.~