GameCenter不更新排行榜 [英] GameCenter not updating leaderboard

查看:502
本文介绍了GameCenter不更新排行榜的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用沙盒游戏中心。

无论我做什么,分数都不会出现在排行榜中。

No matter what I do the scores never appear in a leaderboard.

我使用以下代码:

- (void)scoreReported: (NSError*) error {
    NSLog(@"%@",[error localizedDescription]);
}

- (void)submitScore{

    if(self.currentScore > 0)
    {
        NSLog(@"Score: %lli submitted to leaderboard %@", self.currentScore, self.currentLeaderBoard);
        [gameCenterManager reportScore: self.currentScore forCategory: self.currentLeaderBoard];
    }
}

并且scoreReported不会产生错误,但得分不是出现在排行榜中。我知道该类别是正确的,因为我使用currentLeaderBoard:

And scoreReported doesnt produce an error, yet the score doesnt appear in the leaderboard. I know the category is correct as I use currentLeaderBoard in:

- (void)showLeaderboard {
    NSLog(@"leaderboard = %@", self.currentLeaderBoard);
    GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init];
    if (leaderboardController != NULL)
    {
        leaderboardController.category = self.currentLeaderBoard;
        //leaderboardController.category = nil;
        leaderboardController.timeScope = GKLeaderboardTimeScopeWeek;
        leaderboardController.leaderboardDelegate = self;
        [self presentModalViewController: leaderboardController animated: YES];
    }
}

我试过通常的
2不同沙盒GC帐户让排行榜工作
甚至尝试了4个不同的GC帐户,每个登录模拟器(iOS 6.1)和设备(iOS 6.0.1)
但仍然没有乐趣

I have tried the usual 2 different sandbox GC accounts to get the leaderboard working Even tried 4 different GC accounts each logging in on both the simulator (iOS 6.1) and device (iOS 6.0.1) Yet still no joy

任何建议 - 或者只是沙盒游戏中心太多了! (我会提出一个关于沙箱的错误,但苹果错误报告表中有一个错误,所以它也不起作用)

any suggestions - or is it just that the sandboxed gamecenter is far too buggy!!! (I would raise a bug about sandbox but the apple bug reporting form has a bug in it so that doesnt work either)

推荐答案

即使在沙盒模式下,即使在沙盒模式下,也可以立即向Game Center报告分数报告。

Score reporting to Game Center works almost immediately for me, even in sandbox mode.

以下是您可以尝试的一些事项

Here are the few things you can try


  1. 确保报告分数时排行榜标识符正确(应与iTunesConnect中的排行榜ID完全匹配)

  2. 尝试删除测试iTunesConnect管理游戏中心部分下的数据

  3. 删除应用程序,在设备中启动游戏中心应用程序并转到游戏标签并删除您的应用程序。重新安装应用并尝试再次报告分数。

  4. 确保[gkScore reportScoreWithCompletionHandler:^(NSError * error)不会返回任何错误

  1. Make sure the the Leaderboard identifiers are correct when reporting scores (Should exactly match with "Leaderboard ID"s in iTunesConnect)
  2. Try Deleting the test data under "Manage Game Center" section of iTunesConnect
  3. Delete the application, launch "Game Center" application in your device and goto "Games" tab and remove your app. Reinstall the app and try reporting the score again.
  4. Make sure [gkScore reportScoreWithCompletionHandler:^(NSError *error) doesn't return any error

这篇关于GameCenter不更新排行榜的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