Download
(26Kb)
Download
Updated: 03-27-10 08:36 AM
Pictures
File Info
Updated:03-27-10 08:36 AM
Created:03-14-10 11:57 AM
Downloads:3,973
Favorites:44
MD5:

Possessions (WotLK 3.3)

Version: 3.1
by: thisapimp [More]

I love this addon and it broke a few patches ago. I decided to clean it up to remove most of the errors. While I was at it I added a feature to filter out items from any guild bank (a checkbox above the search button).

My goal with this update was to make Possessions usable again. I'm not an addon expert so if someone wants to take over maintenance and clean up every feature (specifically the slots filter), feel free to post in the comments forum or provide a link and I'll add the link to this description. Here is the old description for anyone new to Possessions:


Possessions is an AddOn to keep track of all your... possessions.

It will keep track of the items on all your alts (per server), including worn items, items in your inventory, items in your bank and even items in your mailbox (that you've seen).

In the Possessions window you can then filter the list to show items from a certain player or a certain location.

The items are grouped together and the tooltip will show you how many you have of the item at each location.

So, if you want to see if you have any silk cloth anywhere you can just do '/poss silk cloth', and Possessions will show, in its window, all items matching 'silk cloth'. Mouseover that, and you'll see, for example, that you have 10 silk cloth in your bank, 50 silk cloth in your alt's inventory, and 5 silk cloth in your mailbox.

Additionally, Possessions will keep track of items you mail to known alts (so, if you mail an additional 5 silk to your alt, Possessions will know an additional 5 silk is in your alt's inbox, without relogging).

Optional Files (0)


Post A Reply Comment Options
Unread 05-02-10, 12:30 PM  
Karatanthala
A Kobold Labourer

Forum posts: 1
File comments: 14
Uploads: 0
Originally posted by LaoTseu
About the once in a while error described by coani, the same thing was happening to me. I investigated and I believe I found the reason and an easy fix.

Hi LaoTseu, I've been getting the same error as Coani for quite a while now, but I've not been able to work out how to apply your fix. My programming skills are way too low for that.

Would it be possible you could do a

Step 1: Delete Lines XXX to XXX
Step 2: Replace with AAAAAAAAAA

sort of thing?

Would be greatly appreciated if you could.
Report comment to moderator  
Reply With Quote
Unread 05-08-10, 06:04 PM  
blankStare
A Kobold Labourer

Forum posts: 1
File comments: 82
Uploads: 0
patch

think i have this right.
you should be able to tell where to add the code and what to comment out by the existing lines.

Code:
--	elseif( event == "VARIABLES_LOADED" ) then
--		Possessions_VarsLoaded(self)
--	elseif( event == "PLAYER_ENTERING_WORLD" ) then
--		Possessions_PlayerLogin(self)
	elseif( event == "PLAYER_LOGIN" ) then
		Possessions_PlayerLogin(self)
	elseif( event == "ADDON_LOADED" ) then
		if arg1 == "Possessions" then
			self:UnregisterEvent("ADDON_LOADED")
			if IsLoggedIn() then Possessions_PlayerLogin(self) else self:RegisterEvent("PLAYER_LOGIN") end
		end
	end
end
Code:
function Possessions_PlayerLogin(self)
--CC
Possessions_VarsLoaded(self)
Code:
function Possessions_OnLoad(self)	
--CC
--	self:RegisterEvent("VARIABLES_LOADED")
--	this:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("ADDON_LOADED")
Report comment to moderator  
Reply With Quote
Unread 05-10-10, 02:11 AM  
Karatanthala
A Kobold Labourer

Forum posts: 1
File comments: 14
Uploads: 0
Talking Re: patch

Originally posted by blankStare
think i have this right.
you should be able to tell where to add the code and what to comment out by the existing lines.
Many thanks blankStare, that seems to have done the trick
Report comment to moderator  
Reply With Quote
Unread 05-19-10, 07:57 AM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
Re: patch

Originally posted by blankStare
think i have this right.
you should be able to tell where to add the code and what to comment out by the existing lines.
Really appreciate your efforts here but...a lot of what you posted is unfortunately as clear as mud.

What the heck is "--CC"? There are also lines you don't mention that should be commented out so it doesn't bug out on load. And so on.

Your code changes in a more clear format (in Possessions.lua in v3.1); working from the bottom of the file up so the line numbers are easier to find:

1) Comment out the existing lines 1542-1547 and put changes below them so that lines 1542-1556 now look like the following. Those line numbers will change after doing modifications 2) & 3) below, but don't worry about it:

