hello, i cant get my focus target scripts to work
FocusFrameSpellBar:Hide(1)
FocusFrameSpellBar:SetAlpha(0)
FocusFrameSpellBar:SetScale(0.0001)
FocusFrameSpellBar:ClearAllPoints()
FocusFrameSpellBar:SetPoint(„CENTER“, 5000, -5000)
FocusFrameSpellBar.SetPoint = function() end
nothing is working, i dont get it. Its not even working if I /run it ingame.
Target spell bar like this do work to some extend but sometimes the spellbar breaks and needs a reload
TargetFrameSpellBar:ClearAllPoints()
TargetFrameSpellBar:SetPoint(“CENTER”, 125, -62)
TargetFrameSpellBar.SetPoint = function() end
any idea how to fix this?
Some of these do work for me. Are you using no addons at all when trying this?
yes, everything turned off. I managed to make it work in a macro now, idk its weird. Im pretty sure the focus frame is just bugged
Can you repost your code inside code tags? </> button in the editor.
The forums do weird stuff to it otherwise so we can’t verify your syntax.
FocusFrameSpellBar:Hide(1)
FocusFrameSpellBar:SetAlpha(0)
FocusFrameSpellBar:SetScale(0.0001)
FocusFrameSpellBar:ClearAllPoints()
FocusFrameSpellBar:SetPoint(„CENTER“, 5000, -5000)
FocusFrameSpellBar.SetPoint = function() end
TargetFrameSpellBar:ClearAllPoints()
TargetFrameSpellBar:SetPoint(“CENTER”, 125, -62)
TargetFrameSpellBar.SetPoint = function() end
like this?
I cant get any of this code to work if run with an addon created by addon.bool.no where i literally copy paste this code into. I run other scripts with a different addon for testing purposes which do work. If i rewrite this code to run it with a macro ingame it does work. I noticed that scripts to move TargetFrameSpellBar do not work properly either. Cant run them with an addon but can get it to work with ingame macros, they still sometimes bug out and need reload. So im really not sure what im doing wrong here.
Your quotes are all jacked up on the SetPoint() lines
FocusFrameSpellBar:Hide(1)
FocusFrameSpellBar:SetAlpha(0)
FocusFrameSpellBar:SetScale(0.0001)
FocusFrameSpellBar:ClearAllPoints()
FocusFrameSpellBar:SetPoint("CENTER", 5000, -5000)
FocusFrameSpellBar.SetPoint = function() end
TargetFrameSpellBar:ClearAllPoints()
TargetFrameSpellBar:SetPoint("CENTER", 125, -62)
TargetFrameSpellBar.SetPoint = function() end
Thank you for fixing it. Only thing is im getting errors now when i open editmode. This addon has been blocked by an action only available to the Blizzard UI. I dont get this if i run it with with ingame macros. Not a deal breaker just curious whats the reason. Is this on blizzard? Because ive been running scripts that to move around frames for a long time and never had this happen.
You’d need to enable taint logging to dig deeper into that. Lua’s not really my specialty.
hello, i used this method and got this:
11/3 17:14:56.852 (for generator)()
> 11/3 17:14:56.852 An action was blocked because of taint from Huf - TargetUnit()
11/3 17:14:56.852 Interface/FrameXML/EditModeManager.lua:1518 Frame:RefreshTargetAndFocus()
11/3 17:14:56.852 Interface/FrameXML/EditModeManager.lua:1462 Frame:OnEditModeEnter()
11/3 17:14:56.852 Interface/FrameXML/EditModeManager.lua:171 EditModeManagerFrame:EnterEditMode()
11/3 17:14:56.852 Interface/FrameXML/EditModeManager.lua:193
11/3 17:14:56.852 EditModeManagerFrame:Show()
11/3 17:14:56.852 Interface/FrameXML/UIParent.lua:2844 Frame:SetUIPanel()
11/3 17:14:56.852 Interface/FrameXML/UIParent.lua:2648 Frame:ShowUIPanel()
11/3 17:14:56.852 Interface/FrameXML/UIParent.lua:2552
11/3 17:14:56.852 Frame:SetAttribute()
11/3 17:14:56.852 Interface/FrameXML/UIParent.lua:3150 ShowUIPanel()
11/3 17:14:56.852 GameMenuButtonEditMode:ameMenuFrame.xml:94_OnClick()
11/3 17:14:56.852 (for generator)()
> 11/3 17:14:56.852 An action was blocked because of taint from Huf - FocusUnit()
11/3 17:14:56.852 Interface/FrameXML/EditModeManager.lua:1522 Frame:RefreshTargetAndFocus()
11/3 17:14:56.852 Interface/FrameXML/EditModeManager.lua:1462 Frame:OnEditModeEnter()
11/3 17:14:56.852 Interface/FrameXML/EditModeManager.lua:171 EditModeManagerFrame:EnterEditMode()
11/3 17:14:56.852 Interface/FrameXML/EditModeManager.lua:193
11/3 17:14:56.852 EditModeManagerFrame:Show()
11/3 17:14:56.852 Interface/FrameXML/UIParent.lua:2844 Frame:SetUIPanel()
11/3 17:14:56.852 Interface/FrameXML/UIParent.lua:2648 Frame:ShowUIPanel()
11/3 17:14:56.852 Interface/FrameXML/UIParent.lua:2552
11/3 17:14:56.852 Frame:SetAttribute()
11/3 17:14:56.852 Interface/FrameXML/UIParent.lua:3150 ShowUIPanel()
11/3 17:14:56.852 GameMenuButtonEditMode:ameMenuFrame.xml:94_OnClick()
11/3 17:15:00.143 Global variable OBJECTIVE_TRACKER_UPDATE_REASON tainted by Huf - Interface/AddOns/Blizzard_ObjectiveTracker/Blizzard_ObjectiveTracker.lua:1408 ObjectiveTracker_Update()
11/3 17:15:00.143 Interface/FrameXML/EditModeSystemTemplates.lua:1777 ObjectiveTrackerFrame:ApplySystemAnchor()
11/3 17:15:00.143 Interface/FrameXML/EditModeSystemTemplates.lua:195 ObjectiveTrackerFrame:UpdateSystem()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:1021 EditModeManagerFrame:UpdateSystem()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:1014 EditModeManagerFrame:UpdateSystems()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:888 EditModeManagerFrame:UpdateLayoutInfo()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:1137 EditModeManagerFrame:RevertAllChanges()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:183 EditModeManagerFrame:ExitEditMode()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:205
11/3 17:15:00.143 EditModeManagerFrame:Hide()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:2828 Frame:SetUIPanel()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:2859 Frame:MoveUIPanel()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:2890 Frame:HideUIPanel()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:2556
11/3 17:15:00.143 Frame:SetAttribute()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:3170 HideUIPanel()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:122 onCloseCallback()
11/3 17:15:00.143 Interface/SharedXML/SharedUIPanelTemplates.lua:127
11/3 17:15:00.143 Button:Click()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:3980 ToggleGameMenu()
11/3 17:15:00.143 TOGGLEGAMEMENU:1
> 11/3 17:15:00.143 Execution tainted by Huf while reading OBJECTIVE_TRACKER_UPDATE_REASON - Interface/AddOns/Blizzard_ObjectiveTracker/Blizzard_ObjectiveTracker.lua:1431 ObjectiveTracker_Update()
11/3 17:15:00.143 Interface/FrameXML/EditModeSystemTemplates.lua:1777 ObjectiveTrackerFrame:ApplySystemAnchor()
11/3 17:15:00.143 Interface/FrameXML/EditModeSystemTemplates.lua:195 ObjectiveTrackerFrame:UpdateSystem()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:1021 EditModeManagerFrame:UpdateSystem()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:1014 EditModeManagerFrame:UpdateSystems()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:888 EditModeManagerFrame:UpdateLayoutInfo()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:1137 EditModeManagerFrame:RevertAllChanges()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:183 EditModeManagerFrame:ExitEditMode()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:205
11/3 17:15:00.143 EditModeManagerFrame:Hide()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:2828 Frame:SetUIPanel()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:2859 Frame:MoveUIPanel()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:2890 Frame:HideUIPanel()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:2556
11/3 17:15:00.143 Frame:SetAttribute()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:3170 HideUIPanel()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:122 onCloseCallback()
11/3 17:15:00.143 Interface/SharedXML/SharedUIPanelTemplates.lua:127
11/3 17:15:00.143 Button:Click()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:3980 ToggleGameMenu()
11/3 17:15:00.143 TOGGLEGAMEMENU:1
11/3 17:15:00.143 Interface/SharedXML/Pools.lua:63 Release()
> 11/3 17:15:00.143 An action was blocked because of taint from Huf - ClearTarget()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:1496 Frame:ResetTargetAndFocus()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:1479 Frame:OnEditModeExit()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:185 EditModeManagerFrame:ExitEditMode()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:205
11/3 17:15:00.143 EditModeManagerFrame:Hide()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:2828 Frame:SetUIPanel()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:2859 Frame:MoveUIPanel()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:2890 Frame:HideUIPanel()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:2556
11/3 17:15:00.143 Frame:SetAttribute()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:3170 HideUIPanel()
11/3 17:15:00.143 Interface/FrameXML/EditModeManager.lua:122 onCloseCallback()
11/3 17:15:00.143 Interface/SharedXML/SharedUIPanelTemplates.lua:127
11/3 17:15:00.143 Button:Click()
11/3 17:15:00.143 Interface/FrameXML/UIParent.lua:3980 ToggleGameMenu()
11/3 17:15:00.143 TOGGLEGAMEMENU:1
theres a few lines where it says it got blocked by Huf (name of my addon that contains all those scripts). I made the lines with the blocked error more visible.
TargetUnit()
FocusUnit()
ClearTarget()
these cause an error if i see this correctly. These lines are not in my code. Is this generally referring to targetframe, focusframe etc.? Does that mean solely trying to move/change those frames cause errors? Is there anything i can even do?
11/3 17:15:00.143 Execution tainted by Huf while reading OBJECTIVE_TRACKER_UPDATE_REASON - Interface/AddOns/Blizzard_ObjectiveTracker/Blizzard_ObjectiveTracker.lua:1431 ObjectiveTracker_Update()
Not sure what this means.
Stab in the dark (like I said, not my thing) but I’d try removing/commenting out these lines and see if that helps.
FocusFrameSpellBar.SetPoint = function() end
TargetFrameSpellBar.SetPoint = function() end
Didnt work sadly but i appreciate the effort. Maybe theres another way to move frames to a certain spot besides my code. I wonder how moveanything does it. Maybe i need to wait for an update although judging by the amount of frames that got changed in DF pre patch i think thats not gonna happen anytime soon
This help?
hooksecurefunc(FocusFrameSpellBar, "Show", FocusFrameSpellBar.Hide) FocusFrameSpellBar:Hide()
TargetFrameSpellBar:ClearAllPoints()
TargetFrameSpellBar:SetPoint("CENTER", 125, -62)
Are we just trying to hide the focus cast bar or?
FocusFrame.spellbar:SetAndUpdateShowCastbar(false)
If that ever causes taint, go with the hook option
1 Like
Thank you, elvenbane. This worked for focus spell bar. I have tested it a bunch now and it has not bugged out or caused any taint when entering editmode, so I think im good. My target spell did not move tho.
Brightness:
Are we just trying to hide the focus cast bar or?
FocusFrame.spellbar:SetAndUpdateShowCastbar(false)
If that ever causes taint, go with the hook option
Well, Im also trying to move my TargetFrameSpellBar, hide the FocusFrameToT and change the size of my FocusFrame overall.
my biggest concern is certainly getting this:
TargetFrameSpellBar:ClearAllPoints()
TargetFrameSpellBar:SetPoint("CENTER", 125, -62)
TargetFrameSpellBar.SetPoint = function() end
to work properly
system
(system)
closed
December 3, 2022, 7:35pm
15
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.