These files are processed from the top down. The first character's addons.txt applies to all characters below it, unless it gets overridden somewhere along the way.
PS: At least that's how it worked the last time I transferred.
---------- Post added 2013-01-01 at 11:54 AM ----------
If it still works that way, I just found a Lua script I made way back when to merge these. You'll need a standalone Lua interpreter (like Lua for Windows to run it):
Code:
local src_t,dst_t,out_t={},{},{}
local src=io.open("src.txt", "r")
local a = src:read("*l")
while a do
local name, state = a:match("(.+): (.+)")
src_t[name] = state
print("SRC: "..name.." is "..state)
a=src:read("*l")
end
src:close()
local dst = io.open("dst.txt", "r")
local b = dst:read("*l")
while b do
local name, state = b:match("(.+): (.+)")
dst_t[name] = state
print("DST: "..name.." is "..state)
b=dst:read("*l")
end
dst:close()
for addon, state in pairs(src_t) do
out_t[addon] = dst_t[addon] or src_t[addon]
end
for addon, state in pairs(dst_t) do
if not out_t[addon] then
out_t[addon] = state
print(addon.." overridden")
end
end
local wr = io.open("AddOns.txt", "w")
for addon, state in pairs(out_t) do
wr:write(addon..": "..state.."\n")
end
wr:close()
How it works:
- Take the AddOns.txt for the first character in your (old) character list. Name it "src.txt" and place it in the Lua file's directory.
- Take the AddOns.txt for the second character in your (old) character list. Name it "dst.txt" and place it in the Lua file's directory.
- Run the Lua file. The AddOns.txt file generated will be the current state of all addons for character 2.
- If the second character was the one you transferred, you are now done. Otherwise, continue below:
- Rename the generated AddOns.txt to src.txt.
- Take the AddOns.txt for the third character in your (old) character list. Name it "dst.txt" and place it in the Lua file's directory.
- Run the Lua file. The AddOns.txt file generated will be the current state of all addons for character 3.
- If the third character was the one you transferred, you are now done. Otherwise, repeat the process for all further characters until you get to the one you transferred.