This is a basic template for mod developers who want to make Etherium mods with BepInEx. It contains some basic plugin code to show how a basic mod would work, in this example the template mod does three things:
- Prints a message in console saying that the mod has been loaded,
- Creates a config file with one config entry called
RemoveExtensionCost - Has an example patch that changes the Etherium cost of all Extensions to 0 if the
RemoveExtensionCostconfig is true
Simply open the solution file ModTemplate.sln in Visual Studio Code and press Ctrl + Shift + B to build the plugin, the compiled plugin dll will be in Bin/Debug/net35/ and will be called ModTemplate.dll simply put ModTemplate.dll in your Etherium plugins folder to test! Assuming that the mod built correctly and you installed it correctly, the message Plugin ModTemplate is loaded! Version: 1.0.0 should be printed in console, and a config file called ModTemplate.cfg should be created in the Etherium config folder, and if RemoveExtensionCost is set to true in the config file, all extensions should have an Etherium cost of 0, once you've verified that everything works you can start making changes!
A list of resources for modding help:
- BepInEx Docs: https://docs.bepinex.dev/articles
- Harmony Docs: https://harmony.pardeike.net/articles/intro.html
- Etherium RTS Community Discord Server: https://discord.gg/NksyQwrah4
- Game: Etherium
- Requires: BepInEx 5.x
- Developer: LostGameDev
- Frameworks Used: BepInEx, Harmony