Twintop / TwintopInsanityBar

Twintop's Resource Bar (formerly Twintop's Insanity Bar), a multi-class resource addon for World of Warcraft
MIT License
12 stars 7 forks source link

Resource values not updating correctly #407

Closed KareiTV closed 1 month ago

KareiTV commented 1 month ago

The resourcevalues (Eclipsetime on the middle text and Astralpower on the right text) don't update correctly as soon as I reach the first bar of Starsurge. Whenever it's below that value the entire module works perfectly. Any idea what's causing this since this is only noticeable on the Moonkin module. For Shadow and Elemental I have not had this occur.

Twintop commented 1 month ago

Thanks for reporting @KareiTV ! This usually happens if there's a Lua error somewhere. If you don't have an easy way of getting the Lua error (assuming there is one), can you instead share your current talent loadout with me, please? Also, if possible, an export of your Balance settings?

image
KareiTV commented 1 month ago

This is the error it generated. Buggrabber was going mental ...nterface/AddOns/TwintopInsanityBar/Functions/Bar.lua:113: bad argument #1 to 'SetAlpha' (Usage: self:SetAlpha(alpha)) [01:06:08] [string "=[C]"]: in function SetAlpha' [string "@Interface/AddOns/TwintopInsanityBar/Functions/Bar.lua"]:113: in functionPulseFrame' [string "@Interface/AddOns/TwintopInsanityBar/ClassModules/Druid.lua"]:2750: in function <...ace/AddOns/TwintopInsanityBar/ClassModules/Druid.lua:2462> [string "@Interface/AddOns/TwintopInsanityBar/ClassModules/Druid.lua"]:4622: in function TriggerResourceBarUpdates' [string "@Interface/AddOns/TwintopInsanityBar/Init.lua"]:226: in functiononUpdate' [string "@Interface/AddOns/TwintopInsanityBar/ClassModules/Druid.lua"]:3880: in function <...ace/AddOns/TwintopInsanityBar/ClassModules/Druid.lua:3880> [01:06:08] (temporary) = TwintopResourceBarFrame { PixelSnapDisabled = true Center = Texture { } RightEdge = Texture { } backdropInfo =

{ } BottomEdge = Texture { } BottomLeftCorner = Texture { } BottomRightCorner = Texture { } TopEdge = Texture { } TopRightCorner = Texture { } TopLeftCorner = Texture { } LeftEdge = Texture { } } (temporary) = Infinite

This is the talent loadout:

CYGAqvgeoHLefPLb/Pa8nkKXDBAAAAAAAAAAAAAAAAAAQxMzMjZ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MjAiLCJmbGFzaFBlcmlvZCI6MCwiZmxhc2hTc0VuYWJsZWQiOnRydWUsInBhc3NpdmUiOiJGRjAwNjYwMCIsIm1vb25raW5Gb3JtTWlzc2luZyI6IkZGRkYwMDAwIiwiY2FzdGluZyI6IkZGRkZGRkZGIiwiZmxhc2hBbHBoYSI6MC43LCJiYWNrZ3JvdW5kIjoiNjYwMDAwMDAiLCJiYXNlIjoiRkZGRjdDMEEiLCJsdW5hciI6IkZGMTQ0RDcyIn19LCJyZXNvdXJjZVByZWNpc2lvbiI6MCwib3ZlcmNhcCI6eyJtb2RlIjoiZml4ZWQiLCJmaXhlZCI6MTAwLCJyZWxhdGl2ZSI6MH0sImhhc3RlUHJlY2lzaW9uIjoyLCJlbmRPZkVjbGlwc2UiOnsiZW5hYmxlZCI6dHJ1ZSwiY2VsZXN0aWFsQWxpZ25tZW50T25seSI6ZmFsc2UsIm1vZGUiOiJ0aW1lIiwidGltZU1heCI6MywiZ2Nkc01heCI6Mn0sImJhciI6eyJ4UG9zIjowLCJzaG93UGFzc2l2ZSI6dHJ1ZSwiYm9yZGVyIjowLCJ3aWR0aCI6MzQ4LCJzaG93Q2FzdGluZyI6dHJ1ZSwiaGVpZ2h0IjozNCwieVBvcyI6LTE3OCwicGluVG9QZXJzb25hbFJlc291cmNlRGlzcGxheSI6ZmFsc2UsImRyYWdBbmREcm9wIjpmYWxzZX19fX0=

Twintop commented 1 month ago

OK, I've found the source of the problem. The good news is you can adjust it without me needing to get a proper fix out. It looks like the flash period for Starsurge is set to 0, which is leading to a divide by 0 error under the hood. If you change this to some other value you should be OK. image

I'll get a fix out to sanity check this and prevent it from being 0.

KareiTV commented 1 month ago

Absolute legend! That did indeed solve the problem alright. Was wondering why it only showed up on this specific loadout and not another. Many thanks!