Slay the Spire

Slay the Spire

6,611 voti
BaseMod
5
13
4
5
2
2
   
Premio
Aggiungi ai preferiti
Preferito
Rimuovi dai preferiti
Api
Dimensioni del file
Pubblicato in data
Aggiornato in data
7.597 MB
28 dic 2018, ore 13:03
29 gen, ore 20:16
92 note di rilascio ( visualizza )

Sottoscrivi per scaricare
BaseMod

Descrizione
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].
Discussioni più popolari Visualizza tutte (6)
54
15 mar, ore 20:27
Bug reports
Felix Hellborn
6
7 lug 2022, ore 3:43
Crash since v5.42.1 on M1 MacBook Air
Circle Lin
2
24 gen, ore 14:55
How do you solve this issue? BaseMod
zatchleekh
159 commenti
kobe 17 giu, ore 22:35 
good
五等分的商鞅 28 apr, ore 9:08 
good
Allen 19 apr, ore 9:49 
good:sts_merchant:
Muhahahahaz 21 mar, ore 10:02 
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, ore 9:56 
(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, ore 9:52 
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, ore 13:04 
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  [autore] 29 gen, ore 20:18 
Should be fixed now. You may need to unsub and resub to force steam to download it immediately
bandit 29 gen, ore 19:44 
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 gen, ore 19:38 
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)