Alternate way to make save files over Local storage?

Discussion and feedback on Construct 2

Post » Sat Jun 11, 2016 10:33 pm

So I've made a save file system for my game, and it works very well on good computers, but I find the load times to be ridicilous on tired hard drives. Is local storage considered the best way to store save files, or are have I taken a backwards approach to this all along? Also is there any way to set the specific folder the save files will be stored in? I can't find the savedata anywhere on my computer!

Thanks
B
35
S
10
Posts: 386
Reputation: 3,265

Post » Sun Jun 12, 2016 2:17 am

local storage is the way to go.
If you have to save a lot of stuff - you could split it up in smaller save files (and only save what needs to be saved).
Local storage with HTML5 is saved and managed within the browser - so you can't delete it just with your file explorer.

But there shouldn't be a lot of HDD movement - the save files are usually kB size

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Sun Jun 12, 2016 11:29 am

fm4fanAT wrote:But there shouldn't be a lot of HDD movement - the save files are usually kB size

True. Having your save data stored in a custom file in JSON format should do the trick.
B
135
S
33
G
17
Posts: 1,559
Reputation: 20,732

Post » Sun Jun 12, 2016 7:11 pm

@fm4fanAT
Yes one would think so, but it really is just that slow on computers with a tired HDD. Even after reformatting/nuking with a clean OS install. Loading 10 local storage files with a binary value of either "0" or "1" can easily take several seconds. Sometimes I've experienced the game doesn't write or load anything before playing the game for at least 5-10 minutes. I only notice this on computers which should've been retired a long time ago, but it's still worrying since it limits my market, and forces me to make lots of loading screens etc.
B
35
S
10
Posts: 386
Reputation: 3,265


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests