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
Developer
ryansweny
Posts: 64
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Rogers
Accepted Solution

Scoreloop SDK Error 104 when trying to retrieve user

The scoreloop integration was going well at first, I had it successfully logging into the service and awarding an achievment. But starting on Friday I started getting an error when trying to register with the service. Is anyone familiar with this 104 error? The relevant log is below:

 

Debug: ScoreLoopThread run() started

Debug: Starting Scoreloop thread...

Debug: Scoreloop Version-Info: version: 0x100

revision: SC-121212

build: Dec 13 2012, 16:06:48

platform: BB10

Debug: Scoreloop Requesting User...

[sc_json_parser.c:384] ERR JSON error - delegate returned an error: 104 (SC_REQUEST_FAILED)

Debug: Error : SC_REQUEST_FAILED

Debug: SC_REQUEST_FAILED

Please use plain text.
BlackBerry Development Advisor (Retired)
whoang
Posts: 71
Registered: ‎11-08-2012
My Device: Blackberry 10 - Dev Alpha B | Blackberry Playbook | Blackberry Torch 9810
My Carrier: BELL Canada

Re: Scoreloop SDK Error 104 when trying to retrieve user

Hello @ryansweny,

 

Are you able to reproduce the issue?  I have tried myself and consulted a team member both of us are not able to.  

 

Please describe what other changes you have made that resulted in this error message.

 

Thank you,

 

 

William Hoang

Application Developer Advocate | Developer Relations
BlackBerry


Please use plain text.
Developer
ryansweny
Posts: 64
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Rogers

Re: Scoreloop SDK Error 104 when trying to retrieve user

I am able to reproduce it everytime with the first game id that I made. It appears something got corrupted with that game id because after creating a new game id everything works with the new game id. The scoreloop features aren't live yet so this is ok for now. Scoreloop is investigating what the problem is with the first game id.

Please use plain text.
BlackBerry Development Advisor (Retired)
whoang
Posts: 71
Registered: ‎11-08-2012
My Device: Blackberry 10 - Dev Alpha B | Blackberry Playbook | Blackberry Torch 9810
My Carrier: BELL Canada

Re: Scoreloop SDK Error 104 when trying to retrieve user

The game data may have been corrupted during client-server interactions.  Would you be able to run a new build, erase any local data and  recreate a new first game ID to see if the issue persists?

William Hoang

Application Developer Advocate | Developer Relations
BlackBerry


Please use plain text.
Contributor
josempans
Posts: 14
Registered: ‎01-20-2013
My Device: Playbook
My Carrier: None

Re: Scoreloop SDK Error 104 when trying to retrieve user

I'm having the same issue with all my games, the difference is that they never worked properly.


Is kinda weird, I receive SC_OK for all the creating methods, but that message keep appearing:


I'm using cocos2d-x-2.2 on a Dev-Alpha device with 10.0.10.648 OS.

 

My class "GameSL.h" extends CCLayer

 

bool GameSL::init()
{
	if (!CCLayer::init()) return false;

	validate = 1000;
	userValidate = 1000;

	SC_InitData_Init(&scData);
	scData.runLoopType = SC_RUN_LOOP_TYPE_CUSTOM;
	validate = SC_Client_New(&scClient, &scData,
			GAME_ID,
			GAME_SECRET,
			GAME_VERSION,
			GAME_CURRENCY,
			GAME_LANGUAGE);
        validate = SC_Client_CreateUserController(scClient,              &scUserController, fetchUserComplete, this);

	return true;
}

void GameSL::OnScoreloopCustomEvent()
{
	SC_HandleCustomEvent(&scData, SC_FALSE);

        if (!isUserLoaded)
        {
	userValidate = SC_UserController_LoadUser(scUserController);
	isUserLoaded = true;
	}

}

 When the "userValidate" line is running this message appear:

 

[sc_json_parser.c:384] ERR JSON error - delegate returned an error: 104 (SC_REQUEST_FAILED)

 

But, the userValidate value at that moment is: 0 (SC_OK?)

 

What is happening? (I've already try with other Game IDs and with re-building teh project

 

 

Please use plain text.
Contributor
josempans
Posts: 14
Registered: ‎01-20-2013
My Device: Playbook
My Carrier: None

Re: Scoreloop SDK Error 104 when trying to retrieve user

Ok, really silly mistake:

 

I had different Game versions between server and client.

 

By mistake I wrote "0.1" instead of "1.0", :smileytongue:

Please use plain text.