• 0

    posted a message on OmniCC versus CooldownCount
    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.
    Posted in: General AddOns
  • 0

    posted a message on SpamSentry - Ace2 release
    bump
    Posted in: General AddOns
  • 0

    posted a message on An alternate method for defining embedded lilbraries in your TOC
    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.
    Posted in: Lua Code Discussion
  • 0

    posted a message on SpamSentry - Ace2 release
    I've attached a WAU filelist that works with the LoD script for SpamSentry. I'd be very grateful if you add it to the mod :)
    Posted in: General AddOns
  • 0

    posted a message on CmdAceUpdater - Command line ace addon updater.
    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?

    Same goes for Skinner and the SkinMe subfolder.
    Posted in: Updaters
  • 0

    posted a message on [Old] PitBull - official topic
    I'm using 1.7, as shown on the site. Unless there's a new version somewhere else that I've missed.
    Posted in: Unit Frames
  • 0

    posted a message on [Old] PitBull - official topic
    filelist.wau is wrong, had to add PitBull_ after each @ before it would extract them seperarately with WAU.
    Posted in: Unit Frames
  • 0

    posted a message on [Old] PitBull - official topic
    Quote from skar »

    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.
    Posted in: Unit Frames
  • 0

    posted a message on [Old] PitBull - official topic
    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.
    Posted in: Unit Frames
  • 0

    posted a message on SpamSentry - Ace2 release
    Just thought of a cool idea.

    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 :)
    Posted in: General AddOns
  • 0

    posted a message on Aloft - Customized Nameplates - Official Thread
    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.
    Posted in: General AddOns
  • 0

    posted a message on [Old] PitBull - official topic
    Any chance Raid Grouping could be implemented?
    Posted in: Unit Frames
  • 0

    posted a message on PT3Bar (non-official Thread of drama and great justice)
    Will Dreamlayout be implemented?
    Posted in: General AddOns
  • 0

    posted a message on GotWood?
    Timers are still sticking in Button View...
    Posted in: General AddOns
  • 0

    posted a message on GotWood?
    [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>
    Posted in: General AddOns
  • To post a comment, please or register a new account.