Why the save and load feature is very unstable?

Discussion and feedback on Construct 2

Post » Sun Apr 08, 2018 8:57 am

Whether on PC or mobile, the save/load system is really unstable. Sometimes, it saves and loads correctly, sometimes, it saves, and then deleted the load state. Really annoying... Is there any way to save properly?
B
24
S
9
G
4
Posts: 96
Reputation: 3,956

Post » Mon Apr 09, 2018 11:21 am

As far as I am aware it works fine. There may be a mistake in your events, sharing your project could help others identify that.
Scirra Founder
B
415
S
247
G
92
Posts: 25,284
Reputation: 200,852

Post » Sun Apr 15, 2018 1:53 am

Ashley wrote:As far as I am aware it works fine. There may be a mistake in your events, sharing your project could help others identify that.


Okay, thanks for the answer!
B
24
S
9
G
4
Posts: 96
Reputation: 3,956

Post » Mon Apr 16, 2018 2:47 pm

Ashley wrote:As far as I am aware it works fine. There may be a mistake in your events, sharing your project could help others identify that.


@Ashley Hey. I made a test, the old method(which is there's a button to save and load) is working fine. But the autosave and autoload is no good. What to do?

I made like this:

SAVES

1) Every 0.1 seconds, save it.

LOAD

1) On start of layout, load the save.


It should be doing okay but nope.
B
24
S
9
G
4
Posts: 96
Reputation: 3,956

Post » Mon Apr 16, 2018 4:20 pm

Have you looked at Ashley's tutorial here ?

Specifically:

Saving can take a moment to complete, and the game keeps running in the mean time. Once saving has completed, the System trigger On save complete triggers.

Similarly loading can take a moment to finish, and triggers On load complete when done. Note any changes made after the Save action, but before On save complete triggers, may still be saved.

If you try to load from a slot that hasn't been saved to yet, On load failed will trigger.


Are you checking 'On save complete' ?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
147
S
33
G
89
Posts: 5,986
Reputation: 62,787

Post » Mon Apr 16, 2018 4:55 pm

Syazanie Amirin wrote:1) Every 0.1 seconds, save it.

There is no reason to do that and it will be very inefficient and have a significant performance impact. The feature is designed for one-off saves. If you provide a project that uses the feature in a reasonable fashion, I can take a look, but otherwise it sounds like it's not working because you're mis-using the feature.
Scirra Founder
B
415
S
247
G
92
Posts: 25,284
Reputation: 200,852

Post » Tue Apr 17, 2018 5:46 am

Ashley wrote:
Syazanie Amirin wrote:1) Every 0.1 seconds, save it.

There is no reason to do that and it will be very inefficient and have a significant performance impact. The feature is designed for one-off saves. If you provide a project that uses the feature in a reasonable fashion, I can take a look, but otherwise it sounds like it's not working because you're mis-using the feature.


Oh ok, is there ANY way to do autosave? And yes, @zenox98 I used the On Save Complete.
B
24
S
9
G
4
Posts: 96
Reputation: 3,956

Post » Tue Apr 17, 2018 8:57 am

Most games don't save on a timer because how do you know you haven't saved a moment before the player dies, therefore making their save useless? A more common approach is to use checkpoints.
Scirra Founder
B
415
S
247
G
92
Posts: 25,284
Reputation: 200,852

Post » Tue Apr 17, 2018 11:19 am

Ashley wrote:Most games don't save on a timer because how do you know you haven't saved a moment before the player dies, therefore making their save useless? A more common approach is to use checkpoints.


Okay, thanks for the answer!
B
24
S
9
G
4
Posts: 96
Reputation: 3,956


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 0 guests