Skip to content

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

Open
@Raregendary

Description

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 :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions