System save / load only working in preview

Discussion and feedback on Construct 2

Post » Tue Jan 17, 2017 10:16 pm

I just noticed that on one of my old games, the system save and load aren't working anymore after export to nw.js (I re-exported it after I fixed some bugs). It still works as expected in the C2 preview. Any idea what could cause this? I'm just using the simple system save slot and load slot.
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021

Post » Wed Jan 18, 2017 3:22 pm

I was thinking, since this is an old project I'm using WebStorage (not for the save, but for something else) rather then LocalStorage. Does the system save / load rely on LocalStorage now since WebStorage is depreciated, and if so, do I have to have the LocalStorage object added to the project for system save to work correctly? I'm stumped as to why it works perfectly in preview mode but not after export.
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021

Post » Wed Jan 18, 2017 5:26 pm

It should work. Hard to say any more without a .capx. If it reproduces in a new project, please file a bug report.
Scirra Founder
B
403
S
238
G
89
Posts: 24,659
Reputation: 196,165

Post » Thu Jan 19, 2017 4:23 am

Thank you for the reply. I'll look into it further and see what I come up with. I just can't figure out why the save works perfectly in the C2 preview but doesn't work after export.
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests