GC: quitMatch vs endMatch

Using Public Build 1202 for turn-based multiplayer with Game Center.

request(“quitMatch”) and request(“endMatch”) seem to be doing the opposite of what they should.

In my tests, quitMatch will mark the match as “ended,” and it will show as “Game Over” in the GC interface for all players. Instead, according to the CL and Apple docs, it should only end the match for the player who quits.

It’s hard to tell what, if anything, endMatch is doing. Even though the listener fires, it does not seem to change the match status, as it stays “open.” (Although it will, at least under certain circumstances, apply the “outcome” to the players, which again can be verified in the CG interface.) Instead, it should end the match for all, changing the status to “ended,” like what quitMatch seems to be doing now.

Is anyone else experiencing this?

Also, when using quitMatch, it does pass the turn to the nextParticipant specified, but it does not seem to pass the final data specified.

Is no one else using these features?

Also, when using quitMatch, it does pass the turn to the nextParticipant specified, but it does not seem to pass the final data specified.

Is no one else using these features?

i am, and the thing is that endMatch does let the game open… build 1242.

could you solve it?

I eventually got these working, more or less, for my latest game. One thing to note is that quitMatch has different results depending on whether or not the player who calls it is the current player in the match. And endMatch only works properly if it is the current player’s turn.

hmke.

i am calling endTurn for the first player, then second player plays, and then call immediately endGame. but the game stays open.

strange.

anyone?

If you set a listener, you can see if you are receiving any errors from Game Center. This helped me work through these sort of issues. In particular, watch out for the outcomes that must be set for each player with endMatch.

thanks, i will give it a try. the thing is, i am detecting for the logged in player in what state his matches are. and it stays open. i have set outcomes and all. but maybe i am doing it wrong? when the second player has played his turn, he calls endMatch immediately. Listener says that it did work, but the match still is open.

i am, and the thing is that endMatch does let the game open… build 1242.

could you solve it?

I eventually got these working, more or less, for my latest game. One thing to note is that quitMatch has different results depending on whether or not the player who calls it is the current player in the match. And endMatch only works properly if it is the current player’s turn.

hmke.

i am calling endTurn for the first player, then second player plays, and then call immediately endGame. but the game stays open.

strange.

anyone?

If you set a listener, you can see if you are receiving any errors from Game Center. This helped me work through these sort of issues. In particular, watch out for the outcomes that must be set for each player with endMatch.

thanks, i will give it a try. the thing is, i am detecting for the logged in player in what state his matches are. and it stays open. i have set outcomes and all. but maybe i am doing it wrong? when the second player has played his turn, he calls endMatch immediately. Listener says that it did work, but the match still is open.

When using quitMatch, it does pass the turn to the nex tParticipant specified, but it does not seem to pass the final data specified.

When using quitMatch, it does pass the turn to the nex tParticipant specified, but it does not seem to pass the final data specified.