Slay the Spire

Slay the Spire

Leshy
crash
idk if this mod is the cause, but in the middle of my run i entered a shop and it crashed my game, and now when i click continue it crashed the game before it can even show me anything. the only mods im using is rankup, lushy obviously, one hundred relics, and the shop mod but ive never had a problem with any of these mods which makes me confused why this is suddenly happening... this is the crash log so if you spot the issue when you read this please help

Cause:
java.lang.NullPointerException
at leshy.patches.MerchantCreaturePatch$ShopCreatureCards.FourCreatures(MerchantCreaturePatch.java:28)
at com.megacrit.cardcrawl.shop.Merchant.<init>(Merchant.java:122)
at com.megacrit.cardcrawl.shop.Merchant.<init>(Merchant.java:54)
at com.megacrit.cardcrawl.rooms.ShopRoom.onPlayerEntry(ShopRoom.java:42)
at com.megacrit.cardcrawl.dungeons.AbstractDungeon.nextRoomTransition(AbstractDungeon.java:2282)
at com.megacrit.cardcrawl.dungeons.AbstractDungeon.populatePathTaken(AbstractDungeon.java:582)
at com.megacrit.cardcrawl.dungeons.TheBeyond.<init>(TheBeyond.java:78)
at com.megacrit.cardcrawl.core.CardCrawlGame.getDungeon(CardCrawlGame.java:1366)
at com.megacrit.cardcrawl.core.CardCrawlGame.update(CardCrawlGame.java:860)
at com.megacrit.cardcrawl.core.CardCrawlGame.render(CardCrawlGame.java:423)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)
< >
Showing 1-6 of 6 comments
Wensber  [developer] 27 Sep, 2024 @ 4:39pm 
It crashed when it tried to generate a Creature card for the shop. Have you used Leshy with the shop mod before? If not then I would assume that was the issue. If this is inconsistent then it'd be hard for me to fix this.
TheMinotar137 27 Sep, 2024 @ 4:43pm 
its very inconsistant which is why im so confused... yes ive used the shop mod with leshy before, along with a dozen other mods which is why im confused why its happening now that i lowered the amount of mods im using... and to make it clear i started a new run after i lowered the amount of mods i was using... does it say what card specifically?
TheMinotar137 27 Sep, 2024 @ 4:49pm 
one of the relics in one hundred relics allows you to turn all future card rewards to the ironclad cards, that way i could get the double strength card, could that be causing the crash? it worked perfectly in the enemy rewards but that shop was the first shop i got to since i got that relic and then i noticed this in the code which made me think maybe there is a mod conflict between that type of relic and this mod

23:44:30.274 INFO dungeons.AbstractDungeon> Game Seed: -58462891387257089
23:44:30.274 INFO dungeons.AbstractDungeon> Map generation time: 30ms
23:44:30.275 INFO dungeons.AbstractDungeon> Loading into: 1,2
23:44:30.292 INFO audio.MusicMaster> Playing SHOP
23:44:30.304 INFO cards.CardGroup> ERROR: No cards left for type: POWER
23:44:30.305 INFO cards.CardGroup> ERROR: No cards left for type: CREATURE
23:44:30.305 INFO dungeons.AbstractDungeon> ERROR: Could not find Common card of type: CREATURE
23:44:30.305 INFO cards.CardGroup> ERROR: No cards left for type: CREATURE
23:44:30.305 INFO dungeons.AbstractDungeon> ERROR: Could not find Curse card of type: CREATURE
23:44:30.305 INFO dungeons.AbstractDungeon> ERROR: Default in getCardFromPool
23:44:30.305 INFO core.CardCrawlGame> Exception occurred in CardCrawlGame render method!
23:44:30.306 ERROR core.CardCrawlGame> Exception caught
java.lang.NullPointerException: null
at leshy.patches.MerchantCreaturePatch$ShopCreatureCards.FourCreatures(MerchantCreaturePatch.java:28) ~[Leshy.jar:?]
at com.megacrit.cardcrawl.shop.Merchant.<init>(Merchant.java:122) ~[?:?]
at com.megacrit.cardcrawl.shop.Merchant.<init>(Merchant.java:54) ~[?:?]
at com.megacrit.cardcrawl.rooms.ShopRoom.onPlayerEntry(ShopRoom.java:42) ~[desktop-1.0.jar:?]
at com.megacrit.cardcrawl.dungeons.AbstractDungeon.nextRoomTransition(AbstractDungeon.java:2282) ~[?:?]
at com.megacrit.cardcrawl.dungeons.AbstractDungeon.populatePathTaken(AbstractDungeon.java:582) ~[?:?]
at com.megacrit.cardcrawl.dungeons.TheBeyond.<init>(TheBeyond.java:78) ~[desktop-1.0.jar:?]
at com.megacrit.cardcrawl.core.CardCrawlGame.getDungeon(CardCrawlGame.java:1366) ~[?:?]
at com.megacrit.cardcrawl.core.CardCrawlGame.update(CardCrawlGame.java:860) ~[?:?]
at com.megacrit.cardcrawl.core.CardCrawlGame.render(CardCrawlGame.java:423) [?:?]
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225) [?:?]
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126) [?:?]
Controllers: removed manager for application, 0 managers active
23:44:30.308 INFO core.CardCrawlGame> PAUSE()
23:44:30.309 INFO core.CardCrawlGame> Game shutting down...
23:44:30.309 INFO core.CardCrawlGame> Flushing saves to disk...
23:44:30.309 INFO core.CardCrawlGame> Shutting down controller handler...
23:44:30.309 INFO core.CardCrawlGame> Shutting down publisher integrations...
23:44:30.312 INFO core.CardCrawlGame> Flushing logs to disk. Clean shutdown successful.
Wensber  [developer] 27 Sep, 2024 @ 5:53pm 
Oh yeah that is it for sure. I have custom code to populate the shop because the shop usually populates the slots with attacks and skills whereas we want creatures. We can see this line:
23:44:30.305 INFO dungeons.AbstractDungeon> ERROR: Could not find Common card of type: CREATURE
which is because Ironclad doesn't have creatures. This in turn means the shop doesn't have cards to generate.
TheMinotar137 27 Sep, 2024 @ 6:36pm 
danm, that means any mod that changes the card pool in any way is basically un compatable :( also means my run is officially dead and unplayable... that sucks but at last now i know why its happening, thanks
molligru 17 Jun @ 10:23am 
Oof, yeah that unfortunately kills the excitement I had for this mod. Hopefully future updates (if any!) render it more compatible
< >
Showing 1-6 of 6 comments
Per page: 1530 50