[PLUGIN] Clay.io (leaderboards & achievements)

Post your completed addons to share with the community

Post » Tue Sep 04, 2012 10:05 pm

I take it you still get that error? If you're on a strict firewall (at work for example) often times ports other than port 80 (the default port for http) are blocked.

The other reason that could happen is if you're on a very slow connection, and the API isn't able to load within 7 seconds.

Does either of those sound like you?
B
24
S
8
G
4
Posts: 208
Reputation: 6,152

Post » Thu Sep 06, 2012 1:58 am

For an update on CocoonJS, I've completed a packaged version of the API that avoids using the DOM (since by default CocoonJS doesn't have DOM). I still have to create a system of 'home-made' input boxes that use just canvas functions rather than an actual <input> so Clay.io login will work. Many of the API features will not work (anything that requires HTML elements), but it should get the games working in CocoonJSaustin2012-09-06 02:00:21
B
24
S
8
G
4
Posts: 208
Reputation: 6,152

Post » Thu Sep 06, 2012 4:57 am

Is there any way to close the leaderboards etc from a gamepad or keyboard? I think the only way I know how to close the window is via a mouse.
B
30
S
10
G
7
Posts: 416
Reputation: 7,239

Post » Thu Sep 06, 2012 6:37 am

The escape key should do it, but it doesn't always work properly, so I'll have a look into it.

EDIT: I looked into it again, and wasn't able to get it to fail (not close on pressing "esc"), so it seems stable, but if you can find a case where that doesn't work, let me know!austin2012-09-06 06:42:27
B
24
S
8
G
4
Posts: 208
Reputation: 6,152

Post » Sun Sep 09, 2012 3:48 am

The plugin is not working on cocoonJS

Error:
TypeError: 'undefined' is not an object (evaluating 'd.parentNode')

Is there any way you can test your plugin with cocoon?

Thanks
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Sun Sep 09, 2012 5:09 am

CocoonJS integration is something I'm currently working on, I'll post it as soon as it's done (next few days)
B
24
S
8
G
4
Posts: 208
Reputation: 6,152

Post » Mon Sep 10, 2012 6:49 am

Thank you very much @austin
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Tue Sep 18, 2012 5:46 pm

I need a couple people who are willing to test out the CocoonJS/DOMless API integration for me. Since CocoonJS doesn't have easy access to the DOM, we can't do any sort of UI with HTML, so from CocoonJS if you're using our leaderboard UI rather than doing a loop and showing your own, posting scores will still work, but the displaying the leaderboards won't.

Shoot me an email austin@clay.io if you're interested
B
24
S
8
G
4
Posts: 208
Reputation: 6,152

Post » Wed Sep 19, 2012 1:13 am

I've updated the plugin to have support for our new Facebook Invite feature.

It's a great new way to make your game more viral, and is really simple to implement...just create a new action with the event "Invite Facebook Friends". That will connect to the player's Facebook and bring up a modal window with their friends. They can select the friends they wish to invite, and a message will be posted on their Facebook wall about your game.

There's also an optional condition that will fire when at least one Facebook friend is successfully invited.

You can find the new version of the plugin here.
B
24
S
8
G
4
Posts: 208
Reputation: 6,152

Post » Sun Sep 23, 2012 11:31 am

Hi Austin.

I can't sign in to Clay.io.
and also I get an error messages when my game is requesting to post and show leaderboard. here's the msgs.

"Javascript error!
Script error.
http://clay.io/api/api.js, line 0

This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer."

"Make sure your firewall isn't blocking port 843" <--- this pops up when I'm tryn to sign in to clay.io too..

is clay.io down or something? cox yesterday everything worked fine.
B
12
S
3
G
4
Posts: 23
Reputation: 3,682

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests