EquipCompare

Patch 4.0.1: The latest version is patch 4.0.1 compatible. There are no functionality changes, EquipCompare still works, so I just updated the version number.

If you like this AddOn, please consider making a small, optional donation of any amount that is convenient for you to show your support. You can use PayPal for this:

Summary

When you shop for items at a vendor or the Auction House and you hover over an item, you get a comparison tooltip showing the "currently equipped" item too. This AddOn adds such a feature everywhere in the game where you can hover over items, such as in your bags, in the loot window or on the reward page of a quest. You also receive comparison tooltips when clicking an item link in the chat box.

The AddOn is compatible with and the texts are localized for US English, EU English, German, French, Korean, Simplified Chinese and Traditional Chinese clients.

Troubleshooting

Check the Known Issues list first! If EC only appears to be working at the AH and vendors, but nowhere else, then you donīt actually have EC correctly installed and working! The default Blizzard UI has EC-like features in those two places already, thatīs what you are seeing. In this case, make sure that EC is enabled correctly on the character selection screen.

Advanced tip: For some really advanced uses, turn on the Alt-key mode and install CharactersViewer. Choose an alternate character in CV, go to the Auction House then hover over an item. First you get comparison with your equipped item, but then hold Alt to get comparison with your alternate character. Shop with ease both for yourself and your other characters with this great feature!

Install

Unzip the downloaded zip file into your "World of Warcraft\Interface\AddOns" folder. This is a standalone, pure AddOn.

Uninstall

Delete the "World of Warcraft\Interface\AddOns\EquipCompare" folder.

Usage

The AddOn is enabled by default. Type "/equipcompare help" for further usage information, or see the documentation in the included Description.txt file.

Developer API

See the included Description.txt for a short summary. See the comments in front of each of the functions in EquipCompare's code for full documentation.

Known Issues

Main/Off Hand item both gets displayed in situations when a lot of players feel they shouldn't be (This works as intended at the moment).

If you view an Off Hand item when you have a 2H item equipped, you don't get comparison with the equipped 2H item. (This works as intended at the moment).

If both comparison tooltips are getting displayed and they are very wide (e.g. German client), it is possible that they don't both fit on the screen. In this case, part of one might get cut off.

Special thank you goes to

Flisher for the very fruitful collaboration on making CharactersViewer and EquipCompare work together.

Thanks goes to

WoWInterface and Curse Gaming for hosting the AddOn.

The entire Cosmos team for their help and support (including, but not limited to AlexYoshi, Thott, Sarf, AnduinLothar, StarDust, Sasmira).

Norganna for making Auctioneer work together with EquipCompare

Woofiest for the bug reports and great AddOn pack.

All the original localizers (beWRage, Maischter, zerra, eerieN, Firebroo, arith)

Legalese (a.k.a. the Small Print)

The author holds all copyright to this AddOn. You are free to download, copy, distribute and re-host this AddOn in its original, unmodified form, for non-profit purposes. You are free to include this AddOn in any compilation, package, distribution etc. in its original form so long as credit is given to the author. If you distribute or re-host this AddOn, either in a compilation or by itself, you must include a link to the AddOn's official page as the author is responsible for maintaining only the official page of the AddOn. You are allowed, for your own personal use only, to make modifications to this AddOn and to privately distribute such modified form to people known to you (such as friends and guild members). However, you must not publically host or distribute a modified version of this AddOn, without express permission of the author. The author reserves the right to deny any of the above to any person or sites for any reasons.

Optional Dependencies: Khaos, Satellite, CharactersViewer, LootLink

Khaos: If Khaos is installed, EquipCompare options can be set via the Khaos configuration options. In this case, the settings are rememebered on a per-configuration basis.

Lootlink: If LootLink is installed, you will receive the comparison tooltips when hovering over items in the LootLink database.

CharactersViewer: If CharactersViewer (version 55 or higher) is installed, EquipCompare shows comparison tooltips with the items of the character you have selected in CV, instead of with the currently equipped items, provided this feature is enabled in EquipCompare. Use this great feature to easily compare your equipment or inventory with your alts. Alternatively, do things like receive relevant shopping tooltips at the Auction House, when you are shopping for your alt.

Cosmos (deprecated but supported): If Cosmos is installed, EquipCompare options can be toggled on and off via the Cosmos configuration menu. In this case, the settings are remembered on a per-character basis.

Changes in 2.15:
* Temporary workaround for the frequent "attempt to compare number with nil" bug that seem to appear for a lot of people.

Changes in 2.14:
* Weapon comparison behaviour changed. This fixes the missing main/offhand tooltip bug as well.
* Tooltip placement logic significantly improved. If there is one side to fit all the comparison tooltips, the code will find it now. In rare cases tooltips may still be partially off the screen, if the tooltips can't fit on any side.

Love the add-on. Just a small request for it. I personally notice that when it does equipment comparisons there have been times that Ive gotten confused. It would be nice if the window(s) that says "CURRENTLY EQUIPPED", those words could say so with red letters or something to distinguish it at a glance. I would do it but not very versed in LUA programming. Dont know if it would be hard to implement without doing a whole lot of re-write of code.

TOOLTIP placement is horrible, inconsistent, all over the map.
Suddenly the tips no longer line up. One tip is right at the mouse, the eqc tip is on the other side of the screen opposite wherever the main tip is.

This is a new bug, bad behavior, whatever. I have disabled the mod since it is far too distracting to be useful at this point.

Hopefully it will be updated for 2011. Otherwise, adieu Eqc, it's been fun.

Originally posted by Szyarah TOOLTIP placement is horrible, inconsistent, all over the map.
Suddenly the tips no longer line up. One tip is right at the mouse, the eqc tip is on the other side of the screen opposite wherever the main tip is.

This is a new bug, bad behavior, whatever. I have disabled the mod since it is far too distracting to be useful at this point.

Hopefully it will be updated for 2011. Otherwise, adieu Eqc, it's been fun.

Yeah ive had that same issue every once in a while. What ive been doing is an interface reload and that does the trick. But it does get a little annoying.

I see two tooltips to the right of the one I am wearing. The first one is two boxes superimposed over each other with BOTH items mixed together on top of each other and then the next one is the second item in the bag to compare to the one I am wearing?

Originally posted by Kolakhan I see two tooltips to the right of the one I am wearing. The first one is two boxes superimposed over each other with BOTH items mixed together on top of each other and then the next one is the second item in the bag to compare to the one I am wearing?

You probably have Outfitter installed. Use it's option to turn off item comparison.

Originally posted by Legorol It is possible for part of a comparison tooltip to be slightly off the screen
when the tooltips are very wide. This is a known bug in EquipCompare.

Howdy, Legorol! I've been AFK for a few years, and one of the first addons
I looked for when I reinstalled WoW was EquipCompare. I am glad to see you
are keeping it going.

Thank you for all your hard work on this addon over the years.

I may have figured out a method to resolve some of the issues with wide
comparative tooltip frames being displayed (partially or completely) off
the screen. This attempts to reposition wide comparative tooltip frames
(main hand to the left and off hand to the right of the main tooltip)
when *both* of the comparative tooltip frames do not fit together on the
left or right side of the main game tootlip.

* Works with WoW v4.0.6 and EquipCompare v2.18. * See NOTES below. *

Open the EquipCompare.lua file, found at:
(WindowsXP default location)
C:\Program Files\World of Warcraft\Interface\AddOns\EquipCompare\EquipCompare.lua

Replace code lines starting at 1260 through 1293.

Copy and paste the code between the following two comments:
"-- Try to place the tooltips in sensible places"
and
"-- Record side of alignment"

-- Try to place the tooltips in sensible places
if ( ComparisonTooltip1:IsVisible() ) then
if ( leftAlign ) then
local left = ComparisonTooltip1:GetLeft();
if ( left < 0 ) then
leftAlign = false;
ComparisonTooltip1:ClearAllPoints();
ComparisonTooltip2:ClearAllPoints();
ComparisonTooltip1:SetPoint("TOPLEFT", tooltip:GetName(), "TOPRIGHT", 0, -10);
ComparisonTooltip2:SetPoint("TOPLEFT", "ComparisonTooltip1", "TOPRIGHT", 0, 0);
end
else
local right;
local twotips = ComparisonTooltip2:IsVisible();
if ( twotips ) then
right = ComparisonTooltip2:GetRight();
else
right = ComparisonTooltip1:GetRight();
end
if ( right and GetScreenWidth() and right > GetScreenWidth() ) then
leftAlign = true;
ComparisonTooltip1:ClearAllPoints();
ComparisonTooltip2:ClearAllPoints();
if ( twotips ) then
ComparisonTooltip2:SetPoint("TOPRIGHT", tooltip:GetName(), "TOPLEFT", 0, -10);
ComparisonTooltip1:SetPoint("TOPRIGHT", "ComparisonTooltip2", "TOPLEFT", 0, 0);
else
ComparisonTooltip1:SetPoint("TOPRIGHT", tooltip:GetName(), "TOPLEFT", 0, -10);
end
end
end
end
-- Record side of alignment

