I need help about cocosbuilder latest version :(

I’m using cocos2d-x 2.0.3 right now.
But it can not works fine with ccbi file(cocosbuilder 2.0).
And I don’t know why I always can not open the website of cocosbuilder.
Is anyone can send me a cocosbuilder latest version?
Thank you very much.

my email address: benimang@126.com

I think cocos2d-x support for cocosbuilder2.1.
but, my cocos2d-x can’t read .ccbi file too

Beni Mang wrote:

I’m using cocos2d-x 2.0.3 right now.
But it can not works fine with ccbi file(cocosbuilder 2.0).
And I don’t know why I always can not open the website of cocosbuilder.
Is anyone can send me a cocosbuilder latest version?
Thank you very much.
>
my email address: benimang@126.com

Hi guys!

You should be able to load ccbi files using the last release of cocos2dx (2.0.3) and cocosbuilder (2.1).
To load a CocosBuilder layer node into a CCScene use the following code:

CCNodeLoaderLibrary* nodeLoader = CCNodeLoaderLibrary::sharedCCNodeLoaderLibrary();
CCBReader* reader = new CCBReader(nodeLoader);
CCNode* node = reader~~>readNodeGraphFromFile;
reader~~>release();
if(node != NULL) {
addChild(node);
}

FYI, take care about the resources management when publishing cocosbuilder files. I personally publish using “NO flatten paths” (File > Project Settings…) and add resources as folder references in xcode (blue folders).

Hope this helps…

I’m using latest cocos2dx and CCBuilder and when I try to load node exactly as above:

CCNodeLoader * CCNodeLoaderLibrary::getCCNodeLoader(CCString * pClassName) {
CCNodeLoaderMap::iterator ccNodeLoadersIterator = this~~>mCCNodeLoaders.find;
assert); < asserts/crashes right here~~ I’m trying to load TestAnimations.ccbi from CocosBuilder examples
return ccNodeLoadersIterator->second;
}

in cocos2d-x 2.02 and 2.03 you need to stablish the resource directory (subfolder into resources) for each device. In my case, a game for iPad:

if(CCApplication::sharedApplication()->getTargetPlatform() == kTargetIpad)
{

CCFileUtils::sharedFileUtils()->setResourceDirectory(“ipadhd”);
}

Do you guys know if it’s possible to execute more than one animation at the same time on cocosbuilder timelines?

animationManager~~>runAnimations;
animationManager~~>runAnimations(“Anim2”);

In this case, only the animations in “Anim2” timeline will be executed… :frowning:

That’s right - I’m starting from HelloCpp sample and file paths are correctly setup.
The thing is I’ve copied all resources from CCBExamples and pasted into /iphonehd/ccbs/
i.e. TestAnimations.ccb / ccbi is located in /iphonehd/ccbs/Tests/TestAnimations.ccb / ccbi -> if the path was wrong, program would’ve crashed earlier but it started parsing something (I went through debug run step-by-step).
Maybe I’m not setting up something before? Maybe I should rebuild projects or create new?
Any ideas?

make sure you clean / uninstall when doing this kind of tests :slight_smile:

Alright - I’ve made it work basing on codes above - thanks for every piece of advice- I’ve created new project with simple elements and gained access through tags - is there method to create whole scenes like in examples (for classic cocos2d), where i.e. buttons have callbacks set in CocosBuilder and in code you only implement them?

it can’t read well…!

Newbie Developer wrote:

I’m using latest cocos2dx and CCBuilder and when I try to load node exactly as above:
>
CCNodeLoader * CCNodeLoaderLibrary::getCCNodeLoader(CCString * pClassName) {
CCNodeLoaderMap::iterator ccNodeLoadersIterator = this~~>mCCNodeLoaders.find;
assert); < asserts/crashes right here~~ I’m trying to load TestAnimations.ccbi from CocosBuilder examples
return ccNodeLoadersIterator->second;
}

I added the screen shots.

this totally means that you are not looking for the ccbi file in the correct folder… but try to debug the ccbreader step by step to get more info.

please also help here if you can:
http://www.cocos2d-x.org/boards/6/topics/17607?r=17692

Jesus

Hi Jesus

I checked box and coco2d-x found the .ccbi file.
But, cocos2d-x can’t run the file.
I can’t find the cause.
No error log appers :frowning:

but the way your name is nice. the icon of mine is Moses :slight_smile:

Jesus Bosch wrote:

this totally means that you are not looking for the ccbi file in the correct folder… but try to debug the ccbreader step by step to get more info.
>
please also help here if you can:
http://www.cocos2d-x.org/boards/6/topics/17607?r=17692
>
>
Jesus

Try to follow my instructions on www.plungeinteractive.com/blog