I'm using cocos2dx 2.2.1 in iMac.
I building sample with spine example resource from this link (https://github.com/EsotericSoftware/spi ... one-retina )
CCSkeletonAnimation* skeletonNode = CCSkeletonAnimation::createWithFile("goblins-ffd.json", "goblins-ffd.atlas", 1.5f);
skeletonNode->setAnimation(0, "walk", true);
skeletonNode->setSkin("goblin");
but when i run, i get this error
Cocos2d: Assert failed: Unknown attachment type: skinnedmesh
Assertion failed: (skeletonData), function CCSkeleton, file /Users/rentracks_mac/Desktop/Quoc/Tools/cocos2dx/extensions/spine/CCSkeleton.cpp, line 104.
When i debug
the terminal stop at this function
CCSkeleton::CCSkeleton (const char* skeletonDataFile, const char* atlasFile, float scale) {
initialize();
atlas = Atlas_readAtlasFile(atlasFile);
CCAssert(atlas, "Error reading atlas file.");
SkeletonJson* json = SkeletonJson_create(atlas);
json->scale = scale;
SkeletonData* skeletonData = SkeletonJson_readSkeletonDataFile(json, skeletonDataFile);
CCAssert(skeletonData, json->error ? json->error : "Error reading skeleton data file.");
SkeletonJson_dispose(json);
setSkeletonData(skeletonData, true);
}
I try this setup tutorial at
https://github.com/EsotericSoftware/spi ... cocos2dx/2
and i find that we need cocos2d-x version 2.2.3
When i try to set up with new Cocos2d-x 2.2.3
i can not find project Xcode example at "spine-cocos2dx/2/example" directory.
Can anybody show me how to setup coco2dx v2 with spine ?
Very urgent 🙁
Thanks you very much