Installation

Players

  1. Close For The King II.
  2. Install BepInEx 5.4.23.5 for FTK2.
  3. Place exactly one FTK2.ModAPI.dll in For The King II\BepInEx\plugins or a child folder.
  4. Place each consumer mod DLL in BepInEx\plugins or its own child folder.
  5. Do not install FTK2.ModAPI.SDK.dll; it is a build-time reference project.
  6. Launch the game and confirm the log contains FTK2.ModAPI 0.5.9, API_INITIALIZED, and the consumer's MOD_REGISTERED entry.

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.