Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game crashes when enabled with Colored Map #48

Closed
KongMD-Steam opened this issue Jul 21, 2018 · 1 comment
Closed

Game crashes when enabled with Colored Map #48

KongMD-Steam opened this issue Jul 21, 2018 · 1 comment

Comments

@KongMD-Steam
Copy link

KongMD-Steam commented Jul 21, 2018

The game crashes during startup if RTS is enabled with Colored Map. The Colored Map mod was recently updated. I suspect the fix is to add a null check for AbstractDungeon.player before invoking the hasRelic() method in the ReplayMapSymbolPatch class.

11:52:04.129 INFO helpers.File> Attempting to save file=C:\Program Files (x86)\Steam\steamapps\common\SlayTheSpire\preferences\STSUnlocks

Exception in thread "LWJGL Application" 11:52:04.132 INFO helpers.File> Successfully saved file=C:\Program Files (x86)\Steam\steamapps\common\SlayTheSpire\preferences\STSUnlocks
java.lang.NullPointerException
    at replayTheSpire.patches.ReplayMapSymbolPatch.Postfix(ReplayMapSymbolPatch.java:15)11:52:04.132 INFO helpers.FileSaver> Dequeue: qsize=3 file=preferences\STSUnlocks
11:52:04.133 INFO helpers.File> Attempting to save file=C:\Program Files (x86)\Steam\steamapps\common\SlayTheSpire\preferences\STSUnlocks

    at com.megacrit.cardcrawl.rooms.AbstractRoom.getMapSymbol(AbstractRoom.java:152)
    at coloredmap.ColoredMap.createIcon(ColoredMap.java:117)
    at coloredmap.ColoredMap.receivePostInitialize(ColoredMap.java:47)
    at basemod.BaseMod.publishPostInitialize(BaseMod.java:1920)
    at basemod.patches.com.megacrit.cardcrawl.core.CardCrawlGame.PostInitializeHook.Postfix(PostInitializeHook.java:9)
    at com.megacrit.cardcrawl.core.CardCrawlGame.create(CardCrawlGame.java:320)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:149)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)11:52:04.136 INFO helpers.File> Successfully saved file=C:\Program Files (x86)\Steam\steamapps\common\SlayTheSpire\preferences\STSUnlocks

EDIT: Adding the newly-created wiki page on adding colored rooms to your mod.
https://github.com/timeracers/ColoredMap/wiki/Adding-Colored-Rooms.

@timeracers
Copy link

I have just released a patch that gets around this issue, though my mod will still complain and warn you about when it has to use reflection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants