Hi ,
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 '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.
Edit: Now 's the funny part. When I copy the reference to the picture from the editor and paste it into the csv, it will work again. Even there is no apparent change in the csv itself.
Edit2: Ok, now 's the REALLY funny part. I don’t even need to paste into the csv. As soon as i click “Copy Reference” in the unreal engine and reimport the very same asset (Asset->Reimport List), the editor will once again recognize the link to the picture and it is displayed in my game.
Any advice would be greatly appreciated!
Thanks for your help