RafaSKB

Hello
I'm having an issue loading a skeleton model into the game because of a NullPointerException:
Caused by: java.lang.NullPointerException: Cannot invoke "com.badlogic.gdx.utils.JsonValue.asFloat()" because "curve" is null
at com.esotericsoftware.spine.SkeletonJson.readCurve(SkeletonJson.java:1032)
at com.esotericsoftware.spine.SkeletonJson.readAnimation(SkeletonJson.java:848)
at com.esotericsoftware.spine.SkeletonJson.readSkeletonData(SkeletonJson.java:347)
... 22 more
I'm using the libGDX runtimes version 4.0.18.1, and got the same error on 4.0.18.2-SNAPSHOT.
The skeleton was exported on version 4.0.22 (I just learned about keeping Editor and Runtime versions synchronized while searching for similar issues here).

Assuming the difference in versions is indeed the issue (lesson learned), I have two questions:
1. After reverting the editor from 4.0.22 to 4.0.18, how do I open the .spine file there to export it again? The editor won't open the file due to it being edited in a newer version.
2. Where can I find the 4.0.22 runtimes for the libGDX backend?

Or perhaps that's a completely unrelated issue. I can send the project files if necessary.
Thanks! :grinteeth:
RafaSKB
  • 記事: 16

Harald

We are sorry about the troubles! There has recently been a bugfix regarding curve export in the Spine Editor, could you please try upgrading to Spine 4.0.25 and re-export your assets?
アバター
Harald

Harri
  • 記事: 3353

RafaSKB

That fixed it, thank you! :D
RafaSKB
  • 記事: 16

Harald

Glad to hear, thanks for letting us know!
アバター
Harald

Harri
  • 記事: 3353


Return to Runtimes