TimothyLuke / GSE-Advanced-Macro-Compiler

GSE is an alternative advanced macro editor and engine for World of Warcraft.
https://discord.gg/gseunited
MIT License
216 stars 73 forks source link

[BUG] Adding a variable block seems to bork the sequences #1524

Closed claytonkimber closed 3 months ago

claytonkimber commented 3 months ago

πŸ”΅ Describe the bug: Create a variable, and try to add that variable to a sequence

πŸ”΅ To reproduce: (Steps to reproduce the behavior)

  1. create a variable
  2. save variable
  3. Go to sequence
  4. Click add if block

πŸ”΅ The error: Paste the error message in this blockquote.

5x ...3/AceGUI-3.0-41/widgets/AceGUIWidget-DropDown-Items.lua:101: bad argument #1 to 'SetText' (Usage: self:SetText([text]))
[string "=[C]"]: in function `SetText'
[string "@ElvUI_Libraries/Core/Ace3/AceGUI-3.0-41/widgets/AceGUIWidget-DropDown-Items.lua"]:101: in function `SetText'
[string "@ElvUI_Libraries/Core/Ace3/AceGUI-3.0-41/widgets/AceGUIWidget-DropDown.lua"]:566: in function <...re/Ace3/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua:560>
[string "@ElvUI_Libraries/Core/Ace3/AceGUI-3.0-41/widgets/AceGUIWidget-DropDown.lua"]:605: in function `SetList'
[string "@GSE_GUI/Editor.lua"]:2818: in function <GSE_GUI/Editor.lua:2295>
[string "@GSE_GUI/Editor.lua"]:2967: in function `DrawSequenceEditor'
[string "@GSE_GUI/Editor.lua"]:1589: in function `GUIDrawMacroEditor'
[string "@GSE_GUI/Editor.lua"]:2990: in function `GUISelectEditorTab'
[string "@GSE_GUI/Editor.lua"]:452: in function <GSE_GUI/Editor.lua:451>
[string "=[C]"]: ?
[string "@ElvUI_Libraries/Core/Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <.../ElvUI_Libraries/Core/Ace3/AceGUI-3.0/AceGUI-3.0.lua:64>
[string "@ElvUI_Libraries/Core/Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function `Fire'
[string "@ElvUI_Libraries/Core/Ace3/AceGUI-3.0-41/widgets/AceGUIContainer-TabGroup.lua"]:342: in function `SelectTab'
[string "@GSE_GUI/Editor.lua"]:1228: in function <GSE_GUI/Editor.lua:1226>
[string "@GSE_GUI/Editor.lua"]:1937: in function <GSE_GUI/Editor.lua:1913>
[string "=[C]"]: ?
[string "@ElvUI_Libraries/Core/Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <.../ElvUI_Libraries/Core/Ace3/AceGUI-3.0/AceGUI-3.0.lua:64>
[string "@ElvUI_Libraries/Core/Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function `Fire'
[string "@AskMrRobot/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-Icon.lua"]:26: in function <...rRobot/Libs/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua:25>

Locals:
(*temporary) = FontString {
}
(*temporary) = true

πŸ”΅ Screenshots: If applicable, add screenshots to help explain your problem.

πŸ”΅ Expected behavior: A clear and concise description of what you expected to happen.

πŸ”΅ GSE.lua file: Please provide your GSE.lua file or the export string for the specific macro that is causing an issue.

πŸ”΅ Desktop (please complete the following information):

πŸ”΅ GSE Version:

πŸ”΅ Additional context: My variable could be incorrect, not sure. However, if there's a variable that's created incorrectly, should have some kind of error handling to ensure the rest of the system still functions.

TimothyLuke commented 3 months ago

Do you get the same error without using ElvUI?

TimothyLuke commented 3 months ago

NVM found it

TimothyLuke commented 3 months ago

Ok have made a bunch of changes to IF Blocks.

The first is the Variable section - you now put the Implementation Reference into the If Block Variable field. This allows you to use any function in the WoW API or an inline statement as well as GSE Variables.

image

You can also use = true and = false as the Variable to test the If Block

image

GSE Patrons can tab in the Variable block to get a popup image