Facebook high scores work intermittently

Get help using Construct 2

Post » Mon Dec 03, 2012 6:32 pm

Hi all! I built this game and the high scores from facebook show up only about 50% of the time. Any idea what might be causing this?

https://dl.dropbox.com/u/104969459/PSW%20Game%20facebooked.capx
B
3
Posts: 5
Reputation: 610

Post » Mon Dec 03, 2012 7:55 pm

Just opened it up, first make sure to request a new app secret on your facebook developer app page soon. You left it in your capx which could allow for less decent people to mes with your app.
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Mon Dec 03, 2012 8:01 pm

They are known for throttling content at Facebook and you look like you have it set to post a new highscore every time the score passes facebook saved score. Maybe set the score to update every milestone(ie every 100 score points. I don't think you need to include the facebook ready in that condition statement either, if they have logged in then the sdk is assumed ready. Make sure your app is categorized as a game as well on the game app page. In order for highscore and achievements to work properly the app must be set to game. Anyways, those are just a couple thoughts, not sure if they solve the problem but I tried. :) PS don't forget to change your app secret now.
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Mon Dec 03, 2012 10:55 pm

Ok I reset it to only post the highscore at the end of the round but it still doesn't seem to want to retrieve the highscore info from facebook and post it to the scoreboard I created. Any ideas?
B
3
Posts: 5
Reputation: 610

Post » Mon Dec 03, 2012 11:29 pm

it seems that bucket.health <= 0 at the top of your eventsheet destroys the bucket, (the one where you share your app)

this will make the events stop working at the bottom of your eventsheet
depending were the eventsheet is when the event fires

so sometimes it will run, sometimes not

edit: you can probably fix this just by moving that topevent to the bottom, so it only destroys when all events are finishedvtrix2012-12-03 23:32:02
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Mon Dec 03, 2012 11:31 pm

nice catch :)
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Tue Dec 04, 2012 4:33 pm

OK, tried making that change. Seems to work more frequently but still not reliably and now it is generating the top 5 high scores and then the top 2 below that. Any other ideas? By the way thanks for the help, been wrestling with this for a while before I came here.
B
3
Posts: 5
Reputation: 610

Post » Tue Dec 04, 2012 6:07 pm

https://dl.dropbox.com/u/104969459/PSW%20Game%20facebooked.capx

if this one here is your final capx. i`ve made 2-3 changes at the bottom of event sheet 1 and the Facebook scores seems to run well :

HIGHSCORES

here you can see the changes i`ve made :

1Bros52012-12-04 18:13:32
B
19
S
9
G
1
Posts: 3
Reputation: 2,263

Post » Wed Dec 05, 2012 2:27 am

Thanks Bros5! That seems to have fixed my issue!
B
3
Posts: 5
Reputation: 610

Post » Wed Dec 05, 2012 4:43 pm

you are welcome ChristianXPEM   
B
19
S
9
G
1
Posts: 3
Reputation: 2,263

Next

Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, Yahoo [Bot] and 20 guests