From ed9a85f13b0b1779701fc50c0fc01a56c423cedd Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sat, 12 Feb 2022 00:12:22 +0200 Subject: [PATCH] [General] Increase maxPlugins to 1000 This allows clients to have 1000 data files instead of 256 as before. Also increase maxHashes to 50 --- components/openmw-mp/Master/MasterData.hpp | 2 +- components/openmw-mp/Packets/PacketPreInit.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/openmw-mp/Master/MasterData.hpp b/components/openmw-mp/Master/MasterData.hpp index d55174f92..77a3cb10a 100644 --- a/components/openmw-mp/Master/MasterData.hpp +++ b/components/openmw-mp/Master/MasterData.hpp @@ -77,7 +77,7 @@ struct QueryData const static int maxRules = 128; const static int maxUserRules = maxRules - predefinedRules; const static int maxPlayers = 100; // will shown only maxPlayers players - const static int maxPlugins = 256; + const static int maxPlugins = 1000; const static int maxStringLength = 256; }; diff --git a/components/openmw-mp/Packets/PacketPreInit.hpp b/components/openmw-mp/Packets/PacketPreInit.hpp index 2f627b9cf..3af2182c7 100644 --- a/components/openmw-mp/Packets/PacketPreInit.hpp +++ b/components/openmw-mp/Packets/PacketPreInit.hpp @@ -20,9 +20,9 @@ namespace mwmp void setChecksums(PluginContainer *checksums); private: PluginContainer *checksums; - const static uint32_t maxPlugins = 256; + const static uint32_t maxPlugins = 1000; const static uint32_t pluginNameMaxLength = 256; - const static uint32_t maxHashes = 16; + const static uint32_t maxHashes = 50; }; }