ZelionGG / XIV_Databar-Continued

Continuation of XIV_Databar addon
https://discord.gg/g7JZNGSU32
GNU General Public License v3.0
5 stars 3 forks source link

[Bug] HookScript is not allowed on LibQTip tooltips #23

Open Varezen opened 5 months ago

Varezen commented 5 months ago

Describe the bug Whenever I mouse over my current spec, I get this error message on Retail.

Message: :HookScript is not allowed on LibQTip tooltips Time: Mon Apr 29 15:25:39 2024 Count: 1 Stack: :HookScript is not allowed on LibQTip tooltips [string "@Interface/AddOns/XFaction/Library/LibQTip-1.0/LibQTip-1.0.lua"]:706: in function HookScript' [string "@Interface/AddOns/ElvUI/Core/General/Toolkit.lua"]:156: in functionSetTemplate' [string "@Interface/AddOns/XIV_Databar_Continued/Mainline/modules/talent.lua"]:40: in function SkinFrame' [string "@Interface/AddOns/XIV_Databar_Continued/Mainline/modules/talent.lua"]:826: in functionShowTooltip' [string "@Interface/AddOns/XIV_Databar_Continued/Mainline/modules/talent.lua"]:395: in function <...ns/XIV_Databar_Continued/Mainline/modules/talent.lua:388>

Locals: self = Frame { 0 = OnBackdropLoaded = defined @Interface/SharedXML/Backdrop.lua:152 GetBackdropColor = defined @Interface/SharedXML/Backdrop.lua:390 key = "TalentTooltip" SetBackdropBorderColor = defined @Interface/SharedXML/Backdrop.lua:422 template = "Transparent" scrollChild = Frame { } ApplyBackdrop = defined @Interface/SharedXML/Backdrop.lua:294 SetBackdrop = defined @Interface/SharedXML/Backdrop.lua:329 ClearBackdrop = defined @Interface/SharedXML/Backdrop.lua:282 cell_margin_h = 6 GetBackdropBorderColor = defined @Interface/SharedXML/Backdrop.lua:409 labelProvider =

{ } height = 104.843132 SetBorderBlendMode = defined @Interface/SharedXML/Backdrop.lua:266 regularFont = GameTooltipText { } layoutType = "TooltipDefaultLayout" headerFont = GameTooltipHeaderText { } SetupTextureCoordinates = defined @Interface/SharedXML/Backdrop.lua:214 OnBackdropSizeChanged = defined @Interface/SharedXML/Backdrop.lua:182 HasBackdropInfo = defined @Interface/SharedXML/Backdrop.lua:278 scrollFrame = ScrollFrame { } GetEdgeSize = defined @Interface/SharedXML/Backdrop.lua:188 NineSlice = Frame { } colspans =
{ } TooltipBackdropOnLoad = defined @Interface/SharedXML/SharedTooltipTemplates.lua:275 width = 298.810471 GetBackdrop = defined @Interface/SharedXML/Backdrop.lua:347 lines =
{ } SetupPieceVisuals = defined @Interface/SharedXML/Backdrop.lua:246 SetBackdropColor = defined @Interface/SharedXML/Backdrop.lua:399 cell_margin_v = 3 columns =
{ } } geterrorhandler = defined =[C]:-1

To Reproduce Steps to reproduce the behavior: I simply mouse over my current active talent and that pops up?

Expected behavior A clear and concise description of what you expected to happen.

Not this error.

XIV_Databar Continued Version Which version of XIV_Databar Continued are you using ? Whatever is current. I downloaded it for the first time yesterday.

ZelionGG commented 2 months ago

Hi, is this bug still happening ? I can't reproduce it.

Thank you for the feedback.

DrPosty commented 2 months ago

Hi! I am also getting the LuaError: HookScript is not allowed on LibQTip tooltips but only occurs when I hover the socials module. Posting full LuaError message below:

Message: :HookScript is not allowed on LibQTip tooltips Time: Sun Aug 11 13:58:04 2024 Count: 1 Stack: :HookScript is not allowed on LibQTip tooltips [string "@Interface/AddOns/XIV_Databar_Continued/Mainline/modules/micromenu.lua"]:567: in function <...XIV_Databar_Continued/Mainline/modules/micromenu.lua:533>

Locals: tooltip = Frame { key = "SocialToolTip" template = "Transparent" scrollChild = Frame { } cell_margin_h = 6 labelProvider =

{ } height = 2 regularFont = GameTooltipText { } layoutType = "TooltipDefaultLayout" headerFont = GameTooltipHeaderText { } scripts =
{ } scrollFrame = ScrollFrame { } NineSlice = Frame { } colspans =
{ } width = 6 lines =
{ } cell_margin_v = 3 columns =
{ } } xb =
{ defaults =
{ } modules =
{ } baseName = "XIV_Databar_Continued" fontFlags =
{ } defaultModuleState = true frames =
{ } miniTextPosition = "TOP" db =
{ } enabledState = true Changelog =
{ } name = "XIV_Databar_Continued" orderedModules =
{ } LSM =
{ } constants =
{ } timerRefresh = true defaultModuleLibraries =
{ } L =
{ } } self =
{ modules =
{ } baseName = "XIV_Databar_Continued" bgTexture =
{ } icons =
{ } defaultModuleState = true microMenuFrame = Micromenu { } gtipHover = false frames =
{ } iconSize = 27 enabledState = true defaultModuleLibraries =
{ } tipHover = false text =
{ } name = "XIV_Databar_Continued_MenuModule" mediaFolder = "Interface\AddOns\XIV_Databar_Continued\media\microbar\" orderedModules =
{ } LTip =
{ } modifier = "SHIFT" socialIcons =
{ } functions =
{ } modifiers =
{ } menuWidth = 0 moduleName = "MenuModule" } MenuModule =
{ modules =
{ } baseName = "XIV_Databar_Continued" bgTexture =
{ } icons =
{ } defaultModuleState = true microMenuFrame = Micromenu { } gtipHover = false frames =
{ } iconSize = 27 enabledState = true defaultModuleLibraries =
{ } tipHover = false text =
{ } name = "XIV_Databar_Continued_MenuModule" mediaFolder = "Interface\AddOns\XIV_Databar_Continued\media\microbar\" orderedModules =
{ } LTip =
{ } modifier = "SHIFT" socialIcons =
{ } functions =
{ } modifiers =
{ } menuWidth = 0 moduleName = "MenuModule" } L =
{ Show XP Bar Below Max Level = "Show XP Bar Below Max Level" Right = "Right" Second Currency = "Second Currency" Cleaned = "Cleaned" Currency Select = "Currency Select" Enable Loadout Switcher = "Enable Loadout Switcher" Left-Click = "Left-Click" Bottom = "Bottom" Whisper BNet = "Whisper BNet" Show Pets Button = "Show Pets Button" Use Server Time = "Use Server Time" Hide Event Text = "Hide Event Text" Addons to Show in Tooltip = "Addons to Show in Tooltip" Open Artifact = "Open Artifact" Hide order hall bar = "Hide order hall bar" Hide BNet App Friends = "Hide BNet App Friends" Show Character Button = "Show Character Button" Local Time = "Local Time" Master Volume = "Master Volume" Whisper Character = "Whisper Character" Ready = "Ready" Hide Bar in combat = "Hide Bar in combat" Durability Warning Threshold = "Durability Warning Threshold" Use Class Colors for XP Bar = "Use Class Colors for XP Bar" Bar Position = "Bar Position" Use Class Color for Text = "Use Class Color for Text" Module Spacing = "Module Spacing" Show Chat Button = "Show Chat Button" Empty Hearthstones List = "If you see an empty list, /reload your UI a few seconds after the initial loading (Blizzard is loading items informations asynchronously so that's the only solution for now)." Modifier for friend invite = "Modifier for friend invite" Changelog = "Changelog" Bar Color = "Bar Color" Icon Spacing = "Icon Spacing" %month%-%

ZHumphries commented 1 month ago

confirm this is happening on a clean profile for me.

ZelionGG commented 1 month ago

That's a really strange bug that I can't reproduce on my end, I might need to gather more informations on the addons you have installed, or maybe even get an export of your XIV Databar profile...

Nightshadow-hub commented 1 month ago

I tested it disabling addons one at a time and it seems to only occur with elvui, at least for me

ZelionGG commented 1 month ago

Yeah this bug is basically caused by the ElvUI skinning of tooltips. But I can't figure out how to trigger this error...

liqdfire commented 1 week ago

Yeah this bug is basically caused by the ElvUI skinning of tooltips. But I can't figure out how to trigger this error...

It looks like it is a race condition, where in VIX_Databar is attempting to perform some action and ElvUI has not created the tooltip yet. I get the error the first time I cursor over one of the panels in XIV_Databar but once I dismiss the error I do not get it again for that panel.

Right now my workaround is to cursor over all of the panels in VIX_Database when I first load in and close the errors.

I have the latest version of ElvUI, Plater, and XIV_Databar and I use the profiles from Oakensoul from this yt video: https://www.youtube.com/watch?v=v0wl4V0KXhI