[PLUGIN] CSV, CSV2Array, CSV2Dictionary

Post your completed addons to share with the community

Post » Mon Jun 09, 2014 3:57 pm

@ikke2902

The delimiter is "," , so the csv string should be
Code: Select all
,P1,P2,P3
Length,1.2,1.6,1.7
Skill,1,5,3
Gender,m,m,f


BTW, you might use csv plugin for this csv format.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Mon Jun 09, 2014 6:46 pm

Ahh, so I lose the delimiter after I have edited my csv file using libre office. I use notepad to do small edits now and the delimter isn't dissapearing anymore.

Also thank you for pointing me to the right direction. I am using your csv plugin now. Cheers!
It's time for me to return the favor :)
B
31
S
9
G
8
Posts: 132
Reputation: 4,807

Post » Wed Jun 11, 2014 7:22 pm

Link to examples on page 1 are broken :(
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Thu Jun 12, 2014 2:59 am

@justifun

I had updated all documents of these csv related plugins. See the first post of this thread.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Mon Jul 07, 2014 2:33 pm

@rexrainbow I have a request... can you add mapping "Page to z" as in "row to x" and "col to y" if it is not too much trouble for you..
Capture.PNG

You might misunderstood my request so to clarify, it would be very helpful if I can just put CSV in the data entry and the magic will put loaded csv pages into single array so that i have a working single 3d array instead of a lot of array in 2d. Or is there a better way to put the csv into 3d array? Or maybe the ability to refer to the x,y,z by index?

I'm sorry my question might confuse you as im not a code-savvy person..
You do not have the required permissions to view the files attached to this post.
B
27
S
8
G
4
Posts: 553
Reputation: 4,839

Post » Tue Jul 08, 2014 5:07 am

@DuckfaceNinja

Good idea!
I had added another action which could put the csv into the specific z index. See the latest sample capx in document.
The older action had been deprecated.

You still need to have a loop to load csv tables into each z index, since one csv table is only a 2d table.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Tue Jul 08, 2014 3:29 pm

rexrainbow wrote:@DuckfaceNinja

Good idea!
I had added another action which could put the csv into the specific z index. See the latest sample capx in document.
The older action had been deprecated.

You still need to have a loop to load csv tables into each z index, since one csv table is only a 2d table.

Wow thanks @rexrainbow !! The implementation surely will help me putting together my data. Efficient "array"ing coming my way :D

Just FYI, It seems that I'm no longer have to use the "turn page" in csv plugin, this seems to be doing the same thing much more efficiently (lesser number of event to maintain :D ).

Another thing that I notice is the csv plugin cant be called through indexing (integer) and only possible if I convert it to string.. [example: str(1)] Is it supposed to be like that or is it a bug? I noticed this when all goes haywire when I implemented the loop not knowing I have to use string for index..
B
27
S
8
G
4
Posts: 553
Reputation: 4,839

Post » Tue Jul 08, 2014 3:35 pm

@DuckfaceNinja

You are right.

CSV plugin is designed to be a 2d (or 3d, if pages has been included) hash table. All keys are string. So that user need to convert number to string.

To have a pure array structure, csv to array plugin is more suitable than csv plugin.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Tue Jul 08, 2014 4:05 pm

@rexrainbow

Hi. I've taken a look to your plugin and is the closest thing i've seen to a database for Construct 2. I'm thinking on doing a sports manager wich involves a lot of data (teams, players, staticstics, etc). Do you think it could be achieved with this plugin or should i find another solution?
B
12
S
1
Posts: 21
Reputation: 542

Post » Tue Jul 08, 2014 4:13 pm

@pcp

If you use csv to describe the initial date, you could use csv plugin.
But csv plugin is not a database, it is not designed for data mining.
Last edited by rexrainbow on Wed Jul 09, 2014 2:52 am, edited 2 times in total.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 0 guests