Has anyone got OpenFeint working with Cocos2d?
I integrated it per the OF instructions and I get, "Error: OpenFeint undeclared (first use this function)." when I attempt to initialize it in my applicationDidFinishLaunching method.
Thanks!
A fast, easy to use, free, and community supported 2D game engine
Has anyone got OpenFeint working with Cocos2d?
I integrated it per the OF instructions and I get, "Error: OpenFeint undeclared (first use this function)." when I attempt to initialize it in my applicationDidFinishLaunching method.
Thanks!
probably have to add import.
I did add an import line but it gave a different error, and I was a bit sketchy about changing the implementation files to .mm instead of .m, however that did the trick when I changed the file extensions. Sorry for the newb question, I had never heard of that before (but then I've never integrated Obj-C++ into my code). Thanks!
Did you read this ? http://help.openfeint.com/faqs/guides-2/integrating-the-openfeint-sdk
You have to add #import "openeint.pch" in your "mygame_prefix.pch"
Also if your game is C and not C++, you will have a few problems when compiling. You have to rename all your .m where you are including "openfeint.h" in .mm (it doesn't change anything to your code).
I just followed the provided instructions and worked, i had some problems later regarding fastdirector and touches not getting to the api, but at least it worked.
Hi I have a problem when adding the openfeint in my project. when it had the sdk 4.0 worked perfectly but now with the sdk4.1 is giving errors even after following the tutorial. there is some compatibility problem with the SDK last? One interesting thing here was to put in tutorial a project sample with the cocos2d and openfeint already included.
appreciate any help since I do not know what I can do.
respects
Neo-_-man
Mhh... I'm just downloading SDK 4.1 but in the meanwhile OpenFeint 2.6 released. It needs new libraries - did you include them (listed in README.txt)?
yes it is possible that I miss some framework, I will confirm
it was missing a damn framework.
thanks for the help
neo-_-man
You must log in to post.