https://github.com/Alchyr/ModTemplate-StS2/wiki/Setup
Example mod for Slay the Spire 2!
Before you begin, ensure you have:
- .NET 9.0 SDK
- Godot 4.5.1 Mono - Download the "Windows 64-bit, .NET" version
- Slay the Spire 2 installed via Steam
git clone https://github.com/lamali292/sts2_example_mod.git
cd sts2_example_modWindows (PowerShell):
Copy-Item local.props.example local.propsLinux/Mac:
cp local.props.example local.propsOpen local.props in any text editor and update with your paths:
<Project>
<PropertyGroup>
<!-- Example for default Steam installation: -->
<STS2GamePath>C:\Program Files (x86)\Steam\steamapps\common\Slay the Spire 2</STS2GamePath>
<!-- Example Godot path: -->
<GodotExePath>C:\Godot\Godot_v4.5.1-stable_mono_win64.exe</GodotExePath>
</PropertyGroup>
</Project>Open ExampleMod.csproj as Visual Studio Project
Press Ctrl+Shift+B or click Build → Build Solution
The mod will automatically install to:
Slay the Spire 2/mods/ExampleMod/
├── ExampleMod.dll
└── ExampleMod.pck
can be changed in ExampleMod.csproj
- Make sure
GodotExePathinlocal.propspoints to the.exefile - Download the Mono version, not the standard version
- Right-click STS2 in Steam → Manage → Browse local files
- Copy the full path and paste into
STS2GamePath
- Check that both
ExampleMod.dllANDExampleMod.pckexist inmods/ExampleMod/ - Check the game's log file for errors:
%AppData%\Roaming\SlayTheSpire2\Player.log
- Rebuild the mod (Ctrl+Shift+B) or with Rebuild Solution
- Restart Slay the Spire 2