Go to Page... |
Compatibility: | Dragonhold (5.2.5) Scalebreaker (5.1.5) Elsweyr (5.0.5) |
Updated: | 10/02/19 04:12 PM |
Created: | 09/09/14 09:21 AM |
Monthly downloads: | 5,923 |
Total downloads: | 18,290 |
Favorites: | 29 |
MD5: |
libChat2 -non capital l
LibChat2
## DependsOn: libChat2 |
## OptionalDependsOn: libChat2
-- Registering librairies local LC = LibChat2
-- libChat -- All those events outputs to the ChatSystem -- First APPEND something to a message sent by EVENT_CHAT_MESSAGE_CHANNEL LC:registerAppendDDSBeforeAll(myFuncToAppendDDSBeforeAll, addonName) LC:registerAppendTextBeforeAll(myFuncToAppendTextBeforeAll, addonName) LC:registerAppendDDSBeforeSender(myFuncToAppendDDSTextureBeforeSenderName, addonName) LC:registerAppendTextBeforeSender(myFuncToAppendTextBeforeSenderName, addonName) LC:registerAppendTextAfterSender(myFuncToAppendTextAfterSenderName, addonName) LC:registerAppendDDSAfterSender(myFuncToAppendDDSAfterSenderName, addonName) LC:registerAppendDDSBeforeText(myFuncToAppendDDSBeforeText, addonName) LC:registerAppendTextBeforeText(myFuncToAppendTextBeforeText, addonName) LC:registerAppendTextAfterText(myFuncToAppendTextAfterText, addonName) LC:registerAppendDDSAfterText(myFuncToAppendDDSAfterText, addonName) -- Then CHANGE something in the message -- registerName = from for EVENT_CHAT_MESSAGE_CHANNEL, registerText = message for EVENT_CHAT_MESSAGE_CHANNEL, registerFormat = Whole "message" (from + name + colors + infoarray, etc) for EVENT_CHAT_MESSAGE_CHANNEL LC:registerName(myFuncToChangeFromName, addonName) LC:registerText(myFuncToChangeText, addonName) LC:registerFormat(myFuncToChangeTheEntireWholeMessage, addonName) -- Because it is output to the chat, this sysmessage can also be modified -- registerFriendStatus = message for EVENT_FRIEND_PLAYER_STATUS_CHANGED LC:registerFriendStatus(myFuncToChangeFriendStatusMessage, addonName) -- Those ESOUI events can also be modified -- registerIgnoreAdd = message for EVENT_IGNORE_ADDED, registerIgnoreRemove = message for EVENT_IGNORE_REMOVED -- registerGroupTypeChanged = message for EVENT_GROUP_TYPE_CHANGED LC:registerIgnoreAdd(myFuncToChangeIgnoreAddMessage, addonName) LC:registerIgnoreRemove(myFuncToChangeIgnoreRemoveMessage, addonName) LC:registerGroupTypeChanged(myFuncToChangeGroupTypeChangedMessage, addonName)
local LC = LibChat2 LC:registerAppendTextBeforeAll(AppendTime, Addon.Name) -- Will append Time for party messages only before all text local function AppendTime(channelID, from, text, isCustomerService) if channelID == CHAT_CHANNEL_PARTY then return GetTimeString() else return "" end end
---- libchat2 debug ---- Note : 2 addons registering same method will provoke conflicts registerFriendStatus set with addon #1 pChat, #2 GuildNotificator, registerAppendTextAfterSender set with addon #1 GuildChat, registerGroupTypeChanged set with addon #1 pChat, registerAppendTextBeforeSender set with addon #1 GuildChat, registerFormat set with addon WARNING : method overwrite Sender name and Message ! #1 pChat, registerIgnoreRemove set with addon #1 pChat, registerIgnoreAdd set with addon #1 pChat, ---- end of libchat2 debug ----
File Name |
Version |
Size |
Uploader |
Date |
11 |
5kB |
Baertram |
10/02/19 03:00 PM |
|
10 |
5kB |
Baertram |
10/01/19 09:50 AM |
|
9 |
5kB |
Ayantir |
08/02/16 07:08 AM |
|
1.6 |
5kB |
Ayantir |
08/22/15 07:45 AM |
|
Justice |
5kB |
Ayantir |
02/21/15 09:03 AM |
|
1.2 |
4kB |
Ayantir |
09/16/14 09:35 AM |
|
1.1 |
4kB |
Ayantir |
09/11/14 04:50 PM |
|
1 |
3kB |
09/09/14 09:21 AM |
![]() |
Comment Options |
Ayantir |
View Public Profile |
Send a private message to Ayantir |
Visit Ayantir's homepage! |
Find More Posts by Ayantir |
Add Ayantir to Your Buddy List |
Pyranea |
View Public Profile |
Send a private message to Pyranea |
Visit Pyranea's homepage! |
Find More Posts by Pyranea |
Add Pyranea to Your Buddy List |
Ayantir |
View Public Profile |
Send a private message to Ayantir |
Visit Ayantir's homepage! |
Find More Posts by Ayantir |
Add Ayantir to Your Buddy List |
![]() |
|
Forum posts: 0
File comments: 46
Uploads: 0
|
hey,
thanks for your great addons ![]() Greetz |
![]() |
![]() |
Rothry |
View Public Profile |
Send a private message to Rothry |
Send email to Rothry |
Visit Rothry's homepage! |
Find More Posts by Rothry |
Add Rothry to Your Buddy List |
![]() |
||
Hm so why doesn't it break my chat then as I'm using pChat, which is the only addon using libChat2?
Any further info how to see that it is libChat2 and not only libChat2 e.g.? I know zos changed the handling of their chat functions to use placeholders with % now instead of e.g. <<1>>. But my pChat (my local installation. It's not my addon ![]() If you got any ideas what I need to enable in pChat to get the errors you should write it to the official pChat comments please. If you have any hints where in libChat2 the problem is, please tell me so I can get the errors as well and fix them. But for now I only know there are problems, but do not know how to see, and then be able to fix them). I'll have a look at the library code again, maybe I find something.
Last edited by Baertram : 10/02/19 at 02:59 PM.
|
||
![]() |
![]() |
Baertram |
View Public Profile |
Send a private message to Baertram |
Send email to Baertram |
Visit Baertram's homepage! |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
![]() |
|||
I had the bug one time only, and it was before i decided to replace libs outdated completely and use only the libs as standalone. Since then i do not encounter any problem.
__________________
![]() |
|||
![]() |
![]() |
Anceane |
View Public Profile |
Send a private message to Anceane |
Send email to Anceane |
Visit Anceane's homepage! |
Find More Posts by Anceane |
Add Anceane to Your Buddy List |
![]() |
|
Found some of the old used zo_strformat commands in event EVENT_CHAT_MESSAGE_CHANNEL callback function of libChat2 and changed them to use the string.format functions from ZOs code now.
Update 11 will fix this. Try if it works good now and if not please tell me how to reproduce any error! Edit: Standalone or not: this would have affected all the same so it can only depend on the settings within pChat you & me have enabled. Edit2 -> libChat3: I've updated libChat3 also with a new version 11 containing the fix for the event which shows %s in chat instead of the messages: https://www.esoui.com/downloads/file...=2210#comments
Last edited by Baertram : 10/02/19 at 03:17 PM.
|
|
![]() |
![]() |
Baertram |
View Public Profile |
Send a private message to Baertram |
Send email to Baertram |
Visit Baertram's homepage! |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
![]() |
||
hehe you are the boss my friend i am merely a student :P (kidding a part i learned a lot with you)
__________________
![]() |
||
![]() |
![]() |
Anceane |
View Public Profile |
Send a private message to Anceane |
Send email to Anceane |
Visit Anceane's homepage! |
Find More Posts by Anceane |
Add Anceane to Your Buddy List |
![]() |
||
Forum posts: 0
File comments: 46
Uploads: 0
|
|
|
![]() |
![]() |
Rothry |
View Public Profile |
Send a private message to Rothry |
Send email to Rothry |
Visit Rothry's homepage! |
Find More Posts by Rothry |
Add Rothry to Your Buddy List |
![]() |