How do I Import JSON files

Get help using Construct 2

Post » Tue Jan 19, 2016 7:13 am

What object/plugin do i need,
the step i want to happen is:
1.Export-Download Dictionary object as JSON
2.Import-Load the JSON file to the Dictionary.

I need an Export/Import System for my game.
Thank you, and sorry for my bad english.
B
7
S
1
Posts: 27
Reputation: 387

Post » Tue Jan 19, 2016 7:30 am

Export: Browser object -> download string

Import: File chooser + AJAX object


When exported to NW.js, there is also the nw.js object to save to files and load them.
Ob course you can also use a php script to store to or request the string from a database.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Tue Jan 19, 2016 2:43 pm

Thank you for answering, is there a guide for this?
B
7
S
1
Posts: 27
Reputation: 387

Post » Wed Jan 20, 2016 4:46 am

NVM got it, Thanks Again,

here's what i did for those who wanna know:

1.AJAX object - action - Request URL
Tag - "Tag"
URL - FileChooser.FileURLAt(0)

2.AJAX object - condition - On Completed
Tag - "Tag"

If the JSON file is for the Dictionary
3.Dictionary Object - action - Load
Load - AJAX.LastData
B
7
S
1
Posts: 27
Reputation: 387


Return to How do I....?

Who is online

Users browsing this forum: dop2000, nez05 and 47 guests