Slay the Spire

Slay the Spire

Joker
PoliteHoppip 2019 年 8 月 4 日 下午 12:53
Crash on Identity Theft (other classes using this mod's cards)
This mod's cards have crashed my game when used by any class that isn't the Wild Card. With the Snek, at least, the crashes are avoidable (the crash on that was the Michael card). I did however get a crash on The Beaked's Crazy Ritual card.

I could find the crash log for Crazy Rituals' crash:

03:10:13.851 INFO beaked.Beaked> Crazy Rituals playing Identity Theft: Deal 8 damage. Add a random Persona to your hand.
03:10:14.718 INFO basemod.BaseMod> publish on card use: theWildCard:IdentityTheft
03:10:14.718 INFO duelistmod.DuelistMod> Card Used: Identity Theft
03:10:14.723 ERROR core.CardCrawlGame> Exception caught
java.lang.IllegalArgumentException: n must be positive
at com.badlogic.gdx.math.RandomXS128.nextLong(RandomXS128.java:110) ~[desktop-1.0.jar:?]
at com.badlogic.gdx.math.RandomXS128.nextInt(RandomXS128.java:99) ~[desktop-1.0.jar:?]
at com.megacrit.cardcrawl.random.Random.random(Random.java:65) ~[desktop-1.0.jar:?]
at theWildCard.cards.Persona.AbstractPersonaCard.returnTrulyRandomPersona(AbstractPersonaCard.java:159) ~[WildCard.jar:?]
at theWildCard.cards.Attack.Uncommon.IdentityTheft.use(IdentityTheft.java:42) ~[WildCard.jar:?]
at com.megacrit.cardcrawl.characters.AbstractPlayer.useCard(AbstractPlayer.java:1659) ~[?:?]
at com.megacrit.cardcrawl.actions.GameActionManager.getNextAction(GameActionManager.java:299) ~[?:?]
at com.megacrit.cardcrawl.actions.GameActionManager.update(GameActionManager.java:159) ~[?:?]
at com.megacrit.cardcrawl.rooms.AbstractRoom.update(AbstractRoom.java:326) ~[?:?]
at com.megacrit.cardcrawl.dungeons.AbstractDungeon.update(AbstractDungeon.java:2494) ~[?:?]
at com.megacrit.cardcrawl.core.CardCrawlGame.update(CardCrawlGame.java:871) ~[?:?]
at com.megacrit.cardcrawl.core.CardCrawlGame.render(CardCrawlGame.java:422) [?:?]
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225) [?:?]
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126) [desktop-1.0.jar:?]
最后由 PoliteHoppip 编辑于; 2019 年 8 月 4 日 下午 12:57
< >
正在显示第 1 - 2 条,共 2 条留言
Darkglade  [开发者] 2019 年 8 月 4 日 下午 9:50 
Thanks for pointing this out! I've pinpointed the issue and a fix is on the way. If you ever get another crash, please send over the error log like you did here - it makes things a LOT easier.
PoliteHoppip 2019 年 9 月 18 日 下午 12:35 
19:30:12.413 INFO basemod.BaseMod> publish on card use: theWildCard:Michael
19:30:12.414 INFO duelistmod.DuelistMod> Card Used: Michael+
19:30:12.526 INFO basemod.BaseMod> publish on post power apply
19:30:12.583 ERROR core.CardCrawlGame> Exception caught
java.lang.NullPointerException: null
at com.megacrit.cardcrawl.vfx.combat.FlashPowerEffect.<init>(FlashPowerEffect.java:21) ~[desktop-1.0.jar:?]
at com.megacrit.cardcrawl.powers.AbstractPower.flash(AbstractPower.java:453) ~[?:?]
at com.megacrit.cardcrawl.actions.common.ApplyPowerAction.update(ApplyPowerAction.java:269) ~[?:?]
at com.megacrit.cardcrawl.actions.GameActionManager.update(GameActionManager.java:155) ~[?:?]
at com.megacrit.cardcrawl.rooms.AbstractRoom.update(AbstractRoom.java:326) ~[?:?]
at com.megacrit.cardcrawl.dungeons.AbstractDungeon.update(AbstractDungeon.java:2494) ~[?:?]
at com.megacrit.cardcrawl.core.CardCrawlGame.update(CardCrawlGame.java:871) ~[?:?]
at com.megacrit.cardcrawl.core.CardCrawlGame.render(CardCrawlGame.java:422) [?:?]
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225) [?:?]
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126) [desktop-1.0.jar:?]


At using Michael, again, on the Snecko mod
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50