Download
(67 Kb)
Download
Updated: 10/20/14 01:19 AM
Pictures
File Info
Compatibility:
Update 4 (1.4.3)
Updated:10/20/14 01:19 AM
Created:07/03/14 12:04 PM
Monthly downloads:95
Total downloads:40,231
Favorites:82
MD5:
Shopkeeper - Sales History and Alerts  Popular! (More than 5000 hits)
Version: 1.0
by: Khaibit [More]
Inspired by awesomebilly's Luminary - Trade Sales History (http://www.esoui.com/downloads/fileinfo.php?id=247), which is sadly abandoned by all appearances, I bring you Shopkeeper!

Shopkeeper checks the sales histories of each guild store you have access to (once every 2 minutes by default, but the interval is configurable) and maintains a searchable, sortable history for you to peruse at your leisure, making it easy to see what has sold in your stores and for how much. A convenient second view shows only your sales for a quick summary, and optional on-screen and/or chat alerts make sure you know you sold something usually long before you get the money in the mail!

As you accumulate sales data, Shopkeeper can show you some statistical data on it across an adjustable time period as well - items sold, gold made, and more.

By default, Shopkeeper opens automatically with your mail and guild store screens, but this can be disabled if you wish. /shopkeeper will always toggle the window open and closed in all cases! The initial scan on your first login can take a few seconds - you should see sales events in the Shopkeeper window within 15-20 seconds however.

Please check out the FAQ - http://www.esoui.com/portal.php?id=134&a=faq

IMPORTANT NOTE
I have uploaded a final release of Shopkeeper. Starting tomorrow, I will likely not have the ability to use a computer, so I cannot continue to work on it, support it, or play ESO at all. As such, not that I'd be in a position to complain, know, or care, but anyone and everyone has my full permission to fork the code and create a successor; the license is distributed with the code. The code is commented somewhat decently, and shouldn't be too hard to get started with. Thank to you everyone for your support these last few months, I am sorry I cannot be deserving of it.

