Coder Social home page Coder Social logo

sts-exporter's People

Contributors

johnnybazooka89 avatar twanvl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

alchyr avolny kojim

sts-exporter's Issues

Names with a colon break the export (on windows)

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 relic doesn't have a flavor text

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:
20190602205531_1

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.

Broken Creatures

The creatures export seems to have exported as "MonsterNamepng" instead of "MonsterName.png" so all the files are messed up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.