twanvl / sts-exporter Goto Github PK
View Code? Open in Web Editor NEWCard image export tool for Slay the Spire
License: MIT License
Card image export tool for Slay the Spire
License: MIT License
As reported via discord by JohnnyDevo:
so here's an interesting thing that has popped up. I'm using "StS Exporter" to get images for my stuff, but I think it made a booboo. All the images related to my mod's relics have been named based on the ID, which is "mysticmod:(whatever)". Apparently, file explorer really doesn't like that. Because I cannot see any of the files with those names, or manipulate them, but I know they're there because html can access those files. Instead, file explorer is displaying a 0 kb file named "mysticmod"
Spire Exporter stops working, when a relic doesn't have a flavor text, for example: Letters for her from Halation mod.
java.lang.NullPointerException: null
at com.badlogic.gdx.graphics.g2d.GlyphLayout.setText(GlyphLayout.java:69) ~[desktop-1.0.jar:?]
at com.megacrit.cardcrawl.helpers.FontHelper.renderWrappedText(FontHelper.java:843) ~[?:?]
at sts_exporter.RelicExportData.lambda$exportPopupImageToFile$1(RelicExportData.java:172) ~[StSExporter.jar:?]
at sts_exporter.ExportHelper.renderSpriteBatchToPixmap(ExportHelper.java:269) ~[StSExporter.jar:?]
at sts_exporter.ExportHelper.renderSpriteBatchToPixmap(ExportHelper.java:249) ~[StSExporter.jar:?]
at sts_exporter.RelicExportData.exportPopupImageToFile(RelicExportData.java:150) ~[StSExporter.jar:?]
at sts_exporter.RelicExportData.exportImages(RelicExportData.java:64) ~[StSExporter.jar:?]
at sts_exporter.ModExportData.exportImages(ModExportData.java:46) ~[StSExporter.jar:?]
at sts_exporter.ExportHelper.exportAllImages(ExportHelper.java:100) ~[StSExporter.jar:?]
at sts_exporter.ExportHelper.exportAll(ExportHelper.java:93) ~[StSExporter.jar:?]
at sts_exporter.Exporter.exportAll(Exporter.java:101) ~[StSExporter.jar:?]
at sts_exporter.Exporter.lambda$receivePostInitialize$6(Exporter.java:69) ~[StSExporter.jar:?]
at basemod.ModButton.onClick(ModButton.java:71) [BaseMod.jar:?]
at basemod.ModButton.update(ModButton.java:66) [BaseMod.jar:?]
at basemod.ModPanel.update(ModPanel.java:125) [BaseMod.jar:?]
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_144]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144]
at com.evacipated.cardcrawl.modthespire.patches.modsscreen.ModsScreen.modPanel_update(ModsScreen.java:399) [?:?]
at com.evacipated.cardcrawl.modthespire.patches.modsscreen.ModsScreen.update(ModsScreen.java:142) [?:?]
at com.evacipated.cardcrawl.modthespire.patches.modsscreen.ModsScreenUpdateRender$Update.Postfix(ModsScreenUpdateRender.java:18) [?:?]
at com.megacrit.cardcrawl.screens.mainMenu.MainMenuScreen.update(MainMenuScreen.java:283) [?:?]
at com.megacrit.cardcrawl.core.CardCrawlGame.update(CardCrawlGame.java:791) [?:?]
at com.megacrit.cardcrawl.core.CardCrawlGame.render(CardCrawlGame.java:429) [?:?]
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:?]
This is how this relic looks like in the normal game. As you can see, relics without flavor texts still work in Slay the Spire:
https://github.com/ReinaSHSL/Halation/blob/master/src/main/resources/localization/HalationRelicStrings.json#L366
^ as you can see in the code there is no flavor text for this relic.
It would be good, if you at least add try catch when exporting the images, so Spire Exporter doesn't stop working and it still exports all other things. If it can be fixed in the way, so the image is still exported and it looks like in the base game, it would be even better. At the moment this relic stops the exporter completely, which is not desirable.
The creatures export seems to have exported as "MonsterNamepng" instead of "MonsterName.png" so all the files are messed up.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.