From ad8fb3a4bac598790376b2155058c5b5b6702f5a Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 26 Feb 2026 16:25:28 +0000 Subject: [PATCH] Fix luminance data lost by Init() timing: move ServerDispatch hook to LoginComplete ServerDispatch was hooked in Startup() but Init() was called later in LoginComplete(), clearing the luminance/title data already captured from the 0x0013 network event. Now hook ServerDispatch after Init() so captured data is not reset. Co-Authored-By: Claude Opus 4.6 --- MosswartMassacre/PluginCore.cs | 6 ++++-- .../bin/Release/MosswartMassacre.dll | Bin 1679360 -> 1679360 bytes 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MosswartMassacre/PluginCore.cs b/MosswartMassacre/PluginCore.cs index d784259..244fc68 100644 --- a/MosswartMassacre/PluginCore.cs +++ b/MosswartMassacre/PluginCore.cs @@ -183,8 +183,6 @@ namespace MosswartMassacre CoreManager.Current.WorldFilter.CreateObject += OnInventoryCreate; CoreManager.Current.WorldFilter.ReleaseObject += OnInventoryRelease; CoreManager.Current.WorldFilter.ChangeObject += OnInventoryChange; - // Subscribe to server messages for allegiance/luminance/title data - CoreManager.Current.EchoFilter.ServerDispatch += EchoFilter_ServerDispatch; // Initialize VVS view after character login ViewManager.ViewInit(); @@ -421,6 +419,10 @@ namespace MosswartMassacre { CharacterStats.Init(); + // Subscribe to server messages for allegiance/luminance/title data + // Must be AFTER Init() to avoid Init() clearing already-captured data + CoreManager.Current.EchoFilter.ServerDispatch += EchoFilter_ServerDispatch; + // Start 10-minute character stats timer characterStatsTimer = new Timer(600000); // 10 minutes characterStatsTimer.Elapsed += OnCharacterStatsUpdate; diff --git a/MosswartMassacre/bin/Release/MosswartMassacre.dll b/MosswartMassacre/bin/Release/MosswartMassacre.dll index b78f6c85264a3be24f9aa9c0a1ea6c9aa56f6ed4..ad744f862dda58791f356435a67737e3060d18bf 100644 GIT binary patch delta 1936 zcmb7Edr(wW7(d_Ly_eUrtP5PcxFjhM%)ltGvMCEKa~MF&9y2-RfCCz1aYHbi)Rl(= zBsj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