Page 1 of 1

sick.lua - what is the right path to file?

Posted: Sun Apr 17, 2016 2:43 pm
by zugende
Hi everybody,

I would like to use sick for saving highscores. But no matter what I do, nothing is written in the dedicated highscore file. What am I doing wrong?

My setup:

Within my game folder I included the "highscore.txt" file.
This is the code:

Code: Select all

local highscore = require('sick')
highscore.set("highscore.txt",2)
highscore.add("test1", 235)
highscore.add("Test test", 33456)
highscore.save()
My game folder is called "game" so I set in the config.lua

Code: Select all

t.identity = "game"
Is this wrong?

Thakns a lot!!
Best
Basti

Re: sick.lua - what is the right path to file?

Posted: Sun May 08, 2016 11:38 pm
by Robin
Did you look in the write directory? (See the wiki for where to find it.)