From 46364a30f7746ff3964590e00fcafb406b75d0ba Mon Sep 17 00:00:00 2001 From: Mag-nus Date: Sun, 11 Feb 2024 21:55:34 -0600 Subject: [PATCH] few more --- .../Network/GameEvent/Events/GameEventAllegianceUpdate.cs | 2 +- .../Network/GameEvent/Events/GameEventApproachVendor.cs | 2 +- .../Network/GameEvent/Events/GameEventBookPageDataResponse.cs | 2 +- .../Network/GameEvent/Events/GameEventFellowshipFullUpdate.cs | 2 +- .../Network/GameEvent/Events/GameEventFriendsListUpdate.cs | 2 +- .../Network/GameEvent/Events/GameEventHouseUpdateHAR.cs | 2 +- .../Network/GameEvent/Events/GameEventHouseUpdateRentPayment.cs | 2 +- .../Network/GameEvent/Events/GameEventPlayerDescription.cs | 2 +- .../GameEvent/Events/GameEventSendClientContractTrackerTable.cs | 2 +- .../ACE.Server/Network/GameEvent/Events/GameEventStartGame.cs | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/ACE.Server/Network/GameEvent/Events/GameEventAllegianceUpdate.cs b/Source/ACE.Server/Network/GameEvent/Events/GameEventAllegianceUpdate.cs index 419317b253..0a6c564d0c 100644 --- a/Source/ACE.Server/Network/GameEvent/Events/GameEventAllegianceUpdate.cs +++ b/Source/ACE.Server/Network/GameEvent/Events/GameEventAllegianceUpdate.cs @@ -11,7 +11,7 @@ public class GameEventAllegianceUpdate : GameEventMessage /// Returns info related to a player's monarch, patron, and vassals. /// public GameEventAllegianceUpdate(Session session, Allegiance allegiance, AllegianceNode node) - : base(GameEventType.AllegianceUpdate, GameMessageGroup.UIQueue, session) + : base(GameEventType.AllegianceUpdate, GameMessageGroup.UIQueue, session, 512) // 398 is the average seen in retail pcaps, 1,040 is the max seen in retail pcaps { var startPos = Writer.BaseStream.Position; diff --git a/Source/ACE.Server/Network/GameEvent/Events/GameEventApproachVendor.cs b/Source/ACE.Server/Network/GameEvent/Events/GameEventApproachVendor.cs index 997b706148..a6b8603256 100644 --- a/Source/ACE.Server/Network/GameEvent/Events/GameEventApproachVendor.cs +++ b/Source/ACE.Server/Network/GameEvent/Events/GameEventApproachVendor.cs @@ -9,7 +9,7 @@ namespace ACE.Server.Network.GameEvent.Events public class GameEventApproachVendor : GameEventMessage { public GameEventApproachVendor(Session session, Vendor vendor, uint altCurrencySpent) - : base(GameEventType.ApproachVendor, GameMessageGroup.UIQueue, session) + : base(GameEventType.ApproachVendor, GameMessageGroup.UIQueue, session, 8192) // 5,376 is the average seen in retail pcaps, 15,272 is the max seen in retail pcaps { Writer.Write(vendor.Guid.Full); diff --git a/Source/ACE.Server/Network/GameEvent/Events/GameEventBookPageDataResponse.cs b/Source/ACE.Server/Network/GameEvent/Events/GameEventBookPageDataResponse.cs index 6f12bbc175..380c34c8b3 100644 --- a/Source/ACE.Server/Network/GameEvent/Events/GameEventBookPageDataResponse.cs +++ b/Source/ACE.Server/Network/GameEvent/Events/GameEventBookPageDataResponse.cs @@ -6,7 +6,7 @@ namespace ACE.Server.Network.GameEvent.Events public class GameEventBookPageDataResponse : GameEventMessage { public GameEventBookPageDataResponse(Session session, uint bookID, int pageIndex, PropertiesBookPageData pageData) - : base(GameEventType.BookPageDataResponse, GameMessageGroup.UIQueue, session) + : base(GameEventType.BookPageDataResponse, GameMessageGroup.UIQueue, session, 512) // 465 is the average seen in retail pcaps, 1,084 is the max seen in retail pcaps { // unused? diff --git a/Source/ACE.Server/Network/GameEvent/Events/GameEventFellowshipFullUpdate.cs b/Source/ACE.Server/Network/GameEvent/Events/GameEventFellowshipFullUpdate.cs index d1fe9f58b0..166a115061 100644 --- a/Source/ACE.Server/Network/GameEvent/Events/GameEventFellowshipFullUpdate.cs +++ b/Source/ACE.Server/Network/GameEvent/Events/GameEventFellowshipFullUpdate.cs @@ -11,7 +11,7 @@ public class GameEventFellowshipFullUpdate : GameEventMessage private static readonly HashComparer FellowComparer = new HashComparer(16); public GameEventFellowshipFullUpdate(Session session) - : base(GameEventType.FellowshipFullUpdate, GameMessageGroup.UIQueue, session) + : base(GameEventType.FellowshipFullUpdate, GameMessageGroup.UIQueue, session, 512) // 338 is the average seen in retail pcaps, 1,264 is the max seen in retail pcaps { var fellowship = session.Player.Fellowship; diff --git a/Source/ACE.Server/Network/GameEvent/Events/GameEventFriendsListUpdate.cs b/Source/ACE.Server/Network/GameEvent/Events/GameEventFriendsListUpdate.cs index 823b620eca..c92f9399d2 100644 --- a/Source/ACE.Server/Network/GameEvent/Events/GameEventFriendsListUpdate.cs +++ b/Source/ACE.Server/Network/GameEvent/Events/GameEventFriendsListUpdate.cs @@ -28,7 +28,7 @@ public enum FriendsUpdateTypeFlag /// /// public GameEventFriendsListUpdate(Session session) - : base(GameEventType.FriendsListUpdate, GameMessageGroup.UIQueue, session) + : base(GameEventType.FriendsListUpdate, GameMessageGroup.UIQueue, session, 4096) // 2,062 is the average seen in retail pcaps, 36,916 is the max seen in retail pcaps { updateType = FriendsUpdateTypeFlag.FullList; WriteEventBody(); diff --git a/Source/ACE.Server/Network/GameEvent/Events/GameEventHouseUpdateHAR.cs b/Source/ACE.Server/Network/GameEvent/Events/GameEventHouseUpdateHAR.cs index 8e944b5704..b4ee5109ab 100644 --- a/Source/ACE.Server/Network/GameEvent/Events/GameEventHouseUpdateHAR.cs +++ b/Source/ACE.Server/Network/GameEvent/Events/GameEventHouseUpdateHAR.cs @@ -10,7 +10,7 @@ namespace ACE.Server.Network.GameEvent.Events public class GameEventUpdateHAR : GameEventMessage { public GameEventUpdateHAR(Session session, House house) - : base(GameEventType.UpdateHAR, GameMessageGroup.UIQueue, session) + : base(GameEventType.UpdateHAR, GameMessageGroup.UIQueue, session, 56) // Only 40 and 56 seen in retail pcaps { //Console.WriteLine("Sending 0x257 - Update House Access Records (HAR)"); diff --git a/Source/ACE.Server/Network/GameEvent/Events/GameEventHouseUpdateRentPayment.cs b/Source/ACE.Server/Network/GameEvent/Events/GameEventHouseUpdateRentPayment.cs index 4d4a70a147..0fd80e7249 100644 --- a/Source/ACE.Server/Network/GameEvent/Events/GameEventHouseUpdateRentPayment.cs +++ b/Source/ACE.Server/Network/GameEvent/Events/GameEventHouseUpdateRentPayment.cs @@ -7,7 +7,7 @@ namespace ACE.Server.Network.GameEvent.Events public class GameEventHouseUpdateRentPayment : GameEventMessage { public GameEventHouseUpdateRentPayment(Session session) - : base(GameEventType.UpdateRentPayment, GameMessageGroup.UIQueue, session) + : base(GameEventType.UpdateRentPayment, GameMessageGroup.UIQueue, session, 80) // Only 32 and 80 seen in retail pcaps { //Console.WriteLine("Sending 0x228 - House - UpdateRentPayment"); diff --git a/Source/ACE.Server/Network/GameEvent/Events/GameEventPlayerDescription.cs b/Source/ACE.Server/Network/GameEvent/Events/GameEventPlayerDescription.cs index 1225337ec7..12b04f2931 100644 --- a/Source/ACE.Server/Network/GameEvent/Events/GameEventPlayerDescription.cs +++ b/Source/ACE.Server/Network/GameEvent/Events/GameEventPlayerDescription.cs @@ -38,7 +38,7 @@ private enum DescriptionVectorFlag } public GameEventPlayerDescription(Session session) - : base(GameEventType.PlayerDescription, GameMessageGroup.UIQueue, session) + : base(GameEventType.PlayerDescription, GameMessageGroup.UIQueue, session, 16384) // 10,333 is the average seen in retail pcaps, 28,828 is the max seen in retail pcaps { WriteEventBody(); } diff --git a/Source/ACE.Server/Network/GameEvent/Events/GameEventSendClientContractTrackerTable.cs b/Source/ACE.Server/Network/GameEvent/Events/GameEventSendClientContractTrackerTable.cs index 14de763b49..7a9cd41c32 100644 --- a/Source/ACE.Server/Network/GameEvent/Events/GameEventSendClientContractTrackerTable.cs +++ b/Source/ACE.Server/Network/GameEvent/Events/GameEventSendClientContractTrackerTable.cs @@ -5,7 +5,7 @@ namespace ACE.Server.Network.GameEvent.Events { public class GameEventSendClientContractTrackerTable : GameEventMessage { - public GameEventSendClientContractTrackerTable(Session session) : base(GameEventType.SendClientContractTrackerTable, GameMessageGroup.UIQueue, session) + public GameEventSendClientContractTrackerTable(Session session) : base(GameEventType.SendClientContractTrackerTable, GameMessageGroup.UIQueue, session, 512) // 436 is the average seen in retail pcaps, 3208 is the max seen in retail pcaps { Writer.Write(session.Player.ContractManager); } diff --git a/Source/ACE.Server/Network/GameEvent/Events/GameEventStartGame.cs b/Source/ACE.Server/Network/GameEvent/Events/GameEventStartGame.cs index 4bacc9a80a..95a032912f 100644 --- a/Source/ACE.Server/Network/GameEvent/Events/GameEventStartGame.cs +++ b/Source/ACE.Server/Network/GameEvent/Events/GameEventStartGame.cs @@ -9,7 +9,7 @@ namespace ACE.Server.Network.GameEvent.Events public class GameEventStartGame: GameEventMessage { public GameEventStartGame(Session session, ObjectGuid boardGuid, ChessColor color) - : base(GameEventType.StartGame, GameMessageGroup.UIQueue, session) + : base(GameEventType.StartGame, GameMessageGroup.UIQueue, session, 12) { Writer.Write(boardGuid.Full); Writer.Write((int)color); // which team that should go first