Leaderboard won't function on adhoc??

Tim_ATim_A Member, PRO Posts: 60
Hi,

Pretty much as the title suggests... i can't get my leaderboard to function in my new game at all??

1. I've created a leaderboard and set the ID to com.mydomain.mygame and that seems setup fine.

2. I've added a 'Platform - Login' on a timer 1 second after the scene starts

3. I've set a 'Platform - Post Score' to post the new score if at the end the score > highscore

4. I've created a 'Platform - Show Leaderboard' button and linked it to com.mydomain.mygame

When I run the preview... all the functions seem to work perfectly... auto-logging in, posting the score and linking to the leaderboard (all in the popups).

However when i create an adhoc version... nothing works at all! None of the buttons work, and Game Center isn't triggered to login at the beginning (i've even tried a separate login button with no success).

Any ideas what it might be?

Regards

Tim

Comments

  • BBEnkBBEnk Member Posts: 1,764
    I had a similar problem before and it was because I was not logged into Game Center on my device.
  • Tim_ATim_A Member, PRO Posts: 60
    Thanks for replying, however i've tried both logged in and logged out and still nothing? I don't even get the prompt to log-in from Game Center?

    Could it be to do with my prove profiles etc? I must admit I get confused with all of that!
  • Tim_ATim_A Member, PRO Posts: 60
    Just an update... I loaded the stock 'leaderboard' project that comes with GameSalad and published that as an adhoc on my iPhone (having changed the details to my leaderboard ID etc.) and am still getting the same problem... no buttons work at all???

    Might this be a problem with the build and not my end then??
  • BBEnkBBEnk Member Posts: 1,764
    If you Provisioning profile was bad I don't think game would even work on your device, for my login on my game which i'm working on now and it does work. I have the login behavior in a actor all by itself on the first menu screen at the very top of the layers so it's actually the last thing that is executed and that works perfect for me and no timers just that behavior.
  • Tim_ATim_A Member, PRO Posts: 60
    The profiles work fine with regards to moving the app to my iphone and testing it. However I can't explain why these buttons wouldn't work at all?

    Could it be a setting on my phone? Or some sort of cache that needs clearing? For instance, if I open up my Flappy Birds app (the original), it asks me straight away to login so I know the problem's with my app?
  • BacktothisBacktothis Member, PRO Posts: 75
    edited March 2014
    edit - read below
  • BacktothisBacktothis Member, PRO Posts: 75
    edited March 2014
    We have the same problem and just posted about this yesterday, to no avail. The version we submitted to Apple had a functioning GC that worked with ad hoc over TestFlight. However, in our new version, we confirmed that our button for GC still works by making it disappear upon being clicked, but the GC function is completely gone.

    As you said, in the GS preview, it shows that the GC function is still there. The funny thing is, we tried testing the .ipa we submitted to Apple again. Even the GC function in there is now gone. We have no idea what the problem could be except a possible error with our pro account, in which GS still thinks we are a basic member when we generate the actual app.
  • Tim_ATim_A Member, PRO Posts: 60
    That would make perfect sense... it fits in with other posts i've read about the Twitter button not doing anything because accounts weren't marked as pro.

    I had it working once but not quite as Id like it, so I tweaked it, re-uploaded and it's never worked since (nothing I did, I even retried the original working file).

    Now who do we contact?
  • BacktothisBacktothis Member, PRO Posts: 75
    Out of curiosity, did you happen to buy GS through the student discount thing?
  • Tim_ATim_A Member, PRO Posts: 60
    No sorry, I downloaded the PC version for free, then upgraded to Pro about a week later and have been using a Mac since...

    I'm thinking a log-out/log-in might be beneficial in creator as well as a cache clearout... will give that a try tomorrow and see if there's any change.
  • Tim_ATim_A Member, PRO Posts: 60
    Actually, the more I think of it... I have the Twitter Sheet working fine on my app, and that's a Pro feature which would suggest that i'm being considered a 'Pro' during the build??
  • BacktothisBacktothis Member, PRO Posts: 75
    edited March 2014
    Our twitter works as well. The one difference I could think of is that Twitter might be client side, since you can't even put it in unless your client is in pro mode, but gc is in the normal functions, just not enabled if not pro when gs servers build the app for you right? So that would be server side. I really can't think of what else to try to fix it so...
  • BacktothisBacktothis Member, PRO Posts: 75
    edited March 2014
    At first, we thought it might be that there was something wrong with the profile, BundleID, etc. But..the GC function is completely just gone in this case. We put GC in during our first day of using GS Pro and submitted it that same day since we had done everything already besides adding the Pro features. GC has never worked again since that first day in any newly generated IPAs, even with the submitted version, as mentioned. That was just a few days ago too. Again, I reiterate, GC worked perfectly fine in the version we submitted to Apple. Before we uploaded a new IPA the day after since we were working on updates, I tried everything on our submitted version, and GC still worked. That was the last time.

    The version we submitted does not have a functioning GC anymore. Preview shows it does. The feature is just completely stripped in the generation process.
  • Tim_ATim_A Member, PRO Posts: 60
    Yeah it sounds like the same problem here... I did an adhoc build a couple of days ago and GC worked, but all functionality has been lost in the subsequent builds/tests i've done using the same prov profiles etc. etc.

    Is there a way we can notify admin, or submit a support request? I'm guessing this might affect others too?
  • BacktothisBacktothis Member, PRO Posts: 75
    I had actually contacted support just yesterday, but their response was not too helpful. I have submitted a much more detailed report this time around. You just go to "Help" at the top toolbar, and submit your case through the support section there. I will let you know if we have any luck tomorrow, since replies come in under a day.
  • Tim_ATim_A Member, PRO Posts: 60
    I've just done that so will report back to this thread if I have any luck.

    All the best

    Tim
  • BacktothisBacktothis Member, PRO Posts: 75

    Support never got back to us, but we figured it out. Settings > General > Reset > Reset All Settings. Turns out, GameCenter stops asking you to sign in if you decline too many times, making the function do nothing in our builds. Resetting your iPhone addresses this. Good luck!

  • Tim_ATim_A Member, PRO Posts: 60

    Ha support never got back to me either ! Great service that! Thanks so much for taking the time to post back, will give it a go ;)

  • iKandyiKandy Imagineer of Crazy Shit New York CityMember Posts: 310

    I was having the same problem. The GameCenter functionality seems to work in the Viewer ("....this is where the log-in would occur.") However, when I make an adhoc -- no GameCenter functionality. The answer is go to your iphone Settings/General/Reset/Reset all Settings. ...... thank you "Backtothis"-- GameSalad should fix this problem.

Sign In or Register to comment.