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
punto
Posts: 18
Registered: ‎03-19-2012
My Device: playbook
My Carrier: movistar

Calling SCUI_Client_ShowFavoriteGamesView() does nothing

Hi.

 

I'm trying to use the default UI from Scoreloop, I created a valid SCUI_Client_h and I call  SCUI_Client_ShowFavoriteGamesView(), which returns SC_OK, but nothing happens, my game keeps running on the foreground, I don't see any UI. Am I supposed to do something else? I'm using an opengl context to draw stuff to the screen, nothing else. Do I need to do something different with the window setup or something? (I remember paymentservice having some weird window setup requirements to be able to show stuff on my screen).

 

Is the Scoreloop UI a separate process, or will it try to use my window?

 

Thanks.

 

Ariel.

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

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

You should see separate window. Is your game already marked as 'favourite'? that might prevent this window from showing up (just a guess).

Please use plain text.
Contributor
punto
Posts: 18
Registered: ‎03-19-2012
My Device: playbook
My Carrier: movistar

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

The game is not published yet, so probably not.

 

By "separate window" you mean it's another app? Would it also open with a "navigator_invoke" call?

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

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

yes it is "like" another app, imgine new frame covering your game and stays on top of your game until you close it. Do you perfrom any Scoreloop activity successfully in your game?

Please use plain text.
Contributor
punto
Posts: 18
Registered: ‎03-19-2012
My Device: playbook
My Carrier: movistar

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

Not really, I tried to pull some scores using SC_ScoresController_LoadScores, but I'm getting a response with error SC_HTTP_SERVER_ERROR. I checked that the game_id, game_secret, etc are correct, I still get SC_OK from the call to show the UI, but nothing..

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

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

Make sure basic stuff from samples works first. When you fix it probably your problem will be resolved.

Please use plain text.
Contributor
punto
Posts: 18
Registered: ‎03-19-2012
My Device: playbook
My Carrier: movistar

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

The errors I'm getting are SC_HTTP_SERVER_ERROR and SC_REQUEST_FAILED, which are both server side according to the documentation, I can't fix their servers :smileyhappy: And anyway I don't think that's relevant, in any case I should be seeing a UI screen that tells me there's some sort of server error. Isn't that the point of this?

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

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

My App is using ScoreLoop without any problem.

SC_HTTP_SERVER_ERROR usually happens when you have no network connectivity.

I don't believe you can see any Scoreloop's functionality (including UI screens) unless your app successfully connects to ScoreLoop server.

Please use plain text.
Contributor
danielatgrayfin
Posts: 22
Registered: ‎08-10-2012
My Device: Playbook
My Carrier: N/A

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

Was struggling with this too, but finally found the answer:

 

You must set a window group id in your window initialization. BButil.c (Which i was using for opengl initialization) doesn't seem to do this (at least not in the version i had).

 

ie. you need to call: 

screen_create_window_group(window_id, window_group_id)

Please use plain text.