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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
zugende
Prole
Posts: 12
Joined: Sun Feb 21, 2016 5:47 pm

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

Post 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
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

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

Post by Robin »

Did you look in the write directory? (See the wiki for where to find it.)
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: No registered users and 80 guests