[= ;333244]
Do you mean can you access and utilize data tables/csv files without using code? If so then the answer is yes! It is quite possible to access information from data tables via blueprints.
[/]
I’m not sure if this is what was meant by , but is it possible to accomplish lazy loaded assets like TAssetPtr in blueprints only?
I really hate this. This thread has been going on for ages and is really a flawed way to access data. I gave up when my struct arrays were disconnecting each time I loaded the project (it was about a year ago - i’m sure it works better now). I’ve recently been using an sqlite3 plugin to get data in from a db file. It makes so much more sense but, unfortunately, isn’t the most robust plugin - i’ve wanted to run it on a mac build but due to being a c++ failure haven’t been able to.
The benefits of a database rather than a CSV though are manyfold! - the triple quotes and other nonsense shouldn’t be tolerated as a way to get data into the system - also, i’m thinking we should be able to store data like textures and stuff as blobs? I believe there is - or was - native support for sqlite in the engine, so what i’d really love to see is a nice tutorial on how to define and populate a struct from one of these - even if it’s just a case of ‘load the lot into an array’. Any takers?
the good news about DataTables is that now we can use structs created in editor as row data type. So no more need to go to visual to do it.
Also, ‘’’ or “”" is not necessary any more. I can import easily any mesh references, classes, pointers or textures.
All good now, but no trace of it in documentation.
That’s a great tutorial Mamoniem, that really shows how things have come along with data tables. My question is though, can they be loaded at runtime? I’d like to have my data editable when the game is built.
[=;486247]
That’s a great tutorial Mamoniem, that really shows how things have come along with data tables. My question is though, can they be loaded at runtime? I’d like to have my data editable when the game is built.
[/]
I don’t think they can - DataTables code is editor-specific, and they can’t be manipulated outside the editor.
[=;486247]
That’s a great tutorial Mamoniem, that really shows how things have come along with data tables. My question is though, can they be loaded at runtime? I’d like to have my data editable when the game is built.
[/]
I’m sure you can’t legally… but another way to think about it, is using a datatbale structure to organize your save files. I mean the typical save method within Unreal. That way you have a saved data that matches your table structure. Another method will be of course writing some extension to save in formats like text or bytes.
[=grizfb75;306710]
Does anyone know if you can update rows (i.e. add rows) to a FTableRowBase during game play. For example, could I collect various stats, at different timepoints and then place them into a datatable and then save them as a csv for analysis outside of Unreal? Since the time of gameplay the # of rows would be variable depending on the length of time play.
Thanks,
[/]
Hi grizfb75 !
Did you manage to solve this problem out?
Currently, I am doing something similar to your , where I will be recording the player name and the score it has to the data table regardless of the number of players, so I can analysis the record outside of unreal.
Any idea how I can do that with the data table ?
Yes I have solved this issue. I actually used blue prints and used a loop functions that parsed each row of the table into a string and then an array was parsed from that string (using a comma as the delimiter).
[=grizfb75;569307]
Yes I have solved this issue. I actually used blue prints and used a loop functions that parsed each row of the table into a string and then an array was parsed from that string (using a comma as the delimiter).
Does that make sense?
[/]
Hi !
Thank for the fast reply. Do mind to share some screenshots of how you do it? That would be really helpful. By the Way, from what I can see( correct me if I am wrong ) you are trying to read the data from the data table and print them on screen.So how are you going to collect various stats and write them into data table with blueprint ?
I’d be happy too but I am on vacation for the next 3-4 weeks (my wedding) so I am not sure if I can get to it before then. If you don’t for me PM in a few weeks and I’ll get it done when I get back.
I’d be happy too but I am on vacation for the next 3-4 weeks (my wedding) so I am not sure if I can get to it before then. If you don’t for me PM in a few weeks and I’ll get it done when I get back.
[/]
Hi !
I will PM you again.
Congratulation for your wedding , Wishing you a lifetime of love and happiness!