Slay the Spire

Slay the Spire

The Wild Card
PoliteHoppip 4 Aug, 2019 @ 12:53pm
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:?]
Last edited by PoliteHoppip; 4 Aug, 2019 @ 12:57pm
< >
Showing 1-2 of 2 comments
Darkglade  [developer] 4 Aug, 2019 @ 9:50pm 
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 18 Sep, 2019 @ 12:35pm 
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
< >
Showing 1-2 of 2 comments
Per page: 1530 50