【已解决】求指教,加载场景json的时候异常了

在工程的hellocpp里面尝试去加载场景编辑器生成的json,
是在bool HelloWorld::init() 这个里面的关闭图标之后加了如下代码,场景编辑器生成的资源都加进来了,

CCNode *pNode = CCJsonReader::sharedJsonReader()->createNodeWithJsonFile(“NewProject.json”);
if (pNode == NULL)
{
return NULL;
}
CCComRender pbuger= (CCComRender)pNode->getChildByTag(1)->getComponent(“CCArmature”);
CCArmature *pBugerRun =(CCArmature *)pbuger->getRender();
pBugerRun->getAnimation()->playByIndex(0);

,运行的时候跑到第一行就报错了b2PolygonShape.cpp:137
edge.LengthSquared()>1.192092896e-07F*

然后我就把我的json换成了工程自带的FishJoy2.json和blowFish,跑到第一行依然报错,
不过是报ccnode.cpp:619 expression:child !=0 。怎么在测试工程里是没有问题的呢?

需要做什么初始的动作吗?还是其他什么没考虑到?求解!!

联系我一下

先看看 http://bbs.cocostudio.org/forum.php?mod=viewthread&tid=6497&extra=page%3D1 如果还有问题 加我QQ 553489226

— Begin quote from ____

%url%chengstory 发表于 2013-7-31 10:06
先看看 http://bbs.cocostudio.org/forum.php?mod=viewthread&tid=6497&extra=page%3D1 如果还有问题 加我Q …

— End quote

加你了。 现在在hellocpp里加载捕鱼的场景可以了,之前资源没加全。 不过用自己的场景createNodeWithJsonFile的时候还是报错了。不知道哪里越界了。之前以为是因为地图太大,删掉之后加了张ui图片,还是出错。

联系我一下

先看看 http://bbs.cocostudio.org/forum.php?mod=viewthread&tid=6497&extra=page%3D1 如果还有问题 加我QQ 553489226

自己做一个,别使用工程自带的