Does such a thing exist? I started playing WoW again last month, and re-downloaded my favorite Ace2 mods. I was getting a lot of errors and figured I'm missing some libraries etc, so I used the WowAce updater.
Well, now I have a list of addon libraries out the wazoo. Is there a tool I can use to tell what I can delete, or what's dependent on what mod, etc? Thanks.
Probably not what you are looking for - but this is the method I use-
1. Delete all the libraries from your addons directory
2. Run WoW Ace Updater
3. Use the Re-Install addons function in WoW Ace Updater, and make sure the "load dependencies" is selected in the preferences
Now you will only have the library required. This does presume you use "external" libraries.
Only the ones that are needed are loaded, so there's no real reason to clean them out unless you're OCD about a clean addon folder (you'll grow out of that soon enough)...
It displays a window with mods that are "Load on Demand" but not loaded at present. It gives a hint on what libs possible to remove. But don't remove separate lod configurating mods (I mean some mods have their configuration UI in a separate mod to save performance because you usually just config once and go), and be sure to run the game (using mods) a while before using it.
It is a bit of detective work, but I've managed to trim down my libs a bit. And if you remove a lib thats used, you can always put it back again.
And I disagree with tekkub, I want my addon folder clean. :P
What I do every once in a while is the following:
Start up WowAceUpdater, press the installed tab, set the category filter to 'library'. Select all the addons showing up now, right click one of them and choose uninstall selected. Then just update as you normally do with the 'automatic dependency download' option on in the preferences :)
Tadaa, your addons folder is cleaned from unused libraries.
Set all Libs to disabled. Start WoW. When you get an error that some Lib isn't loaded, enable it. Most libs will be enabled and then loaded on demand by the addon that needs them.
After fiddling around for a few minutes at a time over the last infinite months, I've ended up with this in my AddOns folder:
[fini:pgl]:/cygdrive/c/Programs/WORLDO~1/INTERF~1/AddOns $ cat clean-unused-libs.sh
#!/bin/bash
declare -a notfound
tocs=$(find . -name '*.toc')
tmpfile='./_tmpalltocs'
cat $tocs > $tmpfile
for libpath in $(grep -l X-Category..Library */*.toc)
do
lib=$(dirname $libpath)
echo -ne "$lib:\t"
let x=0; for y in $(egrep -c "(^$lib|X-Embeds:.*$lib)" $tmpfile); do let x=$x+$y; done
echo $x
[ $x = "0" ] && notfound[${#notfound[@]}]=$lib
done
echo ""
echo ""
echo "Total not found: ${#notfound[@]}"
if [ ${#notfound[@]} -gt 0 ]
then
echo ""
for missinglib in ${notfound[*]}
do
echo -- " - $missinglib"
done
fi #n
It works well enough, I think. So if you have Cygwin installed, it should tell you what useless libs you have installed (well, maybe some libs aren't really being used anyway, but it'll tell you which libs (that have been classified as libs, so of course you'll miss the really bad ones) aren't being read by WoW... I think.)
Maybe I should add optdeps. I dunno. It's not exactly production quality code. :)
Set all Libs to disabled. Start WoW. When you get an error that some Lib isn't loaded, enable it. Most libs will be enabled and then loaded on demand by the addon that needs them.
And that is different from just leaving them all enabled and getting LoD'd when needed how?
cleaning addon folder from unused libs grew old in, hmm...6 months? at some point i just gave up.
So how often do you change or add new addons? Every hour? I try to minimize that and keep full control of what I add or not. And when my UI/Addons is in a somewhat stable condition, I find it really easy to keep the folder clean.
For a developer like tekkub, it might be a different story, but most users aren't developers.
So how often do you change or add new addons? Every hour? I try to minimize that and keep full control of what I add or not. And when my UI/Addons is in a somewhat stable condition, I find it really easy to keep the folder clean.
For a developer like tekkub, it might be a different story, but most users aren't developers.
Personally, addons are another part of the game for me. I guess I'm a geek - I'm naturally interested in tweaking and modifying whatever it is that I'm dealing with. For Windows or FreeBSD, I'm constantly downloading new tools and programs to try out, and reading up on how things work internally so I can try out things to fine-tune processes or whatever. For WoW, this means I take an active interest in new and updated addons, so much so that I made a site where I can see new and updated addons without having to check the three main sites individually (!PLUG! http://fin.instinct.org/wowmods/ !END PLUG!). I care about the quality of these things - who wouldn't, if they used them as much as I do - which means that the idea of useless code being part of my setup irritates me. That's why I care about this.
I've done some development on addons (nowhere near as many as a lot of the people around here); but that's not really relevant to why you would want to keep unused code out of your addons collection. And, seriously, how confident are you that the addons you use - and update, I assume - haven't moved on to updated versions of their libraries, leaving bits behind that you're no longer using? How often do you check?
If anything, WAU makes it easier to keep your folder organised.
Quote from Buio »
Strange, I've used WAU long time and never had any problems with keeping order in the addon folder even so.
What? Huh? The last two posts have confused me. You have no problems "keeping order" and WAU (where did that come from?) keeps the addons folder "more organised"? By this, do you mean that (as I asked in my post below) you are confident are you that the addons you use - and update, I assume - haven't moved on to updated versions of their libraries, leaving bits behind that you're no longer using? How often do you check? How do you check?
Well, now I have a list of addon libraries out the wazoo. Is there a tool I can use to tell what I can delete, or what's dependent on what mod, etc? Thanks.
1. Delete all the libraries from your addons directory
2. Run WoW Ace Updater
3. Use the Re-Install addons function in WoW Ace Updater, and make sure the "load dependencies" is selected in the preferences
Now you will only have the library required. This does presume you use "external" libraries.
I was thinking that 50+ libraries to run about 25 mods was a little ridiculous:)
http://files.wowace.com/LodWhat/LodWhat.zip
It displays a window with mods that are "Load on Demand" but not loaded at present. It gives a hint on what libs possible to remove. But don't remove separate lod configurating mods (I mean some mods have their configuration UI in a separate mod to save performance because you usually just config once and go), and be sure to run the game (using mods) a while before using it.
It is a bit of detective work, but I've managed to trim down my libs a bit. And if you remove a lib thats used, you can always put it back again.
And I disagree with tekkub, I want my addon folder clean. :P
cleaning addon folder from unused libs grew old in, hmm...
6 months?
at some point i just gave up.
Start up WowAceUpdater, press the installed tab, set the category filter to 'library'. Select all the addons showing up now, right click one of them and choose uninstall selected. Then just update as you normally do with the 'automatic dependency download' option on in the preferences :)
Tadaa, your addons folder is cleaned from unused libraries.
Set all Libs to disabled. Start WoW. When you get an error that some Lib isn't loaded, enable it. Most libs will be enabled and then loaded on demand by the addon that needs them.
It works well enough, I think. So if you have Cygwin installed, it should tell you what useless libs you have installed (well, maybe some libs aren't really being used anyway, but it'll tell you which libs (that have been classified as libs, so of course you'll miss the really bad ones) aren't being read by WoW... I think.)
Maybe I should add optdeps. I dunno. It's not exactly production quality code. :)
And that is different from just leaving them all enabled and getting LoD'd when needed how?
The ones that didn't get enabled are unused.
Now, whether finding these unused libraries is of any use is a different matter.
So how often do you change or add new addons? Every hour? I try to minimize that and keep full control of what I add or not. And when my UI/Addons is in a somewhat stable condition, I find it really easy to keep the folder clean.
For a developer like tekkub, it might be a different story, but most users aren't developers.
Personally, addons are another part of the game for me. I guess I'm a geek - I'm naturally interested in tweaking and modifying whatever it is that I'm dealing with. For Windows or FreeBSD, I'm constantly downloading new tools and programs to try out, and reading up on how things work internally so I can try out things to fine-tune processes or whatever. For WoW, this means I take an active interest in new and updated addons, so much so that I made a site where I can see new and updated addons without having to check the three main sites individually (!PLUG! http://fin.instinct.org/wowmods/ !END PLUG!). I care about the quality of these things - who wouldn't, if they used them as much as I do - which means that the idea of useless code being part of my setup irritates me. That's why I care about this.
I've done some development on addons (nowhere near as many as a lot of the people around here); but that's not really relevant to why you would want to keep unused code out of your addons collection. And, seriously, how confident are you that the addons you use - and update, I assume - haven't moved on to updated versions of their libraries, leaving bits behind that you're no longer using? How often do you check?
[edit: -or whatever]
Strange, I've used WAU long time and never had any problems with keeping order in the addon folder even so.
What? Huh? The last two posts have confused me. You have no problems "keeping order" and WAU (where did that come from?) keeps the addons folder "more organised"? By this, do you mean that (as I asked in my post below) you are confident are you that the addons you use - and update, I assume - haven't moved on to updated versions of their libraries, leaving bits behind that you're no longer using? How often do you check? How do you check?
cheers,
- Fin
And here is the win statement, folks. :) If the above suggested methods do not suit you, then embedded libraries are for you. :)