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

Implement beatmap rating #137

@48cf

Description

@48cf

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions