[PLUGIN] CSV, CSV2Array, CSV2Dictionary

0 favourites
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • megatronx

    No. CSV plugin only load csv table from string, so you need to get string from AJAX plugin for example.

  • Thanks. This is really a great plugin. For some reason it is much easier to use then arrays... even thought it is an array! Just made random generated weapons and displayed them in inventory prototype that you can scroll with arrows XD Thanks again! :) This plugin should grow! Any updates coming?

  • megatronx

    What new feature do you want?

    --

    For random generated, you might try Pattern gen

  • Wow thanks! :)

    2 things come to my mind:

    • import and export external files in to the code.
    • to be able to call page without need of turning it for example CSV.AT("Page", "Col", "Row")

    Cheers :)

  • megatronx

    • CSV.AT("Col", "Row") or CSV.AT("Col", "Row", "Page") to get data from another page. You could use it in current version.
    • AJAX could be used to import file, so csv plugin does not need to have "import file". For exporting, current csv plugin only could export table into JSON string, it could be saved into webstorage or send this string to network.

    To export csv string... it might be difficult. <img src="smileys/smiley9.gif" border="0" align="middle" /> Sorry.

    • CSV.AT("Col", "Row") or CSV.AT("Col", "Row", "Page") to get data from another page. You could use it in current version.

    COOL :D

    • AJAX could be used to import file, so csv plugin does not need to have "import file". For exporting, current csv plugin only could export table into JSON string, it could be saved into webstorage or send this string to network.

    To export csv string... it might be difficult.   Sorry.

    Fair enough :D Keep up the good work! :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • One more question. When i export to json to store in webstorage, does it export everything or only the page I'm currently at?

    thanks

  • megatronx

    "only the page I'm currently at".

    Humm... I might add a parameter to assign page name.

    Edit

    Update:

    expression:TableToString now could assign page name at 1st parameter.

  • Ha! I asked because for my project it is actually convenient to save everything in one go! But still thanks for the update:) It's not breaking anything, yeah?

  • megatronx

    Sure, you could use expression:TableToString without any parameter to reference current page or assign a page name if you want.

  • oh so it doesn't convert all off the pages in to one string then?

  • Update

    Add "expression:AllTalbesToString", and "action:Load all tables". They could transfer all tables into one string in one expression, and load all tables from JSON string created by "expression:AllTalbesToString".

    megatronx

    Here it is.

  • Thanks a lot! :)

  • Another thing that I would find useful would be to check if particular row or column, or both exist. It seams that atm we can only check if data within an already created row/column exists. I might be wrong though.

    Also sorting rows or columns in alphabetical order by specific row/column of that table. So for example if i have Col "name" i would like to sort all raw but their name alphabetically. And if I have Col "Qty" I would like to sort out by numbers. Both from A-Z/1-xxxx and in reverse from Z-A/xxxxx-1. If those two would be possible to do that would be awesome :)

    EDIT: And one last suggestion. Do you think you could make created pages to appear listed in "objects with expressions" window in same fashin as variables when system is selected? That would make the whole process much simpler.

    Thanks!

  • Also you could use those plugin as reference for how to upload (and maybe even save back to file)csv files scirra.com/forum/plugin-filereader_topic50038.html

    scirra.com/forum/topic59525.html

    ;)

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