BaseMod provides a number of hooks and a console.
Currently supported version of Slay The Spire: [EARLY_ACCESS_015]
(non beta)
- Java 8 (do not use Java 9 - there is an issue with ModTheSpire right now on Java 9)
- ModTheSpire v2.3.0+ (https://github.com/kiooeht/ModTheSpire/releases)
- Java 8
- Maven
- CFR 124 (run this with Java 8, doesn't work well with 9)
- ModTheSpire (https://github.com/kiooeht/ModTheSpire)
- (If you haven't already)
mvn install
ModTheSpire Altenatively, modify pom.xml to point to a local copy of the JAR. - Copy
desktop-1.0.jar
from your Slay the Spire folder into../_lib
relative to the repo. - Decompile
desktop-1.0.jar
withjava -jar "cfr_0_124.jar" --comments false --showversion false --caseinsensitivefs true --outputdir "decompiled" --jarfilter com.megacrit.cardcrawl.* "desktop-1.0.jar"
- Run
mvn package
- Copy
target/BaseMod.jar
to your ModTheSpire mods directory. Maven will automatically do this after packaging if your mods directory is located at../_ModTheSpire/mods
relative to the repo.
Take a look at the wiki (https://github.com/daviscook477/BaseMod/wiki) to get started using BaseMod as either a console or a modding platform!
Take a look at the Console page on the wiki (https://github.com/daviscook477/BaseMod/wiki/Console) to start using the console to test things out!
- If you use the console to
fight
an enemy or spawn anevent
in the starting room with Neow your save will be unloadable. Please refrain from using those commands until after leaving the starting room. - If you use the
event
command with an invalid ID it will crash the game. - BaseMod is likely to break when weekly patches hit. This means that if it's Thursday or Friday and things suddenly stop working you'll probably need to wait for an updated version of BaseMod in a day or two :)
- t-larson - Original author
- FlipskiZ -
hand
command, bug fixes - daviscook477 - Custom players, custom colors, custom cards, more API hooks, code cleanup, bugfixes
- Haashi - custom potion support (w/ hooks for obtaining potions and relics) and dev console support for potions and powers
- BlankTheEvil - custom rendering for cards on a card-by-card basis and custom energy orb support
- kiooeht - Support custom cards in card library screen, fix character select memory leak, modal card choices, custom dynamic variables
- DemoXinMC - CardBasic
- Keep up-to-date with weekly patches to keep mods useable
- More tools/more intuitive tools for mods to create custom UIs
- CustomMonster class so modders can create new monsters with new animations
- Have a feature request? Make an issue: (https://github.com/daviscook477/BaseMod/issues)
Take a look here for the hooks that are available (https://github.com/daviscook477/BaseMod/wiki/Hooks)
Take alook here for how to set up a Mod Badge (https://github.com/daviscook477/BaseMod/wiki/Mod-Badges)