OmniCC is only 2 files at the core of it :) (.toc + main.lua) I also prefer it because you can see your cooldowns in a MM:SS format, something that CDC can't do.
I've managed to make a Python script to comment out externals in embeds.xml files, similar to the cleantoc script posted a few pages ago.
#!/bin/env python
import os, msvcrt
ADDON_PATH = "C:\\Games\\World of Warcraft\\Interface\\AddOns"
UTF8_MARKER = "\xEF\xBB\xBF"
for addon in os.listdir(ADDON_PATH):
path = os.path.join(ADDON_PATH, addon)
xml = os.path.join(path, "libs", "embeds.xml")
if os.path.isfile(xml):
print "embeds.xml found in %s" % os.path.join(path, "libs")
f = open(xml, "r")
lines = f.readlines()
f.close()
f = open(xml, "w")
for line in lines:
if line[-1:] == '\n':
line = line[:-1]
if line[1:7] == "Script":
#print line[1:7]
m = line.split('\"')
#print m[1]
if not os.path.isfile(os.path.join(path, "libs", m[1])):
print("Unable to find file \"%s\"" % os.path.join(addon, "libs", m[1]))
f.write("<!-- %s -->\n" % line)
else:
f.write("%s\n" % line)
else:
f.write("%s\n" % line)
f.close()
char = 0
print "\nPress any key to continue..."
while not char:
char = msvcrt.getch()
And slightly off-topic I've made a very very messy script to clean out old changelog files for those who don't like to delete beforehand and re-extract due to custom/3rd party addon files.
#!/bin/env python
import re, os, msvcrt
ADDON_PATH = "C:\\Games\\World of Warcraft\\Interface\\AddOns"
currentAddons = [f for f in os.listdir(ADDON_PATH) if os.path.isdir(os.path.join(ADDON_PATH, f))]
c = 0
for addon in currentAddons:
addonDir = os.listdir(os.path.join(ADDON_PATH, addon))
addonDir.sort()
addonDir.reverse()
tmpold = 0
for f in addonDir:
r = re.search(r"Changelog-(.+)-r([0-9]+).xml", f)
if r:
if r.group(2) < tmpold:
print "Deleting %s..." % f
os.remove(os.path.join(ADDON_PATH, addon, f))
tmpf = os.path.join(ADDON_PATH, addon, f[:-3] + "txt")
tmpf2 = os.path.join(ADDON_PATH, addon, "changelog-r" + r.group(2) + ".txt")
if os.path.isfile(tmpf):
print "Deleting %s..." % os.path.basename(tmpf)
os.remove(tmpf)
elif os.path.isfile(tmpf2):
print "Deleting %s..." % os.path.basename(tmpf2)
os.remove(tmpf2)
tmpold = r.group(2)
if c == 0:
print "Nothing to delete!\n"
char = 0
print "Press any key to continue..."
while not char:
char = msvcrt.getch()
These are my first ever attempts at coding in Python but it wasn't at all hard, I'm not bothered about optimising them as they only should be run after each addon update.
Is there a way to keep custom files inside addon folders? PT3Bar is able to load a file called OtherConfig.lua, however it isn't distributed with it because it's a user-configurable file. This wasn't an issue with WAU but with CAU it seems it deletes and re-extracts the addon on a new update, correct?
there seems to be a problem with class coloring atm.
today a priest in my party was colored as warrior. if i targeted him it switched for a short while to the right class color and than back to warrior. no clue why.
r38899
That's been happening here for a good few days or more too.
Statusbars don't seem to get updated with health/mana loss/gain, at least for party and raid members, so it becomes very confusing at times when you can't see at a glance someone's health unless you read the text.
In the report module, you could add a toggle to auto-hide the Ticket Status Frame, and relay the current ticket status in the FuBar tooltip instead. For us who like to report easily with a couple of clicks, having a ticket status covering essential parts of your UI is almost as annoying as the gold spammers themselves :)
Same problem here, if I spam Ctrl+V to toggle them on and off some nameplates are fixed, others break, seems to be random which ones work and which don't. Clearly something isn't working as intended.
[2006/11/08 20:57:23-1903]: GotWood\GotWood.lua:238: attempt to call method "Stop"
GotWood\GotWood.lua:238: in function "obj_method"
AceEvent-2.0\AceEvent-2.0.lua:312: in function "TriggerEvent"
AceEvent-2.0\AceEvent-2.0.lua:894: in function <...ce\AddOns\!!!Libs\Ace2\AceEvent-2.0\AceEvent-2.0.lua:886>
0
0
0
And slightly off-topic I've made a very very messy script to clean out old changelog files for those who don't like to delete beforehand and re-extract due to custom/3rd party addon files.
These are my first ever attempts at coding in Python but it wasn't at all hard, I'm not bothered about optimising them as they only should be run after each addon update.
0
0
Same goes for Skinner and the SkinMe subfolder.
0
0
0
That's been happening here for a good few days or more too.
0
0
In the report module, you could add a toggle to auto-hide the Ticket Status Frame, and relay the current ticket status in the FuBar tooltip instead. For us who like to report easily with a couple of clicks, having a ticket status covering essential parts of your UI is almost as annoying as the gold spammers themselves :)
0
0
0
0
0