Bootfit's Recent Forum Activity

  • I've added the is signed in as a sub event to the Android version here:

    But I can't seem to add the on auth successful as a sub-event to the iOS version:

    Any idea how to implement the iOS version?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Well one thing I don't want to do is log the user in or request a sign in unless they specifically press the leaderboard button.

    So I need a process where the authentication/sign in and upload score and display leaderboard is handled with a single button press.

  • OK - so I put in the App and Client IDs in the Google Play plugin.

    My code to sign in and upload the highscore to the leaderboard looks like this:

    This signs in to the Google Play service - but then doesn't (seem to) do anything else - ie it doesn't display the leaderboard on my phone. I thought Sign up > Submit > Display would work fine here. What am I missing?

  • OK - linked the app.

    Have been given several long strings - perhaps signing keys etc?

    Where do I put these? Somewhere in my app, then re-export?

  • OK - I've added the apk to Internal Test - what now?

  • The only place I seem to be able to upload an APK is via the All Applications tab then select the Application then App releases tab then I get a list of Production, Beta, Alpha, Internal Test - in each of these I can select Manage then Create Release and upload an APK there.

    Is this the correct place to upload an APK? Which do I select?

  • Yeah - I'm mixing the two up. I've sorted the Apple Game Center leaderboards - It's the Google Play Services leaderboard I'm trying to implement for Android.

    I've got the Google Play Console and have created an application in the All Applications tab.

    In the Game Services tab I've added a new game and created a Leaderboard.

    It says the next step is for me to link an app.

    When I click Link App icon I get a series of icons (Android, iOS, Web, Chrome, Other Platform) - I choose Android and it asks me for a package name - this is where I'm up to and where I'm stuck.

    Can you help here?

  • Took me a while to figure this out but...

    Go here and resize/download all your icons: https://resizeappicon.com/

    Then import them into your project.

    Then, once you export - go into your config.xml and change...

    	<icon src="www/icons/icon-512.png" width="512" height="512" density="xxxhdpi" />
    	<icon src="www/icons/icon-256.png" width="256" height="256" />
    	<icon src="www/icons/icon-128.png" width="128" height="128" density="xhdpi" />
    	<icon src="www/icons/icon-64.png" width="64" height="64" density="mdpi" />
    	<icon src="www/icons/icon-32.png" width="32" height="32" />
    	<icon src="www/icons/icon-16.png" width="16" height="16" />
    [/code:2la2uxih]
    
    ...to...
    
    [code:2la2uxih]    <icon src="www/icons/appicon24x24@2x.png" width="48" height="48" />
        <icon src="www/icons/appicon27.5x27.5@2x.png" width="55" height="55" />
        <icon src="www/icons/appicon29x29@2x.png" width="58" height="58" />
        <icon src="www/icons/appicon29x29@3x.png" width="87" height="87" />
        <icon src="www/icons/appicon40x40@2x.png" width="80" height="80" />
        <icon src="www/icons/appicon44x44@2x.png" width="88" height="88" />
        <icon src="www/icons/appicon86x86@2x.png" width="172" height="172" />
        <icon src="www/icons/appicon98x98@2x.png" width="196" height="196" />
        <icon src="www/icons/googleplaystore.png" width="512" height="512" />
        <icon src="www/icons/hdpi.png" width="72" height="72" />
        <icon src="www/icons/icon-16.png" width="16" height="16" />
        <icon src="www/icons/icon-32.png" width="32" height="32" />
        <icon src="www/icons/icon-60@2x.png" width="120" height="120" />
        <icon src="www/icons/icon-60@3x.png" width="180" height="180" />
        <icon src="www/icons/icon-64.png" width="64" height="64" density="mdpi" />
        <icon src="www/icons/icon-72.png" width="72" height="72" />
        <icon src="www/icons/icon-72@2x.png" width="144" height="144" />
        <icon src="www/icons/icon-76.png" width="76" height="76" density="hdpi" />
        <icon src="www/icons/icon-76@2x.png" width="152" height="152" />
        <icon src="www/icons/icon-83.5@2x.png" width="167" height="167" />
        <icon src="www/icons/icon-128.png" width="128" height="128" density="xhdpi" />
        <icon src="www/icons/icon-256.png" width="256" height="256" />
        <icon src="www/icons/icon-512.png" width="512" height="512" density="xxxhdpi" />
        <icon src="www/icons/icon-notification.png" width="20" height="20" />
        <icon src="www/icons/icon-notification@3x.png" width="60" height="60" />
        <icon src="www/icons/icon-small-40.png" width="40" height="40" />
        <icon src="www/icons/icon-small-40@2x.png" width="80" height="80" />
        <icon src="www/icons/icon-small-40@3x.png" width="120" height="120" />
        <icon src="www/icons/icon-small-50.png" width="50" height="50" />
        <icon src="www/icons/icon-small-50@2x.png" width="100" height="100" />
        <icon src="www/icons/icon-small.png" width="29" height="29" />
        <icon src="www/icons/icon-small@2x.png" width="58" height="58" />
        <icon src="www/icons/icon-small@3x.png" width="87" height="87" />
        <icon src="www/icons/icon.png" width="57" height="57" />
        <icon src="www/icons/icon@2x.png" width="114" height="114" />
        <icon src="www/icons/itunesartwork.png" width="512" height="512" />
        <icon src="www/icons/itunesartwork@2x.png" width="1024" height="1024" />
        <icon src="www/icons/ldpi.png" width="36" height="36" />
        <icon src="www/icons/loading-logo.png" width="64" height="64" />
        <icon src="www/icons/mdpi.png" width="48" height="48" />
        <icon src="www/icons/xhdpi.png" width="96" height="96" />
        <icon src="www/icons/xxhdpi.png" width="144" height="144" />
        <icon src="www/icons/xxxhdpi.png" width="192" height="192" />[/code:2la2uxih]
    
    ...as Construct doesn't put all the required icon sizes into Config.xml
    
    Hope this helps.
  • All sorted with the latest r97 release.

  • I'm building my game via Phonegap Build and get the following error when including the Google Play plugin:

    [quote:mpmdxvvp]Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0. Please upgrade the version of any plugins that may include the following file: ConstructPlayGames.java - You can fix this here

    I've tried building without the Google Play Plugin and I don't get the error.

    This is the plugin snippet from the config.xml that's causing the error:

    	<plugin name="construct-play-games" spec="1.0.5" >
    		<variable name="APP_ID" value="" />
    	</plugin>
    [/code:mpmdxvvp]
    
    I've also tried building with the spec="1.0.5" removed and get the following error:
    
    [code:mpmdxvvp]FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':compileReleaseJavaWithJavac'.
    

    Compilation failed; see the compiler error output for details.

    * Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 15.894 secs

    Error: /project/gradlew: Command failed with exit code 1 Error output:

    Note: Some input files use or override a deprecated API.

    Note: Recompile with -Xlint:deprecation for details.

    Note: Some input files use or override a deprecated API.

    Note: Recompile with -Xlint:deprecation for details.

    /project/src/com/scirra/ConstructPlayGames.java:410: error: lambda expressions are not supported in -source 1.6

    t -> {

    ^

    (use -source 8 or higher to enable lambda expressions)

    1 error

    FAILURE: Build failed with an exception.

    * What went wrong:

    Execution failed for task ':compileReleaseJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

    * Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)

    at emitTwo (events.js:106:13)

    at ChildProcess.emit (events.js:191:7)

    at maybeClose (internal/child_process.js:877:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)[/code:mpmdxvvp]

    I'll also post this to the bug forum.

  • Folks - any idea how I progress with this?

    Or is there a simpler way to integrate Google Play Leaderboards?

  • OK then - so I've created a leaderboard for Google Play Store.

    I now need to create a client ID and to do that I have to generate an OAuth 2.0 client ID for my game and a package (https://developer.android.com/guide/topics/manifest/manifest-element#package).

    Can anyone let me know what I'm meant to do here?

Bootfit's avatar

Bootfit

Early Adopter

Member since 3 Sep, 2017

Twitter
Bootfit has 2 followers

Trophy Case

  • 7-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies