Player Attributes

I am having trouble getting Game Center Player Attributes to work. My understanding is that if two players each create a match with the same Player Attributes set, they should NOT be auto-matched (only players with different bits set - different “roles” - should be matched), but this is not what I am observing.

I have created a simple test, where each player starts a new match with a maximum of two players (meaning the player who sends the request plus one auto-match player). I am not passing any player ids. No matter what bits I set in the Player Attributes, these two players are always auto-matched with each other.

Anyone else have this feature working properly?

Your understanding of how it should work is correct. Please provide a sample project.

dchan,

Thank you for your response. I’ll see if I can put together a basic sample, but here is the call in question:

storyboard.gn.request("createMatch", { minPlayers = 2, maxPlayers = 2, playerAttributes = {1,2,3,4,5,6,7,8}, --as an example, set first eight bits listener=createdMatch })  

Calling this on two different devices, each logged into GC (sandbox) under a different account. Once one of them takes a turn (thus making the match active and available for another player), the other player is always auto-matched.

One other thought - according to Apple, this function has been available since iOS 4.1. You’re not doing anything to artificially limit it to iOS 6 and above, are you?  (One of my devices in these tests was running iOS 5.1.1)

Your understanding of how it should work is correct. Please provide a sample project.

dchan,

Thank you for your response. I’ll see if I can put together a basic sample, but here is the call in question:

storyboard.gn.request("createMatch", { minPlayers = 2, maxPlayers = 2, playerAttributes = {1,2,3,4,5,6,7,8}, --as an example, set first eight bits listener=createdMatch })  

Calling this on two different devices, each logged into GC (sandbox) under a different account. Once one of them takes a turn (thus making the match active and available for another player), the other player is always auto-matched.

One other thought - according to Apple, this function has been available since iOS 4.1. You’re not doing anything to artificially limit it to iOS 6 and above, are you?  (One of my devices in these tests was running iOS 5.1.1)