STS2.RitsuLib.Compat.0.104.0
0.2.29
See the version list below for details.
dotnet add package STS2.RitsuLib.Compat.0.104.0 --version 0.2.29
NuGet\Install-Package STS2.RitsuLib.Compat.0.104.0 -Version 0.2.29
<PackageReference Include="STS2.RitsuLib.Compat.0.104.0" Version="0.2.29" />
<PackageVersion Include="STS2.RitsuLib.Compat.0.104.0" Version="0.2.29" />
<PackageReference Include="STS2.RitsuLib.Compat.0.104.0" />
paket add STS2.RitsuLib.Compat.0.104.0 --version 0.2.29
#r "nuget: STS2.RitsuLib.Compat.0.104.0, 0.2.29"
#:package STS2.RitsuLib.Compat.0.104.0@0.2.29
#addin nuget:?package=STS2.RitsuLib.Compat.0.104.0&version=0.2.29
#tool nuget:?package=STS2.RitsuLib.Compat.0.104.0&version=0.2.29
STS2-RitsuLib
Shared framework library for Slay the Spire 2 mods.
Chinese README: README.zh.md
RitsuLib is maintained as a practical authoring library. API growth is demand-driven and focused on the patterns used by the bundled mods.
The library exists alongside BaseLib and currently does not conflict with it.
Documentation site (Valaxy, bilingual): https://sts2-ritsulib.ritsukage.com/
Optional analyzers
Companion Roslyn package for RitsuLib-style mods (localization keys, Mod*Template usage, registration attributes):
STS2-ModAnalyzers-RitsuLib (NuGet:
STS2.ModAnalyzers.RitsuLib).
Mod Settings
RitsuLib includes a settings UI layer for player-editable values.
- register pages explicitly with
RitsuLibFramework.RegisterModSettings(...) - bind controls to
ModDataStoreinstead of introducing a separate configuration backend - source labels and descriptions from
I18Nor game-nativeLocString - keep RitsuLib settings registration independent from BaseLib's config-page registry and file paths
Mod settings guide: https://sts2-ritsulib.ritsukage.com/guide/mod-settings
Debug Compatibility Mode
debug_compatibility_mode defaults to off. In that state, patched systems keep vanilla behavior.
When the master toggle is on, the settings page exposes per-feature compatibility fallbacks. Sub-toggles default to on.
| Sub-setting | Effect when enabled |
|---|---|
| LocTable missing keys | Resolve to placeholder LocString values and log one [Localization][DebugCompat] warning per key |
| Invalid unlock epochs | Skip invalid epoch grants and log one [Unlocks][DebugCompat] warning per stable key |
| THE_ARCHITECT missing dialogue | Inject empty Lines entries for ModContentRegistry characters when vanilla provides no dialogue |
Disabling a sub-toggle removes only that fallback.
Windows settings path:
%appdata%\SlayTheSpire2\steam\<user_id>\mod_data\com.ritsukage.sts2-RitsuLib\settings.json
Runtime bundle (multi-API, interim)
End users who want one mod folder that picks the correct RitsuLib build for the running game should install the
GitHub
asset STS2-RitsuLib.<version>.variant-pack.zip (not the per-compat *.github.zip files). Extract it under
mods/STS2-RitsuLib/: the root STS2-RitsuLib.dll is a small loader; real builds live under lib/<api-version>/ with
the same assembly name as today. Downstream mods keep declaring dependencies: ["STS2-RitsuLib"] and continue to
reference NuGet (STS2.RitsuLib / STS2.RitsuLib.Compat.*) unchanged. This path is expected to be temporary until
first-party workshop / per-branch installs make separate DLLs straightforward.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Godot.SourceGenerators (>= 4.5.1)
- GodotSharp (>= 4.5.1)
- System.IO.Hashing (>= 9.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 |
|---|---|---|
| 0.2.40 | 0 | 5/21/2026 |
| 0.2.39 | 13 | 5/20/2026 |
| 0.2.38 | 18 | 5/20/2026 |
| 0.2.37 | 19 | 5/20/2026 |
| 0.2.36 | 21 | 5/20/2026 |
| 0.2.35 | 24 | 5/19/2026 |
| 0.2.34 | 18 | 5/19/2026 |
| 0.2.33 | 70 | 5/17/2026 |
| 0.2.32 | 71 | 5/16/2026 |
| 0.2.31 | 70 | 5/14/2026 |
| 0.2.30 | 69 | 5/11/2026 |
| 0.2.29 | 78 | 5/9/2026 |
| 0.2.28 | 76 | 5/8/2026 |
| 0.2.27 | 76 | 5/8/2026 |