osu icon indicating copy to clipboard operation
osu copied to clipboard

`TotalScore` type is undetermined

Open peppy opened this issue 2 years ago • 1 comments

https://github.com/ppy/osu/blob/08d0c08750ae7341334a99aefa8920c9922f36f3/osu.Game/Scoring/ScoreManager.cs#L71

https://github.com/ppy/osu/blob/27d4016ccb360991c37750bf5fe67e193b8fa038/osu.Game/Rulesets/Scoring/ScoreProcessor.cs#L36

https://github.com/ppy/osu/blob/ba2ef424d4cac407692ad78c7c1c75b44110d419/osu.Game/Online/API/Requests/Responses/SoloScoreInfo.cs#L34

We should standardise these to a single type. Not sure if double or long makes more sense.

peppy avatar Sep 14 '22 04:09 peppy

Relevant: https://github.com/ppy/osu/issues/17783

frenzibyte avatar Sep 14 '22 12:09 frenzibyte

Hey I'm new to open source contribution, but I would like to take a stab at this issue if possible. I think that standardizing to long would make more sense since the scores are never displayed as a double and the previously linked issue #17783 requests that the total score functions return int instead of double. It also appears that #17783 never got a pull request as it seems to be not be updated in the current codebase.

CC-0000 avatar Sep 26 '22 03:09 CC-0000

Actually, after doing some preliminary changes, I think it makes more sense for the standard datatype to be double because long causes issues with the score not calculated properly.

CC-0000 avatar Sep 29 '22 16:09 CC-0000

because long causes issues with the score not calculated properly

Where/what issues does it cause?

smoogipoo avatar Sep 30 '22 13:09 smoogipoo

After I changed all the datatypes to long, and built and ran osu(lazer), the score for any map I played for was stuck at 000000

CC-0000 avatar Sep 30 '22 15:09 CC-0000

I think long should be preferred for this to be honest since it makes the intention of the data type more clear, scores shouldn't ever be floating points :/

o-dasher avatar Oct 01 '22 17:10 o-dasher

Correct, long should be preferred.

smoogipoo avatar Oct 03 '22 03:10 smoogipoo

what happens for the classic scoring system? will it become unsupported?

ghost avatar Oct 03 '22 03:10 ghost

The classic scoring system is supported by long.

smoogipoo avatar Oct 03 '22 03:10 smoogipoo

As far as I can tell, resolved by #21140.

bdach avatar Nov 21 '22 19:11 bdach