1. #1

    [LUA] Getting these error when using a macro

    Ok, I didn't get these errors before 5.4, but now I'm getting them. Any help is greatly appreciated

    Code:
    377x FrameXML\ChatFrame.lua:903: Usage: CastSpellByName(name[, target])
    <in C code>
    FrameXML\ChatFrame.lua:903: in function <FrameXML\ChatFrame.lua:835>
    FrameXML\ChatFrame.lua:1106: in function "?"
    FrameXML\ChatFrame.lua:4296: in function <FrameXML\ChatFrame.lua:4263>
    <in C code>
    FrameXML\ChatFrame.lua:3962: in function "ChatEdit_SendText"
    FrameXML\ChatFrame.lua:2623: in function <FrameXML\ChatFrame.lua:2616>
    <in C code>
    FrameXML\SecureTemplates.lua:452: in function "handler"
    FrameXML\SecureTemplates.lua:633: in function <FrameXML\SecureTemplates.lua:581>
    <in C code>
    FrameXML\ChatFrame.lua:1502: in function "?"
    ChatFrame.lua:3962: in function "ChatEdit_SendText"
    FrameXML\ChatFrame.lua:2623: in function <FrameXML\ChatFrame.lua:2616>
    <in C code>
    FrameXML\SecureTemplates.lua:348: in function "handler"
    FrameXML\SecureTemplates.lua:633: in function <FrameXML\SecureTemplates.lua:581>
    <in C code>
    FrameXML\SecureHandlers.lua:264: in function <FrameXML\SecureHandlers.lua:261>
    <in C code>
    FrameXML\SecureHandlers.lua:294: in function <FrameXML\SecureHandlers.lua:277>
    (tail call): ?
    
    Locals:
    sequence = "reset=0.3,0,Conflagrate"
    target = nil
    entry = <table> {
     items = <table> {}
     index = 1
     timeout = 0.26700001396239
     spells = <table> {}
     spellNames = <table> {}
     reset = "0.3,0,conflagrate"
    }
    timeout = "0"
    item = nil
    spell = nil
    CastSequenceManager = <unnamed> {
     0 = <userdata>
     elapsed = 0.26700001396239
    }
    CastSequenceManager_OnEvent = <func> @FrameXML\ChatFrame.lua:754
    CastSequenceManager_OnUpdate = <func> @FrameXML\ChatFrame.lua:817
    CastSequenceTable = <table> {
     reset=0.3 0,0,Shadowburn = <table> {}
     reset=0.3,0,Conflagrate = <table> {}
     reset=target Immolate,Incinerate,Incinerate,Incinerate,Incinerate,Fel Flame,Incinerate,Incinerate, Incinerate, = <table> {}
     reset=target Curse of the Elements,null = <table> {}
    }
    CastSequenceFreeList = <table> {
     reset=target Curse of the Elements,null = <table> {}
    }
    CreateCanonicalActions = <func> @FrameXML\ChatFrame.lua:714
    SetCastSequenceIndex = <func> @FrameXML\ChatFrame.lua:735
    SetNextCastSequence = <func> @FrameXML\ChatFrame.lua:746

  2. #2
    remove the first comma in your /castsequence line and change it to a space

  3. #3
    Brewmaster Thundertom's Avatar
    10+ Year Old Account
    Join Date
    Oct 2009
    Location
    The Netherlands
    Posts
    1,319
    Quote Originally Posted by pnutbutter View Post
    remove the first comma in your /castsequence line and change it to a space
    o.O You found that out by reading that code? Impressive!
    Warlock (SL main)

  4. #4
    Quote Originally Posted by Thundertom View Post
    o.O You found that out by reading that code? Impressive!
    no it shows what he was trying to do right there in the Locals section

  5. #5
    Many Thanks, I'm an idiot ... it was early, Macro Toolkit even told me what the stupid error was, and even highlighted it in green such a failure I was this morning. Again, I greatly appreciate it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •