[Resolved] iOS multiplayer -- is there a way to remove/delete test games from GC sandbox?

I’ve initiated fair few auto-match games as I built and tested the multiplayer feature for my game app.  I’d like to remove them all so that I can test the latest version without worrying about half-baked versions getting in the way.

I searched/googled, but I couldn’t find any information.  I’d so like to know how.

Naomi

I would like to know the answer as well. In the meanwhile though, here’s a practical idea to achieve what you need so you can continue your testing with fresh stats… Simply get 2 new GC Sandbox accounts and move out of the old ones…

Ah, good one, @ksan.  Thanks for the suggestion.

Naomi

It sounds like gamecenter.request(“removeMatch”) is what you want.  This will remove the match from the list of matches.

Thank you so much, @dchan.  I appreciate it.  gamecenter.request(“removeMatch”) sounds like a handy API to use.

I’m now wondering if gamecenter.request(“removeMatch”) is intended for dev/test purposes… or if most games remove the finished matches from GC after the result of the match is viewed by all players involved.

I was going to keep all game results left in GC list (meaning, not removing any match results) – and allow users to tap on any of the games played in the past and see its result.  But I can imagine some players’ list of games played may grow huge (easily 100+).

Does Apple recommend limiting the number of completed games to be left there?  What is the best practice for handling potentially huge number of completed games piling up?

BTW, on API page (http://docs.coronalabs.com/daily/api/library/gameNetwork/request.html) it says:

removeMatch:  Removes the match of the list of matches in Game Center. This should only be called after endMatch has been called

loadMatchData:  Removes the match of the list of matches in Game Center. This should only be called after endMatch has been called

I think the description for “loadMatchData” needs updating.  (Since I didn’t understand what “loadMatchData” does, I chose not to use it in my code…)

Thanks again.

Naomi

I decided to use gamecenter.request(“removeMatch”) for declined match games.

Meanwhile, anyone with any thoughts on forever accumulating match games on GC?  Does anyone remove completed match games from GC at some point?

Naomi

Edit:  I decided to use gamecenter.request(“removeMatch”) to remove match results from GC once both users see the result of the match. :wink:

Were you able to get a list of currently in progress games? I would like to retrieve this list and put it in a tableView so that my app user can select a game in progress and go back to it without having to delve into Game Center. As a matter of fact I would like to abstract the GC interface as much as possible.

@ksan, no, I’m not able to.  As far as I can tell from the API doc page, I don’t think there’s an API for retrieving a list of all open/active matches.  

What I found, though, is that even if a player A removes a match game from his/her list, player B (who has played the game against player A) will still see the match game on his/her list.  Meaning, each player would need to remove each match result from his/her list before it disappears from his/her list.

I would like it if there’s also an API that would retrieve the total number of games won (or lost or tied) by local player.  It would make things so much easier for match wins leaderboard for me…

Naomi

Thanks for the help. Lets ask CL about this then. New thread coming.

I would like to know the answer as well. In the meanwhile though, here’s a practical idea to achieve what you need so you can continue your testing with fresh stats… Simply get 2 new GC Sandbox accounts and move out of the old ones…

Ah, good one, @ksan.  Thanks for the suggestion.

Naomi

It sounds like gamecenter.request(“removeMatch”) is what you want.  This will remove the match from the list of matches.

Thank you so much, @dchan.  I appreciate it.  gamecenter.request(“removeMatch”) sounds like a handy API to use.

I’m now wondering if gamecenter.request(“removeMatch”) is intended for dev/test purposes… or if most games remove the finished matches from GC after the result of the match is viewed by all players involved.

I was going to keep all game results left in GC list (meaning, not removing any match results) – and allow users to tap on any of the games played in the past and see its result.  But I can imagine some players’ list of games played may grow huge (easily 100+).

Does Apple recommend limiting the number of completed games to be left there?  What is the best practice for handling potentially huge number of completed games piling up?

BTW, on API page (http://docs.coronalabs.com/daily/api/library/gameNetwork/request.html) it says:

removeMatch:  Removes the match of the list of matches in Game Center. This should only be called after endMatch has been called

loadMatchData:  Removes the match of the list of matches in Game Center. This should only be called after endMatch has been called

I think the description for “loadMatchData” needs updating.  (Since I didn’t understand what “loadMatchData” does, I chose not to use it in my code…)

Thanks again.

Naomi

I decided to use gamecenter.request(“removeMatch”) for declined match games.

Meanwhile, anyone with any thoughts on forever accumulating match games on GC?  Does anyone remove completed match games from GC at some point?

Naomi

Edit:  I decided to use gamecenter.request(“removeMatch”) to remove match results from GC once both users see the result of the match. :wink:

Were you able to get a list of currently in progress games? I would like to retrieve this list and put it in a tableView so that my app user can select a game in progress and go back to it without having to delve into Game Center. As a matter of fact I would like to abstract the GC interface as much as possible.

@ksan, no, I’m not able to.  As far as I can tell from the API doc page, I don’t think there’s an API for retrieving a list of all open/active matches.  

What I found, though, is that even if a player A removes a match game from his/her list, player B (who has played the game against player A) will still see the match game on his/her list.  Meaning, each player would need to remove each match result from his/her list before it disappears from his/her list.

I would like it if there’s also an API that would retrieve the total number of games won (or lost or tied) by local player.  It would make things so much easier for match wins leaderboard for me…

Naomi

Thanks for the help. Lets ask CL about this then. New thread coming.