Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / GameCenterShowLeaderBoard- What is the correct ID?

Author
Message
wyrleywolves2
6
Years of Service
User Offline
Joined: 16th Jan 2018
Location:
Posted: 23rd Jan 2018 03:29 Edited at: 23rd Jan 2018 03:56
When I run this command nothing seems to happen. I have set the name of the leaderboard to the one in my Google Play Console, but maybe getting it wrong? GameCenterAchievementsShow() works fine btw. In my cosnsole it is set to Line.Breaker High Scores, so I would assume this should work-GameCenterShowLeaderBoard ("Line.Breaker High Scores").Any help would be greatly appreciated.
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 23rd Jan 2018 10:01
I got confused with that too but you use the ID number (put it in quotes or convert it so its a string)
Same with the achievements.
The ID is found at the top of the google play page when you open the leaderboard setup etc.
life's one big game
spec= 4ghz, 16gb ram, AMD R9 2700 gpu
wyrleywolves2
6
Years of Service
User Offline
Joined: 16th Jan 2018
Location:
Posted: 23rd Jan 2018 15:21 Edited at: 23rd Jan 2018 15:23
Thanks for your reply, but I am still struggling. When I broadcast the game it logs in to google games fine, but when i transfer the apk to my phone and the run it, it fails to login. Is the ID the one with just numbers or the alpha-numeric key? I have tried both and failed, I don't know exactly where i am going wrong.
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 24th Jan 2018 11:16 Edited at: 24th Jan 2018 11:22
Like this...............................
copy and paste so will nothing go wrong.



Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz

Attachments

Login to view attachments
wyrleywolves2
6
Years of Service
User Offline
Joined: 16th Jan 2018
Location:
Posted: 24th Jan 2018 15:46 Edited at: 24th Jan 2018 17:15
Thanks for your response Cliff, The app is now crashing on the GameCenterLogin() command. If I uninstall Play Games, It reinstalls Play Games on startup then passes the message That I can't Sign in then plays the game fine. When I run the app after this the game crashes. In the export APK screen do you enter the leaderboard ID or the game application ID? When I use the leaderboard ID in the export apk screen the game crashes, when I use the App ID, it doesn't crash but refuses to login to Google Play. When I use broadcast, it logs in fine but shows no leaderboard.
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 24th Jan 2018 19:39
you put your game application ID given by google game center in the google play ID box
Quote: "but when i transfer the apk to my phone and the run it, it fails to login"

if you don't install the game from the store it likely won't show any leaderboard, there's also a wait for it to activate if it's the first time you have added the play service to the app (normally about 1 day).
logging in from broadcast is actually logging you into a test for the broadcast app (not your app) - if you open/show achievements (in the app) you will see they are all dummy achievements and nothing to do with the game centre settings you have (they will be correct in your own app from the store though).
life's one big game
spec= 4ghz, 16gb ram, AMD R9 2700 gpu
wyrleywolves2
6
Years of Service
User Offline
Joined: 16th Jan 2018
Location:
Posted: 24th Jan 2018 19:42
Thanks smallg, that explains it I think.
wyrleywolves2
6
Years of Service
User Offline
Joined: 16th Jan 2018
Location:
Posted: 24th Jan 2018 20:07
Thanks all for your help. Everything seems A-OK.
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 25th Jan 2018 08:02
Great to help
I had a few issues my self so good if you can help...

Login to post a reply

Server time is: 2024-03-28 16:56:15
Your offset time is: 2024-03-28 16:56:15