#GameServices - iOS issues

1 messages · Page 1 of 1 (latest)

viral shale
#

Hello. My game keeps crashing randomly. I'm 100% sure it's related to submitting a score to the leaderboard or unlocking achievements.

I can't see any crash reports from beta testers, but I'm seeing this warning, which is strange, because the platform ID provided in the dashboard is "grp.eyes.easy". Can it be related?

[VoxelBusters.CoreLibrary.EssentialKit] Could not find settings for specified platform id: eyes.easy. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object) VoxelBusters.EssentialKit.GameServicesCore.iOS.<>c:<CreateLeaderboardArray>b__10_0(IntPtr) VoxelBusters.CoreLibrary.NativePlugins.MarshalUtility:ConvertNativeArrayItems(IntPtr, Int32, Converter`2, Boolean) VoxelBusters.EssentialKit.GameServicesCore.iOS.Leaderboard:HandleLoadLeaderboardsNativeCallback(NativeArray&, NativeError, IntPtr)

untold dove
#

Pls share your Essential Kit Settings for Game Services (leaderboards expanded)

viral shale
untold dove
#

Did you configure to have leaderboard groups?

#

It got eyes.easy from store and it failed to match from our settings - which is not an error ideally.

viral shale
untold dove
#

What plugin version you are on?

viral shale
#

EssentialKit 3.7.1

untold dove
#

ok.

untold dove
#

did you create those ids from start or moved to a group leaderboard later after creating the leaderboard?

viral shale
#

I don’t remember, it was more than 10 years ago 😉

untold dove
#

oh ok.

#

there was an issue earlier about 6 months back but we fixed it. I double checked the code too and its returing as expected.

#

Let me share a file to log what actually is being returned in your case.

viral shale
untold dove
#

[GKLeaderboard] baseLeaderboardID=eyes.easy groupIdentifier=grp.eyes.easy title=[Mansion] Easy

#

the baseLeaderboardID without grp. returned from store are mostly moved to group after creation.

#

considering these are old ids, I would request you to either create a new one in the group for eyes.easy or use eyes.easy in the essential kit settings to resolve the issue.

viral shale
#

for both leaderboards and achievements?

untold dove
# viral shale for both leaderboards and achievements?

for leaderboards - yes.
Did you have a look at the log you shared - mainly below and see it's strange?

[GKLeaderboard] baseLeaderboardID=eyes.easy groupIdentifier=grp.eyes.easy title=[Mansion] Easy
[GKLeaderboard] baseLeaderboardID=eyes.normal groupIdentifier=grp.eyes.normal title=[Mansion] Normal
viral shale
#

If I understand you correctly, I need to update this file and my leaderboards without grp. in the baseLeaderboardID will be working, right?

#

I emailed you a few days ago about this exception:

[VoxelBusters.CoreLibrary.EssentialKit] UnityEngine.AndroidJavaException: java.lang.NullPointerException: Attempt to invoke virtual method 'com.voxelbusters.essentialkit.gameservices.GameAchievement com.voxelbusters.essentialkit.gameservices.GameAchievements.get(java.lang.String)' on a null object reference at UnityEngine.AndroidJNISafe.CheckException ()

I've managed to solved by replacing

GameServices.ReportScore("high_score", score, (success, error) =>

with

`ILeaderboard leaderboard = GameServices.CreateLeaderboard("high_score");
if (leaderboard == null)
{
Debug.Log("Leaderboard 'high_score' not found in settings");
return;
}

leaderboard.ReportScore(score, (success, error) =>
{`

The first one crashed for leaderboards easy and normal, newbie works ok. I guess it's another insight.