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"

export / import csv datatable in exported game (not editor)

Hello. I got a datatable which contains informations of my game and i often use the export/import to an asv to change the values. And I was wondering if it was possible to : Import / export a modified CSV of the datatable into a folder of my exported game, in order to change the values without use the unreal editor (but excel or wordpad). Maybe i can use a function like "save / load" in an exportable format, readable with excel. Thanks

Product Version: UE 4.18
Tags:
more ▼

asked Feb 14 '18 at 09:57 AM in Blueprint Scripting

avatar image

guiguimbop
1 2 4

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

I believe it's not possible by default tools in the engine for now, there should be some plugin for that, or the devs should add that feature in future. You can reimport the csv you already created from folder back to UE4, but not realtime (ingame) and not in packed game.

more ▼

answered Feb 14 '18 at 10:12 AM

avatar image

Dino zavr
78 6 7

(comments are locked)
10|2000 characters needed characters left
 FString csvFile = FPaths::GameContentDir() + "Downloads\\DownloadedFile.csv";
              if (FPaths::FileExists(csvFile ))
              {
                  FString FileContent;
                  //Read the csv file
                  FFileHelper::LoadFileToString(FileContent, *csvFile );
                  TArray<FString> problems = YourDataTable->CreateTableFromCSVString(FileContent);
  
              if (problems.Num() > 0)
              {
                  for (int32 ProbIdx = 0; ProbIdx < problems.Num(); ProbIdx++)
                  {        
                                              //Log the errors
                  }
              }
              else
              {
                  //Updated Successfully
              }
          }

You need download the csvfile on net instead of including in content. Click here: https://answers.unrealengine.com/questions/701352/localization-dont-work-on-dynamic-string-table-loa.html

more ▼

answered Jun 26 '18 at 10:10 AM

avatar image

Micheal Chuang
1 1 1

(comments are locked)
10|2000 characters needed characters left
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