![]() |
VOOZH | about |
dotnet add package KenshiLib --version 1.0.1
NuGet\Install-Package KenshiLib -Version 1.0.1
<PackageReference Include="KenshiLib" Version="1.0.1" />
<PackageVersion Include="KenshiLib" Version="1.0.1" />Directory.Packages.props
<PackageReference Include="KenshiLib" />Project file
paket add KenshiLib --version 1.0.1
#r "nuget: KenshiLib, 1.0.1"
#:package KenshiLib@1.0.1
#addin nuget:?package=KenshiLib&version=1.0.1Install as a Cake Addin
#tool nuget:?package=KenshiLib&version=1.0.1Install as a Cake Tool
Core library for Kenshi mod management, providing comprehensive functionality for mod discovery, playset management, and load order handling.
.cfg playset files with enabled/disabled stateAdd as NuGet package reference in your .csproj:
<ItemGroup>
<PackageReference Include="KenshiLib" Version="1.0.0" />
</ItemGroup>
Or via dotnet CLI:
dotnet add package KenshiLib
using KenshiLib.Core;
// Initialize reverse engineer (for mod file parsing)
var reverseEngineer = new ReverseEngineer();
// Create mod manager
var modManager = new ModManager(reverseEngineer);
// Load all available mods with details
var allMods = await modManager.LoadAllModsWithDetailsAsync();
foreach (var mod in allMods)
{
Console.WriteLine($"{mod.Name} by {mod.Author}");
Console.WriteLine($" Enabled: {mod.IsEnabled}, LoadOrder: {mod.LoadOrder}");
}
using KenshiLib.Core;
string kenshiPath = ModManager.KenshiPath; // Auto-detected or custom
// Create playset repository
var playsetRepo = new PlaysetRepository(kenshiPath);
// Get all playsets
var playsets = playsetRepo.GetAllPlaysets();
// Create new playset
var newPlayset = playsetRepo.CreateNewPlayset("MyModpack");
// Load mods from playset
var modEntries = playsetRepo.LoadPlaysetModsWithState(newPlayset.FilePath);
// Save mods to playset (with enabled/disabled state)
playsetRepo.SaveModsToPlaysetWithState(newPlayset.FilePath, modsList);
using KenshiLib.Core;
// Auto-detect Kenshi path
string? kenshiPath = ModManager.FindKenshiInstallDir();
if (kenshiPath != null)
{
Console.WriteLine($"Kenshi found at: {kenshiPath}");
// Find workshop mods path
string? workshopPath = ModManager.FindWorkshopPath();
Console.WriteLine($"Workshop mods: {workshopPath}");
}
ModManagerMain class for mod discovery and loading. Handles both Steam Workshop and local mods.
PlaysetRepositoryManages playset files (.cfg format). CRUD operations for playlists of mods.
ModInfoData class representing a mod with properties:
Name, Author, DescriptionIsEnabled, LoadOrderModPath, ImagePathIsSteamWorkshopPlaysetInfoMetadata about a playset:
Name, FilePathModCountCreatedDate, ModifiedDateReverseEngineerLow-level mod file parser (reads .mod files).
Google.Cloud.Translate.V3 - Translation API supportDeepMorphy - Russian morphology for translation post-processingTensorFlowSharp - ML model support for DeepMorphyThis library is Windows-specific due to:
C:\Program Files\...)Methods using Registry are marked with [SupportedOSPlatform("windows")].
MIT License - see file for details.
This library is part of the Kenshi mod management ecosystem. For issues or feature requests, please open an issue on GitHub.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0-windows7.0 net9.0-windows7.0 is compatible. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 252 | 10/31/2025 |
Add language switcher, improve mod detection, add DeepMorphy and Google Translate support