Game Center doesn't work

Discussion and feedback on Construct 2

Post » Sun Dec 14, 2014 9:41 am

So I have an app set up with Ejecta, followed the Ejecta Workflow tutorial, almost everything seems to be working just fine. However, the one thing apparently not functioning is the Game Center, in that it doesn't seem to show up at all. I've tried both "Soft Authenticate" and "Authenticate" commands, to little avail, and tried adding visual cues for the "On Authenticated" condition, just in case (these don't work, leading me to believe it's not authenticating at all). Likewise, the score leaderboard won't show up when it's supposed to. I've gone through the motions a few times, but can't seem to figure out what exactly is causing it. What might be wrong?

I am testing the game on an iPad, if that helps.
B
54
S
24
G
18
Posts: 295
Reputation: 13,140

Post » Mon Dec 15, 2014 7:13 am

Bump?

Bit of an update: when trying to view the score leaderboards in one of the Xcode simulators, I get the message "Game Center unavailable/User not signed in". When running it on my iPad, I still get nothing. Is this normal? Does Game Center only show up once your app is published, even if you've already got the leaderboards set up? Perhaps I'm just missing something.
B
54
S
24
G
18
Posts: 295
Reputation: 13,140

Post » Mon Dec 15, 2014 11:56 am

I have Game Center working with Ejecta on several games. It seems the Game Center function does not work at all with the simulator, you need to deploy to an actual device.
The device need to be registered as a development device with the correct provisioning profiles installed.
Make sure you are logged in to Game Center on the device as well, as this seems to help. Once the game starts, a soft authenticate will usually work, and the GC welcome notification should momentarily pop down from the top of the screen.

One thing to check is that the app has the GameCenter capability added to the info.plist. This is done automatically by Xcode if you click the GameCenter slider in the 'Capability' tab.

Of course you need to set up Game Center leaderboards in iTunes connect first, I guess you've already done that.
B
24
S
7
G
1
Posts: 186
Reputation: 2,716

Post » Tue Dec 16, 2014 12:22 am

Hmm, I went over it and everything appears to check out. iPad is registered for development, logged into Game Center, Game Center capability is on (in fact Xcode fails to build unless it's on), and the leaderboards are set up. The ad banners seem to show up where and when they're supposed to, so the Ejecta object in C2 seems to be working. However, oddly enough still no notifications from Game Center when it's supposed to authenticate, and the leaderboards don't show up on request. Should the app show up in my list of games if I open Game Center on my iPad? Can this be some error with the Bundle ID or version number listed in Xcode/iTunes connect? They seem to match up fine...

A while ago when I was trying to figure out Xcode, I had to go through the process of "revoking my iOS Developer certificate", which I thought wasn't supposed to be a big deal. It seemed to regenerate the certificates and provisions automatically and everything seems to be working peachy since then, but right now I'm really not sure what might be going on so I'm willing to blame anything.

Thanks for any help.
B
54
S
24
G
18
Posts: 295
Reputation: 13,140

Post » Tue Dec 16, 2014 5:15 pm

One other thing I can think of is to make sure you set your GameCenter account on your device for Sandbox mode, it's the only way I have gotten my game to work with GameCenter when testing.
Twitter: https://twitter.com/pudgyplatypus

Learn to make a clicker game for cheap!
https://www.scirra.com/store/games-with ... e-game-666

Try out Pixel Golf on the Scirra Arcade!
https://www.scirra.com/arcade/sports-ga ... el-golf-67

Pudgy Platypus Games website!
www.pudgyplatypus.com
B
59
S
20
G
5
Posts: 212
Reputation: 7,390

Post » Tue Dec 16, 2014 8:18 pm

Looks like sandbox mode was the problem. Thanks much!
B
54
S
24
G
18
Posts: 295
Reputation: 13,140


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests