Slay the Spire

Slay the Spire

6,482 ratings
BaseMod
5
12
4
5
2
2
   
Award
Favorite
Favorited
Unfavorite
Api
File Size
Posted
Updated
7.597 MB
28 Dec, 2018 @ 1:03pm
29 Jan @ 8:16pm
92 Change Notes ( view )

Subscribe to download
BaseMod

Description
BaseMod is an open-source API for modding Slay the Spire. It provides an extra layer on top of ModTheSpire's low-level API to make the creation of mods easier.

BaseMod provides such things as:
  • A dev console
  • Adding new characters
  • Adding new cards
  • Adding new relics
  • Adding new potions
  • Adding new events
  • Adding new monsters
  • Hooks for many events (e.g. when max hp changes)

If you're interested in creating mods for Slay the Spire, check out the BaseMod wiki[github.com].

If you'd like to contribute to the code behind BaseMod, visit the project's GItHub repository[github.com].
Popular Discussions View All (6)
54
15 Mar @ 8:27pm
Bug reports
Felix Hellborn
6
7 Jul, 2022 @ 3:43am
Crash since v5.42.1 on M1 MacBook Air
Circle Lin
2
24 Jan @ 2:55pm
How do you solve this issue? BaseMod
zatchleekh
158 Comments
五等分的商鞅 28 Apr @ 9:08am 
good
Allen 19 Apr @ 9:49am 
good:sts_merchant:
Muhahahahaz 21 Mar @ 10:02am 
The below was specifically for tabbing right. If I tab left from the first tab, then it just blindly tries to access index “-1” for some reason (in which case, the exception doesn’t mention the size of the tab array at all, since -1 is always invalid)
Muhahahahaz 21 Mar @ 9:56am 
(I saved a screenshot, if you need more lines of the stack trace. I was limited by Steam’s character limit… Anyway, it seems like the list of tabs has size zero for some reason?)
Muhahahahaz 21 Mar @ 9:52am 
I’m getting a crash in the Compendium for some reason…

If I open the Card Library, and use RB on my controller to tab to the right, the game will crash if I try to tab past the right end of the tab bar (and same thing if I try to tab past the left end), but the base game doesn’t do this — It just loops around

I tried disabling all other mods, but it still happens, even with “BaseMod” as the only mod running. Here’s the error screen:

Cause :
java. Lang. Index@utofBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangecheck(ArrayList. java: 653)
at java.util.ArrayList.get(ArrayList.java:429)
at basemod.patches.com.megacrit.cardcrawl.screens.mainMenu.CoLorTabBar.ColorTabBarFix$Fields.getModTab(
CoLorTabBarFix. java: 53)
at basemod.patches.com.megacrit.cardcrawl.screens.compendium.CardLibraryScreen.EverythingFix$DidChangeT
ab. Insert(EverythingFix.java:130)
at com.megacrit.cardcrawl.screens.compendium.cardLibraryScreen.didChangeTab(CardLibraryScreen.java: 510)
Nilly00 4 Mar @ 1:04pm 
I just saw that all the creators of the mods I have installed were listed in the credits. Is that an effect of your mod? Because if so: Based af.
Bug Kiooeht  [author] 29 Jan @ 8:18pm 
Should be fixed now. You may need to unsub and resub to force steam to download it immediately
bandit 29 Jan @ 7:44pm 
I'm getting the right click crash as well. So far it happens with multiple modlists that use basemod. I can't right-click at all, it always causes a crash.

Cause:
java.lang.NullPointerException
at basemod.patches.whatmod.CardView.Postfix(CardView.java:34)
at com.megacrit.cardcrawl.screens.SingleCardViewPopup.renderTips(SingleCardViewPopup.java:1793)
at com.megacrit.cardcrawl.screens.SingleCardViewPopup.render(SingleCardViewPopup.java:362)
at com.megacrit.cardcrawl.core.CardCrawlGame.render(CardCrawlGame.java:455)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126).
BigBlindGuy 29 Jan @ 7:38pm 
Hi there, after today's update it seems like anytime I right click on a card to view upgrade it will crash.

Looks like it is impacted from commit: 748a4fedbd2fd45687bc977c9dacce11f4f202c5 in whatmod card view.

Are others having this or potentially something from other mods I am using causing the problem.

Stack trace:

java.lang.NullPointerException
at basemod.patches.whatmod.CardView.Postfix(CardView.java:34)
at com.megacrit.cardcrawl.screens.SingleCardViewPopup.renderTips(SingleCardViewPopup.java:1793)
at com.megacrit.cardcrawl.screens.SingleCardViewPopup.render(SingleCardViewPopup.java:362)
at com.megacrit.cardcrawl.core.CardCrawlGame.render(CardCrawlGame.java:455)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)
泡泡茶壶 16 Jan @ 10:18pm 
Thank you!