Thanks/Acknowledgements/Kudos/Etc.:
Garkin, farangkao, CrazyDutchGuy, and the esoui.com dev forum in general,
Eldar and Geuse Box on the NA server for helping me test (as well as all of you who have submitted bug reports, you help make Shopkeeper better!),
Urbs on the EU server for the awesome German translation work,
jupiter126/Otxics on the EU Server for the awesome French translation work,
The Requiem guild as a whole for putting up with my loopiness (not related to the addon, I'm just that way in general, heh.),
Seerah for LibMediaProvider, LibAddonMenu, and LibStub,
Awesomebilly for the original Luminary Trade Sales History,
And all of you for downloading and favoriting my addon.


And another addition to the thank-you list - although he requested his name be withheld, I am still going to give (person) a huge thank you for this generous donation! That's 10 Rekuta, 5 Kuta, an Ancient Elf and Daedric motif book, and 10,000 gold...I was speechless (but have regained my speech as you can see)!!

October 19, 2014: Final release.
Goodbye world.

September 15, 2014: 0.9.7(a) release.
Updated to work with Update 4! Due to the new large server-side history size, a reset can take a long time now, be warned!
Stats day slider changed so "Using all data" is at the right-hand end instead of the left.
0.9.7a filters out guild trader hiring events which are apparently now part of the 'purchases' category.
September 8, 2014: 0.9.6 release.
Big re-write of how data is stored, searched, and sorted to improve memory usage
(for the morbidly curious: implemented an inverted index for searching, replaced Lua's default quicksort implementation for tables with Shellshort, and reduced redundant copies of sale event info in tables.)
Added new option to disable on-screen alerts while in Cyrodiil. (Chat alerts still show, if enabled.)
Moved the item quantities in the sales history window to more closely match the default UI presentation.
Increased maximum history size since memory usage has been reduced.

August 27, 2014: 0.9.5 release.
Bug fix to handle other addons requesting sales history events (would previously result in dupes in Shopkeeper sales list)
0.9.5a is a re-upload to fix an unfortunate typo :)

August 26, 2014: 0.9.4 release.
Offline sales report (optional report in chat of what you sold while offline)
Reset button now has a confirmation dialog associated with it
Reset and Refresh buttons will now be disabled (dimmed out) and a 'wait' animation will play when a scan is in progress
Fixed bugs related to me making a typo in the sorting functions
Fixed bugs related to the search box, updating the slider range, and correctly carrying over your search between full and mini windows
Further refined the store searching - login search will be faster again now, and better handle the upcoming changes in Update 4
Increased maximum history size to 15000 - if you use several other memory intensive addons this may cause issues!
Optimized searching and sorting routines to be a little more efficient with large sales histories
French localization updates (thanks jupi!)

August 19, 2014: 0.9.3 release.
Fix for statistics window throwing an error if you have sales events in your history from guilds you're no longer in
(Possible) fix for the "occasional item duplication upon login" bug
Internationalization tweaks

August 18, 2014: 0.9.2 release.
Fix to event-based scanning to (hopefully) stop the dupes people are seeing
Fix to alerts to (hopefully!) stop the stuck on screen alerts people would see when alt-tabbing
Shopkeeper now tracks guild info by name rather than ID, so if you swap guilds around it shouldn't break as easily.
French localization is now live! Merci bien to jupiter126/Otxics on the EU Server for the translation work!
New option in the addon settings to make all your settings account-wide, rather than character-specific.
Statistics window resized slightly to accomodate...per-guild filters!
The day range slider is also smarter and will hide entirely if you have less than 2 days' worth of your sales to work with.
Some UI tweaks to make all languages fit better

August 14, 2014: 0.9.1 release.
Nothing major here, but either I or esoui.com may have borked 0.9b's files so uploading a new release with some minor tweaks here and there to get a version that doesn't seem to intermittently be missing bindings.xml and LibAddonMenu

August 11, 2014: 0.9b release.
Further rewrite of part of the scanning routines to be more accurate
Some small tweaks to the time display routines (will go up to 90 seconds before saying 1 minute, 90 minutes before 1 hour, etc.)
Fixes to on-screen alerts to avoid 'missing' multiple identical alerts
GUILD TRADER SUPPORT! Buyer names now have a gold bag icon next to them if they are not in the guild (i.e. bought at your guild's trader kiosk)
Stats Window now also shows you percentage of sales made at the guild trader
Other minor tweaks and optimizations as we push towards a fully-translated, fully-functional 1.0 release!

August 8, 2014: 0.9a release.
Rewrite of part of the scanning routines to be more accurate
Fixes for odd behavior in the stats window
Fixes for the "Alert flood" issue if you sell multiple items between scans
Misc. other small bugfixes

August 4, 2014: 0.9 release.
Added option for a smaller main Shopkeeper view(Thanks to Ice for the suggestion!)
Tracking of your sales stats in a separate summary window - items sold, gold made, largest single sale, gold per day over a variety of time periods(Thanks to Kraeius for the suggestion!)
Item search!!

July 16, 2014: 0.3 release.
Added ability to toggle between gross/total sales price and per-unit price displays
Better support for multiple accounts that use the same computer
Further improvements to store scanning
UI improvements - Shopkeeper closes along with most other UI scenes now (bank, crafting station, etc.)
Updated LibMediaProvider, LibStub, and LibAddonMenu to Seerah's latest releases

July 08, 2014: 0.2a release.
This release is a localization update for the German version of the addon. Thanks to Urbs of the EU server the localization is now complete!! Vielen Dank!

July 07, 2014: 0.2 release.
German localization is 95% complete!
Fixed missing localizations on Reset/Refresh buttons.
Fixed a minor license issue.
Sound options added for alerts.
On-screen and chat alert options separated.
Shopkeeper button on guild store screen moved down slightly.
Fixed alert swarm after resetting listings.
Main window now has X to close button and a hotkey binding.
Main window now closes when you open the game menu.
Eliminated cases where slider could get confused as to number of items in the list.
LibAddonMenu updated to version 2.0r9 (thanks Seerah!)

July 03, 2014: Initial Relase 0.1
Optional Files (1)
File Name
Version
Size
Author
Date
Type
1.0 (dOpiate Fix).7b
223kB
03/03/15 04:06 PM
Patch


Archived Files (16)
File Name
Version
Size
Uploader
Date
0.9.7a
62kB
Khaibit
09/15/14 11:07 AM
0.9.7
62kB
Khaibit
09/15/14 09:32 AM
0.9.6
62kB
Khaibit
09/08/14 02:56 PM
0.9.5a
60kB
Khaibit
08/28/14 12:38 AM
0.9.5
60kB
Khaibit
08/28/14 12:23 AM
0.9.4
60kB
Khaibit
08/26/14 11:50 AM
0.9.3
57kB
Khaibit
08/19/14 01:04 PM
0.9.2
57kB
Khaibit
08/18/14 08:01 PM
0.9.1
54kB
Khaibit
08/14/14 10:40 AM
0.9b
31kB
Khaibit
08/11/14 02:08 PM
0.9a
51kB
Khaibit
08/08/14 09:14 PM
0.9
51kB
Khaibit
08/04/14 05:59 PM
0.3
47kB
Khaibit
07/16/14 08:37 AM
0.2a
46kB
Khaibit
07/08/14 07:11 PM
0.2
46kB
Khaibit
07/07/14 09:57 AM
0.1
43kB
Khaibit
07/03/14 12:04 PM


Post A Reply Comment Options
Unread 08/28/14, 01:20 AM  
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 74
Uploads: 1
Originally Posted by babylon
Originally Posted by Khaibit
Originally Posted by babylon
K just updated, loaded game, stilll had the duplicate sales there so ran reset, and BugEater caught this bug (and reset isn't working, just keeps cycling).

Yeah, you managed to catch me before I fixed that. 0.9.5a was uploaded a bit ago and should be approved shortly. It's always something...*sigh*
Heh sorry, k I'll uninstall again and wait for the (a) version to release.
If you're impatient and want to fix it yourself, open Shopkeeper.lua in a text editor, and change lines 689-693 to read:

Code:
      while (lastItem ~= nil and lastItem[2] ~= guildName and lastItemIndex > 1) do
        lastItemIndex = lastItemIndex - 1
        lastItem = self.ScanResults[lastItemIndex]
      end
      if lastItemIndex ~= 1 and lastItem ~= nil then lastSaleTime = lastItem[6] end
Report comment to moderator  
Reply With Quote
Unread 08/28/14, 01:38 AM  
babylon

Forum posts: 14
File comments: 363
Uploads: 0
Originally Posted by Khaibit
Originally Posted by babylon
Originally Posted by Khaibit
Originally Posted by babylon
K just updated, loaded game, stilll had the duplicate sales there so ran reset, and BugEater caught this bug (and reset isn't working, just keeps cycling).

Yeah, you managed to catch me before I fixed that. 0.9.5a was uploaded a bit ago and should be approved shortly. It's always something...*sigh*
Heh sorry, k I'll uninstall again and wait for the (a) version to release.
If you're impatient and want to fix it yourself, open Shopkeeper.lua in a text editor, and change lines 689-693 to read:

Code:
      while (lastItem ~= nil and lastItem[2] ~= guildName and lastItemIndex > 1) do
        lastItemIndex = lastItemIndex - 1
        lastItem = self.ScanResults[lastItemIndex]
      end
      if lastItemIndex ~= 1 and lastItem ~= nil then lastSaleTime = lastItem[6] end
Would you be able to tell me what lines to change, so I know what to search for? I have no way to find a line number using wordpad.
Report comment to moderator  
Reply With Quote
Unread 08/28/14, 01:45 AM  
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 74
Uploads: 1
Originally Posted by babylon
Originally Posted by Khaibit
Originally Posted by babylon
Originally Posted by Khaibit
Originally Posted by babylon
K just updated, loaded game, stilll had the duplicate sales there so ran reset, and BugEater caught this bug (and reset isn't working, just keeps cycling).

Yeah, you managed to catch me before I fixed that. 0.9.5a was uploaded a bit ago and should be approved shortly. It's always something...*sigh*
Heh sorry, k I'll uninstall again and wait for the (a) version to release.
If you're impatient and want to fix it yourself, open Shopkeeper.lua in a text editor, and change lines 689-693 to read:

Code:
      while (lastItem ~= nil and lastItem[2] ~= guildName and lastItemIndex > 1) do
        lastItemIndex = lastItemIndex - 1
        lastItem = self.ScanResults[lastItemIndex]
      end
      if lastItemIndex ~= 1 and lastItem ~= nil then lastSaleTime = lastItem[6] end
Would you be able to tell me what lines to change, so I know what to search for? I have no way to find a line number using wordpad.
Search for the second and third lines there -

Code:
        lastItemIndex = lastItemIndex - 1
        lastItem = self.ScanResults[lastItemIndex]
That'll get you there. The lines as they are are almost identical, but are missing something on the first and last line of the set.
Report comment to moderator  
Reply With Quote
Unread 08/28/14, 03:16 AM  
QuadroTony
Banned
 
QuadroTony's Avatar
AddOn Author - Click to view AddOns

Forum posts: 828
File comments: 3851
Uploads: 3
Originally Posted by QuadroTony
why the history erased after few sold items??
its not too hard i guess remember all sales with this addon
and do not reset or erase it, like addon for all books you read or list of all finished quests

please add this usefull feature
without it this addon looks like little defective
anyone?
Report comment to moderator  
Reply With Quote
Unread 08/28/14, 06:05 PM  
Quillyne

Forum posts: 0
File comments: 89
Uploads: 0
Working perfectly again Khaibit...thank you!!
Report comment to moderator  
Reply With Quote
Unread 08/28/14, 08:17 PM  
babylon

Forum posts: 14
File comments: 363
Uploads: 0
This latest version works perfectly, cheers!
Report comment to moderator  
Reply With Quote
Unread 08/28/14, 10:51 PM  
bethiboo

Forum posts: 0
File comments: 4
Uploads: 0
Sales not showing

Hey there,
Even with the latest update, very few of my sales are showing. I'm lucky if I get 1 in 5 to list in Shopkeeper. This has been since the last game patch. I haven't had any of the duplication problems and no error messages. It's just not showing the majority of my sales.

It MAY be only showing one guild, I'm not sure the sample size is high enough for it to be statistically significant. Four guilds, maybe 10-12 sales and only 2 are showing and they just happen to both be from the same guild. However, there are some sales from that guild that are NOT showing, as well.

I've tried refreshing, even resetting a few weeks ago, messing around with the add-on settings, and nothing seems to work. Any ideas?
Report comment to moderator  
Reply With Quote
Unread 08/28/14, 11:21 PM  
SteveCampsOut
 
SteveCampsOut's Avatar

Forum posts: 41
File comments: 366
Uploads: 0
Originally Posted by QuadroTony
Originally Posted by QuadroTony
why the history erased after few sold items??
its not too hard i guess remember all sales with this addon
and do not reset or erase it, like addon for all books you read or list of all finished quests

please add this usefull feature
without it this addon looks like little defective
anyone?
If it's that important to people, just have it regularly export the sales to a standard text file that can be read outside the game so that the LUA Memory issues aren't at issue with reading all that data.
Report comment to moderator  
Reply With Quote
Unread 08/29/14, 12:27 AM  
QuadroTony
Banned
 
QuadroTony's Avatar
AddOn Author - Click to view AddOns

Forum posts: 828
File comments: 3851
Uploads: 3
i just want such feature with this addon

all other data addons i use remember previous states and info, etc
and for me it will be very useful to see sales history at least from last month
now its erased near every week
its to uncomfortable
Report comment to moderator  
Reply With Quote
Unread 08/29/14, 09:14 AM  
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 74
Uploads: 1
Re: Sales not showing

Originally Posted by bethiboo
Hey there,
Even with the latest update, very few of my sales are showing. I'm lucky if I get 1 in 5 to list in Shopkeeper. This has been since the last game patch. I haven't had any of the duplication problems and no error messages. It's just not showing the majority of my sales.

It MAY be only showing one guild, I'm not sure the sample size is high enough for it to be statistically significant. Four guilds, maybe 10-12 sales and only 2 are showing and they just happen to both be from the same guild. However, there are some sales from that guild that are NOT showing, as well.

I've tried refreshing, even resetting a few weeks ago, messing around with the add-on settings, and nothing seems to work. Any ideas?
Hmm, how old are the sales? Until Update 4 drops, unfortunately I am limited to only being able to pull the last 24 hours of events from the server because that's all it will give. If you go more than that without logging on Shopkeeper may miss sales events; in addition, on a fresh installation or after a reset it will only be able to re-grab the last 24 hours worth of sales. I wish it could do more, and come Update 4 it will! (Part of the patch is that those histories will go back 7-10 days instead)

If that's not the issue though, definitely let me know. Are sales other than yours being missed in the same time frame?
Report comment to moderator  
Reply With Quote
Unread 08/29/14, 09:17 AM  
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 74
Uploads: 1
Originally Posted by QuadroTony
i just want such feature with this addon

all other data addons i use remember previous states and info, etc
and for me it will be very useful to see sales history at least from last month
now its erased near every week
its to uncomfortable
Unfortunately, I do run into Lua memory limit issues as I increase the maximum history size further than I have with this most recent set of releases (15000), especially for people that run other large-table addons like DataDaedra and HarvestMap. You can certainly manually edit the value higher if you'd like; however, given the large number of addons that you've posted you're running it may not be a good idea. If you want to, however, open the SavedVariables file for Shopkeeper and change the value for all lines containing "historyDepth" to something higher.

That being said, I'm always looking for ways to better optimize how I store the data so more events can be stored in the same RAM space and be sorted/searched more quickly, so stay tuned on that front
Report comment to moderator  
Reply With Quote
Unread 08/29/14, 09:29 AM  
QuadroTony
Banned
 
QuadroTony's Avatar
AddOn Author - Click to view AddOns

Forum posts: 828
File comments: 3851
Uploads: 3
it must save 15000 sales in the history right?
i cant achieve morethan 3... strange
Report comment to moderator  
Reply With Quote
Unread 08/29/14, 07:59 PM  
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 74
Uploads: 1
Originally Posted by QuadroTony
it must save 15000 sales in the history right?
i cant achieve morethan 3... strange
3000 is the default unless you change it in the settings.
Report comment to moderator  
Reply With Quote
Unread 08/30/14, 01:53 AM  
babylon

Forum posts: 14
File comments: 363
Uploads: 0
Getting repeat listings again, atm only seen in "All Sales" window and not in "My Sales" window.

*edit* now it's showing in the "My Sales" tab too.

Issue is intermittent (only happens on the odd one or two listings as day goes on), all addons are updated and client repaired etc.

I use Awesome Guild Store, and recently installed Date Daedra (issue had started again before installing Date Daedra though).


Any other info you need from me to help point you to issue causing this?
Last edited by babylon : 08/30/14 at 10:50 PM.
Report comment to moderator  
Reply With Quote
Unread 08/30/14, 02:16 AM  
QuadroTony
Banned
 
QuadroTony's Avatar
AddOn Author - Click to view AddOns

Forum posts: 828
File comments: 3851
Uploads: 3
Originally Posted by Khaibit
Originally Posted by QuadroTony
it must save 15000 sales in the history right?
i cant achieve morethan 3... strange
3000 is the default unless you change it in the settings.
not limited by the time?
my last sale was near week ago
but now YOUR SALES are empty...

what can cause this?

and i didnt really need ALL SALES history by my guilds
any options to turn it off mby?
Last edited by QuadroTony : 08/30/14 at 02:17 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: