Hi all,
Running 2.7.6 on Linux Debian (Elementary OS), and I found an issue when using the datastore API, and later the file API as backup. This is all happening on simulator.
A simple example that breaks my game:
-- Datastore example:
playdate.datastore.write({ score = score }, "score")
-- Manual file write example:
local file = assert(playdate.file.open("score.json", playdate.file.kFileWrite))
if file then
file:write("{\"score\":" .. tostring(score) .. "}")
file:flush()
end
The errors that show are respectively:
Couldn't open file at score.tmp: No such file
and
No such file.
mkDir and file.open in read mode work without errors.
If you want a reproducible example, I will provide it with my project as soon as this game jam ends ![]()