Clay.io Problem

Get help using Construct 2

Post » Wed Mar 19, 2014 5:21 pm

I have everything set up correctly I think, When I run the layout in C2 clay.io logs in and post high score everything works correctly, but once I publish it on google play play store it dont work. I have sandbox disabled. I'm using CocconJS.
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645

Post » Wed Mar 19, 2014 6:10 pm

You better posting this on Clay.io forums
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Wed Mar 19, 2014 10:42 pm

Well I would but clay.io works fine on there side, the problem is either with C2 or CocoonJS I believe.
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645

Post » Thu Mar 20, 2014 8:37 am

I read this on the Clay.io forum but its from Nov 2012 , I tried it and it didn't work either, anyone have a Idea?


Okay, updated the plugin to work with the new version of CocoonJS, and (hopefully) work with all Clay.io features. Get it here, and let me know how it works for you!

To get it running, export to CocoonJS, and copy the "webview" folder, and "CocoonJS.js", "CocoonJS_App.js", "CocoonJS_App_ForCocoonJS.js", and "CocoonJS_App_ForWebView.js" into the zip folder Construct 2 generates. Unfortunately right now there's no good way for me to have those be included automatically, so that has to be done manually.

Here's how it should look:

Image
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645

Post » Thu Mar 20, 2014 9:43 pm

This did not work either, still looking for suggestions. Has anyone got Clay.io to work correctly CocoonJS?

quirdex September 2013
ok I made it works,
it needs one more js in root zip : CocoonJS_App_ForWebView.js,
and add the script line in index.html

The post here is out of date http://www.scirra.com/forum/plugin-clay ... age42.html

Reminder for ppl for construct2 (r139) clay (0.4.12) and cocconJS (1.4.1) :

- correct index.html is :
<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>

- it needs the 4 scripts in zip : CocoonJS.js, CocoonJS_App.js, CocoonJS_App_ForCocoonJS.js, CocoonJS_App_ForWebView.js
and the folder webview/ in the zip
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645

Post » Fri Mar 21, 2014 2:00 am

ok I feel like I'm talking to myself here lol, but the above does actually work sometimes, if I open and close the game enough it will eventually let me log in, but then comes a barrage of different problems. mainly it will often force the game to close, but sometimes it don't. when I goto post my score to the leader board it repeatedly ask me to login even tho I already am and then It will force close as well. :-(
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645


Return to How do I....?

Who is online

Users browsing this forum: mindragon73 and 13 guests