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:39
Total downloads:40,033
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/15/14, 09:33 AM  
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 74
Uploads: 1
Originally Posted by Migoda
Originally Posted by Khaibit
Is there any consistency to how many items it dupes when it happens? Like...10, or an hour's worth, or everything since you last logged in, or anything like that?
Nope, it seems to be totally random. Tried to count some dupes and there were far more then 100 last time but not in a specific period of time. I was outside of Cyrodiil when it happened.

Digging into the saved data again i noticed they were messed up a bit. Found two arrays of scanHistory that may have caused some trouble. So i completely removed the saved .lua and started with a fresh one which solved that problem. I will watch for any new dupes over the weekend and report back.
Definitely do, thank you for the additional information! I have yet to replicate this bug myself, which is annoying the heck out of me...just out of curiosity (trying to establish any commonality among people having this issue), how many guilds are you in?

Just another little question. Is Shopkeeper supposed to save its settings accountwide? That would be nice because configuring all of the alts is a pain. If so its not working properly. Currently the settings are saved separately for each character under

Should be under ["$AccountWide"] instead of ["characterName"] -> ["@accountName"] then. Or, if its supposed to be char-based, the second ["@accountName"] should be obsolete.
There's actually a reason for that (and the sales data format I've cut below) - it's mostly a legacy from before Update 3. With Update 2, ZOS broke the function to get the current account name, which is why people lost all their addon settings from before that (they were stored under @accountname in the SavedVariables before, and suddenly were under "" because that function broke). During that time, account-wide settings actually became computer-wide and people with more than one account were experiencing issues. To work around this, I wrote my own function to determine the account name and inserted it into the 'namespace' for the SavedVars, thus making account-wide settings account-wide (only) once again. With Update 3 they fixed the function, which is why everyone lost addon settings *again*, so you see a bit of duplication there now. If I remove it now however, it will nuke everyone's settings and sales histories again so I don't want to do that without good reason

The sales history info is account-wide, but settings like alert prefs, window positions, and whatnot are per-character. I will add an option in the settings to make the currently per-character settings account-wide in the next release, thanks for the suggestion!
Last edited by Khaibit : 08/15/14 at 09:35 AM.
Report comment to moderator  
Reply With Quote
Unread 08/15/14, 09:25 AM  
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 74
Uploads: 1
Re: Not showing all sales

Originally Posted by silverbow25
My wife has been complaining for awhile now that not all of her sales are showing up on shopkeeper. At first it seemed like only the highest value ones weren't showing up (you know the ones you really need to know on), but yesterday after investigating a little she thinks that maybe only 2 out of the 4 trade guilds we are in are showing up. All sales seem to be showing up fine on my computer but on hers a lot are not. I removed the addon and the saved variables file, and reinstalled, still the same problem. Any other advice on what to check?
Interesting, is it consistently the same 2 guilds? Are they the first 2, last 2, or some other combination? I'm looking at some major debugging time this weekend so the more information I can get, the better
Report comment to moderator  
Reply With Quote
Unread 08/15/14, 05:57 AM  
Migoda
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 79
Uploads: 1
Originally Posted by Khaibit
Is there any consistency to how many items it dupes when it happens? Like...10, or an hour's worth, or everything since you last logged in, or anything like that?
Nope, it seems to be totally random. Tried to count some dupes and there were far more then 100 last time but not in a specific period of time. I was outside of Cyrodiil when it happened.

Digging into the saved data again i noticed they were messed up a bit. Found two arrays of scanHistory that may have caused some trouble. So i completely removed the saved .lua and started with a fresh one which solved that problem. I will watch for any new dupes over the weekend and report back.

Just another little question. Is Shopkeeper supposed to save its settings accountwide? That would be nice because configuring all of the alts is a pain. If so its not working properly. Currently the settings are saved separately for each character under

Code:
["Default"] = 
{
    ["@accountName"] = 
    {
        ["characterName"] = 
        {
            ["@accountName"] =
            {
Should be under ["$AccountWide"] instead of ["characterName"] -> ["@accountName"] then. Or, if its supposed to be char-based, the second ["@accountName"] should be obsolete.

Sales data seems to have a little bug too, they are saved under

Code:
["Default"] = 
{
    ["@accountName"] = 
    {
        ["$AccountWide"] = 
        {
            ["@accountName"] =
            {
where account name appears twice and the second ["@accountName"] should be obsolete.
Last edited by Migoda : 08/15/14 at 08:42 AM.
Report comment to moderator  
Reply With Quote
Unread 08/14/14, 10:08 PM  
silverbow25

Forum posts: 0
File comments: 15
Uploads: 0
Not showing all sales

My wife has been complaining for awhile now that not all of her sales are showing up on shopkeeper. At first it seemed like only the highest value ones weren't showing up (you know the ones you really need to know on), but yesterday after investigating a little she thinks that maybe only 2 out of the 4 trade guilds we are in are showing up. All sales seem to be showing up fine on my computer but on hers a lot are not. I removed the addon and the saved variables file, and reinstalled, still the same problem. Any other advice on what to check?
Report comment to moderator  
Reply With Quote
Unread 08/14/14, 05:29 PM  
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 74
Uploads: 1
Originally Posted by Migoda
Hey,

i tested v0.9.1 but the duplication bug is still there. Resetting the sales history works for a while, there are no duplicates after a fresh reset. But when some ingame time has passed, it starts again.

Can't see a specific reason for that behaviour yet, it appears to start random. However i noticed something after looking into the saved .lua. Dupe entries always have a timestamp ([6] of the array) decreased by 1. So if the original sale has a timestamp of 1407837569 for example, the first dupe has 1407837568, next 1407837567 and so on.

Hope it helps for finding that nasty bug.
Is there any consistency to how many items it dupes when it happens? Like...10, or an hour's worth, or everything since you last logged in, or anything like that? I'm trying like mad to reproduce this bug and can't seem to =\ Does it seem to happen more often in (or out of) Cyrodiil that you've noticed? Sorry for all the questions, just trying to track down what's going on here!
Report comment to moderator  
Reply With Quote
Unread 08/14/14, 05:15 PM  
Migoda
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 79
Uploads: 1
Hey,

i tested v0.9.1 but the duplication bug is still there. Resetting the sales history works for a while, there are no duplicates after a fresh reset. But when some ingame time has passed, it starts again.

Can't see a specific reason for that behaviour yet, it appears to start random. However i noticed something after looking into the saved .lua. Dupe entries always have a timestamp ([6] of the array) decreased by 1. So if the original sale has a timestamp of 1407837569 for example, the first dupe has 1407837568, next 1407837567 and so on.

Hope it helps for finding that nasty bug.
Last edited by Migoda : 08/14/14 at 05:20 PM.
Report comment to moderator  
Reply With Quote
Unread 08/14/14, 10:53 AM  
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 74
Uploads: 1
Originally Posted by Migoda
Thanks, will try the new version when its out. Keep up the good work, its a great addon .
Thanks! I use it every day myself, I know it's frustrating when bugs arise. 0.9.1 is out just in time for the NA server to go down for maintenance, give it a shot and see if you still get duplication.
Report comment to moderator  
Reply With Quote
Unread 08/14/14, 10:34 AM  
Migoda
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 79
Uploads: 1
Thanks, will try the new version when its out. Keep up the good work, its a great addon .
Last edited by Migoda : 08/14/14 at 10:34 AM.
Report comment to moderator  
Reply With Quote
Unread 08/14/14, 10:30 AM  
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 74
Uploads: 1
Hmm...I don't know if it's just Minion bugging out, but I just tried re-downloading Shopkeeper and some rather important files just aren't there. o_O

I'm going to re-upload a new version in a few minutes, please give it a try and see if it resolves any issues for those of you having problems. You will have to reset the history to remove the duplicates, however.

My apologies for the issues! I cannot seem to duplicate them on my end as of yet, but I am trying =\
Report comment to moderator  
Reply With Quote
Unread 08/14/14, 10:22 AM  
Migoda
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 79
Uploads: 1
Originally Posted by CoUsT
My sales from last ~20 hours just doubled 5 min ago.
Same problem here. I have sales that occured only once but show up 4 times or more in the sales list.
Report comment to moderator  
Reply With Quote
Unread 08/14/14, 10:17 AM  
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 74
Uploads: 1
Re: Shopkeeper buggin' out!

Originally Posted by Holdemnutz
For me and my guildies, Shopkeeper alerts are coming up repeatedly for items sold many hours ago. This is one of THE BEST addons and I thank you for this. I am still using but would be nice for a fix.
Hmm, are you seeing duplication of the sold items in the list when that happens? And is it within a minute or so of zoning or logging in, or does it happen after running around in a zone for a while? And are you getting chat alerts duplicated as well (if you have those turned on?)

Or is this the bug I have yet to track down about how if you alt-tab out of the game and back in repeatedly alerts can get 'stuck' on the screen? If so, disregard the above questions and know I'm working on it
Report comment to moderator  
Reply With Quote
Unread 08/14/14, 08:33 AM  
Holdemnutz

Forum posts: 1
File comments: 1
Uploads: 0
Shopkeeper buggin' out!

For me and my guildies, Shopkeeper alerts are coming up repeatedly for items sold many hours ago. This is one of THE BEST addons and I thank you for this. I am still using but would be nice for a fix.
Last edited by Holdemnutz : 08/14/14 at 08:33 AM.
Report comment to moderator  
Reply With Quote
Unread 08/14/14, 01:49 AM  
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 74
Uploads: 1
Originally Posted by Kraeius
Keybinding disabled? Can't see them in controls menu.
Hmm...they should still be there, I haven't changed them o_O Make sure something hasn't happened to "bindings.xml" in the addon directory (or i18n\EN.lua (or DE.lua for German), but you'd notice if that were missing I think!)...outside of that since I can't hard specify an order for the keybindings (that I know of...?) I can't really say where they'll show up, for me personally it's between two sets of Wykkyd's keybindings.

I haven't touched the keybindings or the setup for them in a bit though, not since adding a second one for the new stats window.
Report comment to moderator  
Reply With Quote
Unread 08/13/14, 11:43 PM  
Kraeius
 
Kraeius's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 249
Uploads: 3
Keybinding disabled? Can't see them in controls menu.
Report comment to moderator  
Reply With Quote
Unread 08/12/14, 02:57 PM  
CoUsT
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 37
Uploads: 1
My sales from last ~20 hours just doubled 5 min ago.

Screenshot from my Shopkeeper menu on your inbox.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: