• 0

    posted a message on EavesDrop 2.0 (a SCT style combat log)
    Quote from Scylia »

    I receive the same error
    Date: 2008-03-30 12:26:12
    ID: 56
    Error occured in: Global
    Count: 1
    Message: SendChatMessage(): Invalid escape code in chat message
    Debug:
     [C]: ?
     [C]: ?
     [C]: SendChatMessage()
     Prat_Modules\modules\ChatLink.lua:218:
       Prat_Modules\modules\ChatLink.lua:209
     (tail call): ?
     ..\FrameXML\ChatFrame.lua:2732: ChatEdit_SendText()
     ..\FrameXML\ChatFrame.lua:2745: ChatEdit_OnEnterPressed()
     [string "*:OnEnterPressed"]:1:
       [string "*:OnEnterPressed"]:1
    AddOns:
     [clip]


    The string is
    11:28:52, [Incandescent Fel Spark's] Fel Fireball hits [Scylia] for 679 Fire.


    I guess the invalid char cames from the escape code to add the icon (\124) ?


    Yes, the invalid code is the icon- I have written a small fix (which just removes the icon).

    Open EavesDrop.lua in WORDPAD or somthing that accepts unix style line endings (if you see one really long line of code, its probably wrong)
    Search for the function cleanstring which looks like
    local function cleanstring(s)
     s = gsub(s, "|r", "")
     s = gsub(s, "|c........", "")
     s = gsub(s, "|Hunit:..................:([%w%s*%-*]*)|h", "")
     s = gsub(s, "|Haction:([%w_*]*)|h", "")
     s = gsub(s, "|Hitem:(%d+)|h", "")
     s = gsub(s, "|h", "")
     s = gsub(s, "\n", ", ")
     return s
    end


    Copy and paste these three lines into it- right before return s
     s = gsub(s, "|Hicon:%d+:dest", "")
     s = gsub(s, "|Hicon:%d+:source", "")
     s = gsub(s, "|TInterface.TargetingFrame.UI.RaidTargetingIcon.%d.blp:0|t", "")


    Resulting in
    local function cleanstring(s)
     s = gsub(s, "|r", "")
     s = gsub(s, "|c........", "")
     s = gsub(s, "|Hunit:..................:([%w%s*%-*]*)|h", "")
     s = gsub(s, "|Haction:([%w_*]*)|h", "")
     s = gsub(s, "|Hitem:(%d+)|h", "")
     s = gsub(s, "|h", "")
     s = gsub(s, "\n", ", ")
     s = gsub(s, "|Hicon:%d+:dest", "")
     s = gsub(s, "|Hicon:%d+:source", "")
     s = gsub(s, "|TInterface.TargetingFrame.UI.RaidTargetingIcon.%d.blp:0|t", "")
     return s
    end


    Save the file, and that should fix your problems. (Maybe if I'm bored tomorrow I'll actually make it so it shows the icons.... or try)
    Posted in: General AddOns
  • 0

    posted a message on Embiggen the "you" arrow
    /script Cartographer.playerModel:SetModelScale(2);

    Change 2 to a higher number if you want it bigger, any higher than 2 I found the arrow gets too big for the frame its in. (default is 1, however it's 1.5 if you have enlarge arrow checked off under look n' feel)
    Posted in: Map/Minimap AddOns
  • To post a comment, please or register a new account.