Skip to content

Creating Mods

OmegaRogue edited this page Nov 8, 2020 · 5 revisions

Creating Mods

Make sure you followed the Install Guide before continuing with this guide.

Open your preferred IDE (Integrated Development Environment) for C#/.NET Development

Create a new Solution with a new .NET Framework 4.7.2 Class Library Project

Next, add References to

<NimbatusInstallFolder>\Windows64\BepInEx\core\BepInEx.dll
<NimbatusInstallFolder>\Windows64\BepInEx\core\0Harmony.dll
<NimbatusInstallFolder>\Windows64\BepInEx\core\BepInEx.Harmony.dll
<NimbatusInstallFolder>\Windows64\BepInEx\core\BepInEx.dll
<NimbatusInstallFolder>\Windows64\Nimbatus_Data\Managed\Assembly-CSharp.dll
<NimbatusInstallFolder>\Windows64\Nimbatus_Data\Managed\Sirenix.Serialization.dll
<NimbatusInstallFolder>\Windows64\Nimbatus_Data\Managed\UnityEngine.dll
<NimbatusInstallFolder>\Windows64\Nimbatus_Data\Managed\UnityEngine.CoreModule.dll

Now that your Project is set up, you can follow the Plugin Development Guide in the BepInEx Documentation

Changing Game Code

All Nimbatus-Mods mods should use XHarmony to patch existing Game Methods.

To find out how to do things, use dnSpy or any similar Program to open <NimbatusInstallFolder>\Windows64\Nimbatus_Data\Managed\Assembly-CSharp.dll and explore the game code.