Hi ,
I am just doing a quick test of the LibGdx Api integration using the sample code provided on github and the example projects provided with spine exported into the libgdx assets directory
I systematically got this exception when running the sample on any example :
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.SerializationException: Error reading attachment: bb-head, skin: default
at com.esotericsoftware.spine.SkeletonJson.readSkeletonData(SkeletonJson.java:248)
at com.mygdx.game.MyGdxGame.create(MyGdxGame.java:71)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:147)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)
Caused by: java.lang.IllegalArgumentException: Named value not found: vertexCount
at com.badlogic.gdx.utils.JsonValue.getInt(JsonValue.java:681)
at com.esotericsoftware.spine.SkeletonJson.readAttachment(SkeletonJson.java:324)
at com.esotericsoftware.spine.SkeletonJson.readSkeletonData(SkeletonJson.java:245)
... 3 more
What I did :
- Create a plain Android/Desktop libgdx project.
- Add example exported stuff to android asset directory.
- Add spine libgdx github library to project
- replace the android sample by SimpleTest1
- accurate directory locations in SimpleTest1
- run the sample as Desktop
I may have missed something ....
Thanks for any help