mirror of
https://github.com/ppy/osu
synced 2025-01-04 13:22:08 +00:00
TAIKO-6 Tweak encoding and parameters, reduce rhythm weight
This commit is contained in:
parent
f6dedc77fb
commit
6660379a0e
@ -53,7 +53,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Evaluators
|
||||
/// </summary>
|
||||
public static void PreEvaluateDifficulties(CoupledColourEncoding encoding)
|
||||
{
|
||||
double coupledEncodingDifficulty = EvaluateDifficultyOf(encoding);
|
||||
double coupledEncodingDifficulty = 2 * EvaluateDifficultyOf(encoding);
|
||||
encoding.Payload[0].Payload[0].EncodedData[0].Colour!.EvaluatedDifficulty += coupledEncodingDifficulty;
|
||||
for (int i = 0; i < encoding.Payload.Count; i++)
|
||||
{
|
||||
@ -63,7 +63,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Evaluators
|
||||
for (int j = 0; j < colourEncoding.Payload.Count; j++)
|
||||
{
|
||||
MonoEncoding monoEncoding = colourEncoding.Payload[j];
|
||||
monoEncoding.EncodedData[0].Colour!.EvaluatedDifficulty += EvaluateDifficultyOf(monoEncoding, j) * colourEncodingDifficulty;
|
||||
monoEncoding.EncodedData[0].Colour!.EvaluatedDifficulty += EvaluateDifficultyOf(monoEncoding, j) * colourEncodingDifficulty * 0.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -16,8 +16,8 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Evaluators
|
||||
/// <param name="interval">The interval between the current and previous note hit using the same key.</param>
|
||||
private static double speedBonus(double interval)
|
||||
{
|
||||
// return 10 / Math.Pow(interval, 0.6);
|
||||
return Math.Pow(0.1, interval / 1000);
|
||||
// return 15 / Math.Pow(interval, 0.6);
|
||||
return Math.Pow(0.2, interval / 1000);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -7,7 +7,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour
|
||||
{
|
||||
public List<MonoEncoding> Payload { get; private set; } = new List<MonoEncoding>();
|
||||
|
||||
public bool isIdenticalTo(ColourEncoding other)
|
||||
public bool isRepetitionOf(ColourEncoding other)
|
||||
{
|
||||
return hasIdenticalMonoLength(other) &&
|
||||
other.Payload.Count == Payload.Count &&
|
||||
|
@ -40,7 +40,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour
|
||||
Previous = lastEncoded
|
||||
};
|
||||
|
||||
bool isCoupled = i < data.Count - 2 && data[i].isIdenticalTo(data[i + 2]);
|
||||
bool isCoupled = i < data.Count - 2 && data[i].isRepetitionOf(data[i + 2]);
|
||||
if (!isCoupled)
|
||||
{
|
||||
lastEncoded.Payload.Add(data[i]);
|
||||
@ -52,7 +52,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour
|
||||
lastEncoded.Payload.Add(data[i]);
|
||||
i++;
|
||||
|
||||
isCoupled = i < data.Count - 2 && data[i].isIdenticalTo(data[i + 2]);
|
||||
isCoupled = i < data.Count - 2 && data[i].isRepetitionOf(data[i + 2]);
|
||||
}
|
||||
|
||||
// Skip over peeked data and add the rest to the payload
|
||||
|
@ -2,12 +2,9 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using osu.Game.Rulesets.Difficulty.Preprocessing;
|
||||
using osu.Game.Rulesets.Difficulty.Skills;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osu.Game.Rulesets.Taiko.Difficulty.Preprocessing;
|
||||
using osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour;
|
||||
using osu.Game.Rulesets.Taiko.Difficulty.Evaluators;
|
||||
|
||||
namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
|
||||
@ -17,7 +14,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
|
||||
/// </summary>
|
||||
public class Colour : StrainDecaySkill
|
||||
{
|
||||
protected override double SkillMultiplier => 0.2;
|
||||
protected override double SkillMultiplier => 0.12;
|
||||
protected override double StrainDecayBase => 0.8;
|
||||
|
||||
/// <summary>
|
||||
@ -40,33 +37,34 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
|
||||
return difficulty;
|
||||
}
|
||||
|
||||
public static String GetDebugHeaderLabels()
|
||||
{
|
||||
return "StartTime,Raw,Decayed,CoupledRunLength,RepetitionInterval,EncodingRunLength,Payload(MonoRunLength|MonoCount)";
|
||||
}
|
||||
// TODO: Remove before pr
|
||||
// public static String GetDebugHeaderLabels()
|
||||
// {
|
||||
// return "StartTime,Raw,Decayed,CoupledRunLength,RepetitionInterval,EncodingRunLength,Payload(MonoRunLength|MonoCount)";
|
||||
// }
|
||||
|
||||
// TODO: Remove befor pr
|
||||
public string GetDebugString(DifficultyHitObject current)
|
||||
{
|
||||
double difficulty = ColourEvaluator.EvaluateDifficultyOf(current);
|
||||
difficulty *= speedBonus(current.DeltaTime);
|
||||
TaikoDifficultyHitObject? taikoCurrent = (TaikoDifficultyHitObject)current;
|
||||
TaikoDifficultyHitObjectColour? colour = taikoCurrent?.Colour;
|
||||
if (taikoCurrent != null && colour != null)
|
||||
{
|
||||
List<ColourEncoding> payload = colour.Encoding.Payload;
|
||||
string payloadDisplay = "";
|
||||
for (int i = 0; i < payload.Count; ++i)
|
||||
{
|
||||
payloadDisplay += $"({payload[i].Payload[0].RunLength}|{payload[i].Payload.Count})";
|
||||
}
|
||||
// // TODO: Remove before pr
|
||||
// public string GetDebugString(DifficultyHitObject current)
|
||||
// {
|
||||
// double difficulty = ColourEvaluator.EvaluateDifficultyOf(current);
|
||||
// difficulty *= speedBonus(current.DeltaTime);
|
||||
// TaikoDifficultyHitObject? taikoCurrent = (TaikoDifficultyHitObject)current;
|
||||
// TaikoDifficultyHitObjectColour? colour = taikoCurrent?.Colour;
|
||||
// if (taikoCurrent != null && colour != null)
|
||||
// {
|
||||
// List<ColourEncoding> payload = colour.Encoding.Payload;
|
||||
// string payloadDisplay = "";
|
||||
// for (int i = 0; i < payload.Count; ++i)
|
||||
// {
|
||||
// payloadDisplay += $"({payload[i].Payload[0].RunLength}|{payload[i].Payload.Count})";
|
||||
// }
|
||||
|
||||
return $"{current.StartTime},{difficulty},{CurrentStrain},{colour.Encoding.Payload[0].Payload.Count},{colour.Encoding.RepetitionInterval},{colour.Encoding.Payload.Count},{payloadDisplay}";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $"{current.StartTime},{difficulty},{CurrentStrain},0,0,0,0,0";
|
||||
}
|
||||
}
|
||||
// return $"{current.StartTime},{difficulty},{CurrentStrain},{colour.Encoding.Payload[0].Payload.Count},{colour.Encoding.RepetitionInterval},{colour.Encoding.Payload.Count},{payloadDisplay}";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return $"{current.StartTime},{difficulty},{CurrentStrain},0,0,0,0,0";
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
@ -11,11 +11,11 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
|
||||
{
|
||||
public class Peaks : Skill
|
||||
{
|
||||
private const double rhythm_skill_multiplier = 0.3 * final_multiplier;
|
||||
private const double colour_skill_multiplier = 0.4 * final_multiplier;
|
||||
private const double stamina_skill_multiplier = 0.35 * final_multiplier;
|
||||
private const double rhythm_skill_multiplier = 0.2 * final_multiplier;
|
||||
private const double colour_skill_multiplier = 0.375 * final_multiplier;
|
||||
private const double stamina_skill_multiplier = 0.375 * final_multiplier;
|
||||
|
||||
private const double final_multiplier = 0.06;
|
||||
private const double final_multiplier = 0.0625;
|
||||
|
||||
private readonly Rhythm rhythm;
|
||||
private readonly Colour colour;
|
||||
@ -26,8 +26,8 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
|
||||
public double StaminaDifficultyValue => stamina.DifficultyValue() * stamina_skill_multiplier;
|
||||
|
||||
// TODO: remove before pr
|
||||
private StreamWriter? colourDebugOutput;
|
||||
bool debugColour = false;
|
||||
// private StreamWriter? colourDebugOutput;
|
||||
// bool debugColour = false;
|
||||
|
||||
public Peaks(Mod[] mods, IBeatmap beatmap)
|
||||
: base(mods)
|
||||
@ -36,13 +36,13 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
|
||||
colour = new Colour(mods);
|
||||
stamina = new Stamina(mods);
|
||||
|
||||
if (debugColour)
|
||||
{
|
||||
String filename = $"{beatmap.BeatmapInfo.OnlineID} - {beatmap.BeatmapInfo.Metadata.Title}[{beatmap.BeatmapInfo.DifficultyName}].csv";
|
||||
filename = filename.Replace('/', '_');
|
||||
colourDebugOutput = new StreamWriter(File.OpenWrite($"/run/mount/secondary/workspace/osu/output/colour-debug/{filename}"));
|
||||
colourDebugOutput.WriteLine(Colour.GetDebugHeaderLabels());
|
||||
}
|
||||
// if (debugColour)
|
||||
// {
|
||||
// String filename = $"{beatmap.BeatmapInfo.OnlineID} - {beatmap.BeatmapInfo.Metadata.Title}[{beatmap.BeatmapInfo.DifficultyName}].csv";
|
||||
// filename = filename.Replace('/', '_');
|
||||
// colourDebugOutput = new StreamWriter(File.OpenWrite($"/run/mount/secondary/workspace/osu/output/colour-debug/{filename}"));
|
||||
// colourDebugOutput.WriteLine(Colour.GetDebugHeaderLabels());
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
@ -59,11 +59,11 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
|
||||
colour.Process(current);
|
||||
stamina.Process(current);
|
||||
|
||||
if (debugColour && colourDebugOutput != null)
|
||||
{
|
||||
colourDebugOutput.WriteLine(colour.GetDebugString(current));
|
||||
colourDebugOutput.Flush();
|
||||
}
|
||||
// if (debugColour && colourDebugOutput != null)
|
||||
// {
|
||||
// colourDebugOutput.WriteLine(colour.GetDebugString(current));
|
||||
// colourDebugOutput.Flush();
|
||||
// }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
|
||||
/// </remarks>
|
||||
public class Stamina : StrainDecaySkill
|
||||
{
|
||||
protected override double SkillMultiplier => 1.2;
|
||||
protected override double SkillMultiplier => 1.1;
|
||||
protected override double StrainDecayBase => 0.4;
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user