Thread Tools Display Modes
07-13-24, 06:37 AM   #1
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 328
WoW SoD 1.15.3 Error

With the new patch 1.15.3 LibClassicSpecs seems to be throwing this error and i cant figure out how to fix it.

Code:
39x ...Ons/BasicUI/Libs/LibClassicSpecs-0/LibClassicSpecs.lua:598: attempt to compare number with string
[string "@BasicUI/Libs/LibClassicSpecs-0/LibClassicSpecs.lua"]:598: in function <...Ons/BasicUI/Libs/LibClassicSpecs/LibClassicSpecs.lua:590>
[string "@BasicUI/Modules/Datapanel.lua"]:2009: in function `CreateStats'
[string "@BasicUI/Modules/Datapanel.lua"]:2400: in function `Refresh'
[string "@BasicUI/Modules/Datapanel.lua"]:2380: in function <BasicUI/Modules/Datapanel.lua:2372>
[string "=[C]"]: ?
When i track down the line in the lua this is what it shows:
Code:
lib.GetSpecialization = function(isInspect, isPet, groupId)
  if (isInspect or isPet) then
    return nil
  end
  local specIndex
  local max = 0
  for tabIndex = 1, GetNumTalentTabs() do
    local spent = select(3, GetTalentTabInfo(tabIndex))
    if (spent > max) then
      specIndex = tabIndex
      max = spent
    end
  end

  local classId = select(3, UnitClass("player"))
  if (classId == Druid.ID) then
    -- Return Druid.Guardian if certain talents are selected
    local feralInstinctPoints = select(5, GetTalentInfo(DRUID_FERAL_TAB, DRUID_FERAL_INSTINCT))
    local thickHidePoints = select(5, GetTalentInfo(DRUID_FERAL_TAB, DRUID_THICK_HIDE))
    if (feralInstinctPoints == 5 and thickHidePoints == 5) then
      return DRUID_GUARDIAN_SPEC_INDEX
    end

    -- return 4 if Resto (3rd tab has most points), because Guardian is 3
    if (specIndex == DRUID_GUARDIAN_SPEC_INDEX) then
      return DRUID_RESTO_SPEC_INDEX
    else
      return specIndex
    end
  end

  return specIndex
end
the
Code:
    if (spent > max) then
      specIndex = tabIndex
      max = spent
    end
is the section that its saying is bad now but nothing seems to have changed unless with the new patch they removed something.

Any help would be great Thank You.

If you need more info just let me know.
  Reply With Quote
07-13-24, 10:04 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,974
Seems the signature for GetTalentTabInfo has changed and arg3 is a description.

From the 1.15.3 Blizzard UI.
Lua Code:
  1. local id, name, description, icon, pointsSpent, background, previewPointsSpent, isUnlocked = GetTalentTabInfo(selectedTab, TalentFrame.inspect, TalentFrame.pet, TalentFrame.talentGroup);
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » WoW SoD 1.15.3 Error


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