-- Try to place the tooltips in sensible places
if ( ComparisonTooltip1:IsVisible() ) then
local left = 0;
local right = 0;
if ( leftAlign ) then
left = ComparisonTooltip1:GetLeft();
if ( left < 0 ) then
leftAlign = false;
ComparisonTooltip1:ClearAllPoints();
ComparisonTooltip1:SetPoint("TOPLEFT", tooltip:GetName(), "TOPRIGHT", 0, -10);
right = ComparisonTooltip1:GetRight();
if ( ComparisonTooltip2:IsVisible() ) then
ComparisonTooltip2:ClearAllPoints();
ComparisonTooltip2:SetPoint("TOPLEFT", "ComparisonTooltip1", "TOPRIGHT", 0, 0);
right = ComparisonTooltip2:GetRight();
end
end
if ( right > GetScreenWidth() ) then
ComparisonTooltip1:ClearAllPoints();
ComparisonTooltip1:SetPoint("TOPRIGHT", tooltip:GetName(), "TOPLEFT", 0, -10);
left = ComparisonTooltip1:GetLeft();
if ( ComparisonTooltip2:IsVisible() ) then
ComparisonTooltip2:ClearAllPoints();
ComparisonTooltip2:SetPoint("TOPLEFT", tooltip:GetName(), "TOPRIGHT", 0, -10);
right = ComparisonTooltip2:GetRight();
end
end
else
right = ComparisonTooltip1:GetRight();
if ( ComparisonTooltip2:IsVisible() ) then
right = ComparisonTooltip2:GetRight();
end
if ( ( right ) and ( GetScreenWidth() ) and ( right > GetScreenWidth() ) ) then
leftAlign = true;
if ( ComparisonTooltip2:IsVisible() ) then
ComparisonTooltip2:ClearAllPoints();
ComparisonTooltip2:SetPoint("TOPRIGHT", tooltip:GetName(), "TOPLEFT", 0, -10);
ComparisonTooltip1:ClearAllPoints();
ComparisonTooltip1:SetPoint("TOPRIGHT", "ComparisonTooltip2", "TOPLEFT", 0, 0);
left = ComparisonTooltip1:GetLeft();
else
ComparisonTooltip1:ClearAllPoints();
ComparisonTooltip1:SetPoint("TOPRIGHT", tooltip:GetName(), "TOPLEFT", 0, -10);
left = ComparisonTooltip1:GetLeft();
end
end
if ( left < 0 ) then
ComparisonTooltip1:ClearAllPoints();
ComparisonTooltip1:SetPoint("TOPRIGHT", tooltip:GetName(), "TOPLEFT", 0, -10);
left = ComparisonTooltip1:GetLeft();
if ( ComparisonTooltip2:IsVisible() ) then
ComparisonTooltip2:ClearAllPoints();
ComparisonTooltip2:SetPoint("TOPLEFT", tooltip:GetName(), "TOPRIGHT", 0, -10);
right = ComparisonTooltip2:GetRight();
end
end
end
--Test new tooltip positions to check if new far left, new far right, ComparisonTooltip1 bottom,
--and/or ComparisonTooltip2 bottom points are rendered off-screen.
--Solution: Reposition the main tooltip and redraw the comparative tooltip(s) to fit on screen.
--(Intentionally left blank, for now.)
end
-- Record side of alignment

-------------------------------------------------------------------
Save the file. Run the game. Your mileage may vary, but probably won't.

NOTES:
1) There may be a few steps that can be optimized in the replacement code,
but I wanted the code to be "easy" to follow.

2) This code modification does not rectify the positioning of long tootips
which display beyond the bottom screen edge (possibly a future fix).

3) EquipCompare's tooltips appear to obscure the tootips displayed when
the player presses the ALT button while hovering over an equippable item.
I suppose if you are using EquipCompare, then you probably don't need the
ALT button's functionality - essentially making this a non-issue.

Since some latest patch WoW tooltips contain inforamtion about attribute changes when holding down shift while hovering over an item (i.e. +- x stamina, compared to the item currently equipped).

Equipcompare currently lacks this additional information.

Hence I'd like to suggest to:
a) either add these information to Equipcompare or
b) let the default WoW tooltip being displayed for at least those situations where WoW itself supports equipment comparison

Reasoning:
These additional information are rather useful and help a lot when comparing items and losing these information when having equipcompare installed is a rather heavy argument against using EQCompare at all.

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.