Game Center score submission not working

Discussion in 'Public Game Developers Forum' started by Stafaa, Aug 13, 2012.

  1. Stafaa

    Stafaa Member

    Dec 17, 2011
    12
    0
    0
    Game center authenticates my user correctly and can display leaderboards, however when i try to submit my score it does not cooperate.

    When the gaming session is over, I call this function...


    I go to leaderboards and there's nothing.

    Any suggestions???
     
  2. JustinFic

    JustinFic Well-Known Member

    May 20, 2009
    51
    0
    0
    Game Designer / Programmer
    Las Vegas, NV
    Leaderboards don't show anything until they get at least two scores in them.
     
  3. jeremy.provost

    jeremy.provost Well-Known Member

    Nov 18, 2011
    94
    0
    0
    We'd really need to see more code than that to help. The Game Kit libraries for this (hidden inside your manager class) return error messages if there is a failure. Have you looked at those?
     
  4. Devcade

    Devcade Member

    Feb 23, 2012
    24
    0
    0
    Not just two scores. It needs two scores from two different player IDs.

    To test it, you need to create two GameCenter login IDs.

    What I would do is use one ID to post an initial score, then just use the other
    ID for testing as usual. There's no need to swap IDs back and forth.
     
  5. BrandonLassiter

    BrandonLassiter Well-Known Member

    We would really need to see more of your code to diagnose what is going on. is "highscore" an instance variable? How does that get updated? and if it isnt an instance variable then its very likely that its getting passed as null. Have you tried to NSLog the value of the high score to see what it is sending?
     

Share This Page