[PLUGIN] Clay.io (leaderboards & achievements)

From the Asset Store
Implement a customizable array-based achievement system with the fully-commented template.
  • Hi,

    I've noticed when the CLAY.IO window is popped up, touch conditions in the background are still active. Is there a way around this? When the login window appears for Clay on my options screen, scrolling or interacting with is also triggers touch button events behind it?

    I am also having trouble getting clay.io to work with cocoonks. If I export from construct 2 then manually add the clay files to the zip it works in the launcher ok most of the time (Although sometimes the plugin doesn't respond - I have two buttons, one for achievements and one to log in, sometimes one request will stop working and the other will bring up both requests at the same time??). If I copy just the 4 files into the zip it loads up the clay.io small:

    <img src="http://i40.photobucket.com/albums/e239/mayfly118/2014-02-13151037.png" border="0" />

    If I add all the clay.io plugin folder into my zip I get it full screen almost:

    <img src="http://i40.photobucket.com/albums/e239/mayfly118/2014-02-13150133.png" border="0" />

    But if using the cloud compiler and jarsigner / zipalign the file for release the clay.io features no longer work =( Nothing happens in the app. The same happens on the signed / debug.apk version.

    I am using the latest C2, CocoonJS and Clay.io files. I am testing on a Samsung Galaxy S3 with latest android 4.2

    I would say in the launcher clay.io works 8/10 times loading my app. Sometimes clay.io is full screen, sometimes just under full screen.

    On a apk from the cloud compiler it works around 1 in 10. The other 9 times it doesnt function at all?

    Is there any fixes for this?

    Thanks

  • Im getting "No Hight Score Yet" on the leader board , but when i open the leader bored view from the admin panel i can see scores ?!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hi all we have this error

    dl.dropboxusercontent.com/u/13512632/Level Plus Game Stuido/error cocoonjs_cly.jpg

    we try to test the game with cocoonjs in a sony xperia s

    dl.dropboxusercontent.com/u/13512632/Level Plus Game Stuido/neon_runner_cocoonjs_clay2/neonrunnertest.zip

    we pasted all the files and edite the index.html

  • I've updated the plugin with what should fix the issue. You will need to make a change to a file in the Construct 2 CocoonJS export however.

    In index.html, you will see:

    > <html>
         <body>
              <script src="c2runtime.js">
              </script>
         </body>
    </html>
    

    Change that to:

    > <html>
         <body>
              <script src="CocoonJS.js"></script>
              <script src="CocoonJS_App.js"></script>
              <script src="CocoonJS_App_ForCocoonJS.js"></script>
              <script src="CocoonJS_App_ForWebView.js"></script>
              <script src="c2runtime.js">
              </script>
         </body>
    </html>
    

    I've reached out to Ashley about getting that setup by default in C2 because I imagine that's breaking one or two of their plugins as well

    doesnt work for me i have this problem

    hi all we have this error

    dl.dropboxusercontent.com/u/13512632/Level Plus Game Stuido/error cocoonjs_cly.jpg

    we try to test the game with cocoonjs in a sony xperia s

    dl.dropboxusercontent.com/u/13512632/Level Plus Game Stuido/neon_runner_cocoonjs_clay2/neonrunnertest.zip

    dl.dropboxusercontent.com/u/13512632/Level%20Plus%20Game%20Stuido/neon_runner_cocoonjs_clay2/neonrunnertest2.zip

    we pasted all the files and edite the index.html

  • > I've updated the plugin with what should fix the issue. You will need to make a change to a file in the Construct 2 CocoonJS export however.

    >

    > In index.html, you will see:

    >

    > > <html>
    >      <body>
    >           <script src="c2runtime.js">
    >           </script>
    >      </body>
    > </html>
    > 

    >

    > Change that to:

    >

    > > <html>
    >      <body>
    >           <script src="CocoonJS.js"></script>
    >           <script src="CocoonJS_App.js"></script>
    >           <script src="CocoonJS_App_ForCocoonJS.js"></script>
    >           <script src="CocoonJS_App_ForWebView.js"></script>
    >           <script src="c2runtime.js">
    >           </script>
    >      </body>
    > </html>
    > 

    >

    > I've reached out to Ashley about getting that setup by default in C2 because I imagine that's breaking one or two of their plugins as well

    doesnt work for me i have this problem

    hi all we have this error

    https://dl.dropboxusercontent.com/u/13512632/Level Plus Game Stuido/error cocoonjs_cly.jpg

    we try to test the game with cocoonjs in a sony xperia s

    https://dl.dropboxusercontent.com/u/13512632/Level Plus Game Stuido/neon_runner_cocoonjs_clay2/neonrunnertest.zip

    https://dl.dropboxusercontent.com/u/13512632/Level%20Plus%20Game%20Stuido/neon_runner_cocoonjs_clay2/neonrunnertest2.zip

    we pasted all the files and edite the index.html

    finally works but i have a problem with the leader board dl.dropboxusercontent.com/u/13512632/Level%20Plus%20Game%20Stuido/neon_runner_cocoonjs_clay2/neonrunnertest5.zip

    the game crash

  • I?m also having the same trouble Mayfly is having, when I click something on clay.io?s modal, it activates things behind.

    Also, I?m getting this erros:

    Failed to load resource: the server responded with a status of 403 (Forbidden) cdn.clay.io/images/share-icons.png

  • Im also having a few issues with some other clay.io features. If I choose facebook / twitter / google etc underneath to sign in it opens just a blank window that fails to load.

    Also posting to twitter works on html5 but not android export.

    Posting to facebook doesn't work on either, I get a stuck loading popup.

    I also cant get any clay.io working when testing with IE10/11.

    Any help would be appreciated.

  • Mayfly Sheepy You do have to deactivate other controls when a clay.io modal is open. There is an expression "ModalIsOpen" in the plugin.

    Im getting "No Hight Score Yet" on the leader board , but when i open the leader bored view from the admin panel i can see scores ?!!

    It appears I'm getting the same issue lately with my game that has previously worked flawless for months with the clay.io leaderboard.

  • Mayfly Sheepy You do have to deactivate other controls when a clay.io modal is open. There is an expression "ModalIsOpen" in the plugin.

    > Im getting "No Hight Score Yet" on the leader board , but when i open the leader bored view from the admin panel i can see scores ?!!

    It appears I'm getting the same issue lately with my game that has previously worked flawless for months with the clay.io leaderboard.

    Same here it was working flawless yesterday. For those whom were getting same score submitted the sametime the simple fix I did was when gameover was add a button that user clicks to submit there score.

  • Thanks, PixelRebirth, that solved it ;]

  • Is clay.io working? Nothing is working for me here, not even the social media icons.

  • Still getting "No Hight Scores Yet " on the Show leader board !!

  • I think clay.io is at the end... Nothink works 100%, buggs are more and more and it is not now good idea for my next projects... i is not stable :( I have same problems like here... But it was very good service :(

  • austin

    Can you check this leaderboards (No Hight Scores Yet) bugs ?

  • Does the "post to Twitter OR Facebook" modal work if the screenshot option is on? In here, if I try to share the link nothing happens.. Am I using it wrong or something?

    Edit: Also just bumped onto the Highscore bug too, apparently it only works when I'm previewing my game for some reason.. when I host it on Dropbox, it says that there are no highscores yet.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)