C2 Data Editor (Tools)

Discuss Scirra's 2D Asset Store

Post » Wed Aug 09, 2017 1:54 am

AnD4D wrote:@ggibson1 I finally (carefully) created my array, and created the JSON... but Construct 2 doesn't accept the JSON when using the load JSON action. Why is that?

I found I had to create a capx from the program, then heavily edit it just so I could get my data. The generated CAPX doesn't even create the array. It does, however, generate 139 random events I have no interest in, but understand some people might like them.

In the end, it just generates the array in the exact same way I would have needed to within C2... which is what I was trying to avoid.

The whole reason I got the program was so that I could use the load JSON command.

For me, it's just broken and cumbersome.


If you carefully read the manual you will see how to export in various ways.

You can even just copy and paste the generated JSON directly from one of the editing screens into a file to read into C2.
B
21
S
5
Posts: 195
Reputation: 1,972

Post » Wed Aug 09, 2017 1:56 am

ChicaoTT wrote:I have tried to generate json strings, save to a .json file and load to C2 using ajax but my dictionary dont populate, so i tried to generate a json string in the dictionary editor and load in my dictionary using events, but dont work again.
The app is good to edit data, but i dont like to make so many events to just populate my dictionarys and arrays, so please make a working .json file generator in this app, or explain how we can save the json string in a file to load them in the C2 using ajax.


Using all the injected events and functions will allow you to work with your data in a way that is like working with a database embedded within your app.

This is more involved of coarse because you must take the time to read the comments on the functions to understand how to use them very much how software developers do to learn a new API.
B
21
S
5
Posts: 195
Reputation: 1,972

Previous

Return to Scirra Store

Who is online

Users browsing this forum: No registered users and 0 guests