[PLUGIN] CSV, CSV2Array, CSV2Dictionary

0 favourites
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • Cool!! So you are gonna make a hash plugin? That would mean we could use practically any api !!!! :D

  • smitchell

    A hash plgin only can transfer JSON to javascript's object and help user access these data from event sheet.

    If you need more flexible and powerful processing, try to use function plugin with injecting your javascript code string.

  • Nice!

    I might have missed it but can you write data to csv w/ this plugin?

  • ayzhong

    Yes, "Action:Set entry" can write data to csv table.

  • rite, thanks! awesome! <img src="smileys/smiley4.gif" border="0" align="middle" />

  • OK !

    Double ""...

    That's why it didn't work... Thanks very much !

  • Would it be difficult to make it that it go read a file, instead of copying the CSV String in the Construct 2 code.

    If we can point to a file, that way, we can change the file without having to copy it in C2.

    Would that be difficult ?

    Do you think it's not interesting ?

    Does that bring security issues ?

    Thx!

  • guicole

    Any string can be read through AJAX.

    To avoid double "", I am using AJAX, too. If you need to load more then one csv table, try BatchAJAX plugin.

  • I've been trying to get this to work, but haven't managed to. What I'm trying to do is set a bunch of values, convert that into a JSON string, set the result to a text box object, copy it, and then in the event editor, use it as an expression in the 'load table from JSON string' action. From one of your examples, it gets this:

    {"HP":{"L1":"100","L2":"105","L3":"110"},"ATK":{"L1":"7","L2":"10","L3":"14"},"DEF":{"L1":"1","L2":"2","L3":"3"}}

    If I paste that into the expression, it doesn't work at all. How can I get this to work?

  • Arima

    If you copy the JSON string directly, you may get the problem about using single ". You need to replace single " to double "". The rule comes from C2 editor.

    This problem is similar with this.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yep, that works. Thanks!

  • This plugin is fantastic!

    I was trying to come up with a way to import strings into my game from an external file, this will do!

    Thanks rexrainbow!

  • Rereading this thread a few times I think I understood what this is all about. Is it me or is there practically no way to write the data back to an external csv file without using php? I was also checking this thread and got the idea that using the csv plugin for acquiring data only to resort to php to export data back to server is actually less convenient than going all for php as one would be doing as much work if not more when trying to utilize this plugin alongside php. Am I right? Can someone please guide me to a more feasible method that doesn't involve using php?

  • Wronghands

    Try Hash table. It provides parsing JSON string into hash table/transfering hash table to JSON string.

  • Amazing plugin, I can't wait to use it properly in my project.

    Actually, I think I did exactly what is done in your basic example...

    <img src="http://dl.dropbox.com/u/39121175/screenshots/CSVproblem01.png" border="0" />

    ... but it doesn't work (the game doesn't start anymore, I don't understand why).

    <img src="http://dl.dropbox.com/u/39121175/screenshots/CSVproblem02.png" border="0" />

    I must have done something wrong but I don't get what... That's too bad, because your plugin could be really useful for my project.

    Rag' <img src="smileys/smiley18.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)