lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO Stand-Alone Plugins > Bags, Bank & Inventory


Post A Reply
Author Comments Comment Options
Unread 04-11-2012, 06:55 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 341
File comments: 981
Uploads: 20
Quote:
Originally Posted by Bowler
I did not know this.. that's pretty neat.

I thought I read somewhere someone wanted their items in a text file/spreadsheet or something.

heh.. I would like to get a list of all my items in vault/chests. that's why i would want a separate txt file. but from my understanding, theres no API or something that will allow you to do this?

If I was more into it, I would want to see what characters have the same items. then I could consolidate and every slot helps.
Unfortunately, Turbine has not exposed the Vault, Shared Storage or Housing Storage to Lua. I know a lot of people, myself included would really love to be able to access those storage objects.

There is already an "All" character view in Alt Inventory and you can see which characters have how many of each item by hovering over the item. It wouldn't be too difficult to create a report that shows each item with quantity broken out by character. I had actually started writing such a report over a year ago when I got sidetracked by MoorMap and never got back to it but I'm sure it's still on the ToDo list, just a lot of other things got ahead of it.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-11-2012, 12:05 PM  
Bowler
The Wary

Forum posts: 0
File comments: 2
Uploads: 0
I did not know this.. that's pretty neat.

I thought I read somewhere someone wanted their items in a text file/spreadsheet or something.

heh.. I would like to get a list of all my items in vault/chests. that's why i would want a separate txt file. but from my understanding, theres no API or something that will allow you to do this?

If I was more into it, I would want to see what characters have the same items. then I could consolidate and every slot helps.
Bowler is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-10-2012, 09:12 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 341
File comments: 981
Uploads: 20
Quote:
Originally Posted by Bowler
It is possible of exporting your inventory to a document, but it may be a bit tricky. I managed to do this quickly, but with poor results. I'm sure others can tweak things around to get better results.

Basically, you look at your inventory list and take a screenshot. crop out everything but your inventory, then use an OCR program to convert it to text, which in turn can be placed on any document.

If someone that can make the item list look basic (black and white with basic font), Better results could be achieved.

this may seem time consuming. but it's possible. and could be tweaked to make it less time consuming.

I used some free online ocr tool, but I assume there are ones out there that may do a better job.
That seems like an awful lot of work to obtain text that is already saved in a text file which would just need parsing. All of the inventory information is saved in files named "AltInv_CharacterName.plugindata" where CharacterName is the name of your character. These files can be found in the "..MyDocuments\The Lord of the Rings Online\PluginData\PlayerName\ServerName\AllCharacters" folder where "..MyDocuments" is your documents folder, PlayerName is your LoTRO account name, and ServerName is the name of the server your charactes are on. It is much easier and more accurate to parse a text file than to fool around with OCR.

It would even be fairly trivial to add a separate save file that only has the item name and quantity to make parsing it that much easier. There is a placeholder function in the file "InventoryPanel.lua" for saving the inventory data (each panel has the option of saving its data but the inventory data is usually saved in the main.lua file so this function is not currently used). If you find the place holder function "self.SaveData" (lines 188-189 in version 2.08) you can replace the existing function (both lines) with the following code and it will create a separate .plugindata file for each character with just the name and quantity.
Code:
 self.SaveData=function()
  -- now save the current character's inventory
  local backpackSize=localPlayer:GetBackpack():GetSize();
  local tmpInventory={};
  local tmpItem;
  if (backpackSize~=nil) then
   local index;
   for index=1,backpackSize do
    tmpItem=localPlayer:GetBackpack():GetItem(index);
    if (tmpItem~=nil)then
     tmpInventory[#tmpInventory+1]= tostring(tmpItem:GetName()).." ("..tostring(tmpItem:GetQuantity())..")";
    end
   end
  end
  PatchDataSave( Turbine.DataScope.Character, "SnapShot_"..currentCharacterName.."_"..tostring(Turbine.Engine.GetLocalTime()), tmpInventory);
 end
This will create a file named "SnapShot_CharacterName_TimeStamp" in the "..MyDocuments\The Lord of the Rings Online\PluginData\PlayerName\ServerName\CharacterName" folder with a unique timestamp so that you can have a record of your inventory over time. You would of course want to periodically clean out those documents as they will accumulate pretty quickly if you swap characters a lot.
This file would look like:
Code:
return 
{
 ["1"] = "Pinch of Westfold Herbs (15)",
 ["3"] = "Sprig of Parsley (24)",
 ["2"] = "Barrel of Water (20)",
 ["4"] = "Sprig of Thyme (9)",
 ["7"] = "Lore-master's Book of the Third Age (1)",
 ["6"] = "Lore-master's Book of the Third Age (1)",
 ["5"] = "Lore-master's Staff of the Third Age (1)",
 ["9"] = "Page of Gondorian Parchment (19)",
 ["8"] = "Westfold Athelas Essence (12)",
 ["10"] = "Giant Flower (1)"
}
Note that the records are not in any particular order, but they are incredibly easy to parse.

Just out of curiousity, what do you intend to do with the inventory list? Was item name and quantity all you were after? If I knew what the end use was I might be able to provide a better solution.

Last edited by Garan : 04-10-2012 at 11:24 PM.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-10-2012, 04:06 PM  
Bowler
The Wary

Forum posts: 0
File comments: 2
Uploads: 0
It is possible of exporting your inventory to a document, but it may be a bit tricky. I managed to do this quickly, but with poor results. I'm sure others can tweak things around to get better results.

Basically, you look at your inventory list and take a screenshot. crop out everything but your inventory, then use an OCR program to convert it to text, which in turn can be placed on any document.

If someone that can make the item list look basic (black and white with basic font), Better results could be achieved.

this may seem time consuming. but it's possible. and could be tweaked to make it less time consuming.

I used some free online ocr tool, but I assume there are ones out there that may do a better job.
Bowler is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-09-2012, 06:05 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 341
File comments: 981
Uploads: 20
Quote:
Originally Posted by Taarr
A fantasic plugin, thanks for the time you've spend creating and subsequently updating it.

Is there any chance of adding a way to view a character's Bank contents? My apologies if this has already been replied to.

Thanks again for your efforts!!
Thanks for the comments.

As to your question, that depends on what you mean by "Bank". If you mean the non-backpack item storage or in LoTRO terms, the "Vault", then the answer is no (see the second paragraph in the description above regarding Lua access limitations). If you mean currency storage, or in LoTRO terms, the "Barter Wallet", then that is already included and is accessed by the bag icon (far right icon of the main Alt Inventory window).
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-09-2012, 05:19 PM  
Taarr
The Wary

Forum posts: 0
File comments: 5
Uploads: 0
A fantasic plugin, thanks for the time you've spend creating and subsequently updating it.

Is there any chance of adding a way to view a character's Bank contents? My apologies if this has already been replied to.

Thanks again for your efforts!!
Taarr is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-05-2012, 10:51 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 341
File comments: 981
Uploads: 20
I just realized that I forgot to increase the cap on the Virtues for the Trait panel. This will be fixed for the version 2.09.

Anyone wishing to manually fix their copy of version 2.08 (it may be quite a while before 2.09 is published) can edit the file Traits.lua, find the trait definitions in lines 142 through 161 and change the last value in each trait definition table from a 12 to a 14.
For example, the line:
Trait[1][1][1][#Trait[1][1][1]+1]={1,"Charity",0x4100860f,0,12};

should become:
Trait[1][1][1][#Trait[1][1][1]+1]={1,"Charity",0x4100860f,0,14};

Last edited by Garan : 04-09-2012 at 06:05 PM.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-05-2012, 07:46 AM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 341
File comments: 981
Uploads: 20
Quote:
Originally Posted by matheteis
I wanted to thank the author for this plugin. At first I downloaded it because I was curious, but it is quickly becoming one of the most useful plugins for me. I too am an altoholic, so this is a crucial tool.

My only wish is that there was an "/ai show/hide, etc." or something similar to bring it up in game instead of "/altinventory show/hide" (just to shorten the typing a bit). BTW--is there a small icon where we can use to toggle it on/off? I thought there was but I honestly forgot. But, even if that's not possible to shorten the command, I can still manage. :=)

So yeah Garan, thanks. Great product. I'm one of your biggest fans. :=P
Thanks for the feedback.

There are a couple of options for displaying/hiding the interface. You can choose to bind it to the key that would normally display your bags (the "Replace Bags" checkbox in the Options). You can also use the minimized icon (be sure "Show Icon When Minimized" is checked in Options) - the icon looks like the icon in the Alt Inventory title bar but on a white background and can be dragged where ever you like it so you may have dragged it away from its default location in the lower left corner of the screen. Or you can use the chat commands ("/altinventory toggle" is the simplest) which can also be bound to a quickslot so that you don't have to type it all out each time. I personally tend to use the minimized icon.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-05-2012, 01:41 AM  
matheteis
The Wary

Forum posts: 0
File comments: 9
Uploads: 0
I wanted to thank the author for this plugin. At first I downloaded it because I was curious, but it is quickly becoming one of the most useful plugins for me. I too am an altoholic, so this is a crucial tool.

My only wish is that there was an "/ai show/hide, etc." or something similar to bring it up in game instead of "/altinventory show/hide" (just to shorten the typing a bit). BTW--is there a small icon where we can use to toggle it on/off? I thought there was but I honestly forgot. But, even if that's not possible to shorten the command, I can still manage. :=)

So yeah Garan, thanks. Great product. I'm one of your biggest fans. :=P

Last edited by matheteis : 04-05-2012 at 01:50 AM.
matheteis is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 03-26-2012, 10:46 AM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 341
File comments: 981
Uploads: 20
Quote:
Originally Posted by Adder
Quote:
Originally Posted by Garan
If you have not logged in the character since turning on Stats then the Stats were never saved for that character - the Stats only get captured when they are enabled and the character is logged in. Are you sure you have logged in those characters since turning on Stats? Also of note is that the Stats do not work for Creep characters - Turbine did not implement Stats or Money or DP methods for Creeps

Since Update 6 it has been safe to use the money and Stats displays. Turbine fixed the bug which was crashing the client when unloading plugins that had accessed the GetAttributes() method.

Alt Inventory will be getting an update in a couple weeks once I've had time to update the crafting recipes for the U6 changes. I will be removing the warning about Attributes since it is no longer an issue. This update will also included a new panel for the character's Wallet with all Barter Currencies for that character displayed.
I had logged in on those characters. What I found was that if those characters didn't have the stat options enabled, their stats wouldn't show. Once I enabled the option in each of them, then they worked properly.

Good to know the crash bug has been fixed and looking forward to the update. Thanks!
Ah. Yes. Attributes are turned on and off per character. I never did get around to setting up Account settings vs Character settings... it's on the ToDo list, unfortunately it's a very long list and this option is somewhere wayyyyyy down near the bottom.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 03-26-2012, 08:29 AM  
Adder
The Undying
 
Adder's Avatar

Forum posts: 22
File comments: 42
Uploads: 0
Quote:
Originally Posted by Garan
If you have not logged in the character since turning on Stats then the Stats were never saved for that character - the Stats only get captured when they are enabled and the character is logged in. Are you sure you have logged in those characters since turning on Stats? Also of note is that the Stats do not work for Creep characters - Turbine did not implement Stats or Money or DP methods for Creeps

Since Update 6 it has been safe to use the money and Stats displays. Turbine fixed the bug which was crashing the client when unloading plugins that had accessed the GetAttributes() method.

Alt Inventory will be getting an update in a couple weeks once I've had time to update the crafting recipes for the U6 changes. I will be removing the warning about Attributes since it is no longer an issue. This update will also included a new panel for the character's Wallet with all Barter Currencies for that character displayed.
I had logged in on those characters. What I found was that if those characters didn't have the stat options enabled, their stats wouldn't show. Once I enabled the option in each of them, then they worked properly.

Good to know the crash bug has been fixed and looking forward to the update. Thanks!
Adder is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 03-26-2012, 07:34 AM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 341
File comments: 981
Uploads: 20
Quote:
Originally Posted by Adder
This is one of my most used plugins that I load for every character but I just noticed a glitch. I decided to enable the wallet/stats in the options since I never unload AltInv (I'm constantly logging out and in since I'm a true altoholic) and hence need not worry about crashing. What I noticed is that not all characters are showing the stats. Out of 10 on one server, only 7 are showing stats. The other 3 show all zeros. Any idea why this is happening?
If you have not logged in the character since turning on Stats then the Stats were never saved for that character - the Stats only get captured when they are enabled and the character is logged in. Are you sure you have logged in those characters since turning on Stats? Also of note is that the Stats do not work for Creep characters - Turbine did not implement Stats or Money or DP methods for Creeps

Since Update 6 it has been safe to use the money and Stats displays. Turbine fixed the bug which was crashing the client when unloading plugins that had accessed the GetAttributes() method.

Alt Inventory will be getting an update in a couple weeks once I've had time to update the crafting recipes for the U6 changes. I will be removing the warning about Attributes since it is no longer an issue. This update will also included a new panel for the character's Wallet with all Barter Currencies for that character displayed.

Last edited by Garan : 03-26-2012 at 07:40 AM.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 03-25-2012, 11:49 PM  
Adder
The Undying
 
Adder's Avatar

Forum posts: 22
File comments: 42
Uploads: 0
This is one of my most used plugins that I load for every character but I just noticed a glitch. I decided to enable the wallet/stats in the options since I never unload AltInv (I'm constantly logging out and in since I'm a true altoholic) and hence need not worry about crashing. What I noticed is that not all characters are showing the stats. Out of 10 on one server, only 7 are showing stats. The other 3 show all zeros. Any idea why this is happening?
Adder is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 02-27-2012, 12:31 AM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 341
File comments: 981
Uploads: 20
Re: maybe an idea

Quote:
Originally Posted by Wicky71
Hy,

I'am also playing with the german client and the plugin is working fine.
It's a good idea to save the informations to use it with other chars.

I saw the tooltips are fuctionally at the inventoryitems of the actual char, not with a saved one.
These tips would be very interesting for equipped items. You only show the name.
Like in "Lotro Compendium". it use the normal ui-tooltips for all items.

In my opinion it would be a very good extension for your addon.

kind regards
Thanks for the feedback.

I know a number of people (myself included) would like such a feature so I am going to try to explain why it is not feasible at this time. First, the Lua interface does not allow us to programmatically retrieve the itemID for items (which would be the best means of implementing this) unless the item is the used in a drag-drop operation (which is how other plugins capture the individual ItemIDs that they use). The interface exposes the icon image, name and a few stats like durability but to implement the tooltips I need accurate ItemIDs. An alternate approach is to use an item database such as I implemented for the learned recipes tooltips. It would be possible to match a portion of the items by name but this would require a large database and if based solely on the available Lorebook and third party data would be incomplete. The recipes only required 3720 entries but when I last captured the entire list of valid ItemIDs there were over 66000 entries (you can fairly easily use Lua to scan for valid ItemIDs using a Lua quickslot control). Matching and validating 3720 entries only took about a week but that was aided by the fact that most of the recipes could be resolved using the XML data feeds so I only had to hand correct a couple of hundred. Since the Lorebook and other data sources (most of which are based on the Lorebook) are both incomplete and have numerous incorrect entries it would take far more time to validate 66000 items than would be practical. So, unfortunately, until Turbine gives us a method for retrieving the ItemID from a Lua item this feature, while quite desirable, will not be practical to implement.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 02-26-2012, 04:10 PM  
Wicky71
The Indomitable
 
Wicky71's Avatar
Interface Author - Click to view interfaces

Forum posts: 12
File comments: 18
Uploads: 5
maybe an idea

Hy,

I'am also playing with the german client and the plugin is working fine.
It's a good idea to save the informations to use it with other chars.

I saw the tooltips are fuctionally at the inventoryitems of the actual char, not with a saved one.
These tips would be very interesting for equipped items. You only show the name.
Like in "Lotro Compendium". it use the normal ui-tooltips for all items.

In my opinion it would be a very good extension for your addon.

kind regards
Wicky71 is offline Report comment to moderator   Reply With Quote Reply With Quote
Post A Reply

 
Category Jump:
Search this Category:
 

All times are GMT -5. The time now is 03:41 PM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui