Writing mods - solidDoWant/Planetbase GitHub Wiki
Writing mods
NOTICE
This process will change SIGNIFICANTLY within the next couple of updates to the mod patcher. Check back here for more info regularly.
Modding is pretty simple. Unfortunately though, because I haven't finished documenting everything, I will only be writing about how to setup the modding environment for now. More (and better) tutorials will come after the modpatcher and documentation is finished. For now, if you have any questions, you can find me on Discord at https://discord.gg/EW47zVn, on Steam at http://steamcommunity.com/id/TheiInTEAM/ or you can create an issue on Github.
Setup
- Patch your Planetbase install with the patcher here
- Create a new project in Visual Studio. .Net version 3.5, Project Type: Class Library.
- Add references to UnityEngine.dll, UnityEngine.UI.dll, and Assembly-CSharp.dll
- Extend the IMod interface. See the docs for details..
- Go to project properties>debug and set Start External Program to your Planetbase executable. (steamapps\common\Planetbase\Planetbase.exe)
- Go to project properties>build and set the output path to Documents\Planetbase\Mods folder.
- You're done!