FTKModLib is a work-in-progress modding framework to aid developers in creating For The King mods, by providing centralized and simplified APIs for the game.
-
Install BepInEx
Download BepInEx, extract into your For The King folder (~\<PathToYourSteamLibrary>\steamapps\common\For The King
). -
Install FTKModLib
Download the latest release from the releases tab (at the time, does not exist yet), or compile source code, and place .dll in the BepInEx plugins folder.
You are now ready to launch the game and mod away!
There is a provided example plugin(s) made with the use of the library located in the Examples folder.
- CustomItem
Can create an item with full custom functionality or inherit functionality from existing items (herbs, orbs, armor, weapons). - CustomClass
Can create a character class with full custom functionality or inherit functionality from existing classes (blacksmith, hunter, etc.). - CustomLocalizedString
Can create a string/text that supports additional languages.
- AssetManager
Allows importing custom assets such as models and images, to be used with custom or existing GameObjects. - ItemManager
Allows the modification and addition of items. As simple asItemManager.AddItem(new CustomItem());
! - ClassManager
Allows the modification and addition of classes. As simple asClassManager.AddClass(new CustomClass());
!
999gary/FTKExampleItemMod used as learning reference
CarbonNikm/FTK-Debugging-Commands used as learning reference
Valheim-Modding/Jotunn used as learning reference