mega-macro icon indicating copy to clipboard operation
mega-macro copied to clipboard

[Bug] MegaMacro UI won't populate in Dragonflight

Open Soromeister opened this issue 4 years ago • 69 comments

Hi @Sellorio, are there any plans to continue development of this addon in Dragonflight? Asking to know whether it's feasible to port all my macros to your addon, while Dragonflight approaches quickly with the pre-patch.

Soromeister avatar Oct 11 '22 16:10 Soromeister

Hopefully dragonflight either doesn't modify any macro system code or has its own new macro ui. I suspect the former in which case ignoring out of date addons should work.

I don't have any plans to play dragonflight at this time.

If you or someone else can confirm that the addon works in dragonflight I'll bump the version so you don't have to tick that box just for me :P

sellorio2 avatar Oct 11 '22 22:10 sellorio2

I have tested it in DF and PTR and the addon itself seems to work but the issue is the MegaMacro UI doesn't get populated, and the old macro window still gets displayed. And when I say it works, any existing macro still works but unable to edit the actual macro or create any new macros since the default UI only shows the MegaMacro code. image

jschick04 avatar Oct 14 '22 14:10 jschick04

Looks like the new tabs ui is a breaking change. Wouldn't be surprised if it's not too hard to fix. Maybe i'll make a level 1 character to test fixes without buying dragonflight or subbing.

sellorio2 avatar Oct 15 '22 00:10 sellorio2

I can confirm the same behavior as @jschick04 found.. Was just a bit late to test this. I will update the issue title to make it a bug instead.

Soromeister avatar Oct 20 '22 09:10 Soromeister

First day of 10.0, and I see similar UI as jschick04's screenshot, but the old macro UI is not also visible.

More concerningly, all of my existing megamacros (on my actionbars) do nothing when clicked.

durandal42 avatar Oct 26 '22 02:10 durandal42

More concerningly, all of my existing megamacros (on my actionbars) do nothing when clicked.

Same here. Its not just the UI, the macro's themselves do not currently work.

I hope this can be fixed, because I rely heavily on mega macro and would hate to lose it.

aurelion314 avatar Oct 26 '22 03:10 aurelion314

One specific macro works!

		{
			["Scope"] = "gg",
			["Code"] = "#showtooltip\n/cast [button:1] Eternal Traveler's Hearthstone\n/stopmacro [button:1]\n/cast Revive Battle Pets\n/camp\n",
			["Id"] = 5,
			["StaticTexture"] = 134400,
			["ScopedIndex"] = 5,
			["DisplayName"] = "home",
		}, -- [13]

... sort of.

It does nothing if I left click it (intended to cast hearthstone and then /stopmacro), but it does log me out if I right-click it.

AFAICT none of my other macros work at all.

durandal42 avatar Oct 26 '22 04:10 durandal42

I've found similar issues discussed with other addons. It sounds like blizzard messed up how clicks are registered for the "SecureActionButtonTemplate" frame, which is what the macros are.

forum post: https://us.forums.blizzard.com/en/wow/t/dragonflight-click-bindings-broken/1361972/9 bug post: https://github.com/Stanzilla/WoWUIBugs/issues/283

aurelion314 avatar Oct 26 '22 05:10 aurelion314

I'm done with wow for the foreseeable future and my only regret is not being able to continue maintaining this addon.

@aurelion314 if you'd be willing I'm happy to support you in updating the addon for 10.0. I am even happy to be in a call the whole time but I can't motivate myself to drive the development myself.

Sellorio avatar Oct 26 '22 05:10 Sellorio

@Sellorio Can't blame you heh. I don't mind helping maintain it, but first need to figure out if this event bug is even fixable. I'm trying some hacks right now but haven't got anything to work..

aurelion314 avatar Oct 26 '22 05:10 aurelion314

More anecdata: all(?) of my macros behave correctly if I right-click them on my action bar. Left-click doesn't work. Pressing an assigned keybind doesn't work.

durandal42 avatar Oct 26 '22 05:10 durandal42

It looks like blizz has to work on it themself, because if you make a macro without the addon you can't use the "hold to cast"-feature. So they are in trouble with their left click also.

ghost avatar Oct 26 '22 06:10 ghost

If it helps either of you this was posted by a user over on the curseforge page

errors since prepatch, only addons on (bugsack, buggrabber, mega macro):

1x ...e/AddOns/MegaMacro/src/windows/mega-macro.window.lua:229: attempt to index local 'buttonName' (a nil value) [string "@Interface/AddOns/MegaMacro/src/windows/mega-macro.window.lua"]:229: in function <...e/AddOns/MegaMacro/src/windows/mega-macro.window.lua:208> [string "@Interface/AddOns/MegaMacro/src/windows/mega-macro.window.lua"]:507: in function MegaMacro_ButtonContainer_OnShow' [string "*mega-macro.window.xml:192_OnShow"]:1: in function <[string "*mega-macro.window.xml:192_OnShow"]:1> [string "=[C]"]: in function Show' [string "@Interface/FrameXML/UIParent.lua"]:2844: in function SetUIPanel' [string "@Interface/FrameXML/UIParent.lua"]:2687: in function ShowUIPanel' [string "@Interface/FrameXML/UIParent.lua"]:2552: in function <Interface/FrameXML/UIParent.lua:2548> [string "=[C]"]: in function SetAttribute' [string "@Interface/FrameXML/UIParent.lua"]:3150: in function ShowUIPanel' [string "@Interface/AddOns/MegaMacro/src/windows/mega-macro.window.lua"]:407: in function Show' [string "@Interface/AddOns/MegaMacro/src/main.lua"]:27: in function ?' [string "@Interface/FrameXML/ChatFrame.lua"]:5219: in function ChatEdit_ParseText' [string "@Interface/FrameXML/ChatFrame.lua"]:4883: in function ChatEdit_SendText' [string "@Interface/FrameXML/ChatFrame.lua"]:4919: in function `ChatEdit_OnEnterPressed' [string "*ChatFrame.xml:127_OnEnterPressed"]:1: in function <[string "*ChatFrame.xml:127_OnEnterPressed"]:1>

Locals: items = { 1 =
{ } 2 =
{ } 3 =
{ } 4 =
{ } 5 =
{ } 6 =
{ } 7 =
{ } 8 =
{ } 9 =
{ } 10 =
{ } 11 =
{ } 12 =
{ } 13 =
{ } 14 =
{ } 15 =
{ } 16 =
{ } 17 =
{ } 18 =
{ } 19 =
{ } 20 =
{ } 21 =
{ } 22 =
{ } 23 =
{ } 24 =
{ } 25 =
{ } 26 =
{ } } newMacroButtonCreated = false (for index) = 1 (for limit) = 60 (for step) = 1 i = 1 buttonFrame = MegaMacro_MacroButton1 { Macro =
{ } 0 = IsNewButton = false } buttonName = nil buttonIcon = nil macro =
{ Scope = "gg" StaticTexture = 648208 Code = "/readycheck" Id = 25 IsStaticTextureFallback = true ScopedIndex = 29 DisplayName = "1.OBLIVION leadycheck" } (*temporary) = defined =[C]:-1 (*temporary) = nil (*temporary) = MegaMacro_MacroButton1 { Macro =
{ } 0 = IsNewButton = false } (*temporary) = "Buttons\ButtonHilight-Square" (*temporary) = "ADD" (*temporary) = (*temporary) = nil (*temporary) = "attempt to index local 'buttonName' (a nil value)" SelectedScope = "gg" MacroItems =
{ 1 =
{ } 2 =
{ } 3 =
{ } 4 =
{ } 5 =
{ } 6 =
{ } 7 =
{ } 8 =
{ } 9 =
{ } 10 =
{ } 11 =
{ } 12 =
{ } 13 =
{ } 14 =
{ } 15 =
{ } 16 =
{ } 17 =
{ } 18 =
{ } 19 =
{ } 20 =
{ } 21 =
{ } 22 =
{ } 23 =
{ } 24 =
{ } 25 =
{ } 26 =
{ } } GetMacroButtonUI = defined @Interface/AddOns/MegaMacro/src/windows/mega-macro.window.lua:42 PlusTexture = 3192688 SelectMacro = defined @Interface/AddOns/MegaMacro/src/windows/mega-macro.window.lua:175

angrygeek avatar Oct 26 '22 10:10 angrygeek

hhah that's my post, I came here to post it but I see it's done already.

Hope you can maintain the addon, myself and a lot of players are quite dependent on it.

georgi-chinov avatar Oct 26 '22 15:10 georgi-chinov

As mentioned there does seem to be a couple of different bugs. One to do with clicks/keybinds - which I think is a Blizzard issue, and one to do with the tabs ui. In addition to the above error, there are also the two below.

90x Interface/SharedXML/SharedUIPanelTemplates.lua:503: attempt to index field 'Text' (a nil value)
[string "@Interface/SharedXML/SharedUIPanelTemplates.lua"]:503: in function `PanelTemplates_TabResize'
[string "*mega-macro.window.xml:316_OnLoad"]:1: in function <[string "*mega-macro.window.xml:316_OnLoad"]:1>

