Note: 12/9/17
This should be live now as gearswap library I think most of the bugs I originally mentioned are fixed.
just type //gs cc to run it, and it will generate the file. Make sure you set up your ccConfig.xml file (it will download a sample one initially)
Ok first time trying to make an addon so anyone interested in testing it out please do so (or helping develop it)
https://github.com/Fox214/closetCleaner
From the readme:
Quote:
Author: Brimstone
addon: closetCleaner
This addon is used in conjuction with gearswap to help find unneeded gear, all the include files are copies of those from the gearswap
addon except for closetCleaner.lua and ccConfig.lua
ccConfig should be setup, you will need to list your jobs that you actively play and keep gear for. You can also setup ignore lists so
things like furniture, food, ninja tools, meds, helm items etc... are not tallied. You may also specify a max item count to limit the size of the report
as well as skip entire bags when searching current gear.
To use this addon download and create a folder called closetCleaner in you .../Windower4/addons directory. This will look for files named
either <playername>_<job>.lua or <job>.lua in ../gearswap/data directory (only those specified in the ccjobs list)
It will tally up all the gear inside the init_gear_sets() function which are in the 'sets' tables. If you have sets defined elsewhere it will not be counted, if you have
sets defined in tables which are not in the 'sets' table space it will not be recognized. It only looks for items where the table key matches a slot
(ie head, back, waist etc...) if you have aliased augmented items make sure the variable is defined inside init_gear_sets(). Setting one table name equal
to another will cause a stack overflow (ie sets.A = sets.B crashes however sets.A = set_combine(sets.B, {}) will work)
Output report should be: .../Windower4/closetCleaner/report/<playername>_report.txt
To use simply type: //lua l closetCleaner
Then: //cc report
If you change the config file, you'll need to //lua r closetCleaner, if you only change your <job>.lua files you can just rerun //cc report
Known issues:
1. it will not process include files (except for organizer-lib)
2. it will not process gear outside the scope mentioned above (I'd like to fix this once some of these other limitations are handled)
3. it will not handle windower.raw_register_event statements (just comment them out before running //cc report)
Other musings:
It looks like I'm wasting about 80 inv. spots on stuff I'm not using.
If you abuse set_combine() a lot the counts may show up a lot higher than actually searching for them will. (I have my bladeborn earring in 635 sets across 16 jobs)
I want to fix the known issues stuff, but not sure how (Not sure if it would make more sense to integrate this into gearswap or keepit a separate addon?)
I was hoping to put options on what to do with gear in the report (ie AHable, send to mule, store on npc or slip, trade for voucher etc..) but I'm not sure that data is in the resources file.
It will also help you find typos in your files (if you shows gear you know you're using it could be because you've misspelled the gear or slot named (I had ranged instead of range on a few ugh...)
Feedback & help welcome.