Poster: Bear at 10/13/2005 1:21:32 AM PDT Subject: GetAddOnInfo not returningcorrect "reason" |
| |
GetAddOnInfo seems to be returning "NOT_DEMAND_LOADED" for mods that are not loaded because of a missing dependancy. I've only tested with a non-demand addon that is missing it's dependancy, not sure the results with an on-demand addon.
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=242226&p=#post242226 |
| |
Poster: slouken at 10/13/2005 10:27:00 AM PDT Subject: Re: GetAddOnInfo not returningcorrect "reason" |
| |
Q u o t e: GetAddOnInfo seems to be returning "NOT_DEMAND_LOADED" for mods that are not loaded because of a missing dependancy. I've only tested with a non-demand addon that is missing it's dependancy, not sure the results with an on-demand addon.
This is not technically a bug. The "reason" is the reason why the addon would not load if you tried to call LoadAddOn() on it, with self-problems having priority over dependency problems. I agree that's not espcially helpful in this case, but that's the way it works.
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=242226&p=#post242604 |
Poster: slouken at 10/13/2005 12:08:12 PM PDT Subject: Re: GetAddOnInfo not returningcorrect "reason |
| |
Q u o t e: If you create a dependency issue, does it still return the non-demand reason? I'd read slouken's comment to imply that the on-demand thing happens last.
No, it doesn't currently, although I'm changing it so it does for 1.9.
Basically, it'll run through all the normal checks, so you'll see the same error that you'd see at the glue screen. Then, if the addon isn't demand loaded, you'll see the not on-demand error. When this change is in, I think you'll only see that error when you've enabled a previously disabled addon which can't be loaded on demand.
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=242226&p=#post242754 |
Poster: slouken at 10/13/2005 12:23:51 PM PDT Subject: Re: GetAddOnInfo not returningcorrect "reason |
| |
Yep!
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=242226&p=#post242788 |
Poster: slouken at 10/13/2005 12:53:06 PM PDT Subject: Re: GetAddOnInfo not returningcorrect "reason |
| |
If you look at UIParentLoadAddOn(), you'll see there's a localized string for each error message.
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=242226&p=#post242841 |
Poster: slouken at 10/13/2005 1:30:48 PM PDT Subject: Re: GetAddOnInfo not returningcorrect "reason |
| |
Yeah, it's usually not hard. The biggest part of the work converting the Blizzard addons was figuring out which templates they needed. :)
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=242226&p=#post242880 |
Poster: slouken at 10/13/2005 1:38:01 PM PDT Subject: Re: GetAddOnInfo not returningcorrect "reason |
| |
Please request template files in the 1.9 changes thread. I'll collect them at some point and split out template files.
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=242226&p=#post242894 |