BepInEx Mods: Astrea BepInEx Mod Template

From Astrea Wiki
Jump to navigation Jump to search
  • Download Astrea BepInEx Mod Template
  • Astrea BepInEx Mod Template needs to be setup to change the name of the plugin and to get the latest .dll from the game. Follow Setup Plugin Files to setup the plugin.
  • Open Astrea BepInEx Mod Template folder in VS Code. (if you installed correctly you can just Right-Click in the folder > "Open with Code" ).
  • To make changes to the game you will need to use HarmonyX, to use it refer to HarmonyX Wiki and Original Harmony wiki.
  • After making the changes to your plugin, build the project using this command on console (Ctrl+` or in Tabs > Terminal > "New Terminal" ):
dotnet build
  • Copy the generated AstreaBepInExModTemplate.dll (or the new name you gave to your plugin) from
AstreaBepInExModTemplate\bin\Debug\net46\AstreaBepInExModTemplate.dll
  • In game, create a new Mod and open it's folder. In case you don't know how to create a new Mod in game, read Creating a Mod.
  • Paste the generated .dll inside the plugins folder:
New Mod 1\plugins\AstreaBepInExModTemplate.dll
  • Restart the game to see your changes working.

Note: The Astrea BepInEx Mod Template comes with an example of how to Create a new Battle Action (that can be used on dice or virtues). It also has a small example on how to use HarmonyX on the class BattleActionCreator.cs.

Previous: Setup
Go Back to Mods page: Mods