Anyone know if there is something similar that manages what addons are loaded at any given time? Like I dont want Skada or Grid or DBM or recount loaded while im in dalaran, but I want them to be able to be loaded quickly when I join an ulduar raid or naxx or whatever. (I know about LoD addons, and This isn't exaclty what I am talking about, more like an loaded addon profile or something that I could switch easy when I am changed spec or location)
I know about LoD addons, and This isn't exaclty what I am talking about
Sure it is. if those addons supported AddonLoader you could simply set it to load them on joining a raid. Log in in Dalaran, not loaded. Go quest, not loaded. Run a heroic, not loaded. Join a raid, BAM loaded.
Yeah I have addonloader, it works great for your addons, but it seems not very many other addons support it. There is no way to do this without the addons authors having support to write in support for it?
EDIT: Yeah I guess LoD is sort of what I am talking about, but for addons LoD has to be something the author writes into the addon. A lot of authors don't bother with this, even for addons that are essential for things like raiding, but not for other activities.
I am reading the addonloaded wiki and I am guessing that all you have to do is add:
## LoadManagers: AddonLoader
to the toc file of an addon and addonloader will manage it? I am understanding this corectly?
Not entirely. While this is generally how you do it, the addon itself needs to be written in a way that supports loading at arbitrary times. For example, many addons do all of their initialization on an event like PLAYER_LOGIN that is only fired once during the initial loading sequence. If you mark such an addon as LoD and load it later (via AddonLoader or anything else) the addon will technically load, but since it will never receive the PLAYER_LOGIN event, it won't initialize, and probably won't do anything.
Finally, a word of warning: if you do modify addons to be LoD, you're pretty much on your own with bugs. Recently someone wasted about a page each in the Grid and Recount threads with multiple people trying to help him figure out why an error was occuring when both addons were enabled, only to have him mention a page later that he'd modified Recount to load on-demand. After that, it was extremely simple to diagnose his problem -- Recount wasn't written to support on-demand loading, and forcing it to load on-demand anyway was causing his error. If you do need to report a bug, first reproduce it with an unmodified version of the addon to verify that it isn't caused by any changes you made.