cocos2d-x: v4
spine-runtimes: v3.8
error message:
A/libc: spine-runtimes/spine-cpp/spine-cpp/src/spine/Skin.cpp:96: spine::Skin::Skin(const spine::String &): assertion "_name.length() > 0" failed
here is my code :
auto loading = SkeletonAnimation::createWithJsonFile("HD/Spine/misc/loading.json", "HD/Spine/misc/loading.atlas",0.6f);
loading->setPosition(cocos2d::Vec2(origin.x + visibleSize.width / 2, origin.y + visibleSize.height / 2));
loading->setAnimation(0, "loading", true);
addChild(loading);
when i try the same code with different files, its fine, i try it with goblin.json and goblin.atlas from
https://github.com/EsotericSoftware/spine-runtimes/tree/3.8/spine-cocos2dx/example/Resources/common
i don't know what is the cause of the problem, please help me to find solution this problem.
maybe there is a problem with my json or atlas file, i uploaded my file json, atlas, and image.