Installation
Players
- Close For The King II.
- Install BepInEx 5.4.23.5 for FTK2.
- Place exactly one
FTK2.ModAPI.dllinFor The King II\BepInEx\pluginsor a child folder. - Place each consumer mod DLL in
BepInEx\pluginsor its own child folder. - Do not install
FTK2.ModAPI.SDK.dll; it is a build-time reference project. - Launch the game and confirm the log contains
FTK2.ModAPI 0.5.9,API_INITIALIZED, and the consumer'sMOD_REGISTEREDentry.
The optional ExampleMod has its own DLL and configuration file at BepInEx\config\community.example.cfg. Its default configuration is read-only; mutation validation switches are for controlled testing.
Mod authors
Reference the 0.5.9 SDK/project contract without copying FTK2.ModAPI.Internal code or game assemblies into your release. Your plugin should declare:
[BepInDependency(FTK2API.PluginId, FTK2API.VersionString)]
Package your consumer DLL and declare the Toolkit as a required dependency on the download page. Continue with Creating Your First Mod.
Common installation error
Multiple ModAPI DLL copies can load competing hosts. Search the complete BepInEx\plugins tree and keep one current copy. Include the startup version block when reporting a problem.