Saving times...

Discussion and feedback on Construct 2

Post » Tue May 30, 2017 7:09 pm

Hey!

I've noticed that sometimes when I use the save game function this can take... a huge amount of time.
It doesn't ever throw an on save failed OR on save succeeded, it just... sits... for sometimes 2-3 minutes before finally issuing a save complete.

Downside, if players close the game during this time, that save slot is invariably broken and will fail to load.

Any remedies on what might make saving a touch faster?

Thanks much!
B
21
S
6
Posts: 77
Reputation: 1,445

Post » Thu Jun 01, 2017 9:24 am

Tried using the No Save behaviour on objects that don't need to be saved?

Image
(\__/)

(='.'=)

(")_(")
B
23
S
10
G
1
Posts: 74
Reputation: 3,244

Post » Thu Jun 01, 2017 8:44 pm

I have only intermittently.
Can you give me a more thorough rundown on what does, does not need to be saved? Are we talking like.. UI? Things like that?
Stuff that doesn't move?

I guess I'm just having a problem conceptualizing what exactly it is that the behavior *does*.

Thanks so much for the suggestion though, I had a sneaking suspicion that this would probably be the solution.
B
21
S
6
Posts: 77
Reputation: 1,445

Post » Fri Jun 02, 2017 6:43 pm

@Ricethin

It's easier to add "No Save" to everything, and then remove it from the things you want to be saved. From the manual:

"It is a good idea to add the No Save behavior to objects which don't need to be saved, like scenery and background objects. It can also be used on automatically updated objects, like interface elements and text objects which update their text every tick. This will help make the saves smaller in size, and also complete saving and loading quicker."
https://www.scirra.com/manual/160/no-save

For example, if you have savepoints in your game (save statues, whatever they're called at this point). Then you most likely would like for the player's position to be saved as to not be different when the game loads again. Sometimes you might want an enemies position be saved as well so that you can't save, go to menu, reload save and the enemy is gone. But generally, most things don't need to be saved.
(\__/)

(='.'=)

(")_(")
B
23
S
10
G
1
Posts: 74
Reputation: 3,244

Post » Sun Jun 04, 2017 3:00 pm

Interesting. Global variable values and local variable values will be saved by default, I assume?
B
21
S
6
Posts: 77
Reputation: 1,445

Post » Wed Jun 07, 2017 12:32 pm

Hey, please follow my answers in this topic, I hope will help you as you like. thanks
viewtopic.php?f=146&t=183585&p=1077535&sid=a3f93ec601d19b04d9b372c602f1ab21#p1077535
B
19
S
7
G
1
Posts: 62
Reputation: 1,954


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests