Repository navigation
SharpPluginLoader 3.0.0
⚠️ Requirements changed
- SharpPluginLoader now runs on .NET 11. Install the .NET 11 Desktop Runtime (x64) before updating. On Linux, install it into the game's Proton prefix.
- Existing plugins keep working.
- Plugin authors:
SharpPluginLoader.Core3.0.0 targetsnet11.0. To use it, retarget your plugin tonet11.0).
New features
- Shader replacement (#60): new
IPlugin.OnCreateShader(ShaderInfo* info)event, called for every shader the game creates (DX11 and DX12). See the new Shader Replacement example. - New lightweight helpers:
MtObject.IsInstance(nint addr, bool checkDtiGetter = true)checks whether an address points to anMtObject.MtDti.OfMtObject(nint addr)reads an object's DTI without creating a wrapper.
Model.MotionLists2: access to a model's second set of LMTs.
Fixes
- Text encoding:
Gui.DisplayPopup,DisplayMessage,DisplayYesNoDialog,DisplayMessageWindowandDisplayAlertnow send text as UTF-8, so non-ASCII text (e.g. Chinese or Japanese) displays correctly (#81). ActionController.DoActionnow passes the action set and action ID to the game as integers instead of floats (#86).MtFileis now created through its DTI and fully destroyed when disposed (#86).- Failed allocations:
MtFile,MtFileStream,MtCipherStreamandMtMemoryStreamnow returnnullcleanly when allocation fails (#86).
Behavior changes
- Disposing an
MtFileStreamno longer disposes theMtFileit wraps. If you relied on that, dispose the file yourself (#86). - Default ImGui style: tighter item spacing and indentation (#82).
Development & build
- Visual Studio 2026: the solution, cimgui project generation and vcpkg setup now target VS 2026 (#87).
- Build tooling: CI, the docs build,
make-package.py,create-links.batandpost-build.batwere updated for .NET 11.
Contributors
Thanks to @Pizzabelly (shader replacement, IO fixes, ImGui style, VS 2026 build fixes) and @J31why (GUI text encoding fix).