IMPORTANT PLEASE READ -
This is a rework of the original GuildBankLedger by ziggr - It now no longer uses the old command to collect data and instead fetches it from LibHistoire.
This has unfortunately meant that the status messages now no longer work (I am working on this) I also have rewritten the save function so that it stores all data that LibHistoire has collected.
There is no longer a delay option as this is not needed.
The Export Data button is used in conjuction with the Export Timeframe option to only export in csv friendly format the data that you want. It default is 10 days, can be expanded to 90 currently, let me know if this needs to be longer.
The Refresh now button will force LibHistoire to run through all collected data and then complete the dupe check against your existing saved data. THIS CAN TAKE A LONG TIME and I currently don't have a "complete" message that shows.
It will however enable you to dynamically add guilds to the collection. Note - if you change what is being collected from "on" to "off" the existing data will still exist. If you want to remove the old data I would recommend deleting the saved variables and just starting again.
LibHistoire is a dependency please ensure you have it installed.
IMPORTANT: Saved Variables version has been updated to clear old values. If you don't have LibHistoire running with that data please save a copy of this file or export to csv!!
The default .lua file from this is now very large, proportional to the amount of data you have stored in LibHistoire, so please keep this in mind.
Fully reworked to use LibHistoire, with thanks to Baetram and Sharlikran for solving my stupid lua questions!
Added
- LibHistoire usage to reduce server load
- Option to select all data or gold only
- All Guilds are disabled by default and All Data is selected
- On first run turn on for guilds you want and select the type of data, you'll then need to /reloadui or log
- Export Now button - The equivalent of the old Save Now - Utilises a date range at the bottom of the settings window to export only the past x amount of days that you set. (Default is 10days)
- Save now button repurposed to Refresh - This will force any newly selected guilds to fetch data, as well as refresh all existing data collected
The CSV export requires you to use a windows or linux lua tool.
I used the one from http://luadist.org/ just download the windows one, and inside the /bin folder is a lua.exe, drag your GuildBankLedger_to_csv.lua onto that exe and itll do the rest.
CSV is exported into ../savedvariables/GuildBankLedger.csv
--------------------------------------
Currently Working on:
- Some other way to display/export data - Might be useful to display in game < could tie raffle function into this.
- - Maybe a better way to get data to csv without running another lua script?
- Debug messages for completion of data etc.
- Status to work in the settings window again