I am using dataSaver in my project, and I am confused about how it saves files. When I run this line of code, would it automatically create a file, or do I need to create one manually?
dataSaver.saveValue("|D|hiscore", hiscore)
local hiscore = dataSaver.loadValue("|D|hiscore")
hiscoreText:setText(hiscore) |
The reason I am confused is because when I run my game in gideros player, it will remember the hi score in my code until I close the player. It even will remember the value throughout scenes. But once I close the player and open it again, it thinks that the hiscore is nil.
Comments
https://deluxepixel.com
Save :
The Gobb : https://play.google.com/store/apps/details?id=fr.toastapp.thegobb
Likes: SinisterSoft, jeromegsq
Also, if I use io.open, do I need to have an actual file called "save" in my project directory, or does it handle that part for me when I use dataSaver.saveValue?
Thanks!
hiscore = res
Thanks for all your help!