Thread Tools Display Modes
09-04-12, 04:03 PM   #1
Glauck
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 7
Show 5-man raid as party

(mod note: split from oUF topic)

Hello,
I'am trying to do the same thing for the basic party UI. Someone of you know how to do that ?
Thanks for replys!

Last edited by Haleth : 09-04-12 at 04:59 PM.
  Reply With Quote
09-05-12, 01:28 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
This?
http://www.wowinterface.com/download...yFrameFix.html
__________________
| 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
09-05-12, 01:55 AM   #3
Glauck
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 7
Seems to be something like this yes. Is it outdated for you too ?
  Reply With Quote
09-05-12, 02:07 AM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Most addons do not actually need updates every patch. The game automatically disables them after a patch, but you can re-enable them very easily:

1. On the character selection screen, click the "AddOns" button in the lower left corner.
2. At the top of the addon list, check the box labeled "Load out of date AddOns".
3. Click the "Okay" button at the bottom of the addon list.
4. Log in.

If you have enabled out-of-date addons, and the addon still doesn't work:

1. Open the Interface Options window.
2. Click the Game tab.
3. Click the Help entry in the left-side panel.
4. Check the box labeled "Display Lua Errors".
5. Click the "Okay" button.

Now reload your UI (type "/reload"). If an error message pops up on your screen, copy it, and paste it here.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
09-05-12, 02:45 AM   #5
Glauck
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 7
Hi, first thanks you so much details !
Then, my BugSack get this error :
Code:
16x Perry Party Frames\Perry Party Frames.lua:3: attempt to call global "GetPartyMember" (a nil value)
Perry Party Frames\Perry Party Frames.lua:3: in function "PartyMemberFrame_UpdateMember"
FrameXML\PartyMemberFrame.lua:345: in function "PartyMemberFrame_OnEvent"
<string>:"*:OnEvent":1: in function "OnEvent"
FrameXML\UnitFrame.lua:489: in function <FrameXML\UnitFrame.lua:487>

Locals:
self = PartyMemberFrame1 {
 0 = <userdata>
 portrait = PartyMemberFrame1Portrait {}
 statusSign = -1
 unit = "party1"
 menu = <func> @FrameXML\PartyMemberFrame.lua:106
 MAPoint = <table> {}
 MALockPointHook = true
 notPresentIcon = PartyMemberFrame1NotPresentIcon {}
 SetPoint = <func> =[C]:-1
 MAWasMovable = true
 threatIndicator = PartyMemberFrame1Flash {}
 statusCounter = 0
 healthbar = PartyMemberFrame1HealthBar {}
 MAHooked = true
 manabar = PartyMemberFrame1ManaBar {}
 MAScaled = 1.2962946891785
 unitHPPercent = 1
 OnEvent = <func> *:OnEvent:1
 state = "player"
 myHealPredictionBar = PartyMemberFrame1MyHealPredictionBar {}
 noTextPrefix = true
 debuffCountdown = 0
 MAE = <table> {}
 numDebuffs = 0
 otherHealPredictionBar = PartyMemberFrame1OtherHealPredictionBar {}
 name = PartyMemberFrame1Name {}
}
event = "GROUP_ROSTER_UPDATE"
arg1 = nil
arg2 = nil
arg3 = nil
selfID = 1
unit = "party1"
unitPet = "partypet1"
speaker = PartyMemberFrame1SpeakerFrame {
 0 = <userdata>
}
Hope it will help !
  Reply With Quote
09-05-12, 04:57 AM   #6
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Just a second...

Replace the function with
Lua Code:
  1. function PartyMemberFrame_UpdateMember (self)
  2.     local id = self:GetID();
  3.     if ( UnitExists("party"..id) ) then
  4.         self:Show();
  5.  
  6.         UnitFrame_Update(self);
  7.  
  8.         local masterIcon = _G[self:GetName().."MasterIcon"];
  9.         local lootMethod;
  10.         local lootMaster;
  11.         lootMethod, lootMaster = GetLootMethod();
  12.         if ( id == lootMaster ) then
  13.             masterIcon:Show();
  14.         else
  15.             masterIcon:Hide();
  16.         end
  17.     else
  18.         self:Hide();
  19.     end
  20.     PartyMemberFrame_UpdatePet(self);
  21.     PartyMemberFrame_UpdatePvPStatus(self);
  22.     RefreshDebuffs(self, "party"..id, nil, nil, true);
  23.     PartyMemberFrame_UpdateVoiceStatus(self);
  24.     PartyMemberFrame_UpdateReadyCheck(self);
  25.     PartyMemberFrame_UpdateOnlineStatus(self);
  26.     PartyMemberFrame_UpdateNotPresentIcon(self);
  27.     UpdatePartyMemberBackground();
  28. end

