mac下cocos2d-x 3.2读取cocostudio导出的json提示错误

cocos版本是v3.2的,cocostudio版本是v1.0.0.0 Beta的,读取导出的json文件时候提示如下错误

Assertion failed: (IsObject()), function FindMember, file /Users/hujiang/Documents/cocos/PrebuiltRuntimeLua/frameworks/runtime-src/proj.ios_mac/…/…/cocos2d-x/external/json/document.h, line 620. 是因为版本不一致还是我得读取方式有误?

我的读取方式是 local l_json = ccs.GUIReader:getInstance():widgetFromJsonFile(“ui_button/ui_button_1.json”)

已经解决。。原来3.2读取方法要用ccs.NodeReader:getInstance():createNode(str)。。。o(╯□╰)o

Hi,Mac版本使用了全新的架构,所以解析器也是新的,请参考:http://www.cocoachina.com/bbs/read.php?tid=215055

嗯,,正是因为参考了那篇帖子明白了,谢谢~

— Begin quote from ____

引用第3楼hanrea于2014-07-31 10:56发表的 :
Hi,Mac版本使用了全新的架构,所以解析器也是新的,请参考:http://www.cocoachina.com/bbs/read.php?tid=215055 http://www.cocoachina.com/bbs/job.php?action=topost&tid=217832&pid=1017757

— End quote

这个问题也我遇到了。谢谢版主,用这个方法可以了:
rootNode =cocostudio::timeline::NodeReader::getInstance()->createNode(“wzui_1/wzui_1.json”);

— Begin quote from ____

引用第3楼hanrea于2014-07-31 10:56发表的 :
Hi,Mac版本使用了全新的架构,所以解析器也是新的,请参考:http://www.cocoachina.com/bbs/read.php?tid=215055 http://www.cocoachina.com/bbs/job.php?action=topost&tid=217832&pid=1017757

— End quote

对你们这种频繁改架构的做法表示森森的忧虑。
假如我用1.6做的UI,并且我的游戏支持更新游戏数据,那等到我游戏新版本用到了cocos2dx 3.6(打个比方),但本地UI数据还是1.6编辑器做的,到时候会不会直接嗝儿屁?

高手,非常感谢。我用3.0的方式去读取Json文件,结果报错,还说widget不存在。
//auto UI = cocostudio::GUIReader::getInstance()->widgetFromJsonFile(“OprUI_1.ExportJson”); ----v3.0
//auto UI = cocostudio::NodeReader:getInstance():createNode(“OprUI_1.ExportJson”);
auto UI = cocostudio::timeline::NodeReader::getInstance()->createNode(“OprUI_1.ExportJson”); //v 3.2
this->addChild(UI);

Cocostudio v3.2 + Mac cocostudio 1.0.0.0
void TollgateScene::createUI()
{
//auto UI = cocostudio::GUIReader::getInstance()->widgetFromJsonFile(“OprUI_1.ExportJson”);
//auto UI = cocostudio::NodeReader:getInstance():createNode(“OprUI_1.ExportJson”);
auto UI = cocostudio::timeline::NodeReader::getInstance()->createNode(“OprUI_1.ExportJson”);
this->addChild(UI);

//Create button
auto leftBtn = (Button*)UI->getChildByName("leftBtn");
auto rightBtn = (Button*)UI->getChildByName("rightBtn");
auto quickMoveBtn = (Button*)UI->getChildByName("quickMoveBtn");

//childeBtn->addTouchEventListener(CC_CALLBACK_2(HelloWorld::touchEvent,this));
leftBtn->addTouchEventListener(this, toucheventselector(TollgateScene::moveToLeft));
rightBtn->addTouchEventListener(this, toucheventselector(TollgateScene::moveToRight));
quickMoveBtn->addTouchEventListener(this, toucheventselector(TollgateScene::quickMove));

}

大神。为改了 m_pLayout = dynamic_castcocos2d::ui::Layout*(cocostudio::timeline::NodeReader::getInstance()->createNode(“LoginUi_1.json”));
还是跑不下去了。

大神能不能帮我看看。十分感谢