Go to Page... |
## DependsOn: LibChatMessage
local chat = LibChatMessage("MyAddon", "MA") -- long and short tag to identify who is printing the message chat:Print("Simple message") -- instead of d() chat:Printf("Formatted %s", "message") -- instead of df() chat:SetTagColor("ff0000"):Print("Message with a different tag color") -- To change the tag color for e.g. warnings. The message itself can be colored with a color tag, although I can't really recommend doing that chat:SetEnabled(false) -- in case the output of this ChatProxy should be enabled. Could be used when a settings is supposed to disable chat messages for an addon chat:Print("Ignored message") -- won't show up
/chatmessage <command> [argument] <time> [on/off] Enables or disables the time prefix <chat> [on/off] Controls the time prefix on regular chat <format> [auto/12h/24h] Changes the used time format <tag> [off/short/long] Changes the length of the used tag <history> [on/off] Restore old chat after login <age> [seconds] The maximum age of restored chat Example: /chatmessage tag short
local chat = LibChatMessage.Create(longTag, shortTag)
local chat = LibChatMessage(longTag, shortTag)
local chat = chat:SetTagColor(color)
chat:Print(message)
chat:Printf(formatString, ...)
chat:SetEnabled(enabled)
LibChatMessage:ClearChat()
LibChatMessage:ClearHistory()
LibChatMessage:GetHistory()
LibChatMessage:SetTimePrefixEnabled(enabled)
local enabled = LibChatMessage:IsTimePrefixEnabled()
LibChatMessage:SetTimePrefixEnabled(enabled)
local enabled = LibChatMessage:IsTimePrefixEnabled()
LibChatMessage:SetTimePrefixFormat(format)
local format = LibChatMessage:GetTimePrefixFormat()
LibChatMessage:SetTagPrefixMode(mode)
local mode = LibChatMessage:GetTagPrefixMode()
LibChatMessage:SetChatHistoryEnabled(enabled)
local enabled = LibChatMessage:IsChatHistoryEnabled()
local enabled = LibChatMessage:IsChatHistoryActive()
LibChatMessage:SetChatHistoryMaxAge(maxAge)
local maxAge = LibChatMessage:GetChatHistoryMaxAge()
LibChatMessage:RegisterCustomChatLink(YOUR_LINK_TYPE) LibChatMessage:RegisterCustomChatLink(YOUR_LINK_TYPE, reformatLinkFunc)
local function reformatLink(linkStyle, linkType, data, displayText) return ZO_LinkHandler_CreateLinkWithFormat(displayText, nil, linkType, linkStyle, data) end LibChatMessage:RegisterCustomChatLink(YOUR_LINK_TYPE, reformatLink)
function addon:OnLinkClicked(link, button, text, color, linkType, ...) if linkType ~= YOUR_LINK_TYPE then return end if button == MOUSE_BUTTON_INDEX_LEFT then -- Do your stuff elseif button == MOUSE_BUTTON_INDEX_MIDDLE then -- Do your stuff end return true -- link has been handled end function addon:InitLinkHandler() LINK_HANDLER:RegisterCallback(LINK_HANDLER.LINK_CLICKED_EVENT, self.OnLinkClicked, self) LINK_HANDLER:RegisterCallback(LINK_HANDLER.LINK_MOUSE_UP_EVENT, self.OnLinkClicked, self) end
File Name |
Version |
Size |
Uploader |
Date |
1.2.0 |
10kB |
sirinsidiator |
04/22/21 01:33 PM |
|
1.1.3 |
5kB |
sirinsidiator |
03/02/20 01:26 PM |
|
1.1.2 |
5kB |
sirinsidiator |
03/02/20 12:10 PM |
|
1.1.1 |
6kB |
sirinsidiator |
02/25/20 01:55 PM |
|
1.1.0 |
6kB |
sirinsidiator |
02/24/20 02:43 AM |
|
1.0.1 |
5kB |
sirinsidiator |
06/01/19 05:15 AM |
|
1.0.0 |
5kB |
sirinsidiator |
05/28/19 09:18 AM |
Comment Options |
03/02/20, 11:58 AM | ||
Forum posts: 11
File comments: 90
Uploads: 0
|
Known Issue
|
|
|
Marcus |
View Public Profile |
Send a private message to Marcus |
Send email to Marcus |
Find More Posts by Marcus |
Add Marcus to Your Buddy List |
03/02/20, 11:28 AM | |
Forum posts: 8
File comments: 46
Uploads: 0
|
Fix pls
user:/AddOns/LibChatMessage/LibChatMessage.lua:159: function expected instead of nil stack traceback: user:/AddOns/LibChatMessage/LibChatMessage.lua:159: in function '(anonymous)' [C]: in function 'pcall' user:/AddOns/LibChatMessage/LibChatMessage.lua:158: in function 'SafeAddEventFormatter' <Locals> eventId = "LibChatMessage", eventFormatter = user:/AddOns/LibChatMessage/LibChatMessage.lua:165 </Locals> user:/AddOns/LibChatMessage/LibChatMessage.lua:181: in function '(main chunk)' <Locals> LIB_IDENTIFIER stack traceback: [C]: in function 'assert' user:/AddOns/LibChatMessage/LibChatMessage.lua:162: in function 'SafeAddEventFormatter' <Locals> eventId = "LibChatMessage", eventFormatter = user:/AddOns/LibChatMessage/LibChatMessage.lua:165, success = F, err = "user:/AddOns/LibChatMessage/Li..." </Locals> user:/AddOns/LibChatMessage/LibChatMessage.lua:181: in function '(main chunk)' <Locals> LIB_IDENTIFIER = "LibChatMessage", lib = [table:1]{chatHistoryActive = T}, TAG_FORMAT = "[%s]", COLOR_FORMAT = "|c%s%s|r", MESSAGE_TEMPLATE = "%s %s", SYSTEM_TAG = "[System]", TIME_FORMAT_AUTO = "[%X]", TIME_FORMAT_12 = "[%I:%M:%S %p]", TIME_FORMAT_24 = "[%T]", TIME_FORMATS = [table:2]{1 = "[%X]"}, TIME_FORMAT_MAPPING = [table:3]{auto = "[%X]", 24h = "[%T]", 12h = "[%I:%M:%S %p]"}, REVERSE_TIME_FORMAT_MAPPING = [table:4]{[%X] = "auto", [%I:%M:%S %p] = "12h", [%T] = "24h"}, TAG_PREFIX_OFF = 1, TAG_PREFIX_LONG = 2, TAG_PREFIX_SHORT = 3, TIMESTAMP_INDEX = 1, MAX_HISTORY_LENGTH = 10000, TRIMMED_HISTORY_LENGTH = 9000, strlower = [C]:-1, tconcat = [C]:-1 </Locals> user:/AddOns/LibChatMessage/LibChatMessage.lua:108: attempt to index a nil value stack traceback: user:/AddOns/LibChatMessage/LibChatMessage.lua:108: in function '(anonymous)' <Locals> formattedEventText = "|H1:channel:Late Night Dungeon...", fromDisplayName = "@Skysenzz", rawMessageText = "no", timeStamp = 1583169947 </Locals> (tail call): ? EsoUI/Ingame/ChatSystem/ChatHandlers.lua:247: in function 'ZO_ChatRouter:FormatAndAddChatMessage' <Locals> self = [table:1]{fireCallbackDepth = 0}, eventKey = 131103, eventCategory = 10, messageFormatter = user:/AddOns/LibChatMessage/LibChatMessage.lua:96 </Locals> EsoUI/Ingame/ChatSystem/ChatHandlers.lua:212: in function 'OnChatEvent' <Locals> eventCode = 131103 </Locals> user:/AddOns/LibChatMessage/LibChatMessage.lua:81: attempt to index a nil value stack traceback: user:/AddOns/LibChatMessage/LibChatMessage.lua:81: in function 'ApplyTimeAndTagPrefix' <Locals> formattedEventText = "|H1:display:ToxicHannerup|h[@T...", fromDisplayName = "@ToxicHannerup", timeStamp = 1583169947 </Locals> (tail call): ? EsoUI/Ingame/ChatSystem/ChatHandlers.lua:247: in function 'ZO_ChatRouter:FormatAndAddChatMessage' <Locals> self = [table:1]{fireCallbackDepth = 0}, eventKey = 327683, eventCategory = 9, messageFormatter = user:/AddOns/LibChatMessage/LibChatMessage.lua:96 </Locals> EsoUI/Ingame/ChatSystem/ChatHandlers.lua:212: in function 'OnChatEvent' <Locals> eventCode = 327683 </Locals> |
|
Targets |
View Public Profile |
Send a private message to Targets |
Send email to Targets |
Find More Posts by Targets |
Add Targets to Your Buddy List |
03/02/20, 11:27 AM | |
Forum posts: 1
File comments: 10
Uploads: 0
|
I get this error since today.
user:/AddOns/LibChatMessage/LibChatMessage.lua:108: attempt to index a nil value stack traceback: user:/AddOns/LibChatMessage/LibChatMessage.lua:108: in function '(anonymous)' (tail call): ? EsoUI/Ingame/ChatSystem/ChatHandlers.lua:247: in function 'ZO_ChatRouter:FormatAndAddChatMessage' EsoUI/Ingame/ChatSystem/ChatHandlers.lua:212: in function 'OnChatEvent' |
|
NachtkindFX |
View Public Profile |
Send a private message to NachtkindFX |
Send email to NachtkindFX |
Find More Posts by NachtkindFX |
Add NachtkindFX to Your Buddy List |
03/02/20, 10:43 AM | |
Forum posts: 2
File comments: 3
Uploads: 0
|
Hi i came to say first thank you for you work. ESO without AGSm and AGS without this lib
is unplayable. Since the update from today im getting an error and AGS is not loading at all. Probable most addons are not working to 100%. Code:
user:/AddOns/LibChatMessage/LibChatMessage.lua:108: attempt to index a nil value stack traceback: user:/AddOns/LibChatMessage/LibChatMessage.lua:108: in function '(anonymous)' <Locals> formattedEventText = "|H1:character:Oldduck|h[Oldduc...", fromDisplayName = "@HOTfight", rawMessageText = "LFM vBRP 1 heal exp ", timeStamp = 1583167034 </Locals> (tail call): ? EsoUI/Ingame/ChatSystem/ChatHandlers.lua:247: in function 'ZO_ChatRouter:FormatAndAddChatMessage' <Locals> self = [table:1]{fireCallbackDepth = 0}, eventKey = 131103, eventCategory = 6, messageFormatter = user:/AddOns/LibChatMessage/LibChatMessage.lua:96 </Locals> EsoUI/Ingame/ChatSystem/ChatHandlers.lua:212: in function 'OnChatEvent' <Locals> eventCode = 131103 </Locals> |
|
bazanar |
View Public Profile |
Send a private message to bazanar |
Send email to bazanar |
Find More Posts by bazanar |
Add bazanar to Your Buddy List |
03/02/20, 10:19 AM | ||
Forum posts: 0
File comments: 17
Uploads: 0
|
|
|
|
Lycanthro |
View Public Profile |
Send a private message to Lycanthro |
Send email to Lycanthro |
Find More Posts by Lycanthro |
Add Lycanthro to Your Buddy List |
03/02/20, 10:14 AM | |
Forum posts: 0
File comments: 17
Uploads: 0
|
On Log-In:
Code:
user:/AddOns/LibChatMessage/LibChatMessage.lua:159: function expected instead of nil stack traceback: user:/AddOns/LibChatMessage/LibChatMessage.lua:159: in function '(anonymous)' [C]: in function 'pcall' user:/AddOns/LibChatMessage/LibChatMessage.lua:158: in function 'SafeAddEventFormatter' user:/AddOns/LibChatMessage/LibChatMessage.lua:181: in function '(main chunk)' user:/AddOns/LibChatMessage/LibChatMessage.lua:181: in function '(main chunk)'
Last edited by Aliisa : 03/02/20 at 10:16 AM.
|
|
Aliisa |
View Public Profile |
Send a private message to Aliisa |
Send email to Aliisa |
Find More Posts by Aliisa |
Add Aliisa to Your Buddy List |
03/02/20, 09:57 AM | |
Forum posts: 0
File comments: 12
Uploads: 0
|
Just today, cannot do anything without getting error messages. Even when not doing anything, it shows up and won't stay "dismissed". I love the addons, help please.
user:/AddOns/LibChatMessage/LibChatMessage.lua:108: attempt to index a nil value stack traceback: user:/AddOns/LibChatMessage/LibChatMessage.lua:108: in function '(anonymous)' |caaaaaa<Locals> formattedEventText = "|H1:character:Myraian|h[Myraia...", fromDisplayName = "@Kiyakotari", rawMessageText = "The same way you locate most l...", timeStamp = 1583164537 </Locals>|r (tail call): ? EsoUI/Ingame/ChatSystem/ChatHandlers.lua:247: in function 'ZO_ChatRouter:FormatAndAddChatMessage' |caaaaaa<Locals> self = [table:1]{fireCallbackDepth = 0}, eventKey = 131103, eventCategory = 6, messageFormatter = user:/AddOns/LibChatMessage/LibChatMessage.lua:96 </Locals>|r EsoUI/Ingame/ChatSystem/ChatHandlers.lua:212: in function 'OnChatEvent' |caaaaaa<Locals> eventCode = 131103 </Locals>|r I finally quit. Game isn't playable with addons allowed now.
Last edited by linda535 : 03/02/20 at 10:07 AM.
|
|
linda535 |
View Public Profile |
Send a private message to linda535 |
Send email to linda535 |
Find More Posts by linda535 |
Add linda535 to Your Buddy List |
03/02/20, 09:17 AM | |
Forum posts: 0
File comments: 31
Uploads: 0
|
user:/AddOns/LibChatMessage/LibChatMessage.lua:159: function expected instead of nil
stack traceback: user:/AddOns/LibChatMessage/LibChatMessage.lua:159: in function '(anonymous)' [C]: in function 'pcall' user:/AddOns/LibChatMessage/LibChatMessage.lua:158: in function 'SafeAddEventFormatter' user:/AddOns/LibChatMessage/LibChatMessage.lua:181: in function '(main chunk)' user:/AddOns/LibChatMessage/LibChatMessage.lua:181: in function '(main chunk)' help me plz |
|
Muchtie |
View Public Profile |
Send a private message to Muchtie |
Send email to Muchtie |
Find More Posts by Muchtie |
Add Muchtie to Your Buddy List |
03/02/20, 08:34 AM | |
Forum posts: 0
File comments: 21
Uploads: 0
|
Today's ESO Update Broke LibChatMessage
Today's, March 2, 2020, ESO update broke LibChatMessage and AwesomeGuildStore.
Here's the error from LibChatMessage... UI Error Code:
<Locals> LIB_IDENTIFIER stack traceback: [C]: in function 'assert' user:/AddOns/LibChatMessage/LibChatMessage.lua:162: in function 'SafeAddEventFormatter' <Locals> eventId = "LibChatMessage", eventFormatter = user:/AddOns/LibChatMessage/LibChatMessage.lua:165, success = F, err = "user:/AddOns/LibChatMessage/Li..." </Locals>|r user:/AddOns/LibChatMessage/LibChatMessage.lua:181: in function '(main chunk)' |caaaaaa<Locals> LIB_IDENTIFIER = "LibChatMessage", lib = [table:1]{chatHistoryActive = T}, TAG_FORMAT = "[%s]", COLOR_FORMAT = "|c%s%s|r", MESSAGE_TEMPLATE = "%s %s", SYSTEM_TAG = "[System]", TIME_FORMAT_AUTO = "[%X]", TIME_FORMAT_12 = "[%I:%M:%S %p]", TIME_FORMAT_24 = "[%T]", TIME_FORMATS = [table:2]{1 = "[%X]"}, TIME_FORMAT_MAPPING = [table:3]{24h = "[%T]", 12h = "[%I:%M:%S %p]", auto = "[%X]"}, REVERSE_TIME_FORMAT_MAPPING = [table:4]{[%X] = "auto", [%I:%M:%S %p] = "12h", [%T] = "24h"}, TAG_PREFIX_OFF = 1, TAG_PREFIX_LONG = 2, TAG_PREFIX_SHORT = 3, TIMESTAMP_INDEX = 1, MAX_HISTORY_LENGTH = 10000, TRIMMED_HISTORY_LENGTH = 9000, strlower = [C]:-1, tconcat = [C]:-1 </Locals>|r |
|
BlazeOfGlory |
View Public Profile |
Send a private message to BlazeOfGlory |
Send email to BlazeOfGlory |
Find More Posts by BlazeOfGlory |
Add BlazeOfGlory to Your Buddy List |
03/02/20, 08:22 AM | |
Is there a quick fix patch just to get AGS and others working at least?
Update:Nevermind, the most usefull stuff is still present. Just the nice search functions are gone. TTC and MM still works in the default ZOS guild store window. Now I just wait for the update today. :-D
Last edited by Techwolf : 03/02/20 at 08:48 AM.
|
|
|
Techwolf |
View Public Profile |
Send a private message to Techwolf |
Send email to Techwolf |
Visit Techwolf's homepage! |
Find More Posts by Techwolf |
Add Techwolf to Your Buddy List |
03/02/20, 08:18 AM | ||
Forum posts: 0
File comments: 1
Uploads: 0
|
UI-Fehler user:/AddOns/LibChatMessage/LibChatMessage.lua:159: function expected instead of nil stack traceback: user:/AddOns/LibChatMessage/LibChatMessage.lua:159: in function '(anonymous)' [C]: in function 'pcall' user:/AddOns/LibChatMessage/LibChatMessage.lua:158: in function 'SafeAddEventFormatter' |caaaaaa<Locals> eventId = "LibChatMessage", eventFormatter = user:/AddOns/LibChatMessage/LibChatMessage.lua:165 </Locals>|r user:/AddOns/LibChatMessage/LibChatMessage.lua:181: in function '(main chunk)' |caaaaaa<Locals> LIB_IDENTIFIER stack traceback: [C]: in function 'assert' user:/AddOns/LibChatMessage/LibChatMessage.lua:162: in function 'SafeAddEventFormatter' <Locals> eventId = "LibChatMessage", eventFormatter = user:/AddOns/LibChatMessage/LibChatMessage.lua:165, success = F, err = "user:/AddOns/LibChatMessage/Li..." </Locals>|r user:/AddOns/LibChatMessage/LibChatMessage.lua:181: in function '(main chunk)' |caaaaaa<Locals> LIB_IDENTIFIER = "LibChatMessage", lib = [table:1]{chatHistoryActive = T}, TAG_FORMAT = "[%s]", COLOR_FORMAT = "|c%s%s|r", MESSAGE_TEMPLATE = "%s %s", SYSTEM_TAG = "[System]", TIME_FORMAT_AUTO = "[%X]", TIME_FORMAT_12 = "[%I:%M:%S %p]", TIME_FORMAT_24 = "[%T]", TIME_FORMATS = [table:2]{1 = "[%X]"}, TIME_FORMAT_MAPPING = [table:3]{auto = "[%X]", 24h = "[%T]", 12h = "[%I:%M:%S %p]"}, REVERSE_TIME_FORMAT_MAPPING = [table:4]{[%X] = "auto", [%I:%M:%S %p] = "12h", [%T] = "24h"}, TAG_PREFIX_OFF = 1, TAG_PREFIX_LONG = 2, TAG_PREFIX_SHORT = 3, TIMESTAMP_INDEX = 1, MAX_HISTORY_LENGTH = 10000, TRIMMED_HISTORY_LENGTH = 9000, strlower = [C]:-1, tconcat = [C]:-1 </Locals>|r |
|
|
Dukeland |
View Public Profile |
Send a private message to Dukeland |
Send email to Dukeland |
Visit Dukeland's homepage! |
Find More Posts by Dukeland |
Add Dukeland to Your Buddy List |
03/02/20, 07:41 AM | |
yeah, the new changes infected many addons like AGS, postmaster mail and many more.
@sirinsidator thx for the info... and i hope this fix will come soon |
|
|
FWSWBN |
View Public Profile |
Send a private message to FWSWBN |
Send email to FWSWBN |
Visit FWSWBN's homepage! |
Find More Posts by FWSWBN |
Add FWSWBN to Your Buddy List |
03/02/20, 07:00 AM | |
Forum posts: 0
File comments: 10
Uploads: 0
|
Bug after ESO 03/02 update
Many Thanks for your work. But I'll remove it from my game for a while. The bug after ZoS' chat API upgrade is very invasive and annoying. I'll put LibChat back when you fix the issue. Thanks,
|
|
Scaletho |
View Public Profile |
Send a private message to Scaletho |
Send email to Scaletho |
Visit Scaletho's homepage! |
Find More Posts by Scaletho |
Add Scaletho to Your Buddy List |
03/02/20, 06:06 AM | ||
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Visit sirinsidiator's homepage! |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.