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: 196
Reputation: 1,984

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: 196
Reputation: 1,984

Post » Sat Aug 26, 2017 2:43 am

Hi, if i create random data from a site like mockaroo.com, is there a way to import it into a table that your tool creates?

the site can export data in various formats including .xml, JSON, SQL, CSV, etc.

thanks
B
16
S
5
Posts: 22
Reputation: 1,521

Post » Sun Aug 27, 2017 5:53 pm

heater19 wrote:Hi, if i create random data from a site like mockaroo.com, is there a way to import it into a table that your tool creates?

the site can export data in various formats including .xml, JSON, SQL, CSV, etc.

thanks


You can import into either an Array or Dictionary.

And you have various options to choose from for importing CSV data.

Delimited (comma, semi-colon,tab,space), Fixed Width, etc.
B
21
S
5
Posts: 196
Reputation: 1,984

Post » Thu Aug 31, 2017 4:39 pm

ggibson1 wrote:
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.


Yeah, I did that. AJAX or something, right? I ended up making my own Data Editor using Construct 2 itself, and set it so you generate text that gets loaded as JSON directly into an array. Much better.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
84
S
15
G
7
Posts: 991
Reputation: 11,231

Previous

Return to Scirra Store

Who is online

Users browsing this forum: No registered users and 0 guests