error when extending macro's
sultanakaneel opened this issue ยท 4 comments
Hello,
If I try to extend a macro it throws the following error:
5x MacroToolkit/modules/parser.lua:530: attempt to perform arithmetic on local 'e1' (a nil value)
[string "@MacroToolkit/modules/parser.lua"]:530: in function `ShortenMacro'
[string "@MacroToolkit/MacroToolkit.lua"]:542: in function <MacroToolkit/MacroToolkit.lua:539>
[string "@MacroToolkit/MacroToolkit.lua"]:555: in function `ExtendMacro'
[string "@MacroToolkit/MacroToolkit.lua"]:510: in function `ExtendClick'
[string "@MacroToolkit/modules/mainframe.lua"]:632: in function <MacroToolkit/modules/mainframe.lua:632>
Locals:
self = <table> {
FindShortest = <function> defined @MacroToolkit/modules/parser.lua:13
defaults = <table> {
}
RunCommands = <function> defined @MacroToolkit/modules/macrobroker.lua:81
BindingButtonOnClick = <function> defined @MacroToolkit/modules/bindingframe.lua:225
IsTarget = <function> defined @MacroToolkit/modules/parser.lua:249
target = "/target"
UpdateErrors = <function> defined @MacroToolkit/MacroToolkit.lua:689
CreateBrokerObject = <function> defined @MacroToolkit/modules/macrobroker.lua:101
SetBinding = <function> defined @MacroToolkit/modules/bindingframe.lua:242
eventHandler = <function> defined @MacroToolkit/MacroToolkit.lua:94
FindScript = <function> defined @MacroToolkit/MacroToolkit.lua:448
skinned = <table> {
}
UpdateIcon = <function> defined @MacroToolkit/modules/mainframe.lua:1040
ClearAllMacros = <function> defined @MacroToolkit/MacroToolkit.lua:292
FormatMacro = <function> defined @MacroToolkit/MacroToolkit.lua:477
Skin = <function> defined @MacroToolkit/modules/elvskin.lua:6
CombatMessage = <function> defined @MacroToolkit/MacroToolkit.lua:1220
CreateCopyFrame = <function> defined @MacroToolkit/modules/copyframe.lua:6
click = "/click"
GetLastBackupDate = <function> defined @MacroToolkit/modules/restoreframe.lua:242
clist = <table> {
}
SetLastBackupDate = <function> defined @MacroToolkit/MacroToolkit.lua:1166
PopupButtonOnClick = <function> defined @MacroToolkit/modules/popupframe.lua:517
UpdateInterfaceOptions = <function> defined @MacroToolkit/modules/options.lua:901
UpdateIconCount = <function> defined @MacroToolkit/modules/popupframe.lua:551
Eval = <function> defined @MacroToolkit/modules/macrobroker.lua:69
SaveMacro = <function> defined @MacroToolkit/MacroToolkit.lua:1093
UpdateBindingFrame = <function> defined @MacroToolkit/modules/bindingframe.lua:269
ReceiveMacro = <function> defined @MacroToolkit/modules/shareframe.lua:217
CreateBuilderFrame = <function> defined @MacroToolkit/modules/builderframe.lua:16
Spells = <table> {
}
AIS = <table> {
}
FindComment = <function> defined @MacroToolkit/modules/parser.lua:673
UpdateCharLimit = <function> defined @MacroToolkit/MacroToolkit.lua:671
IsCast = <function> defined @MacroToolkit/modules/parser.lua:247
SelectTexture = <function> defined @MacroToolkit/modules/popupframe.lua:458
CreateSecureActionButton = <function> defined @MacroToolkit/modules/mainframe.lua:1092
ParseMacro = <function> defined @MacroToolkit/modules/parser.lua:678
L = <table> {
}
OptionsFrame = Frame {
}
GetSpellorMacroIconInfo = <function> defined @MacroToolkit/modules/popupframe.lua:426
RGBToHex = <function> defined @MacroToolkit/MacroToolkit.lua:321
CreateScriptFrame = <function> defined @MacroToolkit/modules/scriptframe.lua:6
MACRO_ICON_FILENAMES = <table> {
}
ShowShortened = <function> defined @MacroToolkit/MacroToolkit.lua:450
conditions = <table> {
}
ShowDetails = <function> defined @MacroToolkit/MacroToolkit.lua:1073
ShortenMacro = <function> defined @MacroToolkit/modules/parser.lua:463
GetBackupTitle = <function> defined @MacroToolkit/modules/restoreframe.lua:161
slots = <table> {
}
BuildCommandList = <function> defined @MacroToolkit/modules/parser.lua:24
FrameOnKeyDown = <function> defined @MacroToolkit/modules/mainframe.lua:10
IsCastSequence = <function> defined @MacroToolkit/modules/parser.lua:250
SelOnClick = <function> def
it were multiple macro's, they all can be extended now but changed to this
#showtooltip Starfire
/click [btn:1]MTSB122 LeftButton 1;[btn:2]MTSB122 RightButton 1;[btn:3]MTSB122 MiddleButton 1;[btn:4]MTSB122 Button4 1;[btn:5]MTSB122 Button5 1
yeah, that was a bug in the previous version, I fixed that just now :)
it seems there was some issue with macros that had some combinations of [exists] and [harm] or [help] in them, I think I fixed all of those now, let me know if it all works correctly in the latest update (came out a few minutes ago, might take a bit before curse lets you download it)