Hi all,
I posted the following already in the forum but got the impression that it belongs here.
I’m having a hard time getting data tables to work in my project. Actually it works sometimes, but not everytime.
I created a struct in C++ to hold the data and the excel (from which I save the csv) using the template from the unreal web page.
My csv looks like this:
,NeedName,Comment,Thumbnail
0,TestNeed1,This is a test text,"""Texture2D'/Game/Textures/icon_GoingHome_32.icon_GoingHome_32'"""
1,TestNeed2,This is a test text,"""Texture2D'/Game/Textures/icon_food_32.icon_food_32'"""
2,TestNeed3,This is a test text,"""Texture2d'/Game/Textures/icon_jewelery_32.icon_jewelery_32'"""
3,TestNeed1,This is a test text,"""Texture2d'/Game/Textures/icon_clothes_32.icon_clothes_32'"""
4,TestNeed1,This is a test text,"""Texture2D'/Game/Textures/icon_books_32.icon_books_32'"""
5,TestNeed1,This is a test text,"""Texture2D'/Game/Textures/icon_computer_32.icon_computer_32'"""
6,TestNeed1,This is a test text,"""Texture2D'/Game/Textures/icon_furniture_32.icon_furniture_32'"""
7,TestNeed1,This is a test text,"""Texture2D'/Game/Textures/icon_games_32.icon_games_32'"""
8,TestNeed1,This is a test text,"""Texture2D'/Game/Textures/icon_groceries_32.icon_groceries_32'"""
9,TestNeed1,This is a test text,"""Texture2D'/Game/Textures/icon_music_32.icon_music_32'"""
10,TestNeed1,This is a test text,"""Texture2D'/Game/Textures/icon_perfume_32.icon_perfume_32'"""
11,TestNeed1,This is a test text,"""Texture2D'/Game/Textures/icon_shoes_32.icon_shoes_32'"""
12,TestNeed1,This is a test text,"""Texture2D'/Game/Textures/icon_tools_32.icon_tools_32'"""
Now when I import into unreal engine here’s what I get:
The entries crudly circled yellow are the only ones that will work / get displayed in my game.
What could cause that? btw. the csv. is UTF-8 encoded as I am living in a country with funny letters.
Ok, now here’s the REALLY funny part. As soon as i have clicked “Copy Reference” on every referenced image in the content browser, I can reimport the very same data table source (Asset->Reimport List) and the editor will once again recognize the link to the picture and it is displayed in my game.
Please don’t hesitate to move the topic should I be wrong here with my question.
thanks and best regards