Google Play

Rich

Active Member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Sep 9, 2017
Hi
I was wondering of anyone knows of a Google Play module for CX please?
If not, I'll try looking at building one (at some point)
Rich
 

Rich

Active Member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Sep 9, 2017
i know what i meant ;-)
Im looking at leaderboards and acheivements please
 

Phil7

Moderator
Joined
Jun 26, 2017
Sorry, I cannot help you with this.
But maybe change the thread title to "Module for Google Play Games Services"
 

Rob Hewitt

Member
Joined
Aug 30, 2017
I'm sure someone did it on the old monkey forums. I'd love to get Google play leaderboards in my games as local high score table are nice but device specific and I have no site I can store scores.
 

Rich

Active Member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Sep 9, 2017
i think i have that module

https://github.com/Ironstorm/bbd

unfortunately the android libraries has moved one somewhat and compiler also using gradle now.
Im having a hack now with no luck

Even the 11.0.4 on my machine (android library dated august 2017) is old. its now at v15+
I think the gradle files need maven references now to get the newer versions

One thing i have noticed is that you cant have the current brl.admob and another google play service compiled at the same time due to the way the gradle files are built in CX. I may be wrong. its early doors yet.
 

Rich

Active Member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Sep 9, 2017
spoke too soon..
I have something compiling. This makes me happy
Lets see if it passes first test
 

Rich

Active Member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Sep 9, 2017
Got something working :-D

The app can sign in, sign out and display a leaderboard from CX. I think the hard bit has been done now, Posting scores and acheivemnts should come tomorrow.

Once finished I'll post up instrauction and code etc

Its been a bit of pain as its seems like you cant connect to Google Play services if you using a DEV signing key. Which means I had to compile for release and upload manually to my phone for every test :-( Theres probably a better way


anyhows, watch this space
 

Rich

Active Member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Sep 9, 2017
GOT IT!!


Description of video
1) single green bar... sign in button
2) once pressed, button turns red for sign out. Other options appear
3) Yellow button to show leaderboard with my score of 7860
4) Orange button, submits a random score
5) Yellow button to show leaderboard with my score now : 50106
6) Magenta button shows Achievements - none completed
7) Lilac button, completes that achievement
8) Magenta button shows Achievements - all now completed

Code:
        If MouseHit(MOUSE_LEFT)

            If MouseY()<200
                ' sign in/out
                If gms.IsSignedIn()
                    gms.SignOut()
                Else
                    gms.SignIn()
                End
            Else
                If MouseY()<400
                    gms.SubmitLeaderboardScore("CgkIzeqAseADEAIQAQ",Rnd(100000))
                Else
                    If MouseY()<600
                        gms.ShowLeaderboard("CgkIzeqAseADEAIQAQ")
                    Else
                        If MouseY()<800
                            gms.UnlockAchievement("CgkIzeqAseADEAIQAw")
                        Else
                            If MouseY()<1000
                                gms.ShowAchievements()
                            End
                        End
                    End
                End
            End
will write docs and tidy code tonight
 
Last edited:

Rich

Active Member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Sep 9, 2017
as a last minute thing, Ive also added some customisable Toast popups
 

Rich

Active Member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Sep 9, 2017
sorry for the delay... I'll get something up by the end of the week
 

magic

Active Member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Mar 5, 2018
here

thank you so much @Rich for your awesome module
 

Rob Hewitt

Member
Joined
Aug 30, 2017
here

thank you so much @Rich for your awesome module
Doh. I really should trawl forums more. Cheers! I'll give it a go.
 

Rich

Active Member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Sep 9, 2017
Im planning to update this and migrate onto itch.io soon (along with a lot of code)

Any comments are welcome
 
Top Bottom