Hello,
I’ve developed my game using cocos2d-iphone v3.4.9. Now I need to port my game to cocos2d-x.
In my game I’m using this CocosBuilder - https://github.com/KAMIKAZEUA/CocosBuilder
This is actually an old SpriteBuilder v1.4 that was dropped by apportable.
I’ve a lot of ccbi files - these are levels in my game and I want to load them using latest cocos2d-x 3.13.1.
Using this example: http://www.plungeinteractive.com/blog/2012/12/26/cocosbuilder-and-cocos2d-x-helloworld-example/ and with some additional fixes I tried to load a simple blank scene created in CocosBuilder.
include "editor-support/cocosbuilder/CocosBuilder.h"
using namespace cocosbuilder;
auto nodeLoaderLibrary = NodeLoaderLibrary::newDefaultNodeLoaderLibrary();
auto reader = new CCBReader(nodeLoaderLibrary);
auto node = reader->readNodeGraphFromFile("MainScene.ccbi", this);
this->addChild(node);
First error was:
"WARNING! Incompatible ccbi file version: 10 reader: 5
So, I just changed CCB_VERSION to 10 in CCBReader.h file.
After that I got this bad access error(as reminder scene is just blank, nothing on it):
I have to idea how to fix this. Maybe someone already tried to load ccbi files from cocos2d-iphone v3?
I have a tons of levels, so I really want to use CocosBuilder as editor for my game.
Also, here is compiled CocosBuilder Dropbox - File Deleted - Simplify your life what I’m using.
And ccb\ccbi files of MainScene that I’m trying to load: Dropbox - File Deleted - Simplify your life
Looking forward for some help, really stuck with this.
@stevetranby I saw you answered in other old topics about such kind of problem, can you please take a look at mine?