Thread Tools Display Modes
07-07-07, 04:13 AM   #1
Khaja
A Murloc Raider
Join Date: Aug 2006
Posts: 8
Combining Addon Packs into one folder/name

I apologize first of all if this is not on the proper board, it looked like the right one :P

Okay my question is I have noticed some people that have the ability to combine several addons into 1 name on the addon screen. For instance Zhuntermod that combines like antidaze and aspect bars etc but it's all listed under zhuntermod. My question is how is this done? I want to try to consolidate different addons that go with different classes and love how I've seen this done in the past but unfortunately my knowledge only goes so far and I am interested in finally learning how to do it myself. Thanks in advance and hopefully this made sense.
  Reply With Quote
07-14-07, 02:30 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Let's say you have two addons - "ThisAddon" and "ThatAddon" - and you want to combine them into one - "ComboMod".

First, make your "ComboMod" folder and create a "ComboMod.toc" file inside. Now open the .toc file from "ThisAddon" and see what files it's calling. It might look something like:
Code:
## Interface: 20100
## Title: ThisAddon
## Notes: This addon does something.
## Author: Someone

Localization.lua
ThisFile.lua
OtherFile.lua
The part you're interested in are the three lines at the bottom, the actual files it's calling. Copy those lines and paste them at the end of your "ComboMod.toc". Do the same thing with the .toc from "ThatAddon".

If either "ThisAddon" or "ThatAddon" has a dependency (## Dependency: AnotherAddon) listed in its .toc, you'll need to add that to your combo .toc as well.

Then, just copy all of the files from "ThisAddon" and "ThatAddon" - everything but the .toc - into your "ComboMod" folder. If two files have the same name, you'll need to rename one, and remember to change the reference in the .toc.

Another thing to mention is that if you're combining other people's addons, you should just use the result for yourself, and not release it as a new addon. Some addons, like zHunterMod, may appear to combine other mods, but (hopefully) they're either combining two addons by the same author, released by that author as a combo, or they're combining the features of two addons without using the same code as the originals.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Combining Addon Packs into one folder/name


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off