Mikma's Avatar
Files 23
Downloads 143,408
Favorites 984
View Bug Report
Collision with WIM3 (3.3.7 beta) hooks
Bug #: 6666
File: NeonChat
Date: 07-04-10 03:46 PM
By: Dridzt
Status: Unconfirmed
WIM obviously changes the contents of the ACTIVE_CHAT_EDIT_BOX global at some point with its hooks.
This is not NeonChat's problem and I will report the same at WIM forums.
But maybe you could check that the frame name you get back from
PHP Code:
local frame string.sub(ACTIVE_CHAT_EDIT_BOX:GetName(),1,10
is one of blizzard's?
Code:
3x NeonChat\NeonChat.lua:34: <unnamed>:SetPoint(): Couldn't find region named 'WIM3_msgFrTopLeftTexture'
NeonChat\NeonChat.lua:34: in function <NeonChat\NeonChat.lua:10>
<in C code>: ?
<in C code>: in function `ChatEdit_UpdateHeader'
Interface\FrameXML\ChatFrame.lua:3355: in function `ChatEdit_ResetChatType':
Interface\FrameXML\ChatFrame.lua:3425: in function <Interface\FrameXML\ChatFrame.lua:3411>:
Interface\FrameXML\ChatFrame.lua:3435: in function `ChatEdit_DeactivateChat':
Interface\FrameXML\ChatFrame.lua:3722: in function <Interface\FrameXML\ChatFrame.lua:3715>:
<in C code>: in function `ChatEdit_OnEscapePressed'
WIM-3.3.7\Modules\WhisperEngine.lua:585: in function <WIM\Modules\WhisperEngine.lua:552>
<in C code>: in function `ChatEdit_ExtractTellTarget'
Interface\FrameXML\ChatFrame.lua:3892: in function <Interface\FrameXML\ChatFrame.lua:3887>:
(tail call): ?:
Interface\FrameXML\ChatFrame.lua:4038: in function `ChatEdit_ParseText':
Interface\FrameXML\ChatFrame.lua:3874: in function `ChatEdit_OnTextSet':
<string>:"*:OnTextSet":1: in function <[string "*:OnTextSet"]:1>
<in C code>: ?
<in C code>: in function `SetText'
Interface\FrameXML\ChatFrame.lua:3330: in function `ChatEdit_OnUpdate':
<string>:"*:OnUpdate":1: in function <[string "*:OnUpdate"]:1>

Locals:
editbox = ChatFrame1EditBox {
 0 = <userdata>
 autoCompleteParams = <table> {}
 autoCompleteFormatRegex = "%2$s%1$s"
 at3matches = <table> {}
 focusLeft = ChatFrame1EditBoxFocusLeft {}
 wimIsShown = <function> defined =[C]:-1
 Insert = <function> defined =[C]:-1
 curMatch = 0
 pMatchLen = 0
 chatFrame = ChatFrame1 {}
 autoCompleteRegex = "^((/[^%s]+)%s+)(.+)"
 focusRight = ChatFrame1EditBoxFocusRight {}
 matches = <table> {}
 language = "Common"
 wimIsVisible = <function> defined =[C]:-1
 focusMid = ChatFrame1EditBoxFocusMid {}
 IsVisible = <function> @ WIM\Sources\Hooks.lua:25:
 at3curMatch = 0
 HighlightText = <function> @ WIM\Sources\Hooks.lua:51:
 wimHighlightText = <function> defined =[C]:-1
 text = "/w Higlyph "
 IsShown = <function> @ WIM\Sources\Hooks.lua:33:
 lastKeyPress = 0
 hookedByAceTab3 = true
 addSpaceToAutoComplete = true
 header = ChatFrame1EditBoxHeader {}
 autoCompleteXOffset = 35
 tabCompleteIndex = 1
 setText = 1
 SetText = <function> defined =[C]:-1
}
type = "RAID"
frame = "WIM3_msgFr"
chatborder = <unnamed> {
 0 = <userdata>
}
chateditbox = <unnamed> {
 0 = <userdata>
}

RSS 2.0 Feed for Bug CommentsNotes Sort Options
By: Dridzt - 07-04-10 06:47 PM
I would like to add that even without the problem caused by WIM there's the possibility of a subtle bug with the way you get the chatframe name.
Since you can at the moment have up to 10 chatboxes in wow the string.sub(editboxname,1,10) will not work for ChatFrame10 ( is 11 chars)

Maybe
local frame = string.match(ACTIVE_CHAT_EDIT_BOX:GetName(),"ChatFrame%d",1)
would work better and allow you an easy check for nil return so you don't try to modify 3rd party chatframes.
By: mikma - 07-04-10 09:45 PM
This is actually like so within NeonChat 3.03:
local frame = string.match(ACTIVE_CHAT_EDIT_BOX:GetName(), "^(.-)EditBox$")
By: mikma - 07-04-10 09:46 PM
I am pretty close to remove the whole ChatEditBox -code from the addon completely. It's really getting on my nerves...