daviscook477 / kparser

Conversion tool between Klei animation files and Spriter projects
MIT License
23 stars 6 forks source link

Support for non animation klei files #1

Open Z-Doctor opened 5 years ago

Z-Doctor commented 5 years ago

For when they use it for non-animated sprites/icons. The current program works if you pass in a file for it to try to use, but it would be nice to be able to not need to specify an animal if there is none.

daviscook477 commented 5 years ago

Can you point me to an example of where they are just using a build file and image file without an animation file for reference?

Z-Doctor commented 5 years ago

I only found one so far from ONI. It's the Hats Icon. I attached the files hat_icons

hat_icons_build.txt

daviscook477 commented 5 years ago

What exactly would be the purpose of trying to convert this to scml if it isn't an animation? I'm not entirely sure I understand the request.

Z-Doctor commented 5 years ago

To extract the sprites

daviscook477 commented 5 years ago

It's definitely possible to do that but I don't really see the point. You already have the png file. Why would you want to have a program split it up into individual sprites?

Z-Doctor commented 5 years ago

I'm using them to practice making a website about the game. Other people might want them for other reasons, like wanting to edit the pngs individually. Your program already supports extracting them, what I'm suggesting is adding an option to just do that, make it skip the second step.

daviscook477 commented 5 years ago

Ok cool I understand. I'll add that in if I update this tool. I'm currently waiting to see if klei is going to provide modding support for custom assets (like they originally said they were going to) before I invest the time in that.

xojnowns commented 5 years ago

You can do this already by just using a random anim file and renaming it hat_icons_anim.txt I made an example using the hats file you gave: hat_icons_forcodex.zip