Skye Homes
Member
Hey all, I want to use a txt or json file containing a struct with all the dialogue for the game (so I could swap in translations etc) but with all my attempts at searching how to do this correctly I still haven't managed to.
If I have a .txt or .json file containing:
{
"teststring": "this is a test message"
}
How do I go about getting that content to a single variable as a struct? I have tried including the file to the project by adding it to the data folder, then trying different combinations of file_text_open_read, file_text_read_string and json_parse functions, but no luck.
Thanks in advance!
If I have a .txt or .json file containing:
{
"teststring": "this is a test message"
}
How do I go about getting that content to a single variable as a struct? I have tried including the file to the project by adding it to the data folder, then trying different combinations of file_text_open_read, file_text_read_string and json_parse functions, but no luck.
Thanks in advance!