Save variables to a file

Discussion and feedback on Construct 2

Post » Mon Oct 07, 2013 5:06 pm

Hello everyone,

How can I save my webstorage local keys to a file and load it on another computer?

It's for an application I'm making and it must be able to load the profiles on a different computer.

I can't find anything, can anyone help?

Thank you.
B
4
Posts: 25
Reputation: 425

Post » Mon Oct 07, 2013 5:14 pm

This is a browser based technology and browser file.io is not standard. So at this time is not supported. There are 2 things you can do.

1. There is a 3rd party plugin(ie not Scirra) that does what you want, but only if your using NodeWebkit.

2. When you "export" have a TextBox/TextArea, and do TextArea.setText(webstorage.asJSON). This will give you the string version of the same profile. I know it's not as nice as moving a file, but that's yoru option.

3. Yep, there is a 3rd. Is to store the profile online an share by somekind of custom key.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,018

Post » Mon Oct 07, 2013 6:18 pm

The official node webkit object can write files.
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770

Post » Tue Oct 08, 2013 9:06 am

That's the problem, I'm using Rex video plugin and it only works with Mozilla Firefox (Exported html5 with WebGL off) there is no other way my export works, I tested everything.

So how can I do that using html5?
B
4
Posts: 25
Reputation: 425

Post » Tue Oct 08, 2013 9:07 am

let's say I use an ftp self hosted server to use it on, or dropbox.
would it be possible then?
B
4
Posts: 25
Reputation: 425

Post » Tue Oct 08, 2013 10:15 am

I'd love to have it locally so I can copy it on a usb stick with all the variables.
B
4
Posts: 25
Reputation: 425


Return to Construct 2 General

Who is online

Users browsing this forum: Solomon, Studio Mercato and 3 guests