Announcement

Collapse
No announcement yet.

Storing asset info in CSV DataTable - not entirely possible?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Storing asset info in CSV DataTable - not entirely possible?

    Since default values of BP classes tend to reset quite often (bug), I've decided to store all Items/Skills/etc. info in DataTable. It works quite well, I have all info like ID (every Item BP class has its own unique "ID" String var, and grabs all the info from corresponding DataTable Row in Construction Script) name, value, damage, description, etc. in Google Sheets. After adding/changing something, I export .CSV file + import it into DataTable in UE.

    However, I still need to set up default values of variables like ItemIcon (Texture2D), ItemMesh (StaticMesh), ItemMaterial, ItemHighlightedMaterial, etc. directly in BP class.
    I can't think of any way of referencing these assets in .CSV file. I've heard about "AssetID", but I'm afraid it's only for asset load management?

    I could store all info straight in UE editor DataTable, but e.g. writing item descriptions (long text) would be very painful there.

    Maybe it's better to have two DataTables, something like that?:

    - Items (DataTable feed from .CSV file, with info like name, description, value, damage, etc.)
    - ItemsAssets (DataTable created inside UE, with references to items Icon (Texture2D), Mesh (StaticMesh), etc.)

    ... Then, let's say "LongSword" BP would need only one default variable to be set: "ID" (String) (for example "longSword1"). Then it would grab all the info from "longSword1" row - from both Items and ItemsAssets data tables in Construction Script.

    Is there a better way? Or maybe the two-datatables workflow would be ok?
    I hope I wrote it in understandable way?

    #2
    you can make it manual in ue4 with engine datatable editor.

    Comment


      #3
      Originally posted by CriErr View Post
      you can make it manual in ue4 with engine datatable editor.
      Yeah I know, but as I said earlier:

      Originally posted by Slavq View Post
      I could store all info straight in UE editor DataTable, but e.g. writing item descriptions (long text) would be very painful there.
      Any longer text is difficult to type in in UE editor (EXAMPLE), but storing long text in spreadsheet works really well when using cell text wrapping.
      ... Hm, so probably I'll try to implement this two-datatables solution. One datatable for text descriptions, etc., feed from .CSV - and the other one (for storing e.g. Texture2D/StaticMesh references) created manually in UE datatable editor...

      PS. I hope that DataTables don't reset their values like some BP classes

      Comment


        #4
        see, you found solution =)

        Comment


          #5
          Yup, the two datatables should do the job... I wanted to check if maybe there is some other obvious, better solution that I'm missing ^^
          ... Well, if someone gets some better idea, please let me know

          Comment


            #6
            https://wiki.unrealengine.com/Using_...our_data_table

            It sounds like this is what you want to do.

            Comment


              #7
              Thanks, copy+paste asset reference as a String also seems like a good solution. I'll look into it!

              Comment

              Working...
              X