will-snavely / PuzzleMod

5 stars 0 forks source link

PuzzleMod

About

PuzzleMod is a mod for Slay the Spire that implements a "puzzle" mode. In this mode, each floor of the Spire is an independent puzzle with its own cards, relics, potion, etc., which must be solved in order to progress.

Installing

PuzzleMod is available on Github or Steam workshop.

Steam Workshop

Subscribe to this Steam Workshop project:

Github Releases

Head to the Releases page and download the latest version of PuzzleMod.jar. This should then be placed in the mods folder of your Slay the Spire installation directory (if you are using Steam, you can find this by right-clicking the game, and navigating to "Manage", then selecting "Browse Local Files").

Running

To use the mod, you must launch Slay the Spire with mods enabled, then ensure that "PuzzleMod" is selected in the mod configuation dialog.

Building

The mod can be built locally using Maven. There are some steps you must following first, though, for this to work.

Install Slay The Spire on Steam

The only supported build configuration requires you to have Slay the Spire installed through Steam. This should work on both Windows and Linux, though this has not been heavily tested.

Install Steam Workshop Dependencies

You should install Mod the Spire, BaseMod, and StSLib through Steam Workshop. This is done by "subscribing" to the respective pages of these tools:

Setting up a settings.xml file for Maven

This tells Maven where to find all of the local Slay the Spire Jar files. My settings.xml file looks like this. This file should be placed in the appropriate location for your system. Typically, this is inside a folder named .m2 in your home directory (/home/username/.m2 on Linux, C:\Users\UserName\.m2 on Windows). Read this link for more information on settings.xml.

You will likely need to update the sample XML file to suit your local system. The critical thing is that the following variables are set:

Build the Mod

After downloading the source, the mod can be built using:

This should be run from the root of the repository. Assuming your settings.xml file is configured properly, this should compile the source and copy the mod jar file to the appropriate folder in your Spire installation.

If you just wish to build the source, without installing, you can run:

Custom Puzzles

Check out the wiki (https://github.com/will-snavely/PuzzleMod/wiki) for information about creating custom puzzles.