LibTourist-3.0
LibTourist is a library that provides information about zones, instances, transports and more.
For zones, instances, complexes (like Caverns of Time), arenas and battlegrounds, LibTourist can provide level range, faction, size, location and connections with other zones, as well as instance group sizes, instance entrance portal coordinates and battle pet level ranges, if applicable. LibTourist supports localization.
Color-coding for level ranges and zone names is available.
Relationships between continents, zones and instances can be provided, i.e. which instances are located in a specific complex, in which continent resides a zone and so on. In addition, a large number of iterations is available allowing addons to browse through subsets of the zone data.
The library contains information about connections between zones, including transports like zeppelins, boats and portals. These connections can be used to calculate a route between two zones. LibTourist can also be used for distance calculations between coordinates.
Furthermore, LibTourist can provide data about flight nodes and gathering profession skills (Mining, Herbalism, Skinning).
An extensive API allows the addon developer to query LibTourist in many ways.
See the API Reference page for detailed information.
WoW Classic
A version of LibTourist for World of Warcraft Classic is available. See the LibTourist Classic project page.
Can we see what phase of the map we're in? Wowhead shows the phases in the maps with the NPC pins, so I was looking for an addon with this info!
In reply to Pyrefox:
Such information could be valuable for LibTourist so I looked into it...
I've been digging in the database (at wow.tools) to figure out how phasing is implemented and if a phase can be identified. There is a 'Phase' table but a phase is just an ID, it has no name or description. There are 15,000 (!) phase IDs of which 33 are used for 14 UIMaps in total. So I can compile a short list of 14 areas that have more than one phase but that list seems to be incomplete. For example, Uldum is on the list, but the Vale of Eternal Blossoms is not. Confusing.
The other part of the problem is how to detect which phase is the currently active one. For this I've been digging through the WoW API but haven't found what I'm looking for, yet.
In reply to Odica_Jaedenar:
Thanks for the reply!
Yeah, from what I've seen in wowhead, it's only a number... they didn't name the phases. But just having a little discrete line with it showing should be enough if used along with the database.
Hope you manage to find a way to fetch that info! :)
Any ideas why the twitch app won't seem to register that I updated this addon (or that it just doesn't update correctly)? The version twitch say I have are the alpha r238 and the latest are 8.3-beta2, and it appears to be the same r238 when I try to download the beta2 version from this page.
In reply to DarkLimpan:
Hi there,
I am not familiar with the Twitch updater so I am not sure how it compares versions.
But, LibTourist-3.0 is under SVN and when under SVN the way to create a beta release is to tag an existing release (in this case alpha r238) "as beta". So, the files in r238 and 8.3-beta2 are indeed equal. The same file has effectively been released twice, once as alpha and once as beta. In other words: Twitch is right, you already have the latest version.
I will remove r238 from the release list to avoid others from running into the same issue.
Hope this answers your question,
best regards,
Odica
In reply to Odica_Jaedenar:
Hi again.
I just tried to have the twitch updater do it again and when I refresh, it tells me r238-alpha is installed and beta2 is available in the main window. But when I click its page in the app, r238 is gone from the list (as you removed it) and beta2 is not installed. It's like it doesn't register the update or something? It's just going in a loop.
In reply to DarkLimpan:
Please be aware that LibTourist is not an addon, it's a library that can provide data for other addons. There is no need to install it separately because LibTourist in itself does not add anything to WoW. Instead, it is used by other addons and included in their install packages if required.
The only reason for downloading LibTourist separately, is if you are an addon developer and want to use the functionalities of LibTourist in one of your addons. Even then, there is no need to install LibTourist as an addon, as it is supposed to be used as a part of the source code of the addon you're developing.
In other words: you might as well uninstall it.
An example of an addon that uses LibTourist as data provider is ZoneInfo 2, which requires LibTourist to function. If you install ZoneInfo, the latest version of LibTourist will come along with it.
Hope this helps :-)
Odica
In reply to Odica_Jaedenar:
I understand now. I do have addons that use this lib (iLocation for example), I just didn't know I didn't need to have it installed seperately. XD
In reply to DarkLimpan:
You're welcome ;-)
Yes: https://www.wowace.com/projects/libtourist-classic
Any version of this for Classic floating around yet?
In reply to mytwobits:
Not yet but we're working on it.
In reply to Odica_Jaedenar:
I have not messed with addons/lua in a few years. Did the api for IterateRecommendedInstantces/Zones change at all since 6.0?
Was taking a quick stab at adding back in fishing and changing the zone levels, but the basic display seems to also no longer work.
In reply to mytwobits:
Hi, I have tested IterateRecommendedZones and IterateRecommendedInstances and both still work. The API didn't change since 6.0 but the behavior has changed because zone levels are now scaled (within certain ranges). Therefore, the function now returns the names of the zones that scale exactly to the player's current level.
I am not sure what you mean by 'basic display'. Are you referring to an addon that uses LibTourist as a library?
I have installed this lib and now I have Pet Level and Zone Leveling Info showing in the in-game map. Is there a way to also enable showing Zone Instances/Raids Info?
In reply to Holobit:
In reply to Odica:
I could swear my map didn't show any pet level info before, but you are right, id does.
In reply to Holobit:
Is there any eta for this ? I realise thats big ask but i see lots of my broken adons using this lib .I only ask so i dont have to check for progress on my broken addons each day and to get some perspective how hard is to fix it when something so esential is broken with Blizz changes.
In reply to Radoznali: