Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn Based Participant Timeout Date Always NULL

Tags:

game-center

Have been working on a two-player turn based game that uses a custom UI for match management. Considering restricting the app to iOS 6+ in order to use player timeouts. I would like to show the user the remaining amount of time to move, but the participant.timeoutDate is always null? Per the WWDC 2012 video (that says the timeout won't apply to the last participant in nextParticipants), I pass an array with two entries (opponent at index 0 and local player at index 1) when calling endTurnWithNextParticipants:turnTimeout:matchData:completionHandler: to take a turn. I've tried both GKTurnTimeoutDefault and various integer literals ... no luck ... always seems to be null. The player's last turn date works fine.

On the subject of player timeouts ... after I get them working, how is this delivered? I see GKTurnBasedMatchOutcomeTimeExpired ... does this come in a turn event?

like image 201
Dave Hardin Avatar asked Dec 03 '12 18:12

Dave Hardin


1 Answers

From Apple's developer forum

Elian Gidoni -

+1 The doc should be: timeoutDate The date and time when the participant’s turn timed out. (read-only)

like image 116
nuclearnova Avatar answered Oct 29 '22 08:10

nuclearnova