Issue with empty highscore table #13
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: library-mirrors/gamejoltlua#13
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello, have had problems when trying to fetchScores when the table is empty. Did this to try to fix it, think it works.
if f then
f[k] = v
end
did not work. I'm confused, i'm trying to get all scores for a highscore table and I'm only getting from users. Shouldn't I use fetchScores?
This is what is going on in here:
Fetch score passes the username and token if tableID is not specified, this means that if you want data from the global table you only get data for the authenticated user, since the user has no data in the table the returned table is empty. There is a hackish fix for this:
This will pass the if tableID then conditional and ignore the authenticated user.
There is a problem with the function any way, because user data cannot be passed when providing a table ID. This could be fixed with something like:
Ok, I got it now thanks for the help :)
Can you report back if the hack works? Even then dont close this issue since it still needs to be fixed, lets wait to see what @insweater has to say about this 😃
Sorry for the late response.
Yeah, it seems to be the problem. If code by @Positive07 worked for you, please let us know so we can push it to master branch.
Yeah! The later one, not the hack. Sorry, I cant test this (at least now) so your feedback will be appreciated @Dreanh