Where to store game information

Hello,

I wish to create a file with dialogs, quest for NPC. It will be a json file.
I want to load the json in my C++ code. The subject is not about read the file but to know where in the project (VS or Editor//asset) to be able to load it after I package the game.

It can’t be on an absolute path like (c:\game\myuegame\file.json).

Thank you

Hey, you wouldn’t be able to put the json file in the editor because unreal engine would not pick it up as a file unless you turn it into a UCLASS.

I think you’re looking for FPlatformProcess::BaseDir(), and should be storing your json file some place within the game’s installation/base folder. See:

Hope this helps!