Skip to content

SharpPluginLoader 3.0.0

Choose a tag to compare

@Fexty12573 Fexty12573 released this 22 Nov 20:43
· 16 commits to master since this release

⚠️ 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.Core 3.0.0 targets net11.0. To use it, retarget your plugin to net11.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 an MtObject.
    • 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, DisplayMessageWindow and DisplayAlert now send text as UTF-8, so non-ASCII text (e.g. Chinese or Japanese) displays correctly (#81).
  • ActionController.DoAction now passes the action set and action ID to the game as integers instead of floats (#86).
  • MtFile is now created through its DTI and fully destroyed when disposed (#86).
  • Failed allocations: MtFile, MtFileStream, MtCipherStream and MtMemoryStream now return null cleanly when allocation fails (#86).

Behavior changes

  • Disposing an MtFileStream no longer disposes the MtFile it 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.bat and post-build.bat were updated for .NET 11.

Contributors

Thanks to @Pizzabelly (shader replacement, IO fixes, ImGui style, VS 2026 build fixes) and @J31why (GUI text encoding fix).