最新版的cocosStudio是不是不兼容最新的Cocos2d-x?

使用环境:Win7 cocosStudio最新版(1.1) Cocos2d-x最新版(2.21)Visual Studio 2013

将CocosStudio里面的DEMO场景导出到Cocos2d-x
打开并修改sample/testCpp/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.cpp

CCNode *pNode = SceneReader::sharedSceneReader()->createNodeWithSceneFile(“FightScene/FightScene.json”);//原来是"scenetest/FishJoy2.json"

然后启动,打开Extensions,点击CocoStudioScene

这样会中断 :*child是null

void CCNode::addChild(CCNode *child)
{
CCAssert( child != NULL, “Argument must be non-nil”);
this->addChild(child, child->m_nZOrder, child->m_nTag);
}

中断堆栈树:

libcocos2d.dll!cocos2d::CCNode::addChild(cocos2d::CCNode * child) 行 628 C++
TestCpp.exe!cocos2d::extension::CCComRender::onEnter() 行 51 C++
libcocos2d.dll!cocos2d::CCComponentContainer::add(cocos2d::CCComponent * pCom) 行 75 C++
libcocos2d.dll!cocos2d::CCNode::addComponent(cocos2d::CCComponent * pComponent) 行 1295 C++
TestCpp.exe!cocos2d::extension::SceneReader::createObject(cs::CSJsonDictionary * inputFiles, cocos2d::CCNode * parenet) 行 150 C++
TestCpp.exe!cocos2d::extension::SceneReader::createObject(cs::CSJsonDictionary * inputFiles, cocos2d::CCNode * parenet) 行 351 C++
TestCpp.exe!cocos2d::extension::SceneReader::createNodeWithSceneFile(const char * pszFileName) 行 57 C++
TestCpp.exe!SceneEditorTestLayer::createGameScene() 行 64 C++
TestCpp.exe!SceneEditorTestLayer::init() 行 50 C++
TestCpp.exe!SceneEditorTestLayer::create() 行 23 C++
TestCpp.exe!SceneEditorTestLayer::scene() 行 31 C++
TestCpp.exe!runSceneEditorTestLayer() 行 100 C++
TestCpp.exe!ExtensionsMainLayer::menuCallback(cocos2d::CCObject * pSender) 行 176 C++
libcocos2d.dll!cocos2d::CCMenuItem::activate() 行 114 C++
libcocos2d.dll!cocos2d::CCMenuItemLabel::activate() 行 233 C++
libcocos2d.dll!cocos2d::CCMenu::ccTouchEnded(cocos2d::CCTouch * touch, cocos2d::CCEvent * event) 行 260 C++
libcocos2d.dll!cocos2d::CCTouchDispatcher::touches(cocos2d::CCSet * pTouches, cocos2d::CCEvent * pEvent, unsigned int uIndex) 行 377 C++
libcocos2d.dll!cocos2d::CCTouchDispatcher::touchesEnded(cocos2d::CCSet * touches, cocos2d::CCEvent * pEvent) 行 509 C++
libcocos2d.dll!cocos2d::CCEGLViewProtocol::handleTouchesEnd(int num, int * ids, float * xs, float * ys) 行 334 C++
libcocos2d.dll!cocos2d::CCEGLView::WindowProc(unsigned int message, unsigned int wParam, long lParam) 行 391 C++
libcocos2d.dll!cocos2d::WindowProc(HWND_ * hWnd, unsigned int uMsg, unsigned int wParam, long lParam) 行 171 C++
外部代码]
libcocos2d.dll!cocos2d::CCApplication::run() 行 86 C++
TestCpp.exe!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpCmdLine, int nCmdShow) 行 20 C++
外部代码]

我做过的步骤:
1、自己找了一张小图导入到scene编辑器里面并导出,添加到项目下的Resource物理目录下
2、换一台电脑,使用cs直接导出另一个DEMO的资源并使用

都不行,是不是我用的CocosStudio版本和c-x不兼容?

召唤大牛,@hanrea

为什么我会说CocosStudio版本和c-x不兼容 因为文档提供的使用范例是:
CCScene * newscene = CCScene::create();
CCNode*pNode=CCJsonReader::sharedJsonReader()->createNodeWithJsonFile(“SceneEditorTest/SceneEditorTest.json”);

文档使用的是CCJsonReader而最新的是SceneReader,而又有资料说是CCSceneReader。
到底什么版本用什么的,没有文档说明,真的好难懂。

忘记说了,可能是我犯了什么低级错误,请各位大牛指出来。

