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.
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
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:
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).
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?
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?
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 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
but the way your name is nice. the icon of mine is Moses
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