This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Line 6524 needs to be changed from GetPrimaryTalentTree to GetSpecialization
All instances of GetPrimaryTalentTree where converted to GetSpecialization a while ago.
GetPrimaryTalentTree
GetSpecialization
What revision are you using that you see this?
Can you give some context around the source code where you're finding it (i cannot find it anywhere in LibStatLogic.lua).
LibStatLogic.lua
The GetPrimaryTalentTree is still in the code in r74 in LibStatLogic-1.2.lua
6516 local function UpdateArmorSpecActive()
6517 ArmorSpecActive = nil
6518 for _, slot in pairs(WatchInventoryID) do
6519 local item = GetInventoryItemID('player', slot)
6520 if not item then return end
6521 if (select(7, GetItemInfo(item))) = playerArmorType then return end
6522 end
6523 all pass
6524 ArmorSpecActive = GetPrimaryTalentTree() or 0
6525 end
This is the error that alerted me to the issue in line 6524. Once I change from GetPrimaryTalentTree to GetSpecialization I no longer get this error message...
1x LibStatLogic-1.2\LibStatLogic-1.2-74.lua:6524: attempt to call global "GetPrimaryTalentTree" (a nil value)
LibStatLogic-1.2\LibStatLogic-1.2-74.lua:6524: in function <LibStatLogic-1.2\LibStatLogic-1.2.lua:6516>
LibStatLogic-1.2\LibStatLogic-1.2-74.lua:6530: in function <LibStatLogic-1.2\LibStatLogic-1.2.lua:6527>
Locals: self = StatLogicItemSetFrame {
0 = <userdata>
PLAYER_EQUIPMENT_CHANGED = <func> @..\..\LibStatLogic-1.2.lua:6536
PLAYER_LOGIN = <func> @..\..\LibStatLogic-1.2.lua:6547
PLAYER_TALENT_UPDATE = <func> @..\..\LibStatLogic-1.2.lua:6539
}
elapsed = 7.9090003967285
GetTime = <func> =[C]:-1
UpdateArmorSpecActive = <func> @..\..\LibStatLogic-1.2.lua:6516
<<reply 931623="">>
Yeah, we're on revision 118. Revision 74 was from last April.
There have been...well...44 updates since then. You need to instruct whatever you're using to download updates to use the latest (alpha) version of LibStatLogic.
Only the project's manager, Whitetooth, can mark revisions as beta or release. And he's not updated anything in over a year. So you're going to have to accept updating LibStatLogic manually.
mkay.. I thought hitting the "Download" link would always pull the most recent file posted regardless of Alpha, Beta or Release status.. thanks for the heads up
To post a comment, please login or register a new account.