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,962
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 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 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-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 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 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 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 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-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-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 04-26-10, 11:36 PM  
Everglow
An Aku'mai Servant
 
Everglow's Avatar
AddOn Author - Click to view AddOns

Forum posts: 36
File comments: 94
Uploads: 7
emblems

It seems with the latest patch emblems are no longer tracked. They used to be stored as "keys". Is there any way to add emblem tracking back in to the addon?
__________________
Everglow - Sisters of Elune/US
Report comment to moderator  
Reply With Quote
Unread 04-24-10, 02:11 PM  
LaoTseu
A Cyclonian
 
LaoTseu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 67
Uploads: 4
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.

The problem, possisions use the VARIABLES_LOADED which pull information that may not be present if the using logon procress is not completed. In the case described by coani, either GetRealmName() or UnitName("player") doesn't return a good value at that time.

The fix:

Instead of using VARIABLES_LOADED, call Possessions_VarsLoaded(self) first thing in the Possessions_PlayerLogin() function. Also, you need to register ADDON_LOADED instead of PLAYER_LOGIN and add the event processing for it like so:

Code:
	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
I don't remember which patch changed the way we have to do addon initialization but it's been quite a while.

Hope that helps.
Report comment to moderator  
Reply With Quote
Unread 04-15-10, 05:11 AM  
coani
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 40
Uploads: 3
Once in a while I get this error when logging in and Poss doesn't show any items at all for any char, reloading ui fixes it:

1x Possessions-3.0\Possessions.lua:1426: attempt to index field '?' (a nil value)
Possessions-3.0\Possessions.lua:1171: in function `Possessions_PlayerLogin'
Possessions-3.0\Possessions.lua:1545: in function `Possessions_OnEvent'
<string>:"*:OnEvent":1: in function <[string "*:OnEvent"]:1>

Locals:
self = Possessions_Frame {
0 = <userdata>
}
playerFaction = nil
playerGuild = nil
realmName = nil
playerName = nil
POSS_INVENTORY_CONTAINER = 0

---
Report comment to moderator  
Reply With Quote
Unread 04-01-10, 05:00 PM  
thisapimp
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 10
Uploads: 2
I could try adding the guild bank filter, but it might take a while. I'm pretty busy IRL, but it doesn't sound too bad. What I'm not sure about is where to list all the guild banks.
Report comment to moderator  
Reply With Quote
Unread 04-01-10, 04:57 PM  
thisapimp
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 10
Uploads: 2
Originally posted by funktion

any reason i'd get this error on one character? I tried to delete the char entry from the .lua but it just recreated it.
I'm not sure, but you could try /poss -clear name to remove the data.
Report comment to moderator  
Reply With Quote
Unread 04-01-10, 07:52 AM  
concave35
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Thank for the update. Greatful you added the guild bank option.

However, is there any chance to enhance it further to choose which guild bank to include and which to ignore?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: