x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Can you fill a TMap from a data table and/or CSV?

Just wondering whether it would be possible to fill a TMap with data from a CSV file? I am looking to fill a TMap with a bunch of entries (like, 60,000), from which I will be able to look up an item by key. Is this possible or am I barking up the wrong tree?

Product Version: UE 4.9
Tags:
more ▼

asked Jun 07 '16 at 12:53 PM in C++ Programming

avatar image

nati8boy
20 4 7 10

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

1 answer: sort voted first

Hey there Nati,

Yes it is possible, if your willing to use C++, or that is the way I would do it, I wouldn't be asking Blueprints to do 60,000 or even (10,000) of anything. C++ would also allow you to expose the functionality you create to blueprints as a new node, so that you could pass in parms with the blueprints, and control how the C++ executes easily.

Jay

IceWare Inc.

IwSpline

more ▼

answered Jun 07 '16 at 01:02 PM

avatar image

jayice
1.4k 41 28 56

avatar image nati8boy Jun 07 '16 at 01:05 PM

Great. I am definitely aiming to do it via C++. Do you have any links to content that might point me in the right direction? I haven't been able to find anything much out there.

avatar image jayice Jun 07 '16 at 01:16 PM

Nati,

Take a look in the wiki, for some code from Rama, that will get you started on some of the file operations you will need. Then look into the engine itself, for some utility functions for CSV, you will also need to look at the documentation for dealing with Blueprint function libraries (there is some stuff in the Wiki as well, along with official documentation from Epic). Use keywords like BlueprintPure, BlueprintCallable for your search. Sorry I don't have the links off the top of my head, but you will need to get use to search for things in the official documentation as well. Essentially your going to be creating static functions, in a library, to be able to allow blueprints to call into it. Which when you think about it, is very powerful, and to me, it's definitely the way to go.

Jay

IceWare Inc.

IwSpline

avatar image nati8boy Jun 07 '16 at 01:22 PM

Thanks for the pointers. I will look into it :)

avatar image jayice Jun 07 '16 at 01:36 PM

Very good! and have fun of course!

(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