The JSON changed recently from skinnedmesh
to weightedmesh
. From your error message it looks like you are not using the latest spine-cocos2dx runtime. Are you using an old version of the runtime that comes with cocos2dx? Maybe you have both the latest Spine Runtime files from GitHub and the old version in cocos2dx?
You can look in the SkeletonJson file you have and see it handles weightedmesh
:
https://github.com/EsotericSoftware/spine-runtimes/blob/master/spine-c/src/spine/SkeletonJson.c#L615
But again, be careful not to have multiple copies of the spine-runtimes else your IDE may use the wrong one. cocos2dx has been told not to include the Spine Runtimes multiple times, but they don't seem to care. 🙁
You need to replace the files in:
/JOBS/MATERE/JogosSerios/OXdaQuestao/gameapp/oxdaquestao/frameworks/cocos2d-x/cocos/editor-support/
With the source and include files from these two projects:
https://github.com/EsotericSoftware/spine-runtimes/tree/master/spine-c
https://github.com/EsotericSoftware/spine-runtimes/tree/master/spine-cocos2dx/3
Please note that while we support the C language and cocos2d-x, we don't have official support for cocos2d-x using JavaScript. I'm not sure what the status is for using JS with cocos2d-x. However, if you had it working for Spine v2 I expect it will continue to work with the v3 runtimes with minimal or no changes.