Thread Tools Display Modes
11-19-10, 12:16 PM   #1
Tobbe8716
An Aku'mai Servant
 
Tobbe8716's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 36
Raid problem

Im having this odd problem with the raidframes (and party using them for both). When I join a raid sometimes or someone new joins they may create a double of the previous player like this, mostly a player clones me but it happens to other players to. It goes away and the right name appear if I reload or just take up fullscreen map ...



Btw hovering arp with 35k with is a mage in this case as you see on the tt and not a double me :P

EDIT: It came with the patch, didnt happen before
__________________
Arp UI oUF_Arp
  Reply With Quote
11-19-10, 02:36 PM   #2
Monolit
A Black Drake
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 81
I also noticed that problem lately. That usually happens only when some player is d/c out of range or something like that. For some reason tags with 'UNIT_HEALTH' and 'UNIT_NAME_UPDATE' events do not properly update.

It's pretty easy to fix though, just force frequent update on the text region with that tag, e.g.: n.frequentUpdates = 0.5 (0.5 should be enough and not too much to affect unit frames' performance)

I guess it's not the best way (sort of hackish) to do this performance wise, but so far it's the only one I managed to figure out to get rid of that weird behavior.

EDIT: or wait actually never mind ^^
just noticed another topic about this issue:
http://www.wowinterface.com/forums/s...ad.php?t=36869

so I guess updating TagEvents to 'UNIT_NAME_UPDATE UNIT_CONNECTION' should help

Last edited by Monolit : 11-19-10 at 03:08 PM.
  Reply With Quote
11-19-10, 03:16 PM   #3
Tobbe8716
An Aku'mai Servant
 
Tobbe8716's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 36
seems to be working to early to tell anyways ty!
__________________
Arp UI oUF_Arp
  Reply With Quote
11-19-10, 03:41 PM   #4
Tobbe8716
An Aku'mai Servant
 
Tobbe8716's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 36
or not... tho its seems to maybe be tag related, gonna check them over tomorrow.
__________________
Arp UI oUF_Arp
  Reply With Quote
11-20-10, 08:08 AM   #5
Tobbe8716
An Aku'mai Servant
 
Tobbe8716's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 36
Solved it I think

It was the "Tag" if you call it that on the raid.
Code:
"oUF_Raid", nil, 'custom  [group:party,nogroup:raid40] show;hide',
Replaced it with
Code:
'oUF_Raid', nil, 'solo,party,raid,raid10,raid25,raid40'
works fine atm
__________________
Arp UI oUF_Arp

Last edited by Tobbe8716 : 11-20-10 at 10:09 AM.
  Reply With Quote
11-20-10, 08:22 AM   #6
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Going to try it, but i have the same problem with party also
  Reply With Quote
11-20-10, 09:13 AM   #7
Toran
A Nerdscale Dorkin
 
Toran's Avatar
Premium Member
Join Date: May 2006
Posts: 143
Ooh this is helpful. Noticed the same thing, will try.
  Reply With Quote
11-20-10, 01:25 PM   #8
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Hmm but doing solo will give you group in raid groups where you are solo in that group. Which is really bad if you have different party and raid layout and only want to have one of them at a time appear.

I think this is a bug. You get this in party aswell when at the end of a dungeon. People leave the instance. You had 5 people in the group. 3 leave. The one that stays does not get changed properly. Unitframes state him as Paladin ABC but he is Hunter XYZ. Normally you would catch that by adding "PARTY_MEMBERS_CHANGED" and "RAID_ROSTER_CHANGED" event to tags. But they provide no "unit" as an argument afaik. So not sure if you can add those to the tags. Bad.

http://wowprogramming.com/docs/event...EMBERS_CHANGED
http://wowprogramming.com/docs/event..._ROSTER_UPDATE

If there is any possibility of adding those to the tag event list I think we can fix that.

I for myself only have "party" in the visibility argument for my party header spawn and "raid" for my raid header spawn. I think the unitID and updates correctly. Because once you have hover the unit and the tooltip is correct. I think it's just the tag not getting activated.

