game-center

My GKMatch has no players…?

大憨熊 提交于 2019-12-24 19:03:24
问题 I successfully made a matchmaking screen appear. I run my game in my iPhone and also in the simulator. In both cases I log in with a different Game Center account. I go to the matchmaking screen in both games. I press "play now". Both games begin looking for a match. Finally, both games find a match and call the function below: - (void)matchmakerViewController:(GKMatchmakerViewController *)viewController didFindMatch:(GKMatch *)match { self.myMatch = match; NSLog(@"%d",[[self.myMatch

Only one player displayed in Game Center leader board (Sandbox)

早过忘川 提交于 2019-12-24 15:33:24
问题 In the sandbox environment of Game Center I tested with 2 different users. Unfortunately I only see one player in the leader board. Only the player who is logged in. I thought it should update after a while but now (24 hours later) I still only see one user in the leader board. Is this correct in the sandbox environment? 回答1: Obviously it takes more than 24 hours to update the leader board. After +/- 48 hours, the other user also disappeared in the Game Center Leaderboard. 来源: https:/

show GKGameCenterViewController in SKScene

六月ゝ 毕业季﹏ 提交于 2019-12-24 14:15:32
问题 I struggling with the following Problem: I've made a game with SpriteKit. I implemented the GameCenter to my game. It works. Player logs in automatically and the highscore will be added to the default Leaderboard. But for example in the "EndScreen" I want to show the GameCenterLeaderboard . Appledocumentation tells me that I should use the following code: - (void) showGameCenter { GKGameCenterViewController *gameCenterController = [[GKGameCenterViewController alloc] init]; if

iOS Development: After updating my iPhone 4 to iOS 4.3 Beta 3, my app says “This game is not recognized by Game Center”

可紊 提交于 2019-12-24 10:11:29
问题 I've been building an iPhone game for the last couple months using XCode 3.2.5 and iOS 4.2 and I'm about to submit it to the App Store. Before I do that, however, I wanted to test it against iOS 4.3 Beta 3, so I downloaded the latest beta SDK, installed it in a separate location, and updated the device to iOS 4.3 Beta 3. Now, when I run the game and it attempts to authenticate the local player in Game Center, it pops up a box saying "This game is not recognized by Game Center". Why? I tried

Game Center in IOS 7 leaderboard

徘徊边缘 提交于 2019-12-24 08:27:09
问题 I have successfully added Game Center capabilities to my app. When the app is opened it successfully authenticates the user and shows the "Welcome back (UserName)" banner. However, I am not sure of how to add a leaderboard to the game. I was wondering if someone could help me A: Help me understand how to link the leaderboard i made in iTunes connect with the app and make highscore the value of the leaderboard. And B: Make the leaderboard show up in the app with all the rankings. All the code

Springboard crash when app is restored from push notification from GameCenter

给你一囗甜甜゛ 提交于 2019-12-24 05:51:34
问题 I'm developing a turn based game using GameCenter and constantly recieving a SpringBoard crash below. Using ARC. Iphone 4 on ios 6.0.1 Please help to understand the reason, i've been fighting with it for about two weeks. What was found already: a huge leak in AVFoundation framework, replaced AVAudioPlayer with AudioToolbox calls, but you probably all know about it, crash became more rare case, so i suppose it's actually memory issue but don't know where to dig further found a leak in

Cannot load top leaderboard score on iOS 7

落爺英雄遲暮 提交于 2019-12-24 04:23:06
问题 I had a function to load the top score from the leaderboard for my iOS game, and it worked in iOS 6 but it no longer works in iOS 7. The function I used is as follows: - (void) retrieveGlobalHighScore { if(userAuthenticated == true) { //NSLog(@"Attempting to retrieve global high score..."); GKLeaderboard *leaderboardRequest = [[GKLeaderboard alloc] init]; if (leaderboardRequest != nil) { leaderboardRequest.playerScope = GKLeaderboardPlayerScopeGlobal; leaderboardRequest.timeScope =

Different builds of turn-based Game Center game can’t see each other’s matches

核能气质少年 提交于 2019-12-24 03:53:24
问题 Each time I deploy a new build to testers, games from an older build are no longer available. As a test, I installed build 63 (numbered by agvtool ) on one device and 64 on another. I invited from 64. 63 saw nothing (neither a Game Center invite, or when using the GKTurnBasedMatchmakerViewController ). So I installed 64, and the invite showed up. I am using a script to build (using xcodebuild to make an archive, and then ZIPping up a .ipa), though it's the same script each time. I haven’t

Player swipe to remove match

守給你的承諾、 提交于 2019-12-23 18:54:29
问题 Let's say I have a turn based match with two players. At some point player 1 recognizes that he is about to lose the game. When it is Player 1's turn, he uses Game Center App to do a swipe to remove the match. Issues: A. Take turn timer never expires on Player 1. So the match's turn will not switch to Player 2 when the time expired. B. The game also offers a view only mode so players can view the game progress while he is out of turn. But since no status was updated to indicate that Player 1

How do I get a GKPlayer's status from Game Center?

那年仲夏 提交于 2019-12-23 16:11:19
问题 When I get a GKLocalPlayer or use loadPlayersForIdentifiers:identifiers withCompletionHandler: to get a list or individual GKPlayer aliases, the GKPlayer object when logged, looks something like this: 2010-09-23 10:39:01.759 Cee-lo[76500:207] Players loaded by identity: ( "<GKPlayer 0x84125a0>(playerID: G:1234567890, alias: typeonetester1, status: Adding test friends., rid:(null))", "<GKPlayer 0x8412530>(playerID: G:1234567890, alias: typeonetester2, status: Adding Game Center to app, rid: