When clay.io is activated (no internet) the game freezes

Get help using Construct 2

Post » Sun May 11, 2014 8:21 pm

I'm using clay.io tu put leaderboard, achievements and ads in my game. When connection is normal, everything's fine.
But I did a test with no internet connection (because the game is for mobile devices, so internet can't be a prerequisite to play) and, when a clay.io function is called (like 'award achievement' or 'post leaderboard score'), the game just freeze and don't returns..
Any tips? Thanks
B
20
S
4
Posts: 385
Reputation: 2,270

Post » Mon May 12, 2014 6:21 pm

Bump :\
B
20
S
4
Posts: 385
Reputation: 2,270

Post » Mon May 12, 2014 6:28 pm

Zathan wrote:Bump :\


I am not sure at 100%, but maybe the browser condition "is online" could help you with that
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Mon May 12, 2014 7:01 pm

Aphrodite wrote:
Zathan wrote:Bump :\


I am not sure at 100%, but maybe the browser condition "is online" could help you with that

Thanks for the answer :)
I've tried put 'is online' in the conditions too, but it didn't work. Nothing has changed...
Wtf... makes no sense that plugin crash without connection lol
Can anybody help me?
B
20
S
4
Posts: 385
Reputation: 2,270

Post » Tue May 13, 2014 3:10 am

No one with the same problem?
B
20
S
4
Posts: 385
Reputation: 2,270

Post » Tue May 13, 2014 4:36 am

Normally Clay.io would connect to the leaderboards and update them as necessary or pull data or whatever. But, because there is no internet, Clay.io can't establish a connection. In that case Clay.io is just sitting there waiting for a connection. The only way to fix this would be to first detect if there is a stable internet connection or to have Clay.io timeout after trying to connect for x amount of seconds.

I haven't used Clay.io so I am not sure if this is something you the developer has to implemented or something that's not been added by the Clay.io developer.
B
56
S
15
G
13
Posts: 826
Reputation: 17,645

Post » Tue May 13, 2014 5:37 am

Tekniko wrote:Normally Clay.io would connect to the leaderboards and update them as necessary or pull data or whatever. But, because there is no internet, Clay.io can't establish a connection. In that case Clay.io is just sitting there waiting for a connection. The only way to fix this would be to first detect if there is a stable internet connection or to have Clay.io timeout after trying to connect for x amount of seconds.

I haven't used Clay.io so I am not sure if this is something you the developer has to implemented or something that's not been added by the Clay.io developer.

I've tried to use the "is online" function of the browser object, bcause clay.io doesn't have anything do handle that.
But that function never worked to me... how that I use this properly?
B
20
S
4
Posts: 385
Reputation: 2,270


Return to How do I....?

Who is online

Users browsing this forum: evillair, gamecorpstudio, marc254 and 20 guests