Skip to content

Slay the Spire mod which provides a modding API and a dev console

License

Notifications You must be signed in to change notification settings

Skrelpoid/BaseMod

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BaseMod

BaseMod provides a number of hooks and a console.

Currently supported version of Slay The Spire: [EARLY_ACCESS_023] (non beta)

Developer Console

Requirements

General Use

Development

Building

  1. (If you haven't already) mvn install ModTheSpire Altenatively, modify pom.xml to point to a local copy of the JAR.
  2. Copy desktop-1.0.jar from your Slay the Spire folder into ../_lib relative to the repo.
  3. Decompile desktop-1.0.jar with java -jar "cfr_0_124.jar" --comments false --showversion false --caseinsensitivefs true --outputdir "decompiled" --jarfilter com.megacrit.cardcrawl.* "desktop-1.0.jar"
  4. Run mvn package

Installation

  1. 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.

Wiki

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!

Console

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!

Known Issues

  • If you use the console to fight an enemy or spawn an event 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 :)

Contributors

  • 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
  • robojumper - Bug fixes

Roadmap

  • 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)

For Modders

Hooks

Take a look here for the hooks that are available (https://github.com/daviscook477/BaseMod/wiki/Hooks)

Mod Badges

Take alook here for how to set up a Mod Badge (https://github.com/daviscook477/BaseMod/wiki/Mod-Badges)

About

Slay the Spire mod which provides a modding API and a dev console

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%