LUA script to Extrtact Flat Data from Saved Variables
I have been looking for some code to extract the saved variables from Lua files that works with a Lua interpreter. Specifically trying to work with MasterMerchant.lua to pull the EXPORT data out, but searches on the internet have not provided much useful information.
I was hoping that someone here might have something already worked up or something that I can modify to achieve my objective. I am considering writing a program that manages LibHistoire data offline as well. |
Well whatever you do develop most likely I have more or less no say in it to some point.
There is already an export feature if you read the docs and it does work easily with a spreadsheet. I have even seen someone recently specify to use the custom delimiter of the & on google sheets. I don't know how things have been done in the past with that delimiter but you are limited because of how the Lua saved variables work. It has been done the same way since the beginning and I'm not willing to change that. If you just want this for personal use I understand. It serves no useful purpose to know when something sold for x amount in Sept of 2022. If for a mod then use LibHistorie directly that's what it's for. MM is not a library data receptacle for other mods to access. If not for personal use then:
Warning: Spoiler
|
Quote:
The process is a bit cumbersome to do manually and I know it is possible to create a Lua script to write a CSV file from a Saved Variable Lua files as I have done it with a simpler addon that recorded gold deposits into a guild bank for guild raffles. I was hoping someone already had the code written, but I will eventually find the time to write it myself. I'll post the results when I am finished. |
All times are GMT -6. The time now is 07:12 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI