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

Native Development

Reply
Contributor
vidueirof
Posts: 25
Registered: ‎04-08-2011
My Device: Torch 9800
My Carrier: Movistar

Scoreloop and BB10

Hi everybody, I'm trying to fix a game that use to work on a Alpha dev but with the lasts releases stop working.

I'm trying to rebuild my project but I'm having troubles with scoreloop.

For example I can't find the definition of SC_SCORE_SEARCH_LIST_GLOBAL

According to the documentation everything is OK but I can't find this constant in the scoreloop headers, looks like some files are missing.

http://developer.blackberry.com/native/reference/bb10/com.qnx.doc.scoreloop.lib_ref/topic/group__sc_...

 

I'm using 10.1.0.1020 NDK

 

I can build and run the game OK on playbook.

 

Any idea?

Thanks

Please use plain text.
Developer
jalue
Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10
My Carrier: Rogers

Re: Scoreloop and BB10

[ Edited ]

Yes, it would seem as if that particular variable has been changed to SC_SCORES_SEARCH_LIST_ALL, as the description https://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.scoreloop.lib_ref/topic/sc_sc... suggests that it is the Global search list.

 

According to this description https://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.scoreloop.lib_ref/topic/sc_sc... there are only 3 search lists currently available..  The other 2 are still there but the variable you are looking for is not, therefore SC_SCORES_SEARCH_LIST_ALL would seem to replace that one...

 

Also note.. it is SCORES and not just SCORE

Please use plain text.
Contributor
vidueirof
Posts: 25
Registered: ‎04-08-2011
My Device: Torch 9800
My Carrier: Movistar

Re: Scoreloop and BB10

Thanks for replying.

 

But I'm still having problems because this is not the only thing missing.

These are other functions I can't find on sdk:

error: 'SC_ScoresController_SetBuddyhoodOnly' was not declared in this scope
error: 'SC_ScoresController_LoadRangeForUser' was not declared in this scope
error: 'SC_ScoresController_LoadRange'was not declared in this scope
error: 'SC_ScoreList_GetScore' was not declared in this scope
error: 'SC_ChallengeList_GetChallenge' was not declared in this scope
error: 'SC_ChallengeController_CreateChallenge' was not declared in this scope
error: 'SC_Score_New' was not declared in this scope
error: 'SC_Score_New' was not declared in this scope
error: 'SC_UserController_RequestBuddies' was not declared in this scope
error: 'SC_User_GetBuddyUsers' was not declared in this scope
error: 'SC_UserList_GetUsersCount' was not declared in this scope
error: 'SC_UserList_GetUser' was not declared in this scope
error: 'SC_UserController_RequestUserDetail' was not declared in this scope
error: 'SC_UserDetails_h' was not declared in this scope
error: 'SC_UserDetails_GetChallengesWon' was not declared in this scope
error: 'SC_UserDetails_GetChallengesLost' was not declared in this scope
error: 'SC_UserDetails_GetWinningProbability' was not declared in this scope
error: 'SC_UserController_RequestUser' was not declared in this scope
error: 'SC_RankingController_RequestRankingForUser' was not declared in this scope
error: 'SC_LOGIN_SEARCH_PREFIX' was not declared in this scope
error: 'SC_UsersController_SetLoginSearchOperator' was not declared in this scope
error: 'SC_UserList_GetUser' was not declared in this scope

 

The game is working fine on PlayBook

Please use plain text.
Developer
jalue
Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10
My Carrier: Rogers

Re: Scoreloop and BB10

Well, seems as if you'll have to go through the Scoreloop Library with a fine-tooth comb to find the differences and similarities with the functions available.

 

https://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.scoreloop.lib_ref/topic/cscor...

 

Example:

SC_UsersController_LoadBuddies seems to replace SC_UserController_RequestBuddies

SC_UserList_GetCount seems to replace SC_UserList_GetUsersCount

SC_UserList_GetAt seems to replace SC_UserList_GetUser

 

And many more.. so check the list of functions in Model, Controller etc etc...

 

 

 

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

Re: Scoreloop and BB10

Exactly. Scoreloop for BB10 has numerious amount of differences with Scoreloop API for PlayBook although everything is documented in Scoreloop section for BB10, just carefully go through your code replacing things that need to be replaced to work with BB10.

Please use plain text.