jayn

I recently updated my Spine project to 4.0.01 and spine-libgdx is 3.8.99.1. I'm getting this error:
com.badlogic.gdx.utils.SerializationException: Error reading animation: HURT/1

I've tried removing all the keys in the said animations but it just keeps going to the next animation with the same error.
jayn
  • Postovi: 56

Mario

You have to use Spine Runtimes of the same major.minor version, i.e. 4.0.00-SNAPSHOT. I'll release spine-libgdx 4.0.00.1 to Maven Central today. You can already use the snapshot dependency.
Avatar
Mario

Mario
  • Postovi: 2965

Nate

Avatar
Nate

Nate
  • Postovi: 11779

jayn

So I changed to this: "com.esotericsoftware.spine:spine-libgdx:4.0.0.1-SNAPSHOT" but I still get the same error, this time it points to a different animation.
jayn
  • Postovi: 56

Nate

Did you export your skeletons using 4.0? Can you please post or email your JSON or binary export? contact@esotericsoftware.com
Avatar
Nate

Nate
  • Postovi: 11779

jayn

I emailed it.
jayn
  • Postovi: 56

Nate

Sorry, I'm away from computers for the weekend. I will take a look when I'm back on Tuesday. I do see the file you sent was exported with 4.0, so it should work with the latest runtimes from the 4.0 branch.
Avatar
Nate

Nate
  • Postovi: 11779

jayn

All good. I'm using 3.8.99 for now I will give v4 another try at a later time.
jayn
  • Postovi: 56

Mario

I've tried your skeleton with the latest SkeletonViewer from our spine-runtimes repository. That loaded and animated as intended.

Screenshot 2021-07-05 at 12.40.40.png


I've also released spine-libgdx version 4.0.2.1 to Maven Central. It should be available 30 minutes after this post was made. Please update your Gradle/Maven files accordingly and try again.
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
Avatar
Mario

Mario
  • Postovi: 2965


Natrag na Runtimes