• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by Schneider21 · Aug 09, 2014 at 06:17 PM · iosu3dxt

iOS TurnBased with U3DXT - Removing games in invalid state

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)

Comment

People who like this

0 Show 0
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Schneider21 · Aug 12, 2014 at 02:12 PM

In case anyone else runs into this issue, one way of resolving it seems to be to the following:

  1. Delete the app from both devices. Select the option to remove all data associated with the app.

  2. Disconnect your Wifi/Cell service.

  3. Open Game Center. You should no longer see your app listed under games.

  4. Reconnect to the Internet and reinstall your game.

Still doesn't fully explain how the game state got messed up in the first place, but it does seem to work and now lets me begin new games between my devices.

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

U3DXT: How to setup Achievement Banners 1 Answer

U3DXT: ResetAchievements method not visible? 1 Answer

Does u3dxt support ios 8 1 Answer

unity 5 u3dxt xCode errors 0 Answers

U3DXT MapKit annotation updates and callouts 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges