Game Center not working

nir3112nir3112 Member, PRO Posts: 312
Hi,
I used the template of game center and I created Leader board and everything
like in Gamesalad video ,but in my game it's not working at all..when I press on "view leaderBoard" nothing happening.
In GameCenter I see the LeaderBoard but it's empty..
What I did wrong? and how do I fix it?
(BTW my app is published)

Comments

  • nir3112nir3112 Member, PRO Posts: 312
    Up
  • nir3112nir3112 Member, PRO Posts: 312
    edited August 2013
    Have to see the code.
    In the menu screen I made button of Game Center that take to another screen and in there "log in" , "post score" and "view leader board" buttons...but nothing happens when I press on something..
    After that I try this:
    In the menu screen I made button of Game Center:
    When touch is released then command "view leader board"
    But nothing happens..
    In the leaderboard ID I write com.myname.score as in my iTunes connect
    Plz help!
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited August 2013
    Did you sandbox this before you submitted it. If it's on the App Store and it doesn't work I'm surprised it passed review. And stop exclaiming plz help we are trying to help. If the leaderboard is empty you didn't say where you put the code to post to the leaderboard. Take screenshot of the code and post it.
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited August 2013
    This can happen if you cancel sign in to Game Centre in your game. Buttons that go directly to leaderboards or achievements won't work if you're signed out of Game Centre. They don't even work if you put in a log in behaviour right before the behaviour that takes you to the leaderboards or achievements. Check that you are signed in by opening the Game Centre app on your device.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Yes this is true the user has to want to sign in to Game Center. If the user chooses to no sign in or use it you will have nothing on your leaderboard.
  • nir3112nir3112 Member, PRO Posts: 312
    This can happen if you cancel sign in to Game Centre in your game. Buttons that go directly to leaderboards or achievements won't work if you're signed out of Game Centre. They don't even work if you put in a log in behaviour right before the behaviour that takes you to the leaderboards or achievements. Check that you are signed in by opening the Game Centre app on your device.

    Yes this is true the user has to want to sign in to Game Center. If the user chooses to no sign in or use it you will have nothing on your leaderboard.
    So I need to make the log in command to work when the app starts
    And then when I press on "view leaderboard" it should work? And the score will be in the leaderboard?
    ( I'm not at home right now so I'll put screenshot later)
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    No you need to have a button that allows the user to long in when they want. The log in command should be an option in your game options or gamecenter menu area. You still haven't told me when you are sending data to the leaderboard.
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    In mine I have an auto login to GameSalad when the first scene is loaded, however this doesn't work if they've once cancelled the sign in, at least not until they've closed the game completely and re-loaded. Doing this they might get prompted once again to sign in.

    Due to the simplicity of the game, and it being my first, I made it so that the game was the first scene, without having a menu before hand. An auto login seemed sensible.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited August 2013
    I have a video series on my YouTube about Game Center and how to set everything up. The data won't get sent until the player is signed in. You need to make sure somehow that data can be sent after they are signed in.
  • nir3112nir3112 Member, PRO Posts: 312
    edited August 2013
    I have a video series on my YouTube about Game Center and how to set everything up. The data won't get sent until the player is signed in. You need to make sure somehow that data can be sent after they are signed in.
    U can give me link to your videos plz?
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Right in my signature where it says video tutorials just click it.
  • nir3112nir3112 Member, PRO Posts: 312
    edited August 2013
    Right in my signature where it says video tutorials just click it.
    Thx I will try everything and post later
  • nir3112nir3112 Member, PRO Posts: 312
    No you need to have a button that allows the user to long in when they want. The log in command should be an option in your game options or gamecenter menu area. You still haven't told me when you are sending data to the leaderboard.
    ok,
    I tried to do it like this:
    When you opening the app after 1.5sec the "Log in" command will work
    When you die the "Post score" post the highest score and when you press on the icon of Game Center the "View leaderboard" will appear but it's still not working...
  • nir3112nir3112 Member, PRO Posts: 312
    Up
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    When using sandbox mode it can take sometime for stuff to post. Make sure the rule the post to leaderboard is in is firing. You can use either a log debug or a display actor.
  • FajlajpFajlajp Member Posts: 666
    @nir3112
    I can´t see that you are pro,maybe that´s why it don´t work :-/
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    @fajlajp I just smacked myself in the head! He used the template which might show the behaviors but will not publish out. Well if you're not pro user there is your problem. You need pro for GameCenter.
  • FajlajpFajlajp Member Posts: 666
    @FryingBaconStudios.
    I just thought it was something wrong with my computer :))
    Like he said. You need to be pro for using the game center.
  • nir3112nir3112 Member, PRO Posts: 312
    edited August 2013
    @nir3112
    I can´t see that you are pro,maybe that´s why it don´t work :-/
    @fajlajp I just smacked myself in the head! He used the template which might show the behaviors but will not publish out. Well if you're not pro user there is your problem. You need pro for GameCenter.
    @FryingBaconStudios.
    I just thought it was something wrong with my computer :))
    Like he said. You need to be pro for using the game center.
    Ok XD I didn't know that I need pro for this to work I thought I just need the behaviors...
    Thx anyway!(:
Sign In or Register to comment.