Game Center: Post Score = "...could not be completed due to an error communicating with the server."

HymloeHymloe Member Posts: 1,653
edited March 2012 in Working with GS (Mac)
I have followed TShirtBooth's very good video about doing everything to setup Game Center with your app...


But I always get this message when trying to post a score from my Ad Hoc build...
"The requested operation could not be completed due to an error communicating with the server".

Has anyone had this problem, and then figured out a fix? I really can't see where I'm going wrong.
Just went Pro yesterday, and just want Game Center to work for me.

- Murray

Comments

  • HymloeHymloe Member Posts: 1,653
    Is it OK to use my existing Game Center account?
    I just need to log out of it, then load the game, then log in using Sandbox mode, yeah?
    Anything else special to do there?

    - Murray
  • HymloeHymloe Member Posts: 1,653
    I'm using an iPod Touch 4 with OS 4.2.1.

    Should that work fine?
  • HymloeHymloe Member Posts: 1,653
    Is there a length limit on the Leaderboard IDs?

    Can you have something like com.supercalifragilisitc.myverylongleaderboardIDstring

    ...for example?

    Are there limits to what you can use in that string?

    Could you make it 3r.567rg|56kjfgefr,rtkisdgt/50f0h?
  • HymloeHymloe Member Posts: 1,653
    Are others having this problem?

    Are others fixing this problem?
  • HymloeHymloe Member Posts: 1,653
    The crucial problem seems to be that Game Center seems to think that my game has no leaderboards.

    If I just go into Game Center, and look at my games, I can see my game I'm working on in the list, and it says "No Leaderboards".

    Does this take a while to update, after they've been enabled? Or is there something I can do to ensure that my leaderboards that I've created are being detected by Game Salad?

    Can I flush out all signs of my provisioning profiles on my device? Or something?
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Dude seriously stop just posting and bumping, use the edit function and combine into 1 post. It doesn't need a new post every 10 minutes.

    Enable GC in itunes connect
    Create leaderboards
    Go into App info and there is a button to enable GC (different to the 1st point)
    Make sure you are using a development profile which has the same bundle identifier for what you created it with. i.e. com.hymloe.mygamename
    Make sure before posting scores that you use a GC login behaviour from within GS.
    Make sure that you are writing to that same bundle identifier from GS.

    That should be everything.
  • HymloeHymloe Member Posts: 1,653
    Thanks Beefy,

    You can't actually specify what Bundle Identifier you're using in GS, can you? I mean, you just specify the Leaderboard ID, and that's all you can do, yeah?

    Also there was mention in the initial Game Salad video about the Game Center demo project, that you don't actually need to use the Login feature, as it does it the first time you use Post Score or View Leaderboard. Is that correct? Or is the Login action required beforehand?

    Thanks!

  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Yeh in GS you just do the Leaderboard id, but you publish with a provisioning profile which must match the bundle id you setup for the app id. Thats how it all links together.

    Not sure on your last question, i like y user to be able to turn GC on and off and this is controlled by an attribute, as soon as they switch it on i have a login behaviour.

    Another thing to think about is allowing enough time to post, i.e. you die. after 0.2 seconds post score. after 1 second restart scene. You will want to break all this up so all the rules have enough time to fire off.
  • HymloeHymloe Member Posts: 1,653
    Great tips there. I was thinking it would be best to have the option to turn Game Center on and off. I think I'll do that too.

    I'll try to update my provisioning profile, as I originally made it before I'd enabled Game Center. Now that I've enabled Game Center, maybe I need to update my provisioning profile (although there's been no mention of that in any of the tutorials, so I have my doubts). Worth a try, I guess.

    - Murray
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    No probs.

    Yeh i don't think that should make a difference, just make sure all bundle id's are the same between app id and provisioning profile you create.

    Also, i know you've enabled the 1st gamecenter bit where you then go into creating your leaderborards but you then have to go into app info in iTunes connect and there is another enable GC button, without this enabled as well it won't post scores.

    Good luck Murray, hope you get it sorted :)
  • HymloeHymloe Member Posts: 1,653
    Thanks, yes, watching TShirtBooth's video, I saw that you need to click that ENABLE IN THIS VERSION button as the second step. Thought that was going to sort out my problems this morning, but it was just the same...

    On this page...
    https://developer.apple.com/ios/manage/distribution/distribution.action
    ... it mentions the need for an "Ad Hoc Distribution Provisioning Profile".

    I suppose this page is assuming the user is creating their application in XCode, not Game Salad. But do I still need a special Ad Hoc Distribution Provisioning Profile?
    I assume that's what I'm already using that I created at the Developer Center > iOS Provision Portal > Provisioning > Distribution page...

    I created an Ad Hoc Provisions profile there. I don't have a Developer Provisioning Profile for my game, just a Distribution one. Is that correct? Do I need a Developer Provisioning Profile for my game, too?

    It should be noted that my App ID looks like this...
    AT4G8KB3R2.com.hymloe.gamename

    While my BundleID looks like...
    com.hymloe.gamename

    I assume that's the correct match? And that the App ID just has that extra stuff at the start...

  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Correct :)

    The ad hoc is just built through GS using the development provisioning profile you mention from here - https://developer.apple.com/ios/manage/provisioningprofiles/index.action.
    When releasing for the appstore, you would create another provisioning file but click the distribution tab, not development and setup a profile there, you would use the same app id that has all the matched bundle id info in. You then use that to publish through GS as you would an ad hoc.

    App id and bundle id all looks fine.

  • HymloeHymloe Member Posts: 1,653
    Thanks so much for the clarifications Beefy.

    I'm still at my wit's end, and no idea how to proceed, I've been trying for hours and hours. No luck. But thanks for your help. It does help clarify things, at least!

    - Murray
  • HymloeHymloe Member Posts: 1,653
    One thing that erks me is that when I made my first ad hoc build, I selected to have the glossy icon.
    I didn't like it, so ever since I always select non-glossy icon.

    AFTER making my first Ad Hoc build, I went Pro, then setup and added Game Center to my game.
    However, ever since, when I am editing my app settings in iTunes Connect, my game is always shown as the glossy icon.

    Is this just a default thing, or is something lingering around there from my older settings? Perhaps that could explain why Game Center is unresponsive to me...?

    My more recent 4 ad hoc builds all seem to build fine, I test them on device, and it's all updated, the icon is non-glossy, my Game Center buttons are there, etc.
    So maybe it's nothing.

    Just wondering... is there a way for me to DELETE all existence of my game under the Game Salad PUBLISH menu, so I know for sure that I'm starting a fresh?
    Or is it fine to just click UPDATE, and go from there?

    - Murray
  • HymloeHymloe Member Posts: 1,653
    Can my Leaderboard ID simply be ...

    MLHighScore

    for example?

    Or does it need to be something like...

    com.hymloe.gamenameMLHighScore

    ?
  • HymloeHymloe Member Posts: 1,653
    I'm using Game Salad 0.9.88, rather than the latest 0.9.91.

    I'd rather stick with the one I'm with for now. But is that maybe causing the problem?

    Vomit. This is the sort of thing that makes me want to just smash my computer and live in the mountains.

    Boring, frustrating, stupid !@#$%.
  • HymloeHymloe Member Posts: 1,653
    edited March 2012
    I updated my iPod Touch 4 to iOS 5.1.

    Still no good. Can't figure out what I'm doing wrong.

    Any help would be magical.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Icon in iTunes quite often show with gloss. As long as the icon you upload doesn't and you don't select it when publishing it won't have it.

    You cannot delete games from your publish portfolio in GameSalad ... Annoying i know!

    Leaderboard needs to be in the full format. i.e. com.hymloe.gamenameMLHighScore

    Version of GS shouldn't matter.

    Another thing to think about is you have a list of registered users. You'll need to login in Sandbox mode in GameCenter for your app to post. Once its live its OK but as its ad-hoc, you need to register a 'test' user and be signed in with that.
  • HymloeHymloe Member Posts: 1,653
    Ah, OK, very helpful! Maybe I need to make this registered test user! Thanks!
    Would you be able to tell me where to make these registered test users?

    - Murray
  • HymloeHymloe Member Posts: 1,653
    Ah OK, I see...
    iTunes Connect > Manage Users > Test Users

    I'm trying that now. Thanks!
  • HymloeHymloe Member Posts: 1,653
    It's WORKING! Thank you so much for your help and patience, beefy_clyro!

    Thanks for putting up with all my whining!

    I made sure I checked up on all the naming formats and things, like you said. And I have upgraded my iOS on my iPod Touch 4 to 5.1 (although I'm not sure if that's relevant), and I made the proper test account through iTunes Connect. That seems to have been the key thing, it would seem.

    Strange that I had not come across mention of that in any of those videos and other posts around the place. Thanks so much!

    PHEW.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    @Hymloe ... No worries mate, i know how frustrating it is when you can't see why something that looks to be right isn't working. Glad its all sorted now :)
Sign In or Register to comment.