Repository navigation
Setup: Editing Scenes
For editing scenes, UI or other assets in the Godot editor. If you only change code, the README is enough.
- .NET 10 SDK (the code uses C# 14)
-
PowerShell 7 (
pwsh) on Linux/macOS - A Slay the Spire 2 installation
- MegaDot v4.5.1 (preferred) or Godot v4.5.1
- Extracted Slay the Spire 2 assets via GDRE
Run everything in a terminal opened in the repository root.
1. Clone
git clone https://github.com/lamali292/Downfall.git
cd Downfall2. Extract the game assets with GDRE. Note the root folder of the extracted project.
3. Create local.props - copy local.props.example to local.props and set:
<Project>
<PropertyGroup>
<GodotPath>C:\...\MegaDot\MegaDot_v4.5.1_mono.exe</GodotPath>
<Sts2Branch>beta</Sts2Branch>
<Sts2BetaPath>C:\Program Files (x86)\Steam\steamapps\common\Slay the Spire 2</Sts2BetaPath>
<AssetSourcePath>C:\path\to\extracted\Slay the Spire 2</AssetSourcePath>
</PropertyGroup>
</Project>AssetSourcePath is the root of the extracted GDRE project. Sts2PublicPath is only needed to also use the public branch.
4. Link the assets and set up
build/link-assets.ps1
build/setup.ps15. Pack the assets
build/publish-all.ps1It worked if the last line is ALL PROJECTS PUBLISHED. See the README for the rebuild commands.
Open project.godot with the Godot executable from GodotPath. With the linked assets the editor runs the real game scenes, so you can inspect the live scene tree of this mod's cards, powers and relics. Set <CopyToGodotMods>true</CopyToGodotMods> in local.props to also copy built .dll / .pck files into a mods folder next to the Godot executable, so the editor loads the mod the way the game does.