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

Can you Add difficulty aswel, its already being calculated ? #1

Open
Raregendary opened this issue Jan 28, 2023 · 0 comments
Open

Can you Add difficulty aswel, its already being calculated ? #1

Raregendary opened this issue Jan 28, 2023 · 0 comments

Comments

@Raregendary
Copy link

Raregendary commented Jan 28, 2023

Hello, i tried doing it myself both from Osu.tools and then with this code, but i always get same error
Could not load file or assembly 'osu.Game, Version=2023.123.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
But since your one is working as a nugget package and i just need difficulty can you add it.
You need to add 1.5 lines of code
one public property
public DifficultyAttributes Difficulty;

and then replace and rename
var nextAttributes = Ruleset.CreateDifficultyCalculator(PpBeatmap).Calculate(Score.Mods);
with
Difficulty = Ruleset.CreateDifficultyCalculator(PpBeatmap).Calculate(Score.Mods);

or just
Difficulty =nextAttributes;
https://github.com/OsuSync/SimpleOsuPerformanceCalculator/blob/master/SimpleOsuPerformanceCalculator/Calculator/SimplePerformanceCalculator.cs#L145

i have no idea how to use github so sorry :)

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

1 participant