idTip
idTip copied to clipboard
Object IDs
Hey Sir, This is a great addon indeed, would you extend it to show Object IDs aswell on mouseover if possible please?
Sure, I'll see what I can do.
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.
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. :)
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..
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 :)
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!
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..
I noticed these tooltips got changed and are GameTooltips now, I'll explore further if there's a possibility of adding these.
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
I'd love to know too.
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.
Thanks for the effort trying to get object IDs!
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.
Interesting, definitely worth exploring.