Words List bug

i can compile but when i press PLAY i get that bug above i dont know why

It says that your words array is empty. You try to get 5 first item in words array but because it’s empty it crashes.

It’s because your path to HiddenWordList is wrong. FPaths::ProjectContentDir() already gets the path to your project content. You don’t need to write it again. You only need to write where HiddenWordList is inside your content.

try to write it like this:

const FString WordListpath = FPaths::ProjectContentDir() / TEXT("WordList/HiddenWordList.txt");
1 Like

this worked, thank yoou!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms