game-center

Game Center Player Display Name Always “me” in the sandbox

那年仲夏 提交于 2019-12-05 23:21:48
I am using the user's Game Center display name and player ID in order to maintain their profile on my server. When I went to test this, everything appears to execute properly, but the user's display name for my sandbox account shows up as "Me," rather than my display name attached to my account, "Billybobbo." Is this supposed to happen in sandbox mode? Console: 2013-08-31 18:51:37.054 [App Name][53230:907] Player ID: G:1682017882 2013-08-31 18:51:37.065 [App Name][53230:907] Player Display Name: Me For anyone who may want to do something similar to what I am doing, Apple hasn't made these

Odd Game Center behavior?

£可爱£侵袭症+ 提交于 2019-12-05 21:17:12
I'm trying to enable Game Center Leaderboard to my iPad game and I have learned that you need to post more than one score to a leaderboard for the scores to show in the default leaderboard UI. I have two separete accounts that I used to post two different scores to the same leaderboard, but when I call loadScoresWithCompletionHandler I only get one score back (the score for the user I currently are logged in with). Any ideas why? GKLeaderboard *myLB = [[GKLeaderboard alloc] init]; myLB.category = @"MyLeaderboardId"; myLB.timeScope = GKLeaderboardTimeScopeAllTime; myLB.playerScope =

Swift Displaying Game Center Leaderboards

左心房为你撑大大i 提交于 2019-12-05 18:22:31
Right now I am trying to make a leaderboard I created show up. The player is authenticated just fine, but when the game center window opens it is very strange. Here is a picture: Here is the code I am using to display this image: override func touchesBegan(touches: NSSet, withEvent event: UIEvent) { self.showLeaderboard() } func showLeaderboard() { var leaderView = UIViewController() var leaderViewController = GKGameCenterViewController(rootViewController: leaderView) leaderViewController.viewState = GKGameCenterViewControllerState.Leaderboards leaderViewController.leaderboardIdentifier =

ios7 can't get login in gamecenter gain after cancel 3 times [duplicate]

别说谁变了你拦得住时间么 提交于 2019-12-05 14:37:46
问题 This question already has answers here : Unable to sign in Sandbox gamecenter on iOS 7 (4 answers) Closed 6 years ago . The problem is strange. My system version is IOS7. Everything goes fine on ios7 simulator. However, when I try authenticate on my iphone, the error in the callback block is always "GkErrorCanceled: the requested operation has been canceled or disabled by the user". Even if I've already logged in game center, the error still pops. I tried google the problem, and find someone

Game Center groups

时光怂恿深爱的人放手 提交于 2019-12-05 13:16:56
I have an iOS game with one Game Center leaderboard. I published the game a few months ago and now I'm working on the OSX version. I want to use the same leaderboard for both versions of the game, which means that I need to create a Game Center group. The problem is that Apple forces you to modify your leaderboard ID's when you move them into a group: Group ids must begin with grp. Now, if I do that, I will need to update the iOS version of the game so that my users can keep posting their scores, and if I release an update for the iOS version of the game, players who don't install the update

Game Center's Auto-match and endTurnWithNextParticipants

戏子无情 提交于 2019-12-05 10:53:30
I am developing a turn-based game with two Game Center players, and I want to allow auto-matching. I've read that, for an invitation to be actually sent out to a player, the inviting player must end his/her turn. This means calling this method: - (void)endTurnWithNextParticipants:(NSArray *)nextParticipants turnTimeout:(NSTimeInterval)timeout matchData:(NSData *)matchData completionHandler:(void (^)(NSError *error))completionHandler Now, what I don't understand is the meaning of the "nextParticipants" array in case the match is started in auto-match mode, which, as I read, is done by setting

Retrieving game center achievement by identifier

萝らか妹 提交于 2019-12-05 10:07:21
I have a question related to Game center achievements. Is it possible to retrieve the name/description of an achievement by its identifier? I am trying to avoid hardcoding every identifier with its corresponding name, so is there a solution that can get the name? thanks, Sami Of course, that's exactly why you have localization support for achievements (as well as leaderboards) inside iTunes Connect. However, there is no way to ask Game Center about localized info for just one achievement based on it's ID. Instead, you ask for info about all achievements which gives you an array of

Swift - Integrate GameCenter to use leaderboards

别说谁变了你拦得住时间么 提交于 2019-12-05 10:04:44
I am making a game in Swift. I want to be able to post the users' score using GameCenter, so that scores from all my users' can be seen. However, I have spent the past day trying to figure out how to do this, but I haven't found any helpful instructions. I am pretty new to iOS programming, and Swift, and of the very little amount of information on this subject, it's all written in Objective-C. Can anyone help me integrate GameCenter into my app, so that I can post users scores to the leaderboards for people to see? EDIT: I have already created a GameCenter leaderboard on iTunesConnect. EDIT 2:

OSX Game Center: Couldn't communicate with a helper application

风格不统一 提交于 2019-12-05 09:58:15
I'm setting up Game Center for my OSX game, but it can't authenticate player with the following error (OSX 10.10 Yosemite): I've got the following setings in iTunesConnect: and XCode: I'll appreciate any ideas how to make it work! Solution: This is not documented. I've reported a rdar://23594124 Add this key to the entitlements of the App: com.apple.developer.game-center BOOLEAN = YES This fixes the error. 来源: https://stackoverflow.com/questions/29295423/osx-game-center-couldnt-communicate-with-a-helper-application

Game Center Matchmaking GKTurnBasedMatch has significant lag (~1 min)

谁说我不能喝 提交于 2019-12-05 07:47:51
I'm implementing a turn-based game with multiplayer mode through gamecenter. I have 2 devices (1 ipad, 1 iphone) to test in sandbox mode which were working fine but lately it has started to struggle in auto matchmaking process. After I send the first turn from one user, the other device doesn't immediately recognize that game but opens up its own fresh game. Before it was able to immediately spot the game started in the other device and matchmaking was fairly straightforward. And I don't remember changing any parts relevant to matchmaking ( NSCoding , GKTurnBasedEventHandler ,