Slay the Spire

Slay the Spire

6,611 人が評価
BaseMod
5
13
4
5
2
2
   
アワード
お気に入り
お気に入り
お気に入りから削除
Api
ファイルサイズ
投稿日
更新日
7.597 MB
2018年12月28日 13時03分
1月29日 20時16分
92 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
BaseMod

解説
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].
人気スレッド 全て表示 (6)
54
3月15日 20時27分
Bug reports
Felix Hellborn
6
2022年7月7日 3時43分
Crash since v5.42.1 on M1 MacBook Air
Circle Lin
2
1月24日 14時55分
How do you solve this issue? BaseMod
zatchleekh
159 件のコメント
kobe 6月17日 22時35分 
good
五等分的商鞅 4月28日 9時08分 
good
Allen 4月19日 9時49分 
good:sts_merchant:
Muhahahahaz 3月21日 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 3月21日 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 3月21日 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 3月4日 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  [作成者] 1月29日 20時18分 
Should be fixed now. You may need to unsub and resub to force steam to download it immediately
bandit 1月29日 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 1月29日 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)