Custom tag messed the entire addon up #1451


  • Defect
Open
  • Forge_User_79045931 created this issue Jun 11, 2020

    Hi,

     

    Recently I was playing around with creating a custom tag that I named "incabsorbheal". I tested it on the player frame and it worked fine. I applied it to the target, party and focus frames as well. I unlocked the frames so that I could see if it worked there as well. It didn't work on the other frames and instead just showed "[incabsorbheal]" instead of the value that the tag should have returned (it still worked on the player frame). I made a few changes to the tag and reloaded the UI by logging out and back in. It still didn't work and now was unable to show other values such as their name where it instead just showed "unknown" and it showed that everyone was offline (the frames are still unlocked). I tried to open the suf options up again by writing "/suf" in chat but it doesn't open the options menu. When I press enter when "/suf" is in chat, it does nothing. The "/suf" continues to stay in the chat and the options menu doesn't open. There's no error message. I've tried disabling all other addons but it didn't work. I would like to avoid deleting my user settings for the addon since I've made quite a lot of changes to the default UI by now and would hate to lose that work. I'm hoping for a solution where I'm able to delete the custom tag without using the options menu which hopefully would stop the addon from bugging out.

     

    If it is of interested, here's the code for the custom tag (I didn't have a backup of the version that messed it up so some of it is from memory - and I might be remembering wrong):

     

    function(unit, unitOwner)
       local absorb = UnitGetTotalAbsorbs(unit)
       local heal = UnitGetIncomingHeals(unit)
       local maxHealth = UnitHealthMax(unit)

       local healText = ShadowUF:FormatLargeNumber(heal)
       local absorbText = ShadowUF:FormatLargeNumber(absorb)
       local text = ""
       if heal > 0 then text = "H: " .. healText elseif absorb > 0 then text = "A: " .. absorbText end

       return text
    end

     

    The custom tag is meant to show "H: [healing amount]" when they're being healed where [healing amount] is the amount the player is about to be healed. If they're not being healed then it shows "A: [absorb amount]" when they can absorb damage. If they can't absorb damage, it should show nothing.

     

    Edit: After writing this I've realized that this "Issues" page isn't as much of a customer support thing as I was hoping - at least it seems that way considering I've looked through a lot of other issues submitted by other users and none of those got a response from the developer. I guess I'll just delete my user settings to fix this problem. Hopefully, this issue will be addressed in a later patch because I'll definitely avoid the custom tag feature in the future because of this which is a bit of a shame since I now can't get the UI that I was hoping for.

     
  • Forge_User_79045931 added a tag Defect Jun 11, 2020

To post a comment, please login or register a new account.