OpenConstructionSet-unofficial
1.0.0
dotnet add package OpenConstructionSet-unofficial --version 1.0.0
NuGet\Install-Package OpenConstructionSet-unofficial -Version 1.0.0
<PackageReference Include="OpenConstructionSet-unofficial" Version="1.0.0" />
<PackageVersion Include="OpenConstructionSet-unofficial" Version="1.0.0" />
<PackageReference Include="OpenConstructionSet-unofficial" />
paket add OpenConstructionSet-unofficial --version 1.0.0
#r "nuget: OpenConstructionSet-unofficial, 1.0.0"
#:package OpenConstructionSet-unofficial@1.0.0
#addin nuget:?package=OpenConstructionSet-unofficial&version=1.0.0
#tool nuget:?package=OpenConstructionSet-unofficial&version=1.0.0
The Open Construction Set
The OCS is a modding SDK for Kenshi written in C#
It provides services for dealing with the various folders and data files used by the game. As well as providing a managed context for loading multiple mods for editing (Similar to FCS)
A single cs file example patcher for SCAR's pathfinding fix can be found here.
Features
- Load, edit and save the game's various data files.
- Read and edit the enabled mods (Ticked in the launcher) and the load order.
- Locate Steam and Gog installations of the game and their folders. Including Steam's Workshop content folder and the old save folder.
- Discover the structure of mod and save folders as well as the files contained within.
- Load multiple base and/or active mods into a
ModDataContextfor editing and saving.
Thanks
Massive shout out to SCARaw for his help throughout the project.
Introduction
Project Setup
Add the main nuget (https://www.nuget.org/packages/OpenConstructionSet/)
Optionally add the dependency injection nuget (https://www.nuget.org/packages/OpenConstructionSet.DependencyInjection/)
Using Dependency Injection
Once you have a reference to the dependency injection assembly simple add OCS to your services.
services.UseOpenContructionSet();
This will setup the IInstallationService and the IContextBuilder
Using Services directly
Both services can be contructed normally
var installationService = new InstallationService();
var contextBuilder = new ContextBuilder();
Services
IInstallationService- Provides functions for locating installations of the game.IContextBuilder- Provides functions for building FCS like Mod Contexts. These allow multiple base and/or active mods to be loaded for editing.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows7.0
- GameFinder.StoreHandlers.GOG (>= 4.2.0)
- GameFinder.StoreHandlers.Steam (>= 4.2.0)
- LMay.Collections (>= 3.0.0)
- Microsoft.Win32.Registry (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|