How to Create Save and Load in CocoonJS ?

Get help using Construct 2

Post » Wed Apr 24, 2013 8:43 am

WebStorage doesn't safely.
Your game data may be cleared five days later, may be ten days...
And it is depressing me.
B
55
S
19
G
8
Posts: 191
Reputation: 8,831

Post » Wed Apr 24, 2013 11:48 am

There's a bug that prevented save/load from working in CocoonJS. It should be fixed in the next build.

WebStorage is not a cache, so clearing the browser cache does not clear WebStorage.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Thu Apr 25, 2013 6:36 am

That is great news. Thank you, Ashley.
B
8
S
2
G
4
Posts: 64
Reputation: 3,199

Post » Fri Apr 26, 2013 7:25 am

@ashley

I tried the latest build of Construct2, and exported to CocoonJS, but the Save / Load issue is not acting the same as on PC. It appears as if it is trying to work, but all it does is restart the current layout when 'load' is used. :/

It is definitely acting different from how it did last build. I have text on the screen that I print to show what state it is in (like in your tutorial). Before, it would state that there was 'NO SAVE GAME' when I would load, but now it says 'LOADED', which tells me that it thinks that it has loaded the save, even though it really has not.

Any ideas?
B
8
S
2
G
4
Posts: 64
Reputation: 3,199

Post » Fri Apr 26, 2013 12:38 pm

@Zharzew - I tested it and verified it worked on CocoonJS. Post a .capx demonstrating your issue if you still have trouble.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Sun Apr 28, 2013 12:30 am

@ashley Yeah, I just checked my script, and found an error on my part. It is working the same as on PC. Thank you for your help. :)
B
8
S
2
G
4
Posts: 64
Reputation: 3,199

Post » Thu May 09, 2013 1:07 pm

@ashley Can confirm that save/load game does not work in cocoonjs

I am using r126, I assume the fix you are referring to was in a beta release post 126?

Problem is I cant use any of those beta releases due to the physics bugs introduced with cocoonjs native physics

Can you tell me when we can expect the next stable release which will address the save/load in cocoonjs as well as the physics fixes?

thank you
B
11
S
2
G
3
Posts: 95
Reputation: 3,028

Post » Thu May 09, 2013 1:12 pm

@theames - it was fixed in r127. We're aiming to get a new stable release out once we've ironed out the problems in the new CocoonJS physics engine.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Previous

Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Braus, Kagubro, Mirlas, zeneizel and 22 guests