idTip icon indicating copy to clipboard operation
idTip copied to clipboard

Object IDs

Open Voxxel opened this issue 12 years ago • 14 comments

Hey Sir, This is a great addon indeed, would you extend it to show Object IDs aswell on mouseover if possible please?

Voxxel avatar Sep 23 '13 08:09 Voxxel

Sure, I'll see what I can do.

silverwind avatar Sep 23 '13 15:09 silverwind

After investigating a bit, I'm not sure if this can be done from an Addon.The function that sets these kind of world tooltips seems inaccessible from Lua and may be defined in WoW's C++ code.

I haven't given up on it yet though. Maybe some trickery with the world object cache could work, but it's tedious work as this stuff is mostly undocumented.

silverwind avatar Sep 23 '13 18:09 silverwind

Keep it up! :) Sadly, I'm not even beginner in .lua but I thought it is possible since many other ID types can be displayed ( items, spells). I remember an addon named TipTac was able to display even enemy player's active specialization (eg. Holy for Paladins) on mouseover tooltip. So I thought an object ID cannot be that hard ^^ Anyway I'm just wondering. :)

Voxxel avatar Sep 23 '13 19:09 Voxxel

World objects are sadly not as easy as real targetable units (for which a lot of query functions exist). If I can somehow get the GUID of the object, I could easily extract the object id from it, but the only function to get GUIDs, UnitGUID() doesn't work on objects..

silverwind avatar Sep 23 '13 19:09 silverwind

Still haven't had any luck on object IDs so far and I'm pretty certain now that, unless Addons can read gameobjectcache.wdb, it's impossible to get object IDs. The only possiblilty I see now is a hack to constantly poll the cache for newly added object (by setting a fake tooltip), but that would only work once per object.

On the other hand, I've added support for NPC IDs, which seemed missing. Let me know if I can satisfy any more of your ID needs :)

silverwind avatar Sep 25 '13 16:09 silverwind

it's incredibly useful, especially on ptr and beta testing, I can replace at least 2 other addons with idTip (I use CT BuffMod for displaying spell ID and the wowhead looter addon for NPC IDs. ^^ Thank you very much for your hard work!

Voxxel avatar Sep 25 '13 19:09 Voxxel

After a few more tests and some talk in #wowuidev, I'm pretty convinced now that it just isn't possible to get object ids, not even through polling the object cache, as the game won't give me any data to work with.

The Wowhead Looter can get object ids through reading the cache files directly, but those are inaccessible to addons.

I'm sorry..

silverwind avatar Sep 25 '13 20:09 silverwind

I noticed these tooltips got changed and are GameTooltips now, I'll explore further if there's a possibility of adding these.

silverwind avatar Oct 15 '14 17:10 silverwind

Hi! Any news on this addon regarding the Object IDs? Would love to know if it's possible to implement the ObjectIDs into the tooltip. Regards, Toby

ghost avatar Sep 27 '15 07:09 ghost

I'd love to know too.

Voxxel avatar Jul 26 '16 19:07 Voxxel

Unless things have changed in Legion, I fear it might still be impossible. If someone wants to try, a good start would be to search for anything regarding objects in the UI source.

silverwind avatar Aug 01 '16 17:08 silverwind

Thanks for the effort trying to get object IDs!

aa-chrismcfadyen avatar Feb 07 '20 13:02 aa-chrismcfadyen

Since Dragonflight, object's guid can be accessed from UnitGUID("softinteract") and event PLAYER_SOFT_INTERACT_CHANGED. But I wonder if this is useful for tooltip.

gjfLeo avatar Feb 09 '25 09:02 gjfLeo

Interesting, definitely worth exploring.

silverwind avatar Feb 14 '25 16:02 silverwind