Is event.localPlayerScore deprecated?

Using the below request:

gameNetwork.request( “loadScores”, { leaderboard={ category=leaderBoards[currentBoard], playerScope=“Global”, timeScope=“AllTime”, range={1,50} }, listener=requestCallback } )

I can retrieve the score, id, rank of all players from that leaderboard, however, the event.localPlayerScore returns nil (prior to loadScores i have requested and received l_oadLocalPlayer_ successfully if that’s important or not), so just wondering if event.localPlayerScore (event.localPlayerScore.formattedValue, event.localPlayerScore.rank) still even works when requesting l_oadScores_?

One last question, that was only every mentioned in one posting reply, regarding loadPlayers (for google scores), if there is only 1 player in the leaderboard, am I correct to assume that I will never receive event.data[1].alias, but instead must look for event.data.alias?

Cheers.

(google play issues) Further to the strangeness of localPlayer, if i request loadLocalPlayer and check the event.type the result is _loadPlayers _not loadLocalPlayer, is this normal? I do get the correct local player’s id and alias but why the wrong event.type value? This is an issue if in your callback routine you check for different event.types such as loadPlayers and also loadLocalPlayer etc, etc.

Hi @jacques1,

Have you carefully read through the GPGS documentation? This shows exactly what each “event.data” table contains for the various calls:

https://docs.coronalabs.com/plugin/gameNetwork-google/request.html#load-local-player

Best regards,

Brent

@Brent, yup I believe I know what is supposed to return what, all i’m, looking for is an answer to whether event.localPlayerScore is still functioning or not. event.localPlayerScore is not even indicated in the current docs (not where i can find it anyways), so am I correct in assuming it is deprecated? The documents, as usual, are characteristically vague and lacking.

Hi @jacques1,

Was “event.localPlayerScore” ever a possibility? For the request you’re making, the information is returned in the “event.data” table. The documentation is clear on which keys are available within that table for each type of request.

Best regards,

Brent

Not sure if related, but what I was looking for was the rank of the currently logged in user.

Did you have a look at the command “loadScores” parameter called “playerCentered” ?

(google play issues) Further to the strangeness of localPlayer, if i request loadLocalPlayer and check the event.type the result is _loadPlayers _not loadLocalPlayer, is this normal? I do get the correct local player’s id and alias but why the wrong event.type value? This is an issue if in your callback routine you check for different event.types such as loadPlayers and also loadLocalPlayer etc, etc.

Hi @jacques1,

Have you carefully read through the GPGS documentation? This shows exactly what each “event.data” table contains for the various calls:

https://docs.coronalabs.com/plugin/gameNetwork-google/request.html#load-local-player

Best regards,

Brent

@Brent, yup I believe I know what is supposed to return what, all i’m, looking for is an answer to whether event.localPlayerScore is still functioning or not. event.localPlayerScore is not even indicated in the current docs (not where i can find it anyways), so am I correct in assuming it is deprecated? The documents, as usual, are characteristically vague and lacking.

Hi @jacques1,

Was “event.localPlayerScore” ever a possibility? For the request you’re making, the information is returned in the “event.data” table. The documentation is clear on which keys are available within that table for each type of request.

Best regards,

Brent

Not sure if related, but what I was looking for was the rank of the currently logged in user.

Did you have a look at the command “loadScores” parameter called “playerCentered” ?