[BUG] Gracefully handle variable errors
ArpaCat opened this issue · 5 comments
🔵 Describe the bug:
There are two issues related to using If blocks with Variables to test my character's race:
-
Save Pending Issue: When creating a sequence that includes If blocks using Variables, the sequence sometimes freezes and remains stuck on "Save pending," never actually saving the macro. This prevents any further edits or use of the sequence.
-
Incorrect Value Return: The If block does not evaluate the character's race correctly when using a Variable according to the example in the GSE Wiki. Despite following the correct syntax and setup, the macro always returns the "false" value, resulting in "no" being displayed in the chat, even when the character is a Blood Elf, where it should return "yes."
🔵 To reproduce: (Steps to reproduce the behavior)
- Open GSE by typing
/gse
in the chat. - Click on the Variable tab.
- Create a New Variable.
- Copy and paste the following Lua function into the variable editor:
function()
if UnitRace ("Player") == "BloodElf" then
return true
else
return false
end
end
- Save the variable.
- Copy the implementation link (e.g.,
=GSE.V.MyNewVar72()
) using Ctrl + C. - Close the Variable window.
- Open the Sequence tab.
- Create a new sequence and select the 1 tab under
NEW_SEQUENCE
. - Add an If Block to the sequence.
- Paste
=GSE.V.MyNewVar72()
to replace the= true
condition in the If Block. - In the True Block, type the following macro text: "/s yes"
- In the False Block, type the following macro text: "/s no"
Attempt to save the sequence. Issue: The sequence shows "Save pending" and does not actually save. It remains stuck in the "Save pending" state indefinitely without resolving to "saved" or any other status. - Bind the sequence to a key, such as Numpad 1.
🔵 The error:
There is No Error Massage
🔵 Screenshots:
🔵 Expected behavior:
I expected that after pressing the key bound to Numpad 1, the macro would evaluate my character's race (Blood Elf) and output "yes" in the chat since my character is indeed a Blood Elf. The function should correctly identify the race and return true, triggering the "yes" response. However, instead of the expected outcome, the macro incorrectly returns "false" and only outputs "no" in the chat.
🔵 GSE.lua file:
Gethub do not support that file
🔵 Desktop (please complete the following information):
- OS: Windows 10 64bit
- Game Version: Retail 11.0.2.56196]
🔵 GSE Version:
- Version: 3.2.11
- Downloaded From: Curseforge app
🔵 Additional context:
addition to the steps mentioned above, I've noticed a few more issues:
-
Initial Save Behavior: When creating a new sequence and saving it for the first time, the sequence might save correctly. However, the result still comes out as "no" instead of "yes".
-
Variable Usage Without Equals Sign: If I omit the equals sign and simply use
GSE.V.MyNewVar72()
or writeGSE.V.MyNewVar72() = true
in the macro, it consistently triggers the "Save pending" issue, causing the sequence to freeze and never save. -
Using Variable in Macro Text: I also tried a different approach by writing the following in the macro text:
=GSE.V.MyNewVar72()
/s yes
This resulted in an error message stating a "bad argument." Unfortunately, I did not copy the exact error message to avoid confusion, but it highlights another issue when attempting to combine variable checks with text output in the macro.
/say (/s) in a macro is restricted and can only be used in a Blizzard /macro. -- Edit yet somehow you got to work. I haven't been able to since TWW
Variable Usage Without Equals Sign: If I omit the equals sign and simply use GSE.V.MyNewVar72() or write GSE.V.MyNewVar72() = true in the macro, it consistently triggers the "Save pending" issue, causing the sequence to freeze and never save.
When this happens go to the Out of Combat Queue on the GSE mini-map icon and delete (just need to click on the entry) the attempt to save that is clogging the queue. It will be the first thing in the list. GSE is a Garbage in - Garbage Out mod. It thinks you know what you are doing at all times and never tests for things, it just tries to do what you tell it.
Without your GSE.lua file - i cant help you. You need to either copy the contents into a comment within three backticks ``` at the beginning and end or rename it to GSE.lua.txt then attach it.
Also you can test your id via the Compile Template button. This will show the block that results from your if.
This is the copay of my GSE.lua File
GSEOptions = {
["HideLoginMessage"] = false,
["STANDARDFUNCS"] = "|cff55ddcc",
["showGSEUsers"] = false,
["msClickRate"] = 180,
["COMMENT"] = "|cff55cc55",
["filterList"] = {
["Spec"] = true,
["Class"] = false,
["Global"] = false,
["All"] = false,
},
["EQUALS"] = "|cffccddee",
["NUMBER"] = "|cffffaa00",
["sendDebugOutputToChatWindow"] = false,
["KEYWORD"] = "|cff88bbdd",
["saveAllMacrosLocal"] = true,
["debug"] = false,
["keybindingHeight"] = 500,
["CONCAT"] = "|cffcc7777",
["CommandColour"] = "|cFF00FF00",
["showCurrentSpells"] = false,
["UNKNOWN"] = "|cffff6666",
["ActiveSequenceVersions"] = {
},
["macroWidth"] = 700,
["macroHeight"] = 500,
["Updates"] = {
["3200"] = true,
},
["menuHeight"] = 500,
["sendDebugOutputToDebugOutput"] = false,
["CreateGlobalButtons"] = false,
["autoCreateMacroStubsGlobal"] = false,
["UseWLMExportFormat"] = false,
["STRING"] = "|cff888888",
["autoCreateMacroStubsClass"] = true,
["DefaultImportAction"] = "MERGE",
["overflowPersonalMacros"] = false,
["TitleColour"] = "|cFFFF0000",
["PromptSample"] = true,
["initialised"] = true,
["INDENT"] = "|cffccaa88",
["DebugModules"] = {
["Translator"] = false,
["Startup"] = false,
["API"] = false,
["Viewer"] = false,
["Transmission"] = false,
["Editor"] = false,
["GUI"] = false,
["Storage"] = false,
["Versions"] = false,
},
["resetOOC"] = true,
["MacroResetModifiers"] = {
["Alt"] = false,
["LeftControl"] = false,
["LeftButton"] = false,
["LeftAlt"] = false,
["RightButton"] = false,
["RightAlt"] = false,
["Button4"] = false,
["Button5"] = false,
["MiddleButton"] = false,
["RightControl"] = false,
["Control"] = false,
["Shift"] = false,
["LeftShift"] = false,
["AnyMod"] = false,
["RightShift"] = false,
},
["showGSEoocqueue"] = true,
["EmphasisColour"] = "|cFFFFFF00",
["UseVerboseExportFormat"] = false,
["WOWSHORTCUTS"] = "|cffddaaff",
["RealtimeParse"] = false,
["deleteOrphansOnLogout"] = false,
["OOCQueueDelay"] = 7,
["shownew"] = true,
["AuthorColour"] = "|cFF00D1FF",
["editorWidth"] = 1843.703735351563,
["showMiniMap"] = {
["hide"] = true,
},
["editorHeight"] = 829.073486328125,
["DefaultDisabledMacroIcon"] = "Interface\Icons\INV_MISC_BOOK_08",
["DebugPrintModConditionsOnKeyPress"] = false,
["NormalColour"] = "|cFFFFFFFF",
["keybindingWidth"] = 700,
["menuWidth"] = 700,
["setDefaultIconQuestionMark"] = true,
["DisabledSequences"] = {
},
["frameLocations"] = {
},
}
GSESequences = {
{
},
{
},
{
},
{
["test"] = "d4JhcaWyvCyQ2LqyBcc3tGQzIe1IusmBv18fPUPi5xiPVjGCAj2PuTxy3sA)cQ(PGsdtj(nLgOaQ3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gN7CMtDvCYVuRwTA1Qv35tyFoXGX5oNF6CM1onfhzegPTv9tND9lgHrytCZnJ05CN9Z8wc1PPjYTe(NNW2zuyJh2chtpCsgBjyZc)ZWKTvroLxgZk3EkbNGjnWZGgkzz7KHQiNkvj4ibH080YlxLWl0jLWpuZW(jhkHGjXyqCS86JDyNs86NCO8YfxCZn3Swc)pOCnchKDMafEu4vO5vQIw0Iwf",
},
{
},
[0] = {
},
}
GSESpellCache = {
["enUS"] = {
},
["zhCN"] = {
["眼棱"] = 198013,
["烈焰咒符"] = 204596,
["邪能之刃"] = 232893,
["恶魔追击"] = 370965,
["刃舞"] = 188499,
["恶魔之咬"] = 344859,
["破裂"] = 344859,
["复仇回避"] = 198793,
["投掷利刃"] = 185123,
["献祭光环"] = 258920,
["混乱打击"] = 344862,
},
}
GSEVariables = {
["MyNewVar72"] = "dCY5aaatIQMnOUnjzVQA3qTFzuKOHPu)MunuIIbJgorQtrchtbNJiAHevwkry5kzrKYtv0JPWZPOPsiMmitxLlsjDvsQlt11jyZqAAeQgnrYHH4EuItRqxJO05juwjWYOuJJq6F4f5NOcyJ7NOcyJBuhRurmqmgJJOr14XtcedpQutgyeX8LMIOflrn5G11HScJQfpPCCGymgJXyC5NWchVLGhigJrh20JbIXymgJXLFclCefb20deJXOJHc4yOabc8t5rmp1sdHCo0pT32IVf1EyqY9El7pn0vPYXN5pde4V)b",
}
GSEMacros = {
}
Problem was how you spelt Blood Elf.
local englishRace, normalisedRace, RaceID = UnitRace("Player)
now when you go if UnitRace ("Player") == "BloodElf" then
it compares "BloodElf" to the first entry englishRace which has a space so returns false. "Blood Elf" is not the same as "BloodElf" so your function returns false.
if you changed your function either of the following it would work for all languages not just english.
function()
local _, _, RaceID = UnitRace("Player)
return RaceID == 10
end
or
function()
local _, normalisedRace, _ = UnitRace("Player)
if normalisedRace == "BloodElf" then
return true
else
return false
end
end
*The /dump
command is a quick way to look at the result of a WoW function or a GSE Variable(