ChrisNZL / Tallowmere2

Changelog, issue tracker, and development knowledge for Tallowmere 2.
https://tallowmere2.com
13 stars 0 forks source link

Steam Leaderboards / Room Attack: Sort by time elapsed where possible #984

Closed ChrisNZL closed 1 year ago

ChrisNZL commented 2 years ago

image

With the way Steam stores its leaderboard data, specifically for the Room Attack mode...

I basically get to submit an int score and then an arbitrary int[] details array of extra data.

So Steam just stores and sorts by score (aka the Room Number), and then my extra data in the details array is just tacked on, which is where I derive the time from, but Steam doesn't sort it further, so it's probably sorted by date submitted if the score is the same.

I can try to sort it on the client's end, though it may stuff up when you start trying to paginate next/previous if there are lots of entries with the same score.

ChrisNZL commented 1 year ago

Can't be bothered. It's fine enough.