While testing my TurnBased iOS game, I seem to have gotten a game stuck in an invalid state and am not sure how to remove it.
I'm using U3DXT for my GameKit API calls, and they offer a RemoveAllMyMatches helper method for testing to clear out all your existing games. From what I found on other sites, it seems what I did was to invite a player to a game and then quit that game before I passed the turn off to the invited player (using RemoveAllMyMatches).
The consequence of this is that one player now has a game stuck in their match list that I can't clear out, and I also can't seem to start a new game between these players since GameKit knows there's already one going or something.
How do I get a list of all my games and force remove them?
Edit: Specifically, the errors I'm getting below when trying to clear games on the user with the stuck gamestate:
end match error: The operation couldn’t be completed. (NSURLErrorDomain error -1009.)
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
U3DXT.iOS.GameKit.<_EndAndRemoveMatch>c__AnonStorey10:<>m__14(NSError)
U3DXT.iOS.Native.GameKit.<_endMatchInTurnWithMatchData_completionHandler__completionHandler_callback>c__AnonStorey69:<>m__69()
U3DXT.Core.CoreXT:RunOnMainThread(Action)
U3DXT.iOS.Native.GameKit.GKTurnBasedMatch:_endMatchInTurnWithMatchData_completionHandler__completionHandler_callback(Delegate, Dictionary`2)
U3DXT.iOS.Native.Internals._CallbackCache:_Callback(String, String)
(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/iPhonePlayer-armv7Generated/UnityEngineDebug.cpp Line: 49)
remove match error: The requested operations could not be completed because one or more parameters are invalid.
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
U3DXT.iOS.GameKit.<_EndAndRemoveMatch>c__AnonStorey10:<>m__16(NSError)
U3DXT.iOS.Native.GameKit.<_removeWithCompletionHandler__completionHandler_callback>c__AnonStorey72:<>m__72()
U3DXT.Core.CoreXT:RunOnMainThread(Action)
U3DXT.iOS.Native.GameKit.GKTurnBasedMatch:_removeWithCompletionHandler__completionHandler_callback(Delegate, Dictionary`2)
U3DXT.iOS.Native.Internals._CallbackCache:_Callback(String, String)
(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/iPhonePlayer-armv7Generated/UnityEngineDebug.cpp Line: 49)
↧