Get an Epic Experience with Premium


Libraries Login to Add Favorites
  • World of Warcraft
  • 4,012 Monthly Downloads
  • Supports: 6.2.0
  • 282,662 Total Downloads
  • Updated 06/24/2015
  • Created 09/20/2008
  • 201 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: GNU Lesser General Public License version 2.1 (LGPLv2.1)
  • Newest File: r488-release

About LibPeriodicTable-3.1

Forum Discussion Thread

Periodic Table adds organizes many WoW items and spells into sets. Like most Ace addons it's focus is efficiency. PT is a LibStub library for managing these sets (ex: Misc.Spell.Mount, Consumable.Food.Edible.Cheese, Misc.Minipet, ClassSpell) for other addons.

If you are looking for an Ace'd alternative to ReagentInfo (the tooltip display) check out Mendeleev by MoonWolf, which you can find on Curse or WoWI.

Item sets are stored as a comma-delimited strings and parsed out into a table only if requested. This speeds up load time and ensures that memory is only used for sets that are actively used.

If you are interested in using PT with your mod feel free to read the source code (there's not a lot). The comments will tell you everything you need to know.


PeriodicTable's "modules" are simply sets of sets. Particular mods can link the exact sets they need.

  • ClassSpell - Spells for all classes with subsets for each tree.
  • Consumable - Foods, Potions, Elixirs, Buffing items including type (fruit, meat, etc), quality (inedible, buff) and HP-recovery info.
  • CurrencyItems - Items purchasable with various currencies.
  • Gear - Socketed gear, Trinkets, Vendor Badge gear
  • GearSet - Set Gear. Tier, Reputation, PvP, etc.
  • InstanceLoot - Loot tables for instances and the bosses in those instances (only higher-level instances currently)
  • InstanceLootHeroic - Loot tables for heroic instances
  • Misc - Random stuff like Currency, Containers, Mounts, etc.
  • Reputation - Rewards and Turnins for factions
  • Tradeskill : Profession recipes
  • TradeskillLevels : Profession recipes with level requirements
  • TradeskillResultMats : Some kinda mats required sets for the recipes it looks like

r488 | muffinmanken | 2015-06-24 17:41:34 +0000 (Wed, 24 Jun 2015) | 1 line
Changed paths:
   A /tags/r488-release (from /trunk:487)

Updated for WoW Patch 6.2
r487 | muffinmanken | 2015-06-24 17:32:50 +0000 (Wed, 24 Jun 2015) | 2 lines
Changed paths:
   M /trunk/LibPeriodicTable-3.1-ClassSpell/LibPeriodicTable-3.1-ClassSpell.toc
   M /trunk/LibPeriodicTable-3.1-Consumable/LibPeriodicTable-3.1-Consumable.lua
   M /trunk/LibPeriodicTable-3.1-Consumable/LibPeriodicTable-3.1-Consumable.toc
   M /trunk/LibPeriodicTable-3.1-CurrencyItems/LibPeriodicTable-3.1-CurrencyItems.toc
   M /trunk/LibPeriodicTable-3.1-Gear/LibPeriodicTable-3.1-Gear.lua
   M /trunk/LibPeriodicTable-3.1-Gear/LibPeriodicTable-3.1-Gear.toc
   M /trunk/LibPeriodicTable-3.1-GearSet/LibPeriodicTable-3.1-GearSet.toc
   M /trunk/LibPeriodicTable-3.1-InstanceLoot/LibPeriodicTable-3.1-InstanceLoot.toc
   M /trunk/LibPeriodicTable-3.1-InstanceLootHeroic/LibPeriodicTable-3.1-InstanceLootHeroic.toc
   M /trunk/LibPeriodicTable-3.1-InstanceLootLFR/LibPeriodicTable-3.1-InstanceLootLFR.toc
   M /trunk/LibPeriodicTable-3.1-Misc/LibPeriodicTable-3.1-Misc.lua
   M /trunk/LibPeriodicTable-3.1-Misc/LibPeriodicTable-3.1-Misc.toc
   M /trunk/LibPeriodicTable-3.1-Reputation/LibPeriodicTable-3.1-Reputation.toc
   M /trunk/LibPeriodicTable-3.1-Tradeskill/LibPeriodicTable-3.1-Tradeskill.lua
   M /trunk/LibPeriodicTable-3.1-Tradeskill/LibPeriodicTable-3.1-Tradeskill.toc
   M /trunk/LibPeriodicTable-3.1-TradeskillLevels/LibPeriodicTable-3.1-TradeskillLevels.toc
   M /trunk/LibPeriodicTable-3.1-TradeskillResultMats/LibPeriodicTable-3.1-TradeskillResultMats.toc
   M /trunk/LibPeriodicTable-3.1-TransmogSet/LibPeriodicTable-3.1-TransmogSet.toc
   M /trunk/LibPeriodicTable-3.1.toc
   M /trunk/data.lua

Updated TOC files with latest Interface version
Mined lots of stuff
r486 | muffinmanken | 2015-02-25 03:23:46 +0000 (Wed, 25 Feb 2015) | 1 line
Changed paths:
   M /trunk/LibPeriodicTable-3.1-Tradeskill/LibPeriodicTable-3.1-Tradeskill.lua
   M /trunk/data.lua

Updated Tradeskill.Recipe.*


  • #11

    Since 6.2 went live, I've been getting consistent LUA errors with LibPeriodicTable-3.1 and Altoholic...  cross-posting in both add-ons in hopes that it may be addressed!

    Date: 2015-06-30 11:12:09
    ID: 1 Error occured in: Global
    Count: 1
    Message: ...e\libs\LibPeriodicTable-3.1\LibPeriodicTable-3.1.lua line 291: Invalid arg1: invalid item.
    [C]: ?
    ...e\libs\LibPeriodicTable-3.1\LibPeriodicTable-3.1.lua:291: ItemInSet()
    ...dOns\DataStore_Reputations\DataStore_Reputations.lua:433: GetSource()
    Altoholic\Loots.lua:614: GetSource()
    [C]: ?
    [C]: ?
    [C]: ?
    [C]: ?
    ...AddOns\Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:395: SetQuestItem()
    [string "*:OnEnter"]:11:
    [string "*:OnEnter"]:1
    (*temporary) = false
    (*temporary) = "Invalid arg1: invalid item."

  • #12

    It's not a bug in LTP itself but invalid arguments used to call the library.
    Altoholic is partly to blame for not checking the values it passes along but the base problem is that GameTooltip:GetItem() suddenly fails for some items, which is most likely a Blizzard bug.

    volunteer Curse moderator
    This posting is made of 100% recycled electrons.
  • #5

    Hmm.  Anyone know of an up-to-date tooltip app that will display which category of the PT an item belongs to?   I use bulk mail to sort what item goes to which storage alt, and sometimes it's hard to figure out the PT designation of an item.


  • #6

    In case one of your addons is providing /dump, something like this should work as temporary solution:
    /dump LibStub("LibPeriodicTable-3.1"):ItemSearch(<itemid>)
    /dump LibStub("LibPeriodicTable-3.1"):ItemSearch("[item]">)

    Last edited by Elkano on 11/18/2013 7:07:58 AM
    volunteer Curse moderator
    This posting is made of 100% recycled electrons.
  • #10

    To answer my own query...

    /dump LibStub("LibPeriodicTable-3.1"):ItemSearch(({GameTooltip:GetItem()})[2])

    I put this into a macro and dragged it onto the buttonbar. When I mouseover an item, I press the buttonkeybinding and tada... dump info!

  • #8

    Don't know if you can make it mouseover, but this one will identify the item you have on your cursor (picked up):

    /dump LibStub("LibPeriodicTable-3.1"):ItemSearch(({GetCursorInfo()})[2])
  • #7

    I wonder if there is a way to turn this into a mouseover macro?

  • To post a comment, please login or register a new account.
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Gamepedia Free-shirt Giveaway