Code:
--elseif( event == "VARIABLES_LOADED" ) then
--        Possessions_VarsLoaded(self)
--    elseif( event == "PLAYER_ENTERING_WORLD" ) then
--        Possessions_PlayerLogin(self)
--    end
-- end
elseif( event == "PLAYER_LOGIN" ) then
        Possessions_PlayerLogin(self)
    elseif( event == "ADDON_LOADED" ) then
        if arg1 == "Possessions" then
            self:UnregisterEvent("ADDON_LOADED")
            if IsLoggedIn() then Possessions_PlayerLogin(self) else self:RegisterEvent("PLAYER_LOGIN") end
        end
    end
end
2) Comment out the existing lines 1502 & 1503 and add a new line immediately below them so that lines 1501-1505 now look like the following. Again, those line numbers will change after doing 3) below, but don't worry about it:

Code:
function Possessions_OnLoad(self)   
--    self:RegisterEvent("VARIABLES_LOADED")
--    this:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("ADDON_LOADED")
    table.insert(UISpecialFrames, "Possessions_Frame")
3) Finally, after line 1170, put a new line below it so that lines 1170-1172 now look like the following:

Code:
function Possessions_PlayerLogin(self)
Possessions_VarsLoaded(self)
    Possessions_ScanMoney()
Report comment to moderator  
Reply With Quote
Unread 06-20-10, 01:48 PM  
Toabo
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
Thumbs up Much praise for the resurrection!

Possessions has been my favorite mod for tracking inventory across alts for ages. I love how it gives you a nice simple total of all the items and then breaks that out by where the items are located. Other add-ons (Altoholic being one of the best) just don't quite offer the same focused simplicity that Possessions does at this feature. I am ever so grateful for this re-vamped addition. And the ability to choose whether or not to include Guild Bank materials? Awesome!
Report comment to moderator  
Reply With Quote
Unread 06-30-10, 08:23 AM  
Gello
A Molten Giant
AddOn Author - Click to view AddOns

Forum posts: 521
File comments: 582
Uploads: 75
If any have problems linking stuff, until this is updated, open Possessions.lua and go to line 874. Change
Code:
elseif ChatFrameEditBox:IsVisible() then
  ChatFrameEditBox:Insert(itemLink)
end
to
Code:
elseif ChatFrame1EditBox:IsVisible() then
  ChatFrame1EditBox:Insert(itemLink)
end
Change both occurances of ChatFrameEditBox to ChatFrame1EditBox

And I agree this addon rocks.
Report comment to moderator  
Reply With Quote
Unread 07-05-10, 05:15 AM  
coani
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 40
Uploads: 3
To add to the growing piles of code here... simple LDB support. Add this at around line 1181, before the self:UnregisterEvent stuff (might not be the 100% best spot to paste it in, but hey, it works..). Presumes the relevant libs are available. Adds a simple LDB button you can click to toggle Possessions window on/off.

Code:
	if not LibStub then return end
	local ldb = LibStub:GetLibrary("LibDataBroker-1.1", true)
	if not ldb then return end
	local dataobj = ldb:NewDataObject("Possessions", {type = "launcher", icon = "Interface\\Icons\\INV_Misc_Food_59", OnClick = function(clickedframe, button) Possessions_Toggle() end,})
Last edited by coani : 07-05-10 at 05:16 AM.
Report comment to moderator  
Reply With Quote
Unread 07-31-10, 05:19 AM  
oisteink
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Thumbs up Huge Thanks

