GetSpecializationInfoByID ... where'd it go?

I’m trying to get the icon path for talent specs using GetSpecializationInfoByID, as referred to by many wow api sites… but when i try to use it, it fails.

A quick check: /script print( GetSpecializationInfoByID )

results: nil

not good. where’d it go? is there an alternative?

and yes i’m on classic

https://wow.gamepedia.com/API_GetSpecializationInfo
https://wow.gamepedia.com/API_GetSpecializationInfoForClassID

/script print( GetSpecializationInfo )
nil

/script print( GetSpecializationInfoForClassID )
nil

no joy. this is from within classic.

https://wow.gamepedia.com/API_GetTalentInfo

Time to wake up…

GetTalentInfo returns the talent info, including a texture, which is useful and does exist.
But i need the overall spec icon. ie: Warrior Fury

https://wow.gamepedia.com/API_GetTalentTabInfo

GetTalentTabInfo takes the tabIndex in your talent tree. i will be displaying class specs for other classes, not just my own. not sure this will work.

Still wondering where the original calls went and when.

It looks like the icon return has been nil’d as well (possibly came in a later xpac.).

This is classic, some things had (have) to be done “old school” by gathering and storing the information you need.

1 Like

The 4th return value seems to be the icon texture. But yea maybe you need to hardcode that anyway if you want to display the icons for other class specs too

https://github.com/Gethe/wow-ui-source/blob/classic/AddOns/Blizzard_TalentUI/Blizzard_TalentUI.lua#L161-L163

	local name, texture, points, fileName = GetTalentTabInfo(PanelTemplates_GetSelectedTab(TalentFrame));
	if ( talentTabName ) then
		base = "Interface\\TalentFrame\\"..fileName.."-";
1 Like

wait I was wrong those are the background textures,
GetSpellTabInfo() would return the talent icon textures for the player
https://wow.gamepedia.com/API_GetSpellTabInfo