[PLUGIN] CSV, CSV2Array, CSV2Dictionary

Post your completed addons to share with the community

Post » Wed Jan 06, 2016 3:06 am

@pirikos

You might only check the array after loaded by CSV2Array in debug mode. It works fine in my computer. Only one thing, remove the last blank line.
I had not checked other things since the CSV2Array could put data into array correctly.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Sun Feb 28, 2016 3:31 pm

I know this thread is already old, but I can't find out how to add value to my csv entries.

I tried this: CSV set value at ("Strenght", "Mage") to CSV.At("Strenght","Mage")+1

My starting value is 10 and i want it to add +1 whenever i click a button. So it should be 11...12...13...14... and so on. But it ain't working. What's the problem? :?
B
4
Posts: 9
Reputation: 218

Post » Sun Feb 28, 2016 4:19 pm

@Turaco

The value stored in CSV cell might be string or number. It is impossible to increase value in string cell.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Wed Mar 23, 2016 4:16 pm

Update

rex_taffydb plugin, now it could minify.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Tue Apr 12, 2016 4:28 am

Hey @rexrainbow first of all - thanks a lot for all of your awesome plugins. I am using this CSV tool at the moment to generate a dynamic dialog across the game and it works fabulous after roughly 2 days of working into it. Anyhow. I am using variable names within the CSV but instead of accessing the C2 global variable I declared, it just puts it in text. Any idea what I can do to actually have it use the C2 variable, for example 'firstname' in the csv should become the actual firstname that the player did put in at the very start of the game through a text input.

Any help is appreciated and please keep your awesome work up!

Sincerely,

Andreas Lopez aka Uriel1339
Creator of Space Marauder.
Star Wars, Stargate & Warhammer 40,000 fanatic.
B
14
S
6
G
1
Posts: 17
Reputation: 1,800

Post » Tue Apr 12, 2016 5:09 am

@Uriel1339

Try this plugin to process string with variables.

For example,
1. you could call "Action:Set value" of rex_mustache plugin to save the value of "firstname", like "firstname" = "rex",
2. and the string saved in CSV might be "Hi, {{firstname}}".
3. after string replacement by expression mustache.render, "firstname" will be filled with "rex", and get result "Hi, rex"
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Tue Apr 12, 2016 11:28 am

rexrainbow wrote:@Uriel1339

Try this plugin to process string with variables.

For example,
1. you could call "Action:Set value" of rex_mustache plugin to save the value of "firstname", like "firstname" = "rex",
2. and the string saved in CSV might be "Hi, {{firstname}}".
3. after string replacement by expression mustache.render, "firstname" will be filled with "rex", and get result "Hi, rex"

Sounds like a quick and simple solution, thanks a lot for your awesome and insanely fast support!
Creator of Space Marauder.
Star Wars, Stargate & Warhammer 40,000 fanatic.
B
14
S
6
G
1
Posts: 17
Reputation: 1,800

Post » Thu Apr 28, 2016 11:05 am

Hi there @rexrainbow !

Thanks for creating the Plugin, i really like it a lot and am using it for creating a little Dialogue System for my Game.

Everything works like a charm and i can pull Dialogue Text and Animation for my Character Portrait out of the CSV. The only thing it won't pull for some reason is the Font Color for my Text Object, which i'm storing in the CSV as well.

Is there a reason for that or is there something i am missing? Thanks a ton!


Image
Image
B
14
S
5
Posts: 74
Reputation: 1,100

Post » Thu Apr 28, 2016 1:27 pm

@joel87

Font color in official text object is number type. Data in csv is string usually.

You might try bbcode text which could embed font color inside text content.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Thu Apr 28, 2016 1:51 pm

Thanks for the reply. I found a Workaround using a Variable which switches the Color according to who's talking ;) Thanks!
B
14
S
5
Posts: 74
Reputation: 1,100

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests