love.filesystem.write doesn't work
Posted: Thu Apr 09, 2020 5:56 am
Hi ! I am trying to save some data on my game but love.filesystem.write doesn't seem to work at all...
I am doing this
First I can't even see the LOVE folder in /Application support/ (and I already set an identity in conf.lua)
So I don't understand how I am supposed to write a file and load it?
when I try to load it
it says
But where is my save.lua file if the LOVE folder doesn't exist??
There is something I am missing with this.. if anyone could explain to me I would really appreciate
Thanks!
I am doing this
Code: Select all
love.filesystem.write('save','anything here')
So I don't understand how I am supposed to write a file and load it?
when I try to load it
Code: Select all
chunk = love.filesystem.load('save.lua')
local s = chunk()
print(tostring(s))
Code: Select all
Syntax error: save.lua:1: '=' expected near 'here'
There is something I am missing with this.. if anyone could explain to me I would really appreciate
Thanks!