Locals:
tab = MegaMacro_FrameTab1 {
 0 = <userdata>
}
padding = -8
absoluteSize = nil
minWidth = nil
maxWidth = nil
absoluteTextSize = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'Text' (a nil value)"
TAB_SIDES_PADDING = 20
15x Interface/SharedXML/SharedUIPanelTemplates.lua:619: attempt to index field 'Left' (a nil value)
[string "@Interface/SharedXML/SharedUIPanelTemplates.lua"]:619: in function `PanelTemplates_SelectTab'
[string "@Interface/SharedXML/SharedUIPanelTemplates.lua"]:484: in function `PanelTemplates_UpdateTabs'
[string "@Interface/SharedXML/SharedUIPanelTemplates.lua"]:465: in function `PanelTemplates_SetTab'
[string "@Interface/AddOns/MegaMacro/src/windows/mega-macro.window.lua"]:452: in function `MegaMacro_Window_OnLoad'
[string "*mega-macro.window.xml:39_OnLoad"]:2: in function <[string "*mega-macro.window.xml:39_OnLoad"]:1>

Locals:
tab = MegaMacro_FrameTab1 {
 0 = <userdata>
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'Left' (a nil value)"

I haven't done any addon dev for years, but I will have a go at this tonight/tomorrow as I seriously cannot live without this addon

Dannez83 avatar Oct 26 '22 16:10 Dannez83

@Sellorio

Fix for keybinds/leftclick. Basically Left Click has to be explicitly declared now in he template macros that get written to the default macro storage

E:\World of Warcraft_retail_\Interface\AddOns\MegaMacro\src\engine\mega-macro-engine.lua replace line 123 "/click [btn:1] "..ClickyFrameName..macroId.." \n"..

with "/click [btn:1] "..ClickyFrameName..macroId.." LeftButton\n"..

Dannez83 avatar Oct 26 '22 16:10 Dannez83

Confirmed that the keybind/leftclick solution from @Dannez83 works!

I still can't edit macros, but being able to use my existing ones is a huge step forward!

durandal42 avatar Oct 26 '22 17:10 durandal42

Confirmed that the keybind/leftclick solution from @Dannez83 works!

I still can't edit macros, but being able to use my existing ones is a huge step forward!

starting on that now

Dannez83 avatar Oct 26 '22 17:10 Dannez83

Looks like they've changed some of the ui identifiers that are being inherited. Making progress Screenshot 2022-10-26 182803

Dannez83 avatar Oct 26 '22 17:10 Dannez83

@Dannez83 awesome find! I was worried we'd have to wait for Blizzard.

Do you have a branch or fork that you're working on? I don't mind helping since I'm probably not alone in needing this to work before I can really enjoy anything in the new patch.

aurelion314 avatar Oct 26 '22 17:10 aurelion314