Thread: Update 5.3
View Single Post
01/29/20, 10:28 PM   #5
Shadowfen
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 83
Chat related: LibChatMessage FYI

There does seem to be a new problem that trips up LibChatMessage in that it attempts to register an eventFormatter with the eventId "LibChatMessage". This causes an error because the eventId field is now required to be a number.

Was testing code re-initializing the registered events from the ChatEventFormatters table.

LibDebugLogger outputs:
Code:
Checking type on argument event failed in ScriptEventManagerRegisterForEventLua
|rstack traceback:
[C]: in function 'RegisterForEvent'
user:/AddOns/rChat/ZOS_Rewrite-5.3.lua:517: in function 'CHAT_ROUTER:AddEventFormatter'
     (This is simply a copy of ZO_ChatRouter:AddEventFormatter() with debug added so I can watch what is going on.)
EsoUI/Ingame/ChatSystem/ChatHandlers.lua:268: in function 'ZO_ChatSystem_AddEventHandler'
Debug outputs:
Code:
        [106] = "Bad eventId type: LibChatMessage",
        [107] = "ZO_ChatRouter:AddEventFormatter: eventCode=LibChatMessage",
        [108] = "ZO_ChatRouter:AddEventFormatter: registering OnChatEvent",
However, ensuring that this error does not occur does not help our inability to get event handlers executed.
  Reply With Quote