Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Implement beatmap rating #137

Open
48cf opened this issue May 27, 2019 · 0 comments
Open

Implement beatmap rating #137

48cf opened this issue May 27, 2019 · 0 comments
Labels
feature: beatmaps type: suggestion Issues which suggest various features
Milestone

Comments

@48cf
Copy link
Collaborator

48cf commented May 27, 2019

Explanation of the idea

The funny star thingy at the bottom of results panel. Feels like a nice thing to have 👍

image

Handling the rating request

Still need to find it out.

Handling the voting

It seems to be handled by the /web/osu-rate.php route, sends 3 relevant parameters: c, u, p and v, respectively: beatmap md5 checksum, username, password md5 checksum and the rating user has submitted.

The v parameter seems to be an integer ranging from 0 to 10, when out of the range, response is "out of range". In case of any error the response changes to "no", or "auth failed" if the user authentication has failed.

Also, when user has already voted on the map, but still manages to send a request, we need to send back "alreadyvoted\n%.2f" formatted with the beatmap rating. If user votes for their first time, the "alreadyvoted\n" is omitted, leaving "%.2f", also formatted with the actual beatmap rating.

@48cf 48cf added type: suggestion Issues which suggest various features feature: beatmaps labels May 27, 2019
@48cf 48cf added this to the Backlog milestone May 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature: beatmaps type: suggestion Issues which suggest various features
Projects
None yet
Development

No branches or pull requests

1 participant