Help - Read and Write Json files to Google drive

Discussion and feedback on Construct 2

Post » Thu Sep 19, 2013 11:30 am

I am building a flashcard kind of application and I have a need to store and Read the user created flashcards (both text and images) onto his Google drive / dropbox storage that the user specifies...I have searched through lot of forums but I couldnt get help in this regard...Some pointers that I found were Pode's plugin to read a file/save to a file etc., but they are all saving/reading from the hard-drive...I am not able to understand how we can create a Json file or some file on click of a button inside the game, and store / Read those on the google drive along with the images...Is this at all possible using C2?

Please help! with any ideas / suggestions...Thank youkmsravindra2013-09-19 11:32:36
For game development / IT services contact - [email protected]

List of published iOS apps -
https://itunes.apple.com/us/artist/ravi ... d693234511
B
84
S
20
G
3
Posts: 337
Reputation: 7,368

Post » Thu Sep 19, 2013 12:03 pm

Take the google drive sdk and make your own plugin for that. Should be no big problem ;) Its the same if you make a plugin for construct 2 and use jQuerry or any different framework.

Already looked into the google drive sdk, looks pretty easy.
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Thu Sep 19, 2013 1:22 pm

Thank you. I will definitely take a look at this. But does this help in reading the file retrieved from google drive inside construct2? What is/are the commands inside C2, that I should be using to access Google drive..? Probably a look at the SDK might help to answer these questions...I am not very well versed with coding other than using C2...In case you have done something / can provide an example, it will be highly helpful. Thank you.
For game development / IT services contact - [email protected]

List of published iOS apps -
https://itunes.apple.com/us/artist/ravi ... d693234511
B
84
S
20
G
3
Posts: 337
Reputation: 7,368

Post » Thu Sep 19, 2013 1:26 pm

I think such a plug-in might be highly useful to retreive and save games to the cloud storage as well! Does any one know if such a plugin already exists? Thank you...
For game development / IT services contact - [email protected]

List of published iOS apps -
https://itunes.apple.com/us/artist/ravi ... d693234511
B
84
S
20
G
3
Posts: 337
Reputation: 7,368

Post » Thu Sep 19, 2013 1:40 pm

Right now the easiest solution is to use clay.io
B
75
S
22
G
14
Posts: 389
Reputation: 12,224

Post » Thu Sep 19, 2013 1:48 pm

Hi Tumira, Can I use Clay.io for reading and writing files & images as well?
For game development / IT services contact - [email protected]

List of published iOS apps -
https://itunes.apple.com/us/artist/ravi ... d693234511
B
84
S
20
G
3
Posts: 337
Reputation: 7,368

Post » Thu Sep 19, 2013 2:44 pm

Such a plugin actually doesnt exist (I think), It would be great if you make one, I think it will be easy ;)
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Thu Sep 19, 2013 3:38 pm

I wish I could...Unfortunately I don't know coding outside Construct2...
For game development / IT services contact - [email protected]

List of published iOS apps -
https://itunes.apple.com/us/artist/ravi ... d693234511
B
84
S
20
G
3
Posts: 337
Reputation: 7,368

Post » Thu Sep 19, 2013 4:12 pm

There's a dropbox plugin here. Is that any use to you?
http://www.scirra.com/forum/plugin-dropbox_topic61841.html
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Thu Sep 19, 2013 4:28 pm

Base64 conversion will take images and convert them to a string format to store. And keep in mind that it's not the FILE you need to store. it's the content.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,018

Next

Return to Construct 2 General

Who is online

Users browsing this forum: paxto22 and 5 guests