I <3 Possession

And greatly appreciate the ability to filter out guildbanks
Report comment to moderator  
Reply With Quote
Unread 07-31-10, 05:35 AM  
oisteink
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
If you change that code to
Code:
if LibStub then local ldb = LibStub:GetLibrary("LibDataBroker-1.1", true)
   if ldb then local dataobj = ldb:NewDataObject("Possessions", {type = "launcher", icon = "Interface\\Icons\\INV_Misc_Food_59", OnClick = function(clickedframe, button) Possessions_Toggle() end,}) end
end
and you won't exit if the libs aren't there
Originally posted by coani
To add to the growing piles of code here... simple LDB support. Add this at around line 1181, before the self:UnregisterEvent stuff (might not be the 100% best spot to paste it in, but hey, it works..). Presumes the relevant libs are available. Adds a simple LDB button you can click to toggle Possessions window on/off.

Code:
	if not LibStub then return end
	local ldb = LibStub:GetLibrary("LibDataBroker-1.1", true)
	if not ldb then return end
	local dataobj = ldb:NewDataObject("Possessions", {type = "launcher", icon = "Interface\\Icons\\INV_Misc_Food_59", OnClick = function(clickedframe, button) Possessions_Toggle() end,})
Report comment to moderator  
Reply With Quote
Unread 09-10-10, 02:21 PM  
handvprice
A Kobold Labourer

Forum posts: 1
File comments: 3
Uploads: 0
Success!

You guys are frickin' geniuses! I made the changes in possessions.lua as prescribed by Zidomo and Gello and (after correcting my mis-types....) I haven't had the error message when starting poss, and it works! Gosh, I love this addon.
Report comment to moderator  
Reply With Quote
Unread 09-14-10, 10:54 AM  
coani
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 40
Uploads: 3
Broken in 4.0 beta.

NinjaEdit:
Seems simple to fix actually:

in Possessions.lua (approx around line 1522)
change:
Code:
function Possessions_OnEvent(self, event, arg1)
to:
Code:
function Possessions_OnEvent(self, event, ...)
   local arg1 = ...;
in Possessions.xml (approx line 846, near end)
change:
Code:
<OnEvent>Possessions_OnEvent(self, event, arg1);</OnEvent>
to:
Code:
<OnEvent>Possessions_OnEvent(self, event, ...);</OnEvent>
Last edited by coani : 09-24-10 at 07:28 PM.
Report comment to moderator  
Reply With Quote
Unread 10-12-10, 10:58 PM  
Szyarah
A Defias Bandit

Forum posts: 2
File comments: 139
Uploads: 0
Fix doesn't work.

To the author: would dearly love a cata update for possessions
Report comment to moderator  
Reply With Quote
Unread 10-13-10, 03:26 PM  
coani
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 40
Uploads: 3
Works fine for me, you must have entered it wrong somehow.
But I do agree, it would be nice to see a proper release for a change
Report comment to moderator  
Reply With Quote
Unread 10-13-10, 08:55 PM  
chwolfgang
A Defias Bandit

Forum posts: 2
File comments: 70
Uploads: 0
I tried the posted fix as well, twice in fact, and I am still getting an error. If you would like me to post it, I would be happy to. TY for your time and efforts.

I would love an official update as well.
Report comment to moderator  
Reply With Quote
Unread 10-13-10, 11:26 PM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
Coani's 4.0 fix below works here without issues or errors on 4.x live.

At least in the 5 minutes of testing have given it so far...heh. And after Gello's (06-30-2010 10:23 AM) & my (05-19-2010 09:57 AM, modified from someone else's) earlier fixes below were put in first. Need to do those two first.

Can open the Possessions frame via /poss and search for & mouse over found items to get tooltips for them without problems. The tooltips also contain the Possessions text showing who has the item.

Make sure you are changing the correct lines and make sure you have implemented the earlier 2 fixes as well.
Last edited by Zidomo : 10-13-10 at 11:26 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: