WeakAuras

WeakAuras

206M Downloads

Tracking Absorb Values from Tooltips

husskhash opened this issue ยท 20 comments

commented

Is there an existing issue for this?

  • I have searched the existing open and closed issues.

Description

Sometimes when I get a buff with an absorb, instead of getting the absorb value from tooltip1 it gives me the initial duration. Happens randomly, sometimes it works fine and sometimes it doesn't. I feel this has only been happening since DF launch. This happens like 10-20% of the time, and mostly on absorbs applied to you by other people (like Mass Barrier or Temporal Anomoly)

I put an example (in the string below) of one of my absorb weakauras, molten blood from blistering scales augmentation. This happens to all of them. I tried using custom code for the text as well as tooltip1 text, both the same issue.

WeakAuras Version

Weakauras 5.7.1

World of Warcraft Flavor

Retail (Default)

World of Warcraft Region

EU

Tested with only WeakAuras

  • Yes

Lua Error

No response

Reproduction Steps

Apply, or apply any absorption effect, such as molten blood from the string below. Sometimes it will give you the tooltip value, sometimes it gives you the initial duration

Last Good Version

No response

Screenshots

Capture
capture2

Export String

!WA:2!TI1wWT1rDFuC7KI7mLehAieOKfxQXEWrXsoYjT8vMXswoXT(2ijx32x052kD26Jo7P7UhzRqOqnqjZWWdvdp0HNy089epQNPdGHzGY1TIYtuUmgMwEJzYd8m)3Dps2oooUtcQns71F)VFzDQ5hPXiEJ4DRl2H4sdltJzU4p7hZzt760fMR9l0y(C1A69YZ0XnMlOnQG3sS1jENAXHUccnC8jggbFi1q2Xm7Q4WMP5cBbgj8XH6TuFcOU2bOq7gy0ZIgD07yDBhoL5a7CqislO0abjkdIY2)LoeTshhsefS5cmdzh6HcPc0AWslWvFp(rE4jrJgfy3cZgDIdYUQpjm76m7iLiVqybAaLvG6HhhT(Svxtu7QLJDUtWD1aVmC3jrZmXKiooa7kg)YtIUgwuiWMZ1WmEY6zNuZO6noA(Cc4dAIbChgeXKp3dDcpcheSGNwHCeB9SplkZtp1LZnZD7qjk)ShwZCmMRSOlErs9qkdJISjHiFBoklkmUHdMXrWcEyUlJeP8E2Vmn8HX3m41uUmhKfRrznSflAZQJxwd84MZoHYvXmCaCmSiMfQTNtU)9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(EV4)n
commented

What does %tooltip do in those circumstances?

commented

image

after restart wow, first top line is

function()
    if aura_env.state and type(aura_env.state.points) == "table" then
        return ("%s - %s"):format(aura_env.state.points[1] or "", aura_env.state.points[2] or "")
    end
end

Is this the value of 95557 or the 36 - 4?

commented

What does %tooltip do in those circumstances?

%1.tooltip1 or %1.tooltip2 (depending on the tooltip of the absorb) to extract the absorb value.

I have tried both the above, as well as whats existing on the WA with a custom text:

function()
    if aura_env.state then
        local name = ""
        local absorb = aura_env.state.tooltip1 or ""
        if aura_env.state.unitCaster and not UnitIsUnit(aura_env.state.unitCaster, "player") then
            name = WrapTextInColorCode( WA_Utf8Sub(aura_env.state.casterName, 6), select(4, GetClassColor(select(2, UnitClass(aura_env.state.unitCaster)))) )
        end        
        if aura_env.state.spellId and aura_env.state.spellId == 190456 and aura_env.state.tooltip2 then
            absorb = aura_env.state.tooltip2 --ignore pain has 2 numbers in description
        end
        absorb = absorb ~= "" and aura_env.formatLargeNumber(absorb) or absorb
        return name, absorb
    end
end

And using %c2. Both have the same issues.

commented

I'm specifally interested what %tooltip shows in the two cases where it works and where it doens't.

commented

I'm specifally interested what %tooltip shows in the two cases where it works and where it doens't.

Apologies, misunderstood. If you look at the screenshots attached, what should be happening is the absorb value where the molten blood buff shows 82K. What happens sometimes is the other screenshot where it shows the initial duration of the buff which is wrong, on the screenshot that number is 38.

commented

I fully understand the issue, but if you can't answer a question for further information, there's little point in trying top figure this out.

So please add %tooltip to your aura and make a screenshot showing it in the buggy and in the working state.

commented

Another point, with the testing I am doing at the moment for this specifc aura, it happens mostly when I reload/login.

But there have been multiple instances in a raid/dungeon environment when it happens as well.

commented

Apologies.

When I do %tooltip, the entire tooltip is returned (as expected and shown on the attached)

But then also, it shows 38 seconds remaining on a different instance.

Capture
caputre2

commented

In the top right corner where blizzard shows the buffs, what does the full tooltip show? I'm guessing it simply doesn't contain a line for the absorb amount after login.

commented

Also, if its relevant, bugsack and buggrabber are not showing any bugs

commented

WoWScrnShot_092223_125720

Just tested, both instances, where it bugged and it didn't it showed this tooltip

commented

One more thing - if it bugs and I open WA options and close, its 'fixed'

commented

After importing and changing texts with %tooltip1 - %tooltip2 on top, and %tooltip bottom i got this

image

but i have a hard time reproduce with /reload and re-login

image

i managed to repro once more by closing client and restart wow

commented

After importing and changing texts with %tooltip1 - %tooltip2 on top, and %tooltip bottom i got this

image

but i have a hard time reproduce with /reload and re-login

image

i managed to repro once more by closing client and restart wow

Yes, seems to be quite random. I reproduce it when I login to another character and log back in to this character. But again, this happens in other situations, I could be in a raid where I have Life cocoon and temporal anomaly on me, the life cocoon correctly shows the tooltip value and but the temporal anomaly doesn't.

commented

image

after restart wow, first top line is

function()
    if aura_env.state and type(aura_env.state.points) == "table" then
        return ("%s - %s"):format(aura_env.state.points[1] or "", aura_env.state.points[2] or "")
    end
end
commented

Proper solution will be to save data.dataInstanceID from C_TooltipInfo.GetUnitBuffByAuraInstanceID, then use TOOLTIP_DATA_UPDATE event to update auras with matching dataInstanceID

commented

Proper solution will be to save data.dataInstanceID from C_TooltipInfo.GetUnitBuffByAuraInstanceID, then use TOOLTIP_DATA_UPDATE event to update auras with matching dataInstanceID

amazing that there is a solution. Unfortunately I am not a LUA expert and I don't really know how to implement it in my WA. Does this mean you also know why it can't read the tooltip sometimes?

commented

My comment wasn't aimed at you, please don't close ticket before issue is resolved.

commented

My comment wasn't aimed at you, please don't close ticket before issue is resolved.

I accidentally did, my bad

commented

This should be fixed for the next release.