AdiCCMonitor

17 - Error on Login - 'GetNumRaidMembers'

What steps will reproduce the problem?
1. log into the game
2.
3.

What is the expected output? What do you see instead?

Error message pops up.

What version of the product are you using?

1.2

Do you have an error log of what happened?

Date: 2012-09-04 16:10:34
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\AdiCCMonitor\Alerts.lua line 200:
attempt to call upvalue 'GetNumRaidMembers' (a nil value)
Debug:
(tail call): ?
AdiCCMonitor\Alerts.lua:200: PARTY_MEMBERS_CHANGED()
AdiCCMonitor\Alerts.lua:59:
AdiCCMonitor\Alerts.lua:47
(tail call): ?
[C]: ?
[string "safecall Dispatcher[1]"]:9:
[string "safecall Dispatcher[1]"]:5
(tail call): ?
...s\AckisRecipeList\libs\AceAddon-3.0\AceAddon-3.0.lua:543: EnableAddon()
...s\AckisRecipeList\libs\AceAddon-3.0\AceAddon-3.0.lua:636:
...s\AckisRecipeList\libs\AceAddon-3.0\AceAddon-3.0.lua:621
[C]: LoadAddOn()
..\FrameXML\UIParent.lua:299: UIParentLoadAddOn()
..\FrameXML\UIParent.lua:322: CombatLog_LoadUI()
..\FrameXML\UIParent.lua:692:
..\FrameXML\UIParent.lua:657
Locals:
None

Please provide any additional information below.

This can be corrected by changing 'GetNumRaidMembers' to 'GetNumGroupMembers'

(a similar change: 'GetNumPartyMembers' is now 'GetNumSubgroupMembers' )

User When Change
Adirelle Sep 05, 2012 at 05:45 UTC
Aoife Sep 04, 2012 at 23:17 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of theondry theondry Sep 05, 2012 at 01:54 UTC - 0 likes

    You can fix it yourself.
    In Alerts.lua, change the function at line 199 to

    function mod:PARTY_MEMBERS_CHANGED()
    	local partySize = GetNumGroupMembers()
    --[[	if partySize == 0 then
    		partySize = GetNumPartyMembers()
    	end]]--
    	if partySize ~= self.partySize then
    		if self.partySize == 0 or (self.announcer and not UnitInParty(self.announcer) and not UnitInRaid(self.announcer)) then
    			self:ScheduleTimer("SendQuery", 2)
    		elseif partySize == 0 then
    			self.announcer = playerName
    			self:CancelTimer("SendQuery")
    			self:CancelTimer("SendReply")
    		end
    		self.partySize = partySize
    	end
    end
    

    In AdiCCMonitor.lua, change the function at line 513 to

    function addon:FullRefresh()
    	self:RefreshFromUnit('target')
    	self:RefreshFromUnit('focus')
    	self:RefreshFromUnit('mouseover')
    	local prefix, num = "raidtarget", GetNumGroupMembers()
    	if IsInRaid() == 0 then
    		prefix = "partytarget"
    	end
    	for i = 1, num do
    		self:RefreshFromUnit(prefix..num)
    	end
    end
    

    (This is drycoded, but I'm going to mess around with it for a bit to make sure it works.

    Last edited Sep 05, 2012 by theondry
  • 1 comment

Facts

Last updated
Sep 05, 2012
Reported
Sep 04, 2012
Status
Fixed - Developer made requested changes. QA should verify.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees