This serves as a template for a code-only Stationeers mod using Stationeers Launchpad and BepInEx.
- Simple code base
- Builds on Windows and Linux
- Github workflow to build releases automatically
- Uses Krafs.Publicizer to access private members
- Example patches demonstrating common techniques:
- Prefix and Postfix patches
- Prefix patch skipping the original method
- Transpiler patch modifying IL code
- Fork and clone the project
- Run
dotnet buildto build the mod - Copy the resulting dll from
bin/Debug/net48to yourBepInEx/pluginsfolder
Before publishing your mod change the following names in the source code:
Main.cs:6:namespace ExampleModPatches.cs:8:namespace ExampleModMain.cs:12:pluginGuid = "aproposmath-stationeers-example-mod";Main.csproj:7:ExampleMod
Create a new git tag and push it to GitHub. The workflow will automatically build the release and upload it to the releases page page on github.
git tag v1.2.3
git push origin v1.2.3This mode requires Stationeers Launchpad and BepInEx.
Download the latest release from the releases page and extract it into your BepInEx/plugins folder.