尊敬的用户您好:
您出现这个问题是因为,你没有添加json文件搜索路径, 这些修改:
在 bool AppDelegate::applicationDidFinishLaunching() 中添加

                   CCFileUtils* pFileUtils = CCFileUtils::sharedFileUtils();
                   std::vector<std::string> searchPaths;
               searchPaths.push_back(\\\"FightScene\\\");
               pFileUtils->setSearchPaths(searchPaths);

                  再有一点,就是我们的文档更新的还不够,导致你出现的问题,不好意思,  加下我QQ(开水)  553489226 吧,有什么问题直接找我。

                  感谢您的使用。

http://www.aibang.com/show/1819692875-1268700068/product/11157363.html
http://www.aibang.com/show/1819692875-1268700068/product/11157169.html
http://www.aibang.com/article/1819692875-1268700068/product/11157041.html
http://www.aibang.com/show/1819692875-1268700068/product/11156885.html
http://www.aibang.com/show/1819692875-1268700068/product/11156795.html
http://www.aibang.com/show/1819692875-1268700068/product/11156679.html
http://www.aibang.com/show/1819692875-1268700068/product/11156551.html
http://www.aibang.com/show/1819692875-1268700068/product/11156437.html
http://www.aibang.com/show/1819692875-1268700068/product/11156333.html
http://www.aibang.com/show/1819692875-1268700068/product/11156233.html
http://event.weibo.com/9397680
http://event.weibo.com/9398682
http://event.weibo.com/9399386
http://event.weibo.com/9417752
http://event.weibo.com/9453226
http://event.weibo.com/9454034
http://event.weibo.com/9454610
http://event.weibo.com/9455152
http://event.weibo.com/9455648
http://event.weibo.com/9456216
http://event.weibo.com/9456768
http://event.weibo.com/9457352
http://kan.weibo.com/con/3660070836389505?_from=image
http://kan.weibo.com/con/3660071662667483?_from=image
http://kan.weibo.com/con/3660072363116358?_from=image
http://kan.weibo.com/con/3660073612636750?_from=image
http://kan.weibo.com/con/3660074472469147?_from=image
http://kan.weibo.com/con/3660075370432708?_from=image
http://kan.weibo.com/con/3660076729004994?_from=image
http://kan.weibo.com/con/3660084811429505?_from=image
http://kan.weibo.com/con/3660087873271636?_from=image
http://kan.weibo.com/con/3660088825761057?_from=image
http://t.163.com/event/info/eventId/-742206485797980175
http://t.163.com/event/info/eventId/-2736369877769361677
http://t.163.com/event/info/eventId/5981108747967235002
http://t.163.com/event/info/eventId/1139009574904021265
http://t.163.com/event/info/eventId/8580024877642680199
http://t.163.com/event/info/eventId/483936910880870155
http://t.163.com/event/info/eventId/-415103008196678001
http://t.163.com/event/info/eventId/-4362359616249075473
http://t.163.com/event/info/eventId/4712689499819534091
http://t.163.com/event/info/eventId/-5954696961816133706
http://t.163.com/event/info/eventId/-5625578665187898788
http://t.163.com/event/info/eventId/4217195785641189144
http://t.163.com/event/info/eventId/-113056726631465722
http://t.163.com/event/info/eventId/-947885811055235814
http://t.163.com/event/info/eventId/4414367727767179757
http://t.163.com/event/info/eventId/860518052015306250
http://t.163.com/event/info/eventId/1552522829606448076
http://t.163.com/event/info/eventId/5611333539212827640
http://t.163.com/event/info/eventId/2324133547139676608
http://t.163.com/event/info/eventId/-6408175652528626264
http://t.163.com/event/info/eventId/-3289122163490590702
http://www.ommoo.com/note.php?action=index&sid=365090
http://www.ommoo.com/note.php?action=index&sid=365096
http://www.ommoo.com/note.php?action=index&sid=365097
http://www.ommoo.com/note.php?action=index&sid=365098
http://www.ommoo.com/note.php?action=index&sid=365099
http://www.ommoo.com/note.php?action=index&sid=365105
http://www.ommoo.com/note.php?action=index&sid=365107
http://www.ommoo.com/note.php?action=index&sid=365111
http://www.ommoo.com/note.php?action=index&sid=365118
http://www.ommoo.com/note.php?action=index&sid=365128
http://www.ommoo.com/note.php?action=index&sid=365135
http://www.ommoo.com/note.php?action=index&sid=365136
http://www.ommoo.com/note.php?action=index&sid=365137
http://www.ommoo.com/note.php?action=index&sid=365138
http://www.ommoo.com/note.php?action=index&sid=365139
http://www.ommoo.com/note.php?action=index&sid=365172
http://www.ommoo.com/note.php?action=index&sid=365178
http://www.ommoo.com/note.php?action=index&sid=365182
http://www.ommoo.com/note.php?action=index&sid=365184
http://www.ommoo.com/note.php?action=index&sid=365185
http://event.weibo.com/9459840
http://event.weibo.com/9460522
http://event.weibo.com/9461254
http://event.weibo.com/9462066
http://event.weibo.com/9462840
http://event.weibo.com/9464010
http://event.weibo.com/9464778
http://event.weibo.com/9465410
http://event.weibo.com/9466462
http://event.weibo.com/9466986
http://event.weibo.com/9468070
http://event.weibo.com/9469068
http://kan.weibo.com/con/3660124724429233?_from=image
http://kan.weibo.com/con/3660125605233138?_from=image
http://kan.weibo.com/con/3660126629025712?_from=image
http://kan.weibo.com/con/3660127320703621?_from=image
http://kan.weibo.com/con/3660128445159493?_from=image
http://kan.weibo.com/con/3660129531102030?_from=image
http://kan.weibo.com/con/3660132408777124?_from=image
http://kan.weibo.com/con/3660134228722908?_from=image
http://kan.weibo.com/con/3660135072160375?_from=image
http://pan.baidu.com/s/1hqE8zY0
http://pan.baidu.com/s/1dDvbGzv
http://pan.baidu.com/s/1c0im62G
http://pan.baidu.com/s/1qWjPWbM
http://pan.baidu.com/s/1eQDq9KA
http://pan.baidu.com/s/1eQ7kVZk
http://pan.baidu.com/s/1gd2ziKz
http://pan.baidu.com/s/1sj8QvST
http://pan.baidu.com/s/1kT5ELdd
http://pan.baidu.com/s/1ntAu0I1
http://pan.baidu.com/s/1hqoQagc
http://pan.baidu.com/s/1emR62
http://pan.baidu.com/s/1i3DQzvJ
http://pan.baidu.com/s/1hqDS3kw
http://pan.baidu.com/s/1ntI1Xix
http://pan.baidu.com/s/1c0wzCDa
http://pan.baidu.com/s/1jGK9VO6
http://www.pinterest.com/tshywan2/榆林白癜风治疗医院/
http://www.pinterest.com/tshywan2/榆林白癜风医院在哪/
http://www.pinterest.com/tshywan2/榆林白癜风医院有哪些/
http://www.pinterest.com/tshywan2/榆林哪家医院治疗白癜风/
http://www.pinterest.com/tshywan2/榆林治疗白癜风的医院有哪些/
http://www.pinterest.com/tshywan2/榆林治疗白癜风专科医院/
http://www.pinterest.com/tshywan2/榆林正规白癜风医院/
http://www.pinterest.com/tshywan2/榆林白癜风医院怎么样/
http://www.pinterest.com/tshywan2/榆林公立白癜风医院/
http://www.pinterest.com/tshywan2/汉中专门治疗白癜风的医院/
http://www.l99.com/EditPicture_photoView.action?pictureId=3699540
http://www.l99.com/EditPicture_photoView.action?pictureId=3699537
http://www.l99.com/EditPicture_photoView.action?pictureId=3699535
http://www.l99.com/EditPicture_photoView.action?pictureId=3699533
http://www.l99.com/EditPicture_photoView.action?pictureId=3699530
http://www.l99.com/EditPicture_photoView.action?pictureId=3699528
http://www.l99.com/EditPicture_photoView.action?pictureId=3699524
http://www.l99.com/EditPicture_photoView.action?pictureId=3699523
http://www.joy.cn/space/1600569943_article_showArticleInfo_articleId_1530670.htm
http://www.joy.cn/space/1600569943_article_showArticleInfo_articleId_1530759.htm
http://www.joy.cn/space/1600569943_article_showArticleInfo_articleId_1530986.htm
http://www.joy.cn/space/1600569943_article_showArticleInfo_articleId_1531102.htm
http://www.joy.cn/space/1600569943_article_showArticleInfo_articleId_1531561.htm
http://www.joy.cn/space/1600569943_article_showArticleInfo_articleId_1531926.htm
http://www.joy.cn/space/1600569943_article_showArticleInfo_articleId_1531768.htm
http://www.joy.cn/space/1600569943_article_showArticleInfo_articleId_1531649.htm
http://www.joy.cn/space/1600569943_article_showArticleInfo_articleId_1531612.htm
http://www.joy.cn/space/1600569943_article_showArticleInfo_articleId_1534100.htm
http://www.4shared.com/photo/kQTV7Kup/_20131227.html
http://www.4shared.com/photo/_KAFkGad/_20131227.html
http://www.4shared.com/photo/AMGRQLdB/_20131227.html
http://www.4shared.com/photo/Y_iWWVK8/_20131227.html
http://www.4shared.com/photo/vAzX3dv-/_20131227.html
http://www.4shared.com/photo/Tu6RgOdc/_20131227.html
http://www.4shared.com/photo/47ZTFkuO/1.html
http://www.4shared.com/photo/DMAcjq5c/_20131227.html
http://www.4shared.com/photo/c7kYpmve/_20131227.html
http://www.4shared.com/photo/EIiTO_J6/_20131227.html
http://www.4shared.com/photo/HD_VxPuw/1.html
http://www.4shared.com/photo/64KVVMuS/_20131227.html
http://www.4shared.com/photo/9AVew1jw/_20131227.html
http://www.4shared.com/photo/B56tpODe/20131227.html
http://www.4shared.com/photo/3Gr25r2E/20131227.html
http://www.4shared.com/photo/pZzq8ZS
/1.html
http://www.4shared.com/photo/qQj96_h
/_20131227.html
http://www.4shared.com/photo/cZA4nW2d/_20131227.html
http://www.4shared.com/photo/M7pREDdy/_20131227.html
http://www.4shared.com/photo/mUIkmwRJ/_20131227.html
http://www.4shared.com/photo/Ua9hWOQm/_20131227.html
http://www.4shared.com/photo/zgFWrX0u/_20131227.html
http://www.4shared.com/photo/Pi_2szgv/_20131227.html
http://www.4shared.com/photo/Dudfv-5L/_20131227.html
http://www.4shared.com/photo/fncrc-mH/_20131227.html
http://www.4shared.com/photo/qU1j7kBV/_20131227.html
http://www.4shared.com/photo/K_Qsnu9d/_20131227.html
http://www.4shared.com/photo/7sQJdKrb/_20131227.html
http://www.4shared.com/photo/m8B3DG2h/_20131227.html
http://www.4shared.com/photo/UjJer25K/_20131227.html
http://www.4shared.com/photo/muHcZvzD/_20131227.html
http://www.4shared.com/photo/v19R7Otp/_20131227.html
http://www.4shared.com/photo/KofTX-ZS/_20131227.html
http://www.4shared.com/photo/2FEfebQr/1.html
http://www.4shared.com/photo/oa1mT67R/_20131227.html
http://www.4shared.com/photo/NWDD5aWo/_20131227.html
http://www.4shared.com/photo/MOqINrrA/1.html
http://www.4shared.com/photo/-ryKHZX4/_20131227.html
http://www.4shared.com/photo/3xBksqlf/_20131227.html
http://www.4shared.com/photo/CAjeZVz9/_20131227.html
http://www.4shared.com/photo/tOWuN5DA/_20131227.html
http://www.4shared.com/photo/kcNUnx0Z/1.html
http://www.4shared.com/photo/BxRTre0e/_20131227.html
http://www.4shared.com/photo/pw3IrBX0/_20131227.html
http://www.4shared.com/photo/9F-7fP3r/_20131227.html
http://www.4shared.com/photo/8qfkWoRS/_20131227.html
http://www.4shared.com/photo/XnboVnCC/_20131227.html
http://www.4shared.com/photo/nBrbYbjD/_20131227.html
http://www.4shared.com/photo/mhziSZQ7/_20131227.html
http://www.4shared.com/photo/b4Ho5v8E/_20131227.html
http://www.4shared.com/photo/vww8aZNW/1.html
http://www.4shared.com/photo/S3J1ygMM/_20131227.html
http://www.4shared.com/photo/5oKzEgpO/_20131227.html
http://www.4shared.com/photo/a6p_ADix/1.html
http://www.4shared.com/photo/lX2fhlAY/1.html
http://www.4shared.com/photo/MbEg7qAp/1.html
http://www.4shared.com/photo/ys8vFiEi/_20131227.html
http://www.4shared.com/photo/o9sjqcRK/_20131227.html
http://www.4shared.com/photo/qyb9X93C/_20131227.html
http://www.4shared.com/photo/z8xWAZe3/_20131227.html

— Begin quote from ____

引用第4楼chengstory于2013-12-04 09:52发表的 :
尊敬的用户您好:
您出现这个问题是因为,你没有添加json文件搜索路径, 这些修改:
在 bool AppDelegate::applicationDidFinishLaunching() 中添加

                   CCFileUtils* pFileUtils = CCFileUtils::sharedFileUtils();

http://www.cocoachina.com/bbs/job.php?action=topost&tid=170099&pid=856737

— End quote

我现在也有楼主的问题,路径也设置了,,,,cocos2dx2.2.2

路径怎么写