Hey,
I use the code below to load and save data in HTML5.
local GAME_ID = "game id"
local FILENAME = "Storage.txt"
local path = sys.get_save_file(GAME_ID, FILENAME)
local data_table = sys.load(path)
local path = sys.get_save_file(GAME_ID, FILENAME)
local t = {test=1}
local success = sys.save(path, t)
For some reason the HTML file content that’s been previously saved successfully is not always loaded (the data is missing from the file). This happens both when bundling the game and when exporting directly to HTML5. Am I missing something basic, maybe the files is stored in a temp folder or something?