• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

Google Play

Rich

Well-known member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
3rd Party Tool Dev
Joined
Sep 9, 2017
Messages
451
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
 
What do you mean by a Google Play module? What kind of functionality?
 
i know what i meant ;-)
Im looking at leaderboards and acheivements please
 
Sorry, I cannot help you with this.
But maybe change the thread title to "Module for Google Play Games Services"
 
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.
 
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.
 
spoke too soon..
I have something compiling. This makes me happy
Lets see if it passes first test
 
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
 
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:
as a last minute thing, Ive also added some customisable Toast popups
 
sorry for the delay... I'll get something up by the end of the week
 
Hi did anything get released for this? I'd love to get online leaderboards in my apps.
 
Im planning to update this and migrate onto itch.io soon (along with a lot of code)

Any comments are welcome
 
Back
Top Bottom