Can’t you just open two simulators?
Going to assume you mean iOS simulators. I have tried this I get unable to create match error
Hi Scott,
Are you 100% sure that Game Center is being initialized properly? That it’s getting the local player? This might be some other issue before you even attempt to create a match.
Have you tried our Game Center sample app for leaderboards and achievements to check if it’s working with the account that you’ve used to log into GC on the device?
CoronaSDK-XXXX > SampleCode > GameNetwork > GameCenter
Brent
Tried the sample it works fine. I am able to print name but no welcome banner is showing.
Thanks,
Scott
Hi Scott,
I’ve attached a very minimalistic project that I used awhile back to test multiplayer. It worked for me at the time, but I can’t vouch that it’s perfect in every way. Still, it might serve as a method for you to test things on your side.
Brent
[quote name=“Brent Sorrentino” post=“317359” timestamp=“1453325390”]Hi Scott, I’ve attached a very minimalistic project that I used awhile back to test multiplayer. It worked for me at the time, but I can’t vouch that it’s perfect in every way. Still, it might serve as a method for you to test things on your side. Brent[/quote] Thanks for this. Found out I just forgot to setup gamecenter group in iTunes connect.
When I add my identiter, playerTurn does not happen
Just add com.scotthinc.com to identiter in build.setttings
Hi Scott,
Game Center multiplayer is a complex machine. Many developers… Corona or otherwise… report issues with it ranging from the version of iOS to the actual device. You can search the Internet for stories of this if you’d like.
Here’s one recent example excerpt from a support case I worked on with another Corona developer, just so you can get an indication of the inconsistency which can occur for (sometimes) no apparent reason whatsoever (meaning, absolutely no change in the Corona code or the devices themselves, but more likely some internal change on Apple’s side):
Brent,
Thanks for getting back to me. Well, something has changed with Corona’s
core (or the GC plugin) and/or iOS and/or the Game Center back end along
the way. Today I tested the App Store build on two different iPhone 6
devices, an iPad Air, and an iPhone 5, all running iOS 9.1. Results were
the same as I’ve been seeing all along (fail). I then tested a 2775 build
on those same devices (again, all running iOS 9.1), and the results were
flawless. Everything worked perfectly: turns, notifications, 2 player
games, 3 player games, everything. Every test, every device. I also tried
to test on an iPhone 4 running iOS 7.1.2. Everything behaves like the App
Store build on the iPhone 4 running the 2775 build (nothing works), but if
I’m playing against a 2775 build on an iOS 9.1 device, turns and everything
else work correctly on the iOS 9.1 device.
Since I had success with the 2775 build, I decided to do a new build with
the current Corona public release (2731), and to my surprise everything
worked perfectly (same as the 2775 daily build). I know that I have tested
with that build before because I always test when a new public release of
Corona comes out (in the hopes that something has changed and things are
working again).
One other note: when I was using iOS 7 on the iPhone 4, the GC sign-in
banner had the ***Sandbox*** designation on it. I tried to turn that off
(because of Apple’s new Sandbox/live server stuff), but found that the
“Sandbox” on/off switch did not exist in the “Game Center” portion of the
settings app as it usually does in iOS 7. Not sure if that could have been
causing issues with that device or not.
-----
It is not the software or device it just the cfidentifier. I have been researching for 7 days now have found nothing like this.
Thanks,
Scott
If my test identifier works but yours doesn’t, that seems to point to something in your iTunes Connect setup. Did you set up your app on that side for everything related to multiplayer?
Brent
Should my Game Center be turned on in my 1 version even though I have not published it yet.
Thanks
Scott
Edit: here are images I have enabled in Game Center
https://drive.google.com/file/d/0B5swSg-cH4L6ZXlFR3FrTDF0LW8/view?usp=sharing
https://drive.google.com/file/d/0B5swSg-cH4L6OEhBQ2NIN3ZFRVU/view?usp=sharing
Hi,
I’m new to Game Centre Turn Based Multiplayer Game,I do Some basic Code from the Sample.Once i Tested it in device it works well ,but i faced below Problems.
- Player1 Finished Turns , But not Received At Player 2 ( No notification , Some times Shared Data Missing )
2.Once Player1 Created Match , Want to store The Initial Data(Grid),So Player1 can Get Same Data(Grid),when Logging in Another Device.Even if Player1 Not end His Turn.
Ex: player1 -> Create Match -> Grid Created -> Go Back to Menu -> Re enter into Same Match -> Need Same Grid(Initial) [Even User log in from Diff Device].
- Communication Between 2 Devices Failed Some times(low Network),Which Makes game Misleading.
Please help me to Solve this.
Thanks.
Same here
I called apple going to talk to them tomorrow.
No Possible way in Corona to Solve this.
Thanks
It is your apple bundle I’d that is the problem if you are having the problem I am having.
I’m Not having the Same problem , My App Running well in Device.But Sometimes Communication failed between devices and i need to store data in GC.
Thanks
waiting for suggestions…
Handling the Current Player’s Turn
- saveCurrentTurnWithMatchData:completionHandler:
Update the match data without advancing the game to another player.
This method in IOS was used to Update Data in GC , is this Possible in Corona.
What if you set nextParticipant to your own gc id?
https://docs.coronalabs.com/daily/plugin/gameNetwork-apple/request.html#end-turn
Also if you don’t mind me asking how did your app ready for gamecenter?
Thanks,
Scott