[PLUGIN] CSV, CSV2Array, CSV2Dictionary

Post your completed addons to share with the community

Post » Sat Jun 29, 2013 11:58 pm

@megatronx

Do you mean that you want to get (col, row) key from entry value?
For example,
[code](Gun, Bullet) = 10[/code] Get key from value
[code]10 -> (Gun, Bullet)[/code]rexrainbow2013-06-29 23:59:00
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Sun Jun 30, 2013 12:01 am

Yeah, basically if (Gun, Bullet) = 10 then do ( or don't do ) actions. And ideally if it would work like this (IndexCurCol, IndexRowCol) = 10 so if I'm using a loop I could determine which entries should be skipped or replaced.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Sun Jun 30, 2013 12:09 am

@megatronx

It seems that you use "condition:for each col", "condition:for each row". You could use "expression:CurValue" to get the entry value at (CurCol, CurRow).
Then use system condition to compare the CurValue with the target value.
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Sun Jun 30, 2013 12:16 am

Ok, I'll try that. Thanks.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Tue Jul 02, 2013 6:46 am

Hey rex! I was wondering if you still have the "AJAX to CSV.capx" file that you shared with someone else? I am having issues working with AJAX to load my CSV string and I am betting that CAPX file would answer a whole ton of questions I have...

Also, is either CSV or CSV2ARRAY able to do a true export?I am hoping to get a file that I can quickly identify and make offline edits and then load back in...

Thanks!!
B
10
S
4
G
2
Posts: 133
Reputation: 2,667

Post » Tue Jul 02, 2013 6:55 am

@goblynn93

"CSV" is just a string. You could make sure the AJAX had received data (string) successfully first. See the offical manual for more detail.
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Tue Jul 02, 2013 7:16 am

I did... The manual to me is mostly useless. I can't translate the high level vague overview of the manual into anything practical. I need examples and working code to look at to understand why it works.

The manual assumes a certain level of pre-understanding and I don't have it. I am smart enough to figure out how stuff works if I see it in action and I can even adapt things I've seen working and use bits and parts to make new things...

but I am not good enough or smart enough to read the manual and take off running. This is definitely way outside my comfort zone and you'd probably laugh at my project and how long its taken me to get to the point I am at! Months... literally... and all I am doing is displaying some random text on a screen...

Thanks for the response though... like every other road block I've hit in Construct 2 the answer is probably a lot more simple than my brain is making it. The answer is probably right in front of my face and I can't see it because I am over complicating this.
B
10
S
4
G
2
Posts: 133
Reputation: 2,667

Post » Tue Jul 02, 2013 7:21 am

@goblynn93

Capx: AJAX -> CSV


Moreover, you might post a request for an AJAX built-in example since you (and many users) really need this.rexrainbow2013-07-02 07:25:54
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Tue Jul 02, 2013 7:30 am

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!
B
10
S
4
G
2
Posts: 133
Reputation: 2,667

Post » Wed Jul 31, 2013 10:27 am

How can I "for each row" of different csv pages?
B
3
Posts: 7
Reputation: 416

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests