The native library and plugin surface behind RE_Kenshi extensions.

KenshiLib

KenshiLib is the native library used to build C++ plugins for RE_Kenshi. Plugin authors can start from precompiled development files and examples; compiling the entire RE_Kenshi project is not required for ordinary plugin development.

What the examples demonstrate

  • Hello World: basic plugin loading and debug-log output.
  • Kill Button: safe creation of MyGUI interface elements.
  • Dialogue Extensions: custom conditions, effects, and game-data properties.
  • World States: custom data types and persistent state.
  • Plugin Import / Export: communication between plugins and early loading.
  • Character Highlight: material and shader-property changes.

Recommended first experiment

Build the Hello World example in Release mode, confirm that RE_Kenshi loads it, and inspect the debug log. Only then add game-state access or UI behavior.

Upstream ownership

KenshiLib and its example repositories remain the source of truth for headers, binaries, compiler constraints, and API behavior. This site provides navigation and context rather than a forked API reference.

Source-aware

This guide summarizes public upstream material. Follow its source links for current project authority.