In the toc file just replace 40000 with 50001.
__________________
| 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 : 09-05-12 at 05:05 AM.
  Reply With Quote
09-05-12, 05:23 AM   #7
Glauck
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 7
Waaaw, the addon works perfectly now ! Thank you so much

I know this is not what this addon should do, but is there a way to display party frames only if there is 5 man max in the raid ? And hide if there is 6 or more ?

Thanks again.
  Reply With Quote
09-05-12, 05:59 AM   #8
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Try adding a GetNumGroupMembers() check.
Lua Code:
  1. function PartyMemberFrame_UpdateMember (self)
  2.     if GetNumGroupMembers() > 5 then
  3.         self:Hide();
  4.         UpdatePartyMemberBackground();
  5.         return;
  6.     end
  7.     local id = self:GetID();
  8.     if ( UnitExists("party"..id) ) then
  9.         self:Show();
  10.  
  11.         UnitFrame_Update(self);
  12.  
  13.         local masterIcon = _G[self:GetName().."MasterIcon"];
  14.         local lootMethod;
  15.         local lootMaster;
  16.         lootMethod, lootMaster = GetLootMethod();
  17.         if ( id == lootMaster ) then
  18.             masterIcon:Show();
  19.         else
  20.             masterIcon:Hide();
  21.         end
  22.     else
  23.         self:Hide();
  24.     end
  25.     PartyMemberFrame_UpdatePet(self);
  26.     PartyMemberFrame_UpdatePvPStatus(self);
  27.     RefreshDebuffs(self, "party"..id, nil, nil, true);
  28.     PartyMemberFrame_UpdateVoiceStatus(self);
  29.     PartyMemberFrame_UpdateReadyCheck(self);
  30.     PartyMemberFrame_UpdateOnlineStatus(self);
  31.     PartyMemberFrame_UpdateNotPresentIcon(self);
  32.     UpdatePartyMemberBackground();
  33. end
__________________
| 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
09-05-12, 07:31 AM   #9
Glauck
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 7
Seems to work perfectly, no lua error and no party frames in battleground =)
But BugSack is not totally happy ^^' over all with "PartyMemberFrame X PetFrame" :
Code:
8x [ADDON_ACTION_BLOCKED] L"AddOn "Perry Party Frames" a tenté d"appeler la fonction protégée "PartyMemberFrame3PetFrame:Show()".
!BugGrabber-r188\BugGrabber.lua:587: in function <!BugGrabber\BugGrabber.lua:587>
<in C code>
FrameXML\PartyMemberFrame.lua:157: in function "PartyMemberFrame_UpdatePet"
FrameXML\PartyMemberFrame.lua:380: in function "PartyMemberFrame_OnEvent"
<string>:"*:OnEvent":1: in function "OnEvent"
FrameXML\UnitFrame.lua:489: in function <FrameXML\UnitFrame.lua:487>

Locals:
nil
Code:
2x [ADDON_ACTION_BLOCKED] L"AddOn "Perry Party Frames" a tenté d"appeler la fonction protégée "PartyMemberFrame4PetFrame:Show()".
!BugGrabber-r188\BugGrabber.lua:587: in function <!BugGrabber\BugGrabber.lua:587>
<in C code>
FrameXML\PartyMemberFrame.lua:157: in function "PartyMemberFrame_UpdatePet"
FrameXML\PartyMemberFrame.lua:380: in function "PartyMemberFrame_OnEvent"
<string>:"*:OnEvent":1: in function "OnEvent"
FrameXML\UnitFrame.lua:489: in function <FrameXML\UnitFrame.lua:487>

Locals:
nil
Things like this, so , except if you know how to resolv it, I will do with it.
Thanks for your help !
  Reply With Quote
10-17-12, 01:42 PM   #10
Glauck
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 7
It disappears after every boss kill in dungeon, someone can help ? =)
Thanks for replys!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Show 5-man raid as party


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