What I think is the bug is that UNIT_NAME_UPDATE doesn't get fired. If that one would be activated the unitname would update correctly.

http://wowprogramming.com/docs/events/UNIT_NAME_UPDATE

Workaround that could work is registering the roster_update and the party_members_changed to the header unit self objects and once they get fired call the specific tag with self.unit. That may work.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 11-20-10 at 01:44 PM.
  Reply With Quote
11-20-10, 01:36 PM   #9
Tobbe8716
An Aku'mai Servant
 
Tobbe8716's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 36
Originally Posted by zork View Post
Hmm but doing solo will give you group in raid groups where you are solo in that group. Which is really bad if you have different party and raid layout and only want to have one of them at a time appear.

I think this is a bug. You get this in party aswell when at the end of a dungeon. People leave the instance. You had 5 people in the group. 3 leave. The one that stays does not get changed properly. Unitframes state him as Paladin ABC but he is Hunter XYZ. Normally you would catch that by adding "PARTY_MEMBERS_CHANGED" and "RAID_ROSTER_CHANGED" event to tags. But they provide no "unit" as an argument afaik. So not sure if you can add those to the tags. Bad.

http://wowprogramming.com/docs/event...EMBERS_CHANGED
http://wowprogramming.com/docs/event..._ROSTER_UPDATE

If there is any possibility of adding those to the tag event list I think we can fix that.
I learned everything I know about lua on my own by editing addons and layouts so I dont really know what stuff is called . Anyways its gone now.
__________________
Arp UI oUF_Arp

Last edited by Tobbe8716 : 11-20-10 at 01:38 PM.
  Reply With Quote
11-20-10, 01:45 PM   #10
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Well not for me, I have the problem and I use no fancy custom filters on the visibility argument.

Party header
Code:
    local party = oUF:SpawnHeader(
      "oUF_DiabloPartyHeader", 
      nil, 
      "party",        --visibility debug
      "showSolo",     false, --debug
      "showParty",    true,
      "showPlayer",   true,
      "showRaid",     false,
      "point",        "LEFT",
      "oUF-initialConfigFunction", ([[
        self:SetWidth(%d)
        self:SetHeight(%d)
        self:SetScale(%f)
      ]]):format(128, 64, cfg.units.party.scale)
    )
raid header
Code:
    local raid = oUF:SpawnHeader(
      "oUF_DiabloRaidHeader", --name
      nil,
      "raid",               --visibility debug
      "showSolo",           false,
      "showParty",          false,
      "showRaid",           true,
      "point",              attr.point,
      "yOffset",            attr.yOffset,
      "xoffset",            attr.xoffset,
      "groupFilter",        "1,2,3,4,5,6,7,8",
      "groupBy",            "GROUP",
      "groupingOrder",      "1,2,3,4,5,6,7,8",
      "sortMethod",         "NAME",
      "maxColumns",         attr.maxColumns,
      "unitsPerColumn",     attr.unitsPerColumn,
      "columnSpacing",      attr.columnSpacing,
      "columnAnchorPoint",  attr.columnAnchorPoint,
      
      "oUF-initialConfigFunction", ([[
        self:SetWidth(%d)
        self:SetHeight(%d)
        self:SetScale(%f)
      ]]):format(64, 64, cfg.units.raid.scale)
    )
If I add "solo,party" to party and "solo,party,raid" to raidheader I get a bug.

Once I'm the only person in my group both headers will get spawned.



As soon as more that one is in my group the party header disappears.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 11-20-10 at 01:55 PM.
  Reply With Quote
11-20-10, 03:59 PM   #11
Tobbe8716
An Aku'mai Servant
 
Tobbe8716's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 36
I only use the raidframes btw, removed all partyframes and use the raid for party aswell.

The code if it helps

