WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Addons.txt: Now how does that work? (https://www.wowinterface.com/forums/showthread.php?t=33332)

shkm 06-22-10 01:08 PM

Addons.txt: Now how does that work?
 
Does anyone know how WoW decides which addons to load for all characters, provided those individual characters do not have an opposing state set in the Addons.txt file? I ran some tests but they left me perplexed.

What I noticed:
  • Logging in on a fresh realm will create a full list of addons and their states (disabled/enabled) and store it in Addons.txt on only one character. This character needs not be the one logged in on. I don't know how WoW picks the character.
  • Other characters' Addons.txt files consist only of the addons they explicitly enable/disable. This is logical.

The first character's Addons.txt could potentially be considered a master file, but there are at least two issues with this:
  • There seems to be no way to check which character's Addons.txt should be the master
  • Multiple characters can have the same addon listed as enabled or disabled

Which leads us to possible solutions:
  • The character with the most addons listed in Addons.txt gets global settings. This is plausible because all addons will be listed on the master, whether enabled or disabled. It's implausible, however, because multiple characters can have all addons listed
  • There's a file somewhere which defines which character's Addons.txt to use for global settings (this contradicts other things, though)
  • File creation date. The earliest would be the master file

I also noticed that the system is pretty easy to break. I can't remember exactly how, but I managed to get WoW thinking that toggling an addon on any character would toggle it globally. This is why my solutions aren't exactly bulletproof.

So does anyone know what's going on here? Anyone know how it actually works? It would save me quite some time trying to work this out if you could share. Thanks.

Ailae 06-22-10 01:43 PM

Isn't an addon enabled by default? Unless you have "## DefaultState: disabled" in your .toc.

When you disable the addon for the first time, even if only on one character, it's disabled globally.

shkm 06-22-10 01:48 PM

Yes, but my question is more in regards to how WoW deals with other situations. If one character has an addon set to disabled but another has it set to enabled, which one is globally default? It's possible to have something globally disabled, meaning that anyone who wants to enable it can do so on a per-character basis. How would it then maintain global disabled state?

Seerah 06-22-10 02:27 PM

Doesn't it just write to each character's file that it's disabled? An easy way to test would be to disable an addon (restart the game to make sure files are written to) and then check the files themselves. You can then create a new character on the server - you'll see that all of the addons are enabled by default for that character (but still disabled for the others). Once you disable an addon for that character, it will be written to that character's file.

markv 06-22-10 02:28 PM

From my experience what happens is WoW will default it to whatever you change it to the first time, no matter what character you're on, or if you've selected all.

So if you download a new addon, and then turn it off for your Hunter before doing anything else with it, it will toggle it off for all of your characters. Only after that initial time will it then save it by a per character state.

I have no idea if the state changes reset when WoW gets an update or not though, because I haven't really paid much attention to it during that.

This is just what I have found from my own personal experience.

shkm 07-17-10 09:35 AM

Thanks for the responses! Totally forget about this thread! I'll be using some of the information here, along with some extra research, once I get round to a certain project. Might be a long while.


All times are GMT -6. The time now is 09:22 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI