LUA Error in combat and on clicking Macro
Spoony36 opened this issue ยท 0 comments
Not sure what this relates too but only throws up an error when pressing my macro key which contains this macro
https://wowlazymacros.com/t/lutechi-9-x-vengeance-macro-all-in-one/17102
224x FrameXML\ChatFrame.lua:1044: bad argument #1 to 'strmatch' (string expected, got nil)
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "@FrameXML\RestrictedFrames.lua"]:673: in function <FrameXML\RestrictedFrames.lua:672>
[string "@FrameXML\RestrictedFrames.lua"]:811: in function CallMethod' [string "local step = self:GetAttribute('step') local loopstart = self:GetAttribute('loopstart') or 1 local loopstop = self:GetAttribute('loopstop') or #macros local loopiter = self:GetAttribute('loopiter') or 1 local looplimit = self:GetAttribute('looplimit') or 0 local clicks = self:GetAttribute('clicks') or 0 local ms = self:GetAttribute('ms') or 1 loopstart = tonumber(loopstart) loopstop = tonumber(loopstop) loopiter = tonumber(loopiter) looplimit = tonumber(looplimit) clicks = tonumber(clicks) step = tonumber(step) ms = tonumber(ms) self:SetAttribute('macrotext', self:GetAttribute('KeyPress') .. "\n" .. macros[step] .. "\n" .. self:GetAttribute('KeyRelease')) step = step % #macros + 1 local checkstep = step - 1 if checkstep == 0 then checkstep = #macros end if string.sub(macros[checkstep], 1, 12) == "/click pause" then local localpauselimit = tonumber(string.sub(macros[checkstep], 14)) * 1000 local currentMS = clicks * ms if currentMS < localpauselimit then step = checkstep clicks = clicks + 1 else clicks = 1 end end if not step or not macros[step] then -- User attempted to write a step method that doesn't work, reset to 1 print('Invalid step assigned by custom step sequence', self:GetName(), step or 'nil', '') step = 1 end self:SetAttribute('step', step) self:SetAttribute('loopiter', loopiter) self:SetAttribute('clicks', clicks) self:SetAttribute('ms', ms) self:CallMethod('UpdateIcon') "]:39: in function <[string "local step = self:GetAttribute('step')..."]:1> [string "=(tail call)"]: ? [string "=[C]"]: ? [string "@FrameXML\RestrictedExecution.lua"]:484: in function <FrameXML\RestrictedExecution.lua:447> [string "=(tail call)"]: ? [string "@FrameXML\SecureHandlers.lua"]:285: in function <FrameXML\SecureHandlers.lua:279> [string "=(tail call)"]: ? [string "=[C]"]: in function
Click'
...
[string "@FrameXML\ChatFrame.lua"]:3017: in function <FrameXML\ChatFrame.lua:3010>
[string "=[C]"]: ?
[string "=[C]"]: in function UseAction' [string "@FrameXML\SecureTemplates.lua"]:345: in function
handler'
[string "@FrameXML\SecureTemplates.lua"]:654: in function <FrameXML\SecureTemplates.lua:602>
[string "=[C]"]: ?
[string "@FrameXML\SecureHandlers.lua"]:266: in function <FrameXML\SecureHandlers.lua:263>
[string "=[C]"]: ?
[string "@FrameXML\SecureHandlers.lua"]:296: in function <FrameXML\SecureHandlers.lua:279>
[string "=(tail call)"]: ?