01-03-2013 12:59 AM
Hi,
I am using cocos2dx to develop a game for the Blackberry 10 platform, but I am unable to Integrate Scoreloop. When I add the line
#include "scoreloop/scoreloopcore.h"
to any header file, I get around 300 errors that are as follows :
from /Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_achievements_controller.h:43, from /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/scoreloopcore.h:24, from ../../Classes/ScoreLoopCustom.h:11, from ../../Classes/GameScene.h:5, from ../../Classes/MenuLayer.cpp:11: /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:58:54: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:72:55: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:87:62: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:99:65: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:110:71: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:122:66: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:133:72: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:148:67: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:162:64: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:174:69: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:187:61: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:202:63: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:217:62: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:228:62: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:239:61: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:249:63: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:264:63: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:276:64: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:287:63: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:298:62: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:311:59: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:321:62: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:333:62: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:344:59: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:355:63: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:367:70: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:377:66: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_challenge.h:394:48: error: expected ',' or '...' before 'this' In file included from /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_session.h:40:0, from /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_achievements_controller.h:43, from /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/scoreloopcore.h:24, from ../../Classes/ScoreLoopCustom.h:11, from ../../Classes/GameScene.h:5, from ../../Classes/MenuLayer.cpp:11: /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_money_list.h:50:54: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_money_list.h:63:55: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_money_list.h:74:59: error: expected ',' or '...' before 'this' /Applications/bbndk/target_10_0_9_1673/qnx6/usr/in clude/scoreloop/sc_money_list.h:84:64: error: expected ',' or '...' before 'this'
and it just goes on like this.
Has anyone been able to integrate scoreloop successfully with cocos2dx? Any help is appriciated.
Thanks.
01-04-2013 01:11 AM - edited 01-04-2013 01:12 AM
i want to do same for one of my Game, in your case it seems Header files are missing from SDK. you should check your make file also for scoreloop libs. may b u could get some help with this
http://www.cocos2d-x.org/boards/6/topics/14722
this is wrapper used for implement Leaderboard on Run in crowd.
01-04-2013 01:12 PM
try to add
#include "scoreloop/scoreloopcore.h"
not to any header but to .c/.cpp file?
01-04-2013 10:05 PM
01-07-2013 10:55 AM
01-07-2013 11:40 PM
The callback also works fine. I was trying to show the defult UI by following this link http://developer.blackberry.com/native/documentati
a month ago
Please take a look at this blogpost on integrating scoreloop with cocos2dx:
http://devblog.blackberry.com/2013/02/scoreloop/
hope it helps, Ram