WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Missing icons for certain spell IDs (https://www.wowinterface.com/forums/showthread.php?t=55293)

Ketho 04-02-17 06:09 PM

Missing icons for certain spell IDs
 
Since 7.2 the spell icon for specific Spell IDs isn't returned in-game, for example 210766 (Nightmare Pod)
http://wowprogramming.com/docs/api/GetSpellInfo
Lua Code:
  1. /dump GetSpellInfo(210766) -- "Nightmare Pod", "", nil, 0, 0, 0, 210766
Does anybody have an idea what's happening here?

I have an addon that tracks spells and it chokes on this particular one when I'm standing around in Dalaran :confused:

briskman3000 04-02-17 06:32 PM

They changed GetSpellInfo in 7.0.3 to not return the texture info.

you should use GetSpellTexture to get the icon info

http://wow.gamepedia.com/API_GetSpellTexture

SDPhantom 04-03-17 12:21 AM

I've had GetSpellInfo() give the texture as the 3rd return up through 7.2. These have mostly been transitioned into textureIDs instead of paths since 7.0. It's still possible that the function is waiting for response from the server before returning all of the data. Functions like GetSpellTexture() perform local database lookups instead and as such, don't require querying the server.

Ketho 04-03-17 06:09 AM

Yes, but for that specific spell Id 210766 GetSpellInfo just returns nil instead of any texture Id, even after querying it multiple times :(

Ketho 04-03-17 08:18 AM

There is something wrong with this icon spell_nature_lightningshield

I noticed these spells also are missing the icon when queried by GetSpellInfo
http://www.wowhead.com/spell=242319/opening
http://www.wowhead.com/spell=243134/opening

Banknorris 04-03-17 11:45 AM

/run print(GetSpellInfo(192106)) works.

http://www.wowhead.com/spell=192106/lightning-shield

Maybe the problem is with item spells like those you mentioned.

Ketho 04-03-17 12:31 PM

Yes maybe it's something to do with item spells?

Since it indeed works normally for http://www.wowhead.com/spell=192106/lightning-shield


All times are GMT -6. The time now is 01:43 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI