diff --git a/Quaver.API/Replays/Replay.cs b/Quaver.API/Replays/Replay.cs index cb29890a5..60205732d 100644 --- a/Quaver.API/Replays/Replay.cs +++ b/Quaver.API/Replays/Replay.cs @@ -299,12 +299,7 @@ public void Write(string path) bw.Write(DateTime.Now.ToString(CultureInfo.InvariantCulture)); bw.Write(TimePlayed); bw.Write((int)Mode); - // This check is to keep compatibility with older clients. - // We only want to write a 64-bit integer for replays with newer mods activated - if (ReplayVersion == "0.0.1" || Mods < ModIdentifier.Speed105X) - bw.Write((int)Mods); - else - bw.Write((long)Mods); + bw.Write((long)Mods); bw.Write(Score); bw.Write(Accuracy); bw.Write(MaxCombo); @@ -511,7 +506,7 @@ public List GetKeyPresses() /// public string GetMd5(string frames) { - if (Version.TryParse(CurrentVersionString, out var ver) && ver >= VersionMineHit) + if (Version.TryParse(ReplayVersion, out var ver) && ver >= VersionMineHit) { return CryptoHelper.StringToMd5($"{ReplayVersion}-{TimePlayed}-{MapMd5}-{PlayerName}-{(int)Mode}-" + $"{(int)Mods}-{Score}-{Accuracy}-{MaxCombo}-{CountMarv}-{CountPerf}-" + diff --git a/Quaver.Tools/Commands/ReplayBuildCommand.cs b/Quaver.Tools/Commands/ReplayBuildCommand.cs index 4844f086e..cdf9da096 100644 --- a/Quaver.Tools/Commands/ReplayBuildCommand.cs +++ b/Quaver.Tools/Commands/ReplayBuildCommand.cs @@ -26,7 +26,7 @@ public class ReplayBuildCommand : Command /// /// - /// + /// /// /// public ReplayBuildCommand(string[] args) : base(args) @@ -52,7 +52,8 @@ public ReplayBuildCommand(string[] args) : base(args) CountGood = int.Parse(args[14]), CountOkay = int.Parse(args[15]), CountMiss = int.Parse(args[16]), - PauseCount = int.Parse(args[17]) + CountMineHit = int.Parse(args[17]), + PauseCount = int.Parse(args[18]) }; OutputPath = args[2]; diff --git a/Quaver.Tools/Commands/ReplayCommand.cs b/Quaver.Tools/Commands/ReplayCommand.cs index 14f2c7d53..27f948cf3 100644 --- a/Quaver.Tools/Commands/ReplayCommand.cs +++ b/Quaver.Tools/Commands/ReplayCommand.cs @@ -46,6 +46,7 @@ public override void Execute() => Console.WriteLine(JObject.FromObject(new Replay.CountGood, Replay.CountOkay, Replay.CountMiss, + Replay.CountMineHit, Replay.PauseCount, Replay.HasData, Replay.Frames.Count diff --git a/Quaver.Tools/Commands/VirtualReplayPlayerCommand.cs b/Quaver.Tools/Commands/VirtualReplayPlayerCommand.cs index b05ec1f8f..f31f5e99f 100644 --- a/Quaver.Tools/Commands/VirtualReplayPlayerCommand.cs +++ b/Quaver.Tools/Commands/VirtualReplayPlayerCommand.cs @@ -121,7 +121,8 @@ public override void Execute() Replay.CountGreat, Replay.CountGood, Replay.CountOkay, - Replay.CountMiss + Replay.CountMiss, + Replay.CountMineHit }, VirtualReplayPlayer = new { @@ -134,6 +135,7 @@ public override void Execute() CountGood = virtualPlayer.ScoreProcessor.CurrentJudgements[Judgement.Good], CountOkay = virtualPlayer.ScoreProcessor.CurrentJudgements[Judgement.Okay], CountMiss = virtualPlayer.ScoreProcessor.CurrentJudgements[Judgement.Miss], + virtualPlayer.ScoreProcessor.CountMineHit, Hits = hits }, })); diff --git a/Quaver.Tools/Program.cs b/Quaver.Tools/Program.cs index 29f42c614..b9dff013e 100644 --- a/Quaver.Tools/Program.cs +++ b/Quaver.Tools/Program.cs @@ -23,7 +23,7 @@ internal static void Main(string[] args) $"-calcfolder `Calculate the difficulty of an entire folder`\n" + $"-replay (-headerless) `Read a replay file and retrieve information about it.`\n" + $"-virtualreplay <-hl (optional to read headerless)> `Simulate a replay and retrieve its score outcome.`\n" + - $"-buildreplay \n" + + $"-buildreplay \n" + $"-calcrating \n" + $"-convertosu \n" + $"-convertsm \n" +