Hey, so I have a game that loads data from 2 DataTables that are tied to csv’s. This works fine when "Play"ing in the editor, but when I “Launch” it, I get a fatal error and a log full of “Couldn’t find file” errors. Here are the errors for one of my DataTables, but its happening to both.
LogPlayLevel: ForestOfTerror: [2017.03.30-15.48.34:856] 0]LogInit:Display: Starting Game.LogStreaming:Error: Couldn't find file for package /Game/DataTables/Level1ScreenData requested by async loading code. NameToLoad: /Game/DataTables/Level1ScreenData LogPlayLevel: ForestOfTerror: [2017.03.30-15.48.34:887] 0]LogStreaming:Error: Couldn't find file for package /Game/DataTables/Level1ScreenData requested by async loading code. NameToLoad: /Game/DataTables/Level1ScreenDataLogUObjectGlobals:Warning: Failed to find object 'DataTable /Game/DataTables/Level1ScreenData.Level1ScreenData'
Here’s the code where I’m loading the table.
FString ScreenPath = TEXT("/Game/DataTables/Level1ScreenData.Level1ScreenData"); ScreenData = Cast<UDataTable>(StaticLoadObject(UDataTable::StaticClass(), NULL, *ScreenPath, NULL, LOAD_None, NULL));
Any ideas why it might be having issues?