Mod Dependencies
What is a dependency for a mod?
A depenedency for a mod is a library that allows mods to use features that the library provides. Some mods may make use of such libraries to be able to do a thing that the built-in libraries aren't able to.
Adding references
In your mod or screensaver project, follow these steps:
Open your mod or screensaver project
Right-click on References in the Solution Explorer, and press
Manage NuGet packages...
Find your desired library and install it
Use these libraries in your code, and when you're finished, build the project. Right-click on the project or solution and select
Build
Move the mod or screensaver file to
KSMods
Create a directory called
Deps
Inside it, create another folder called
<ModFileName>-<ModFileVersion>
. Make sure to use the mod or screensaver file version, not the assembly version.Move all the dependencies from the project output directory to that folder.
If you followed all the steps correctly, you should see this structure:
All the commands or routines in your mod or screensaver should work correctly.
Does it apply to splashes?
Yes! You can do this in your custom splashes! Follow the above steps for the splashes, but make sure that you maintain this structure:
Last updated