Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How do I define my data table row type so that I can import my data table?

I see that there is functionality for getting data from data tables now in blueprints, but I can't import the .csv successfully, there is a single option in the dropdown box upon import which gives a "not enough rows" error.

It seems like I need to define my own structure somewhere so that I can import the data table, but I don't know where to do that. I can't seem to do it in an enum because the UE there seems to assume I've got the table imported already.

Product Version: Not Selected
more ▼

asked Jul 21 '14 at 08:38 PM in Blueprint Scripting

avatar image

1.2k 57 67 99

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

No need for C++ structs, here is the method of making and using datatables directly with BP.



more ▼

answered Sep 09 '15 at 04:11 PM

avatar image

1.2k 33 25 66

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

As far as I can find, the table must be defined in C++ as a struct derived from FTableRowBase (eg. struct MyTableType : public FTableRowBase)

"Not enough rows" error also shows up when exporting from google docs, but it doesn't sound like you're that far yet

In case you haven't found it, the documentation can be found here: https://docs.unrealengine.com/latest/INT/Gameplay/DataDriven/index.html

more ▼

answered Jul 31 '14 at 03:16 AM

avatar image

797 49 60 94

avatar image DeceptiveIcon Aug 11 '14 at 05:09 PM

As Grogger said the "not enough rows" error turns up when you try to use a .csv file export from Google Docs. The reason being the parser in the Unreal Engine expects lines to end in \r\n but Google exports them with just \r.

I found if you open the file up in Sublime and go to View->Line Endings->Windows and save the file it will be formatted correctly.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question