AppearanceTooltip

AppearanceTooltip

378k Downloads

Pandaren preview casts errors

Vladinator opened this issue ยท 1 comments

commented

Trying to hover over my equipped items on my pandaren I get these errors:

452x AppearanceTooltip\cameraids.lua:110: bad argument #1 to 'format' (string expected, got nil)
[string "=[C]"]: in function `format'
[string "@AppearanceTooltip\cameraids.lua"]:110: in function `GetCameraID'
[string "@AppearanceTooltip\addon.lua"]:360: in function `ShowItem'
[string "@AppearanceTooltip\addon.lua"]:143: in function <AppearanceTooltip\addon.lua:142>
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: in function `SetBagItem'
[string "@FrameXML\ContainerFrame.lua"]:1324: in function `ContainerFrameItemButton_OnUpdate'
[string "@FrameXML\ContainerFrame.lua"]:1371: in function `ContainerFrameItemButton_OnEnter'
[string "@Bagnon\common\Wildpants\classes\item.lua"]:369: in function `ShowTooltip'
[string "@Bagnon\common\Wildpants\classes\item.lua"]:340: in function `UpdateTooltip'
[string "@Bagnon\common\Wildpants\classes\item.lua"]:180: in function <...faceBagnon\common\Wildpants\classes\item.lua:179>

Locals:
(*temporary) = "%s-%s-%s"
(*temporary) = nil
(*temporary) = "Female"
(*temporary) = "Waist"
(*temporary) = "string expected, got nil"

ns:GetCameraID() gets called with raceID and genderID set to false so it's supposed to fallback to the player race and gender. playerRaceID is set to 25 and playerSex is set to Female.

It appears that the races table contains 24 for Pandaren (the Neutral version) but missing the two entries for Alliance and Horde, being ID 25 and 26. wow.tools ๐Ÿ”—

commented

Fixed this in 95b93aa.