• Warhammer Online Addons
  • Warhammer Online
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

LibTargetInfo

 

Project Updated:
Files Updated: Fri, Nov 14 2008
Supports Game Version: Beta 3.0
Category: PvP, Data Export, Development Tools, and Unit Frames
Tags:

[Edit Tags]

Project Manager: Noctys
Additional Authors: Astika
Current Version: LibTargetInfo v1.6
License: MIT License
Development Site: CurseForge
Avg Daily DL (last 30 days): 4
Downloads Total: 7,459
Favorites: 49
Comments: 17
  • Contests
  • About LibTargetInfo
  •  

Retrieves & Stores target data for later use. Easy way of getting information about a target. Works with friendly, hostile & mouseover. Info can also be looked up by players name.

returns players name, class, archetype (healer, tank, etc), iconid, rank, hitpoint %, and much much more.

*** This is for developers, it does nothing without mods that use it!

If you are and end user just download, install, and watch the magic! ***

see TargetInfoWindows for a working example.


Function List

see readme file for more information:

LibTargetInfo.validTC(targetClassifications)
LibTargetInfo.name(targetClassification)
LibTargetInfo.shortName(targetInfo)
LibTargetInfo.isRvR(targetClassifications)
LibTargetInfo.rank(targetClassification)
LibTargetInfo.isFriend(targetInfo)
LibTargetInfo.isEnemy(targetInfo)
LibTargetInfo.isPC(targetInfo)
LibTargetInfo.hitPoints(targetClassifications)
LibTargetInfo.updateScenarioData()
function LibTargetInfo.realmByNumber(targetClassifications)
LibTargetInfo.getScenarioData(targetInfo, dataType) dataType == name, career, realm, iconID, rank, etc...
LibTargetInfo.setPlayerCareer(targetClassifications, passedCareer)
LibTargetInfo.mapPinName(targetInfo)
LibTargetInfo.type(targetInfo)
LibTargetInfo.careerColor(target)
LibTargetInfo.typeColor(target)

  • Downloads (7)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  LibTargetInfo v1.3 Release Beta 3.0 166 10/28/2008
  LibTargetInfo v1.2 Release Beta 3.0 91 10/26/2008
  • Comments

Add Comment  

Add

You need to login or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • Would like to complication of saved target info for each server. But only a pipe dream. Would be hard to do. I like how it looks with Moth.

    Reply Report Permalink
  • talvinen said

    Hi Noctys
    tried to include LTI with xHUD today, but there are some design flaws I encountered.

    a) LibTargetInfo.careerColor(target) does not exist
    b) I couldn't find a function to get the career icon ID from LTI other than via LibTargetInfo.getScenarioData() - there should be a way to get that from outside scenarios.
    c) when collecting much player data, it's important to save no redundant data. you save the PlayerID, which equals the index in the storedTargetData-table (redundant), you save the career as non-localized string, while you could simply use the careerId, which is a much smaller byte-value and works for clients other than EN. Also, don't save the career icon ID but use Icons.GetCareerIconIDFromCareerNamesID() whenever the ID is requested by a mod. should make the save vars much smaller on the HDD and RAM.

    Reply Report Permalink
  • talvinen said

    oh, and you could easily translate the careerId to 'realm', no need to save that too

    Reply Report Permalink
  • talvinen said

    and I realized that getScenarioData() will retrieve data outside of scenarios. a bit misleading ;) but will get my career icons

    Reply Report Permalink
  • Wambo said

    It seems that all characters saved in the LibTargetInfo file will get broken an dont display a tooltip for Moth.
    http://war.curse.com/downloads/war-addons/details/moth.aspx

    In the german version the Info in the file looks like this:

    name = L"Mynadora^F",
    shortName = L"Mynadora",
    playerID = 3,
    careerIcon = 20196,
    career = L"Zauberin^f",
    realm = 2

    Reply Report Permalink
  • Noctys said

    It should work fine. Make sure to let the developer of Moth know. I can't fix his stuff.

    Reply Report Permalink
  • tmpst said

    Debugged it today and it's something you could fix (maybe breaking some older addons):

    The problem is you're indexing your colors using the english career names - if someone uses non-English career names you'll return nil (and that might break later on).

    Would be nice if you could ...
    a) save careerId instead of career(Name) or save both
    b) allow others to use careerId instead of career names to request information (like colors)

    That won't fix others not checking their return values but it would make it easier to use your existing code. You could as well return pure white for colors not defined.

    Reply Report Permalink
  • hiteki said

    where I have to change the names of the careers for a quick fix? because I want to use it and I have a german client. That's why it's not working.

    Reply Report Permalink
  • tmpst said

    Just to add: the values of careerId are inside "GameData.CareerLine" or in the realmwar career icons (and other places).

    Reply Report Permalink
  • Sunspots said

    This is a great addon, I'm just wondering if it might be able to gain info from the guild roster.

    Reply Report Permalink
  • Noctys said

    It's coming... Just need to get to it. Guild Roster, Battle Groups, etc.

    Reply Report Permalink
  • Astika said

    Thanks to Noctys and his hard work, Moth (http://war.curse.com/downloads/war-addons/details/moth.aspx) now makes uses of the data collected+cached by LibTargetInfo to display friendly+enemy career names+icons. xD

    Reply Report Permalink
  • kyblikk said

    Would it be possible to use the code from MobHealth addon to provide HP of the target as well?

    Reply Report Permalink
  • Noctys said

    That is planned for a future release. If you are interested in using this addon to get that information please let me know and I will expidite the process.

    I don't usually add things unless I know someone is going to use it, otherwise it's just extra code.

    Reply Report Permalink
  • kyblikk said

    not me directly, but maybe Metaphaze in HUD Unit Frames would be so kind and included the functionality per my request here:
    http://war.curseforge.com/projects/huduf/tickets/46-lib-target-info-and-mob-health-support/

    Reply Report Permalink
  • Metaphaze said

    Noctys, great addon. Switched to this from LibCareerDB. Added support for it in HUDUF as well. If/When you add MobHealth support I will be happy to build off that as well. Thanks muchly for your work.

    Reply Report Permalink
  • Noctys said

    Target Info Windows: http://war.curse.com/downloads/war-addons/details/targetinfo.aspx

    Reply Report Permalink
  • Noctys said

    If you use this library for your addon please post a link to that addon here. I would like to be able to contact you if there are any major changes to this library. Also it will help users find addons that share the same database.

    Reply Report Permalink
  • Noctys said

    v1.41 is released and stable. Adds a function to return a table with R,G,B colors based on type or career. Colors are not finalized yet.

    Reply Report Permalink
  • Noctys said

    v1.3 is released & stable. It will probably be the last update for a while. Don't know if that is good or bad. I am going to splitting my efforts between TargetInfo (a mod that shows information about your target) and LibStoredData a storage library.

    Reply Report Permalink
  • Similar Addons
  •  

Average downloads per day

  1. 264 Paint the leader PvP, and Combat
  2. 199 LibSlash Development Tools
  3. 159 Curse Profiler Data Export
  4. 146 Squared Unit Frames
  5. 107 State of Realm PvP