Add BepInEx for KSP 2 from SpaceDock #9584
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request was automatically generated by SpaceDock on behalf of bbepis, to add BepInEx for KSP 2 to CKAN.
Please direct questions about this pull request to bbepis.
Mod details
Description
BepInEx for KSP 2
https://github.com/BepInEx/BepInEx
What is BepInEx?
BepInEx is a tool used to allow modding / custom code execution in Unity and other C# based games. As of writing KSP 2 does not support loading arbitrary mods, so the only way to run addons & load assets is through this loader.
Harmony and MonoMod.RuntimeDetour are packaged with this loader, allowing you to modify game code & functions at runtime.
BepInEx uses "plugin" to refer to the equivalent of Addons in KSP.
Additional features as compared to KSP 1 style modding
Other features
Getting started
For Windows:
You are done!
If you get stuck with the installation process, please refer to the documentation: https://docs.bepinex.dev/articles/user_guide/installation/index.html
For Linux/Unix/OSX:
It is more or less the same process, with some minor differences. Refer to the above documentation
Installing plugins
To install plugins, place them inside of your
BepInEx/plugins
folder. (This directory might not exist for you; launch the game once to have BepInEx generate its folder structure)While it's possible to place every .dll file in any place in
BepInEx/plugins
, it's strongly recommended that you have one folder per mod to make it significantly easier to manage updates and uninstallation.Creating BepInEx plugins
A guide exists here for writing your first BepInEx plugin: https://docs.bepinex.dev/articles/dev_guide/plugin_tutorial/index.html
As reference here is a pre-made C# project for an example plugin that does two things:
https://files.catbox.moe/6c48ls.zip