Slay the Spire

Slay the Spire

6,611 个评价
BaseMod
5
13
4
5
2
2
   
奖励
收藏
已收藏
取消收藏
Api
文件大小
发表于
更新日期
7.597 MB
2018 年 12 月 28 日 下午 1:03
1 月 29 日 下午 8:16
92 项改动说明 ( 查看 )

订阅以下载
BaseMod

描述
BaseMod(基础Mod)是一个用于修改Slay the Spire的开源API。 它在ModTheSpire的低级API之上提供了一个额外的层,使mod的创建更容易。

BaseMod提供了以下内容:
开发控制台
添加新角色
添加新卡
添加新遗物
添加新药水
添加新事件
添加新的怪物
许多事件的挂钩(例如,当最大hp更改时)

如果您有兴趣为Slay the Spire创建mod,请查看BaseMod wiki[github.com]

如果您想为BaseMod背后的代码做出贡献,请访问该项目的GItHub存储库[github.com]
热门讨论 查看全部(6)
54
3 月 15 日 下午 8: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 日 下午 2:55
How do you solve this issue? BaseMod
zatchleekh
159 条留言
kobe 6 月 17 日 下午 10: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 日 下午 1: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 日 下午 8:18 
Should be fixed now. You may need to unsub and resub to force steam to download it immediately
bandit 1 月 29 日 下午 7: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 日 下午 7: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)