This repo contains example KenshiLib plugins.
Requires RE_Kenshi 0.3.1+ and optionally FCS extended 1.0.3.0+.
A basic plugin that prints "Hello world!" to RE_Kenshi's debug log.
Adds a UI window with a large button that kills the selected character. Showcases how to use MyGUI to safely create working UI elements.
Adds new dialogue conditions and effects. Also shows accessing custom GameData properties. This mod also has a corresponding FCS_extended plugin Dialogue_FCS.
Adds integer variables defined in the FCS, modified via dialogue events, that can be checked in world states. This mod shows how to use custom GameData types and save persistent state. This mod also has a corresponding FCS_extended plugin WorldStates_FCS.
Showcases communication between plugins/how plugins can export new APIs, as well as the PreloadPlugin system for early plugin loading.
Source code for the character highlight mod, shows how to set material/shader properties.
Requires Visual Studio 2019 or newer and the Visual C++ 2010 x64 compilers. KenshiLib plugins MUST be compiled using the Visual Studio 2010 compiler. Copies of Visual Studio 2010 can be found on the Wayback Machine.
Other dependencies can be found here: https://github.com/BFrizzleFoShizzle/KenshiLib_Examples_deps
Open the project and compile in RELEASE mode. DEBUG is currently broken.
If you have issues, a more detailed setup guide can be found here.
