Malhavok / Spriter2Unity

Tool for converting SCML files into Unity prefab and anim
12 stars 27 forks source link

What happen to my animation? #3

Closed KeithG27 closed 10 years ago

KeithG27 commented 10 years ago

Hello,

I've been working on a project for a little over 3 months and encountered a few problems. One, my animation does not convert properly when I use the Spriter2Unity tool. For some reason, the conversion process works properly but the animation cuts out prematurely, when I run it in Unity. The second problem I have is when I convert a .scml file that has multiple animations, the S2U produces an error..."Parentless nodes" or something along those line. My question is, how can I ensure that my entire animations is converted properly when I use the S2U tool? If anyone know how to use the S2U tool with a multi-animated .scml, please tell me how, it would be much appreciated. Overall, the S2U tool is the best solution for me and I see the potential, beyond its alpha form, keep it up. Unfortunately, I do not have video showing the shorten animation but I know it was suppose to have more frames like my Spriter project contains.Thanks in advance.

*S2U - (Spriter2Unity)

Malhavok commented 10 years ago

i'll need some more info for that case

would you be so kind and paste me the whole error log from the tool, please? also, a simplest scml generating the problem would be nice as i'd be able to trace it exactly inside the code.

the point is that i've exported, without errors, platformer pack where there is like 30 animations :/ that's why i'd be great if i could get my hands on a problematic scml (any kind of sprites attached will do, even 2x2 pixels made with paint are fine as long as there is an export problem)

KeithG27 commented 10 years ago

Hello Malhavok,

I am unable to attach the .png of the entire error that occurs within Spriter2Unity. It could definitely be user error with that entire process. I'm trying to find a way to send you my entire .scml file which is within a folder that has all the .jpg that I used in constructing my character in Spriter and my error log form S2U. Do you have an email that I can send it to because this forum is not allowing me to drag and drop anything, I apologize in advance for the hassle.

Thanks.

Malhavok commented 10 years ago

malhavok (at) wow (dot) com would be the mail to send the stuff like that

other than that, you could just use some public site or something like dropbox to just post a public link to the problematic content

also, if there is any user problem involved this means that the tutorials aren't enough and should be updated, so worry not!

Malhavok commented 10 years ago

i got yer files

everything looks fine on your side, it also fails on my side to generate everything properly. i'm looking into it.

it seems that no project that i've exported so far used the things that you're using! this means that S2U will have a better coverage of functionality after this fix <3

KeithG27 commented 10 years ago

That's good to hear. Thanks for such a innovative tool that shortens the entire process of importing your Spriter work to Unity. I'll be waiting on the update. Thanks again.

Malhavok commented 10 years ago

ok, solution have been made

1) animations were so short because they last ~22ms. in Spriter, the "time" on the bottom of the screen is in milliseconds. you can either set maximum time and tick "stretch keys" to have the animation last longer or set animation speed in Unity (e.g.: via animation controller) 2) the error you've encountered meant that there is a bone that have no children. that kinds of bones are giving nothing, as there is no sprite or other bones attached to them, so they don't contribute to anything visible. as this shouldn't be a fatal error i've just changed it to a warning pointing the exact name of the element 3) added some more output so it's visible on which entity/animation the program is working 4) there was no support for "non-looped" animations. whole code was prepared for that but parsing from scml was missing. fixed

i've checked both your animation and some old animations and everything seems to work fine now.

remember when updating to the newest version, that you have to copy content of UnityAssets directory into the project Assets directory, as the system for animation was changed significantly.

check whether everything works fine on your side, please

KeithG27 commented 10 years ago

I really appreciate your assistance. That was quick...... I'm at work today and soon as I get off, I'm going straight to the my project to provide you feedback. I have one question, is there a new download that's out for your tool due to these corrections? Again,thank you for all your help.

Malhavok commented 10 years ago

as it's still in early version i'm not doing actual releases and just modify the master branch. so you can either pull latest changes via git or github application or just download zip from the main page. if you look closely on the main page, you can see when the last commit was made and thus determine whether or not update your version. when this project matures enough (that is, when it supports most stuff from spriter b6 and there will be no bug reports for some extended period of time) i'll think about tagging it into releases.

KeithG27 commented 10 years ago

Ok. I can't wait 'till the b6 version is released but this release is more than enough for now. Thanks again. I'll keep you up to date with the results.

KeithG27 commented 10 years ago

Hello Malhavok,

I ,meant to get back with you yesterday, but everything is working great. I appreciate the new setup where the build log states what animations are involved within the .scml file and also the warning log for missing bones/parenting. I really appreciate your help and quick work. I'll be supporting this project through every stage that you release. Keep it up!

Thanks.

Malhavok commented 10 years ago

I assume then that the problem is solved and close this ticket

Thanks for the help with bug-hunting!