Code:
if cfg.RaidandParty then	
CompactRaidFrameManager:UnregisterAllEvents()
CompactRaidFrameManager:Hide()
CompactRaidFrameContainer:UnregisterAllEvents()
CompactRaidFrameContainer:Hide()	
	
	self:SetActiveStyle"Arp - Raid"
	local raid = self:SpawnHeader('oUF_Raid', nil, 'solo,party,raid,raid10,raid25,raid40',	
	'showParty', true,
	'showRaid', true, 
	'showPlayer', true,
	'groupFilter', '1,2,3,4,5,6,7,8',
	'groupingOrder', '1,2,3,4,5,6,7,8',
	'groupBy', 'GROUP',
	'maxColumns', cfg.columns,
	'unitsPerColumn', 5,
	'column', 4,
	'columnAnchorPoint', "BOTTOM",
	'columnSpacing', -4,
	'yoffset', 0,
	'xoffset', -4,
	'point', 'RIGHT',
	'oUF-initialConfigFunction', ([[
			self:SetWidth(%d)
			self:SetHeight(%d)
    ]]):format(cfg.widthR, cfg.heightR + cfg.NumbFS + cfg.PPyOffset))
	--raid:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 150)	
	raid:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", cfg.raidxpos, cfg.raidypos)	
end
__________________
Arp UI oUF_Arp

Last edited by Tobbe8716 : 11-20-10 at 04:23 PM.
  Reply With Quote
11-20-10, 04:16 PM   #12
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
This can't be the way to go, anyway. Visibility is there to be used, not to be abused to workaround something else.

I'll see if this happens for me, too.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
11-20-10, 04:23 PM   #13
Tobbe8716
An Aku'mai Servant
 
Tobbe8716's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 36
Anyhow added to old
Code:
"oUF_Raid", nil, 'custom  [group:party,nogroup:raid40] show;hide'
again and the bugg appeared instantly and I got a clone of myslef in the raid so for me atleast it was the old "custom" thingie.
__________________
Arp UI oUF_Arp
  Reply With Quote
11-20-10, 04:29 PM   #14
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
What kind of tag is that? The "veryshortname" tag from Nivea?
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
11-20-10, 04:32 PM   #15
Tobbe8716
An Aku'mai Servant
 
Tobbe8716's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 36
Originally Posted by Dawn View Post
What kind of tag is that? The "veryshortname" tag from Nivea?
A very short name. Needed a shorter name for tot , pet and ft. Btw where did you see that?

Code:
oUF.Tags["veryshortname"] = function(unit)
		local name = UnitName(unit)
		return utf8sub(name, 3, false)
	end
oUF.TagEvents["veryshortname"] = "UNIT_NAME_UPDATE"
__________________
Arp UI oUF_Arp
  Reply With Quote
11-20-10, 04:38 PM   #16
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
I just removed that tag yesterday as "left-over-code" in oUF_Slim. That 3 letter name, looked familiar.

Anyway, anyone tried using a tag that does update on more events than just "UNIT_NAME_UPDATE"? That might fix it, too.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
11-20-10, 05:09 PM   #17
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
Most of my names tags goes with a "UNIT_HEALTH UNIT_MAXHEALTH" update, never had any problem with that. Didn't try it recently though.
  Reply With Quote
11-20-10, 09:10 PM   #18
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Maybe it's just at the end of an instance when all have 100% hp, someone leaves and the units are already creates. So no unit_health gets fires. But the name should update but doesn't.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
11-20-10, 10:07 PM   #19
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
It is not just at the end of an instance. I have seen this at start of Battlegrounds as well. During the start period everyone is at max health, and when 1 person leaves and another joins the names can get a little mixed up.
  Reply With Quote
11-21-10, 07:06 AM   #20
Monolit
A Black Drake
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 81
tested it today again and well
It does seem to be 'UNIT_NAME_UPDATE' event bug.
And as I mentioned in my previous post there are 2 ways of fixing it:
1) by adding .frequentUpdates = 0.5 to the name field (although I thought that should not work as tag is not updated when we fire update on the name field... but it does oO)
2) by adding additional events to the .TagEvents like 'UNIT_HEALTH UNIT_MAXHEALTH'

now I wonder which way is more efficient?
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Raid problem


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off