Skip to content
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

oppai result doesnt match osu api #66

Open
Atilogit opened this issue Jan 3, 2021 · 5 comments
Open

oppai result doesnt match osu api #66

Atilogit opened this issue Jan 3, 2021 · 5 comments

Comments

@Atilogit
Copy link

Atilogit commented Jan 3, 2021

Trying to reproduce the pp value of this score on 1955170
grafik
using curl https://osu.ppy.sh/osu/1955170 | ./oppai - 509x 8x100
returns a value of 271.59 pp which doesnt match the returned 272.347pp
when calling https://osu.ppy.sh/api/v2/users/{userid}/scores/best.
Version is 3.3.0-b237

@Francesco149
Copy link
Owner

yeah it's normal, it's not expected to be 1:1 accurate, just close enough. we don't do slider calculations at all

@Atilogit
Copy link
Author

Atilogit commented Jan 4, 2021

Ah i see. I guess i'll figure out something with peppys calculator then. Is it reasonable to have something like a precision mode in later versions?

@Francesco149
Copy link
Owner

the slider calculations add so much complexity and code and makes the calculation slower it isn't worth it in my opinion. I used to have them but removed. I dont think even the official calculator based on lazer is 100% accurate. you need the exact aim/speed star ratings used by bancho and then you can plug them into the pp formula and get 1:1 pp values

@Atilogit
Copy link
Author

Atilogit commented Jan 4, 2021

Looking through the code at https://github.com/ppy/osu/blob/master/osu.Game.Rulesets.Osu/Difficulty/ and plugging in the right star values for the play i mentioned at the beginning i get a value that is consistent with the one returned by the api.
But when i plug in the generated speed and aim star difficulties into oppai the resulting pp is still off.
Doing it the other way around by getting the difficulties from oppai and using peppys pp calculator results in a way better approximation.
Is there any reason that oppai's implementation yields a different result there?
The original code doesn't seem too expensive.

@Francesco149
Copy link
Owner

the expensive part is calculating the star rating itself, which is an order of magnitude slower if you do slider calculations. when you plug the star values you are skipping that part

there also have been some slight changes to the pp formula recently which I haven't added to oppai, so that could be the reason it doesn't match osu!lazer perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants