-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moved highscores from worldpath to modstorage #63
base: master
Are you sure you want to change the base?
Conversation
worldpath is deprecated move it to modstorage instead.
if count >= 5 then | ||
write_file(xp_redo.highscore) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
count
doesn't do anything useful after first write, you probably meant to reset it here to write every 5 minutes?
if count >= 5 then | |
write_file(xp_redo.highscore) | |
end | |
if count >= 5 then | |
write_file(xp_redo.highscore) | |
count = 0 | |
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ups emberassing that I forgot this but yeah I meant that
luacheck:
|
I guess some ppl might be using highscore.txt directly, possibly publishing it to some web service or something like that. IMO things like this shouldn't affect mod storage decisions. For stability API (or possibly globals) + separate mod should be used instead but thought that I'll mention it if someone reading this finds this causing trouble with their methods. |
@Coding-Hare any plans to continue this? |
i'm generally very much in favor of using mod storage over custom data files (w/ exceptions for e.g. the data has a complicated structure). but is the worldpath deprecated? the docs currently describe
your-land currently does that, but sucking the data out of mod storage isn't meaningfully harder than reading a flat file. |
worldpath is deprecated move it to modstorage instead.