[PLUGIN] CSV, CSV2Array, CSV2Dictionary

Post your completed addons to share with the community

Post » Wed Jul 31, 2013 11:24 am

@przemcio

Using "action:Turn page" to change current page, then using "condition:for each row"
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Wed Jul 31, 2013 12:39 pm

I have already tried. somehow it does not work. maybe you have an example file.
Thank you for your help.
B
3
Posts: 7
Reputation: 416

Post » Thu Aug 01, 2013 4:37 am

@przemcio

sample
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Wed Sep 04, 2013 8:51 am

[QUOTE=goblynn93] I'll make that request before I even download your capx :) Thanks again, I really do get a lot more from the tutorials and built in examples and sample capx files than I do from the manual! Its the community support that C2 enjoys that makes it what it is![/QUOTE]

So very true. Sometimes it really helps to see the actual code and play with it to get a better understanding. Just like when asking for help on these forums it helps to also upload the capx in question.

@rexrainbow I am very grateful for this and all your plugins, really makes my life that much easier...
B
13
S
3
G
1
Posts: 15
Reputation: 714

Post » Mon Sep 23, 2013 6:26 pm

I'm going to have to be the dummy once again here!

I've been trying to use this plug-in to store a script, since the game I'm making has a lot of dialogue. I thought keeping that dialogue in a separate text file rather than insert it all manually in events would be much better.

I'm really stumped on how to load the table into this plug-in though, the example only shows using a manually typed string?

I imported the .csv as a project file and used AJAX to load it, and from there I see people say a lot of things about turning it into a JSON string and loading it from there. I don't really know exactly how this works, and all the examples and discussions I find on it on the forums and tutorials talk about different methods and different results, so I can't really put them all together in something I can use.

So far I have something as simple as this, which I'm sure is a far-shot from what I need:


I bet the AJAX tag has nothing to do with the CSV string that the plugin wants.

What do I do inbetween these two and actually being able to read the things in the csv table?

I apologize for being a total noob on the subject.
B
10
S
3
G
3
Posts: 110
Reputation: 2,206

Post » Mon Oct 28, 2013 11:17 pm

Hi guys! :)

I've managed to use the CSV2Array
Transfer csv string into array object. To input data into an Array, that I later used to make an enemy move in a certain pattern.

I really would like to learn how to use the CSV plugin and load a .csv file from the harddrive into Construct 2 and then make it into an array with the CSV plugin.

Now I had to go the long way around. Using EXCEL, saving a csv file, open the file, copy/paste into the CSV2Array. I would love if I could skip some steps, and use the real CSV2Array plugin.

I apologize for being a bit dum, and noob. Im not a programmer and have always had some troubles with all the expressions and syntax. And im having troubles pulling all the bits and pieces in the forums together to something I can use.

I would really like to know in easy steps or from a little .capx file how I - Load the csv file into Construct 2, and then how to use the CSV2Array to load the data into an Array.

Regards!

///Soulmachine!
Soulmachine @Soundcloud
B
14
S
2
G
1
Posts: 44
Reputation: 890

Post » Fri Nov 08, 2013 8:15 am

@Vati-nyan

You did some mistake in "on Ajax completed"

It should be
Load table from csv string Ajax.Lastdata

tumira2013-11-08 08:16:08
B
51
S
18
G
13
Posts: 385
Reputation: 10,918

Post » Tue Nov 12, 2013 4:25 pm

Hey... what's up?
i'm having difficulties using the csv plugin..
i think it has to do with the way i'm loading the file..
so this is my issue..
my file is saved and imported to construct as "new list.csv" from an excel speadsheet
then i did:

On start of Layout: Load table from csv string "new list.csv"

But that didn't load it cos when i requested for an item on the list after providing the index, it didn't show up...

Then i tried the csv to array
i did:

On start of Layout: put csv data "new list.csv" into array, map row to x, col to y

That didn't work either..
so now i'm so bummed.. please i need help
B
3
Posts: 9
Reputation: 443

Post » Tue Nov 12, 2013 6:21 pm

it expects a string, so "new list.csv" will be entered in the first collum and row of the table as value. It does not take the file contents and reads them.

You have two options:
- open the .csv with a texteditor and copy the contents over to the "" of the plugin
- use the ajax plugin, request your project file then upon request completed use ajax.lastdata in the csv pluginmindfaQ2013-11-12 18:22:27
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
20
S
9
G
1
Posts: 785
Reputation: 3,725

Post » Sun Nov 17, 2013 3:09 am

Hello, user mindfaq (right above me ) has directed me to this wonderful plugin from a topic I posted in the How Do I? forum, and I am very thankful to rexrainbow for developing it - however I seem to have difficulty opening the example files in r146. I have already installed the plugin properly in my install folder because I can open CSV2ARRAY.capx just fine, but for some reason I can't open both test_csv_basic.capx and test_csv_multipage.capx

It says "Failed to open project [path to project], object type uses unknown plugin ID Under element: c2project\object-folder\object-type Line 21, column 9 The file may be invalid. Try checking the file in a text editor (projects are saved in XML format)"

Am I missing a required plugin to open the two examples posted? Please tell me because I really want to learn how to use this wonderful plugin. floatingsunfish2013-11-17 03:11:21
(insert subliminal message here.)
B
15
S
4
G
1
Posts: 18
Reputation: 955

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest