I used the search function but I didn't find anything similar to this.
A few days ago my zoning times(loading screens) were bugging me. I play PVE, PVP and the good old AH game, so my demand for addons is pretty high(I use over 100). If you have a seperate character for each aspect of the game then this is not very interessting for you.
I realised, while PVPing, that my raiding-addons were still running and I think this is a waste of ressources, time(considering loading times) and performance. Maybe I'm a little bit of a perfectionist. So I looked up an addon that would allow you to enable/disable addons ingame. I found Ampere which works ok, but since I have so many addons and I need to disable/enable multiple addons every time for raiding or PVPing, I was looking for a more comfortable way to handle this.
So I stumbled through the WOW-API and some lua-sites and built the following macros:
Macro for disabling addons
Code:
/run DisableAddOn("Afflicted"); DisableAddOn("AtlasLoot"); ReloadUI()
This macro disables the addons Afflicted and AtlasLoot. You can just add other ones you like. Just add another 'DisableAddOn("YourAddon");' (without the ') before the 'ReloadUI()'.
IMPORTANT: You can't just add the displayname of the addon, you must use the name of the folder containing the addon. Just look at YOURWOWPATH\Interface\AddOns. It's also CaseSensitive, so 'DisableAddOn' is not the same as 'DisableAddon'.
Macro for disabling addons
Code:
/run EnableAddOn("Afflicted"); EnableAddOn("AtlasLoot"); ReloadUI()
This macro enables the addons Afflicted and AtlasLoot. You can just add other ones you like. Just add another 'EnableAddOn("YourAddon");' (without the ') before the 'ReloadUI()'.
IMPORTANT: You can't just add the displayname of the addon, you must use the name of the folder containing the addon. Just look at YOURWOWPATH\Interface\AddOns. It's also CaseSensitive, so 'EnableAddOn' is not the same as 'EnableAddon'.
Thats not too bad, but you will allways have to create 1 macro for enabling and 1 for disabling, so I came up with something better.
Macro for toggling addons
Code:
/run t={"Recount","Omen","DBM-"} for i=1,GetNumAddOns() do for n=1,3 do a=GetAddOnInfo(i) if strfind(a,t[n]) then if IsAddOnLoaded(i) then DisableAddOn(i) else EnableAddOn(i) end end end end ReloadUI()
This macro will toggle the current state of all addons containing 'Recount', 'Omen' or 'DBM-' in their foldernames. This is perfect for something like DBM, where you have like 11 folders all containing 'DBM-'.
Usage:
You basicly just add the searchterm you like into the {} with quotation marks(") at the beginning and at the end. Searchterms are separated by a comma. You also need to adjust the number at 'n=1,3'. Just change the 3 to the number of searchterms you have specified. Remember: It toggles the addons, so for this to work, they all need to have the same state in the first place.
With these macros and some common sense you can ease up the memory usage of WoW pretty good. If you want to PVP, just disable all the addons you don't need and enable the PVPaddons, all via some simple clicks on the macros.
I think since the auctionaddons need so much memory, it would be a good place to start.
Edit:
If you want to use a graphical interface for this then you can check out this addon: Addon Control Panel.
Thanks to Black Gull and Strichnine for posting that addon.
Greetings,
carma12