[PLUGIN] CSV, CSV2Array, CSV2Dictionary

Post your completed addons to share with the community

Post » Wed Jul 23, 2014 3:19 pm

@ikke2902

You should wait the AJax complete first. Then pick values.
B
97
S
22
G
179
Posts: 4,126
Reputation: 104,559

Post » Wed Jul 23, 2014 5:47 pm

@Rexrainbow
Many thanks for taking your time to help me.
The problem wasn't AJAX. It was me not understanding what kind of values CSV.CurRow and CSV.CurCol returns. Yet I know what they do.
However, there is one thing I still understand.
What does CSV.CurValue do?
It's time for me to return the favor :)
B
31
S
9
G
8
Posts: 132
Reputation: 4,807

Post » Thu Jul 24, 2014 3:27 am

@ikke2902

Code: Select all
+ For each col -> get col name by Expression:CurCol
+ For each row in col -> get row name by Expression:CurRow
- get value by Expression:CurValue


or
Code: Select all
+ For each row -> get row name by Expression:CurRow
+ For each col in row -> get col name by Expression:CurCol
- get value by Expression:CurValue
B
97
S
22
G
179
Posts: 4,126
Reputation: 104,559

Post » Thu Jul 24, 2014 10:12 am

@rexrainbow
So when I use For each col in row, I can't get row name by Expression:CurRow?

I still don't understand how/when to use the expression CurValue. Could you explain a bit more in detail?
I have attached a picture of my problems
You do not have the required permissions to view the files attached to this post.
It's time for me to return the favor :)
B
31
S
9
G
8
Posts: 132
Reputation: 4,807

Post » Thu Jul 24, 2014 10:24 am

@ikke2902

Thanks, it is a bug of plugin, I will try to fix it.

Edit:
Bug had been fixed. Please redownload plugin then try again. Thank you.
B
97
S
22
G
179
Posts: 4,126
Reputation: 104,559

Post » Thu Jul 24, 2014 10:48 am

@rexrainbow
Glad to have this bug killed. Thanks for the fast fix.
The expressions are working like a charm :D
It's time for me to return the favor :)
B
31
S
9
G
8
Posts: 132
Reputation: 4,807

Post » Wed Aug 06, 2014 11:47 am

@rexrainbow, could it be possible to load some csv data created into a project file, not from a file dis time around
B
15
S
4
Posts: 138
Reputation: 2,003

Post » Thu Aug 07, 2014 6:43 am

@Dasat

Generally speaking, csv plugin is created for reading csv data, but it still has some methods to create a csv table -
"Expression:TableToCSV" could return a csv table, and there are some actions to change a csv table like "Action:Append a column", "Action:Append a row", "Action:Remove a column", "Action:Remove a row".
B
97
S
22
G
179
Posts: 4,126
Reputation: 104,559

Post » Sat Sep 27, 2014 6:02 am

@rexrainbow does the CSV plugin have a problem resolving when it comes to picking? i.e Using the System Pick All, or Pick by Comparison, Pick random etc...

I'm using the CSV to remember every sprite's position last time the Layout was loaded.

Code: Select all
FOR EACH sprite
     PICK gridSprite where  gridSprite.field1 = int(CSV.At("field1",sprite.idnum))


and this won't work at all.. I finally found a way to make it work using the System Compare two values:

Code: Select all
FOR EACH sprite
   Pick ALL gridSprite
      FOR EACH gridSprite
        System gridSprite.field1 = int(CSV.At("field1",sprite.idnum))  THEN Set Position sprite to gridSprite

does this make any sense?
B
55
S
13
G
7
Posts: 932
Reputation: 8,511

Post » Sat Sep 27, 2014 6:09 am

@jobel

I am not sure, you might dump all compared data, to see it.
B
97
S
22
G
179
Posts: 4,126
Reputation: 104,559

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: matriax, shinkan and 1 guest