Thread Tools Display Modes
01/20/20, 12:00 PM   #1
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
Update 5.3

The next update "Harrowstorm" is now available on the PTS.

New API Version: 100030

PTS Dev Guild
We have created guilds on the EU and NA server for all addon developers, which get copied over during the PTS cycle for a new update, so we can test guild related things, ask for help with testing or just chat. If you need an invite, ask here or over on our Gitter channel. You are also free to join them on the live servers so you don't always have to be reinvited when the PTS is wiped.

Links
I'll edit the OP with more useful information as you post it and add the links as they become available.
Attached Files
File Type: txt ESOUIDocumentationP25.txt (724.3 KB, 1305 views)

Last edited by sirinsidiator : 02/24/20 at 08:59 AM.
  Reply With Quote
01/20/20, 07:20 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Chat related

Removed function in patch 5.3.:
CHAT_SYSTEM:CreateChannelData()

New function to use: There seems to be no explizit function for this anymore.
The old function was building the self.switchLookup = {} table of the chat system which now can be done by:
self.channelData = ZO_ChatSystem_GetChannelInfo()
self.switchLookup = ZO_ChatSystem_GetChannelSwitchLookupTable()

-> File: https://github.com/esoui/esoui/blob/...m/chatdata.lua

Changed control names:
Chat tab - Old name:
ZO_ChatWindowTabTemplate1

Chat tab - New name:
GuiRootKeyboard1 ... n
Probably GuiRootGamepad1 ... n in Gamepad mode

Not sure if this was an intended change by ZOs though. Reported it to Chip.
Update: Communicated the wrong control names to ZOs and ZOs will fix this.


Context menu related
Function IsMenuVisisble (including typo) was renamed to IsMenuVisible() correctly now!

Last edited by Baertram : 01/27/20 at 04:51 AM.
  Reply With Quote
01/22/20, 06:51 AM   #3
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
The following entry has been added to the addon compatibility alias and may explain what's going on with the chat system:
Lua Code:
  1. -- CHAT_SYSTEM refactor
  2. -- Many of the internals/method calls have changed in chat system to support multiple chat systems at once.
  3. -- This will preserve compatibility with addons that add messages to chat using CHAT_SYSTEM:AddMessage(), but more complex chat addons may need rewrites.
  4. CHAT_SYSTEM = KEYBOARD_CHAT_SYSTEM
  5. function CHAT_SYSTEM:AddMessage(messageText)
  6.     return CHAT_ROUTER:AddSystemMessage(messageText)
  7. end
  Reply With Quote
01/29/20, 04:22 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Chat related, formatting of messages
The ZO_ChatSystem_AddEventHandler function will still register functions for the Formatters but these functions are currently not run at all.
So messages which are sent or are incoming will currently not be formatted by addons, if they are using this function.
And if you try to achieve it by other means you definately will get in trouble because you need to override stuff and other addons will fail to work properly together, so pleae do NOT do so!

There seems to be some bug in ZOs code (or this is on purpose? I don't hope so).
  Reply With Quote
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
02/24/20, 09:03 AM   #6
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
Regarding the addon chat formatters no longer working, I have added a workaround in LibChatMessage.
Instead of using ZO_ChatSystem_AddEventHandler you will have to add your formatter to the table returned by ZO_ChatSystem_GetEventHandlers. Then you can simply set LibChatMessage.formatRegularChat to true anywhere before EVENT_PLAYER_ACTIVATED (or inside the event handler for it) and the library will take care of the rest.
Just be aware that this will disable the new taskbar flash feature for incoming whispers while the game is not focused.
  Reply With Quote
02/24/20, 05:23 PM   #7
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
And beware that this will overwrite the given chosen chat handler so it will skip the other addon's handlers.
  Reply With Quote
02/26/20, 04:15 PM   #8
Sordrak
 
Sordrak's Avatar
AddOn Author - Click to view addons
Join Date: May 2017
Posts: 52
Originally Posted by Baertram View Post
Chat related, formatting of messages
The ZO_ChatSystem_AddEventHandler function will still register functions for the Formatters but these functions are currently not run at all.
So messages which are sent or are incoming will currently not be formatted by addons, if they are using this function.
And if you try to achieve it by other means you definately will get in trouble because you need to override stuff and other addons will fail to work properly together, so pleae do NOT do so!

There seems to be some bug in ZOs code (or this is on purpose? I don't hope so).
I can't find anything in the API patch notes about these changes. Did you get any additional information about this anywhere (is it a bug?)?
  Reply With Quote
02/27/20, 03:40 AM   #9
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
No, no natch potes, just findings during tests on PTS... Seems to be a bug then.
Afaik it's not intended and ZOs was informed and is working on something.

Last edited by Baertram : 02/27/20 at 03:43 AM.
  Reply With Quote

ESOUI » Developer Discussions » Tutorials & Other Helpful Info » Update 5.3

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off