Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Scoreloop

Reply
Contributor
TheDevil
Posts: 19
Registered: ‎01-03-2013
My Carrier: Vodafone

Scoreloop Integration With Cocos2dx Using Native SDK

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/include/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/include/scoreloop/sc_challenge.h:58:54: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:72:55: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:87:62: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:99:65: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:110:71: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:122:66: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:133:72: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:148:67: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:162:64: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:174:69: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:187:61: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:202:63: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:217:62: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:228:62: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:239:61: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:249:63: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:264:63: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:276:64: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:287:63: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:298:62: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:311:59: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:321:62: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:333:62: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:344:59: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:355:63: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:367:70: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:377:66: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_challenge.h:394:48: error: expected ',' or '...' before 'this'
In file included from /Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_session.h:40:0,
                 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/include/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/include/scoreloop/sc_money_list.h:50:54: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_money_list.h:63:55: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/scoreloop/sc_money_list.h:74:59: error: expected ',' or '...' before 'this'
/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include/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.

Please use plain text.
Developer
VivekAgar
Posts: 79
Registered: ‎09-22-2010

Re: Scoreloop Integration With Cocos2dx Using Native SDK

[ Edited ]

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. 

Please use plain text.
Developer
BGmot
Posts: 1,061
Registered: ‎11-24-2011
My Carrier: x

Re: Scoreloop Integration With Cocos2dx Using Native SDK

try to add

#include "scoreloop/scoreloopcore.h"

not to any header but to .c/.cpp file?

Please use plain text.
Contributor
TheDevil
Posts: 19
Registered: ‎01-03-2013
My Carrier: Vodafone

Re: Scoreloop Integration With Cocos2dx Using Native SDK

Fixed the error by making it the first include statement. But now there is another problem.The callback functions are not getting fired.any help with that?
Please use plain text.
BlackBerry Development Advisor (Retired)
whoang
Posts: 71
Registered: ‎11-08-2012
My Carrier: BELL Canada

Re: Scoreloop Integration With Cocos2dx Using Native SDK

The current issue by @TheDevil is also being discussed here:
http://support.scoreloop.com/discussions/support/2640-no-subject

@TheDevil any updates with the callback function issues as there was no mention of it in the other recent thread ?
William Hoang

Application Developer Advocate | Developer Relations
BlackBerry


Please use plain text.
Contributor
TheDevil
Posts: 19
Registered: ‎01-03-2013
My Carrier: Vodafone

Re: Scoreloop Integration With Cocos2dx Using Native SDK

The callback also works fine. I was trying to show the defult UI by following this link http://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.scoreloop.lib_ref/topic/coreso... but like I mentioned that the bps events are handled internally by cocos2d so how do I deal with `SCUI_Client_HandleEvent(uiclient, event);` since this needs to be called to deal with UI events?

Please use plain text.
BlackBerry Development Advisor (Retired)
rmadhavan
Posts: 29
Registered: ‎03-19-2012
My Carrier: BELL

Re: Scoreloop Integration With Cocos2dx Using Native SDK

Please take a look at this blogpost on integrating scoreloop with cocos2dx:

 

http://devblog.blackberry.com/2013/02/scoreloop/

 

hope it helps, Ram

Please use plain text.