bartbes wrote:No, it actually says love.filesystem.open failed
This doesn't make sense to me because when I ran that same line without the contained assertion stderr.txt didn't give me an error (this could just be some weird case of lua not noticing an error or something).
Thanks for the tip about assert(), though, I was way off. I'll check the code tomorrow night.
Edit: Quick installed Love on this computer and tested it. Works for me, thanks again.
doesn't work for me:
If i use the code as is, the file is not edited. If I use a subdirectory the game closes imidiately.
stderr(uses german so I translate):
Error, could not open file: The system could not find the given file.
Now I placed it in load(). If I run "love .", it segfaults, but when I run "love ../Sparx" it works.
EDIT: for subdirectories, löve does indeed crash. This only happens when the subdirectory does not exist. love.filesystem.mkdir() seems do do nothing at all.
That's what I wanted to know, your command line, running "love ." fails, because it thinks your game is called ., and security protects it from creating ~/.love/.