How do I make a save file Import / Export system?

Get help using Construct 2

Post » Mon Feb 22, 2016 3:37 am

I'm looking for a way to let players of my game move their save files from one computer to another.

I've set up a pretty simple system using the JSON and textboxes similar to an example I made here: http://faedine.sytes.net/ExportSave/ExportSave.capx

The problem with this system is that my save files get up to a few 6-7MB, and the length of a textbox caps out at about 1MB. I'm not sure how to change the length of the textbox in construct, but with saves that size it seems like another system might be easier.

I'd like to be able to write it all to a text file that can just be downloaded. Writing straight to a text file is something I've only seen via Node-Webkit though, and not as a browser game solution.

I've thought about creating something with AJAX that exports the JSON save to my webserver and creates a file there based on their game ID, but that seems a bit risky and excessive.

Anyone else know how to go about doing this? The goal is just to move save files from one computer to another, I'm just stumped on an "easy" way as to how to do it.
B
9
S
1
Posts: 9
Reputation: 497

Post » Mon Feb 22, 2016 6:23 am

Well, finally figured it out on my own.

I used the guide here (how-do-i-import-json-files_t167260) which I didn't see I my initial search and adapted it slightly.

Here's a .capx for anyone that may have a similar problem. http://faedine.sytes.net/ExportSave/Exp ... rking.capx
B
9
S
1
Posts: 9
Reputation: 497


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 46 guests