Skip to content

Commit

Permalink
Add rudimentary parsing of 1.15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Nov 4, 2024
1 parent 006d96d commit 5e63dfb
Show file tree
Hide file tree
Showing 50 changed files with 7,509 additions and 16 deletions.
18 changes: 11 additions & 7 deletions WowPacketParser/Enums/Version/Opcodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
using WowPacketParser.Enums.Version.V11_0_5_57171;
using WowPacketParser.Misc;
using WowPacketParser.Enums.Version.V1_15_4_56738;
using WowPacketParser.Enums.Version.V1_15_3_55515;

namespace WowPacketParser.Enums.Version
{
Expand Down Expand Up @@ -950,12 +951,6 @@ public static ClientVersionBuild GetOpcodeDefiningBuild(ClientVersionBuild build
case ClientVersionBuild.V1_15_2_54902:
case ClientVersionBuild.V1_15_2_55002:
case ClientVersionBuild.V1_15_2_55140:
case ClientVersionBuild.V1_15_3_55515:
case ClientVersionBuild.V1_15_3_55563:
case ClientVersionBuild.V1_15_3_55646:
case ClientVersionBuild.V1_15_3_55917:
case ClientVersionBuild.V1_15_3_55488:
case ClientVersionBuild.V1_15_3_55626:
return ClientVersionBuild.V1_15_0_52302;
case ClientVersionBuild.V4_4_0_54481:
case ClientVersionBuild.V4_4_0_54500:
Expand All @@ -979,7 +974,14 @@ public static ClientVersionBuild GetOpcodeDefiningBuild(ClientVersionBuild build
case ClientVersionBuild.V4_4_0_56713:
case ClientVersionBuild.V4_4_0_57244:
return ClientVersionBuild.V4_4_0_54481;
case ClientVersionBuild.V1_15_4_56738: // inherits from above
case ClientVersionBuild.V1_15_3_55515: // inherits from above
case ClientVersionBuild.V1_15_3_55563:
case ClientVersionBuild.V1_15_3_55646:
case ClientVersionBuild.V1_15_3_55917:
case ClientVersionBuild.V1_15_3_55488:
case ClientVersionBuild.V1_15_3_55626:
return ClientVersionBuild.V1_15_3_55515;
case ClientVersionBuild.V1_15_4_56738: // inherits from above and below
case ClientVersionBuild.V1_15_4_56760:
case ClientVersionBuild.V1_15_4_56817:
case ClientVersionBuild.V1_15_4_56857:
Expand Down Expand Up @@ -1146,6 +1148,8 @@ public static BiDictionary<Opcode, int> GetOpcodeDictionary(ClientVersionBuild b
return Opcodes_1_14_4.Opcodes(direction);
case ClientVersionBuild.V1_15_0_52302:
return Opcodes_1_15_0.Opcodes(direction);
case ClientVersionBuild.V1_15_3_55515:
return Opcodes_1_15_3.Opcodes(direction);
case ClientVersionBuild.V1_15_4_56738:
return Opcodes_1_15_4.Opcodes(direction);
case ClientVersionBuild.V2_5_1_38835:
Expand Down
5 changes: 4 additions & 1 deletion WowPacketParser/Enums/Version/UpdateFields.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,14 +1043,17 @@ private static string GetUpdateFieldDictionaryBuildName(ClientVersionBuild build
case ClientVersionBuild.V1_15_2_54902:
case ClientVersionBuild.V1_15_2_55002:
case ClientVersionBuild.V1_15_2_55140:
{
return "V1_15_0_52302";
}
case ClientVersionBuild.V1_15_3_55515:
case ClientVersionBuild.V1_15_3_55563:
case ClientVersionBuild.V1_15_3_55646:
case ClientVersionBuild.V1_15_3_55917:
case ClientVersionBuild.V1_15_3_55488:
case ClientVersionBuild.V1_15_3_55626:
{
return "V1_15_0_52302";
return "V1_15_3_55515";
}
case ClientVersionBuild.V1_15_4_56738:
case ClientVersionBuild.V1_15_4_56760:
Expand Down
1,684 changes: 1,684 additions & 0 deletions WowPacketParser/Enums/Version/V1_15_3_55515/Opcodes.cs

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions WowPacketParser/Misc/ClientVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1356,12 +1356,6 @@ public static ClientVersionBuild GetVersionDefiningBuild(ClientVersionBuild buil
case ClientVersionBuild.V1_15_2_54902:
case ClientVersionBuild.V1_15_2_55002:
case ClientVersionBuild.V1_15_2_55140:
case ClientVersionBuild.V1_15_3_55515:
case ClientVersionBuild.V1_15_3_55563:
case ClientVersionBuild.V1_15_3_55646:
case ClientVersionBuild.V1_15_3_55917:
case ClientVersionBuild.V1_15_3_55488:
case ClientVersionBuild.V1_15_3_55626:
return ClientVersionBuild.V3_4_0_45166;
case ClientVersionBuild.V4_4_0_54481:
case ClientVersionBuild.V4_4_0_54500:
Expand All @@ -1384,6 +1378,12 @@ public static ClientVersionBuild GetVersionDefiningBuild(ClientVersionBuild buil
case ClientVersionBuild.V4_4_0_56489:
case ClientVersionBuild.V4_4_0_56713:
case ClientVersionBuild.V4_4_0_57244:
case ClientVersionBuild.V1_15_3_55515:
case ClientVersionBuild.V1_15_3_55563:
case ClientVersionBuild.V1_15_3_55646:
case ClientVersionBuild.V1_15_3_55917:
case ClientVersionBuild.V1_15_3_55488:
case ClientVersionBuild.V1_15_3_55626:
case ClientVersionBuild.V1_15_4_56738:
case ClientVersionBuild.V1_15_4_56760:
case ClientVersionBuild.V1_15_4_56817:
Expand Down
4 changes: 2 additions & 2 deletions WowPacketParserModule.V4_4_0_54481/Parsers/ChatHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void HandleServerChatMessage(Packet packet)
packet.ReadInt32("AchievementID");

uint chatFlags = 0;
if (ClientVersion.AddedInVersion(ClientBranch.Cata, ClientVersionBuild.V4_4_1_57294) || ClientVersion.AddedInVersion(ClientBranch.Classic, ClientVersionBuild.V1_15_4_56738))
if (ClientVersion.AddedInVersion(ClientBranch.Cata, ClientVersionBuild.V4_4_1_57294) || ClientVersion.AddedInVersion(ClientBranch.Classic, ClientVersionBuild.V1_15_3_55515))
chatFlags = packet.ReadUInt16("ChatFlags");

packet.ReadSingle("DisplayTime");
Expand All @@ -52,7 +52,7 @@ public static void HandleServerChatMessage(Packet packet)
var channelLen = packet.ReadBits(7);
var textLen = packet.ReadBits(12);

if (ClientVersion.RemovedInVersion(ClientBranch.Cata, ClientVersionBuild.V4_4_1_57294) || ClientVersion.RemovedInVersion(ClientBranch.Classic, ClientVersionBuild.V1_15_4_56738))
if (ClientVersion.RemovedInVersion(ClientBranch.Cata, ClientVersionBuild.V4_4_1_57294) || ClientVersion.RemovedInVersion(ClientBranch.Classic, ClientVersionBuild.V1_15_3_55515))
chatFlags = packet.ReadBits("ChatFlags", 15);

packet.ReadBit("HideChatLog");
Expand Down
Loading

0 comments on commit 5e63dfb

Please sign in to comment.