• 0

    posted a message on Tweaked /dump by Unknown AddOn
    Yes its Prat - specifically the debug pullout. If you go into the Prat-3.0/pullouts folder and pull out Prat-3.0_Debug you get the tweaked /dump command. Though maybe you didnt do that and it was something else.
    Posted in: AddOn HELP!
  • 0

    posted a message on setting toc dependencies for no-lib packages
    Quote from stencil
    Okay, I went and had my "fun with metatables"™ session. I was able to replace
    [SIZE=2]local L = LibStub("AceLocale-3.0"):GetLocale("MyAddon")[/SIZE]
    [SIZE=2]local BZ = LibStub("LibBabble-Zone-3.0"):GetLookupTable()[/SIZE]
    with
    local function DelayLoadLibTable(strLib, strMethod, ...)
        local table = nil
        local arglist = { ... }
     
        local function Load()
            LoadAddOn(strLib)
            local lib = LibStub(strLib)
            table = lib[strMethod](lib, unpack(arglist))
        end
     
        local mt = {
            __index = function(t,k)
                if not table then Load() end
                return table[k]
            end,
            __newindex = function(t,k,v)
                if not table then Load() end
                table[k] = v
            end,
        }
     
        return setmetatable( {}, mt );   
    end
     
    local L = DelayLoadLibTable("AceLocale-3.0", "GetLocale", "MyAddon")
    local BZ = DelayLoadLibTable("LibBabble-Zone-3.0", "GetLookupTable")
    and it worked swimmingly.

    However that's as far as my little dream of creating the wow addon version of delay load linking got. The big problem of course is that the moment you try to call a class method, the self param that will be passed is the wrapped lib rather than the lib itself. This will end up being a problem if, for example, code down the line cares about the address of the table, wants to call something like pairs on the table, wants to mess with the metatable, etc.

    I hit those problems right away when I tried wrapping the LibBabble-Zone lib and calling GetLookupTable through that. LibBabbleZone would check that the address of the table being passed as self was one that it recognized.

    Anyway, probably nothing here you didn't already know but I learned a few things playing around with this stuff.


    I tried doiing something like that - i still throught it was possible but it was messy to implement and have it be seamless. It just seeemed better to change your style to to only instantiate libraries when you need them.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Addon Update Scripts
    Quote from Nevcairiel
    I was kinda hoping to get the ticket commenting/closing via server-side repo hooks, but development of features isn't really going so well..

    Anyhow, i use Shadoweds Locale Scrapper, which extracts all L[..] strings from your files, and uploads them automatically to your project page using the import feature.

    http://www.wowace.com/addons/localescrapper/

    And of course Mikk's FindGlobals for the occasional sanity check;
    http://www.wowace.com/addons/findglobals/


    Thanks, these are resources I was unaware of.
    Posted in: Updaters
  • 0

    posted a message on Addon Update Scripts
    Before everyone freaks - this is about scripts used while updating your own addons.

    For example. I use some code which automatically places a comment with the SVN revision number, and commit comment on a specific issue number if i include the issue number in the commit message

    Here is an example:

    http://www.wowace.com/addons/prat-3-0/tickets/451-scrolling-top-to-bottom/

    As you can see there is a comment:

    commit r672:   removed TOP-BOTTOM scrolling option due to blizzard bug. (#451) 
    I'd like to know if anyone else has created automation scripts, and I'd like to compile a list, and possible create a holding project for them all.

    Does this sound like a good idea?
    Posted in: Updaters
  • 0

    posted a message on setting toc dependencies for no-lib packages
    I am still of the opinion that you should not use OptionalDependancies at all.

    Instead you should load the library via LoadAddOn at the time you are going to use it.

    Most libraries do a lot of work in their main chunks which slows loading, this also goes for embedded libraries which can be even worse due to upgrading.

    Using optdeps makes load on demand pretty pointless if all your addons load at startup.

    I'm sure plenty of folks will disagree with me. The only way to say one way or another would me to measure and get some hard numbers.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Ace2 End-Of-Life Discussion
    I think you need to be very careful and maintain good governance of the repo. If the license allows cloning there isn't much you can do for revisions released under that license.

    Otherwise do what you need to.
    Posted in: Ace2
  • 0

    posted a message on ResourceServer
    Can you provide numbers to back up your claims?

    I think it would just take more CPU not less.
    Posted in: General AddOns
  • 0

    posted a message on Getting the Nth element out of a table
    Sounds like FauxScrollFrame
    Posted in: Lua Code Discussion
  • 0

    posted a message on New and broken stuff with Cataclysm
    Quote from Adirelle
    I think that the point. No more "real name leaks".



    Leaks where? You can get the full name from the presence ID as long as they are online.

    The presence ID is not unique. So i guess you have a point. It cannot be stored except on the friends list.
    Posted in: Lua Code Discussion
  • 0

    posted a message on New and broken stuff with Cataclysm
    PresenceID is currently broken in the beta as shown here:

    http://forums.worldofwarcraft.com/thread.html?topicId=27026324621&sid=2000
    Posted in: Lua Code Discussion
  • 0

    posted a message on New and broken stuff with Cataclysm
    Player links and player names have been totally redone for Battle Net.

    There is no more player name for BN chat (arg2) insteaad there is a presence ID which looks like a hyperlink

    |Knn|Knnnnnnnn|K

    These are used everywhere in place of a toon name.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Prat 3.0 Chat Mod Framework
    Quote from Kynn
    The pictures are much more enjoyable after a few beers. The colors...



    They aren't pictures, they are text. Try selecting it.
    Posted in: General AddOns
  • 0

    posted a message on Prat 3.0 Chat Mod Framework
    Quote from gamemaster128
    I don't see any accompanying explanation in regards to what we're supposed to be looking at in the last few posts.


    sorry we were trying to reproduce a bug report.
    Posted in: General AddOns
  • 0

    posted a message on Prat 3.0 Chat Mod Framework
    [11:57:53] [P] [85:Dezmonik]: Found it
    [11:59:31] [P] [85:Dezmonik]: Mayhaps <_<
    [12:00:12] A role check has been initiated. Your group will be queued when all members have selected a role.
    [12:00:33] [P] [85:Dezmonik]: Lol
    [12:01:06] [P] [85:Lifesucks]: I got all the ones in uldum
    [12:01:15] [Mayormcheese] has come online.
    [12:01:15] [PL] [85:Arixxis]: anyone have cata gems or [Volatile Life]?
    [12:01:17] [P] [85:Sylvaann]: yeah, im not afk either - just working on a mod until we start
    <12:03:30> [85:Terrarcanum] has come online.
    <12:04:24> [Tankbei] has earned the achievement [Duel-icious]!
    <12:05:36> [P] [85:Dezmonik]: Someone is blasting "Cruel to be Kind" across town and I can hear it all the way from my housel
    [12:05:53] [P] [85:Lifesucks]: lol
    [12:06:02] [P] [85:Dezmonik]: It is extremely cruel
    [12:06:09] [85:Sabi] has come online.
    [12:06:32] Loreena has gone offline.
    [12:06:47] [P] [85:Lifesucks]: demmo warlocks hit retardedly hard
    [12:06:51] [P] [85:Lifesucks]: it is dumb
    [12:06:53] [81:Devine] has come online.
    ========== End of Scrollback ==========
    [12:07:01] Prat 3.0 (DEBUG):
    [12:07:01] Prat: Module Count: 32 total 26 loaded, 24 enabled
    [12:07:01] Prat: Memory Use: 778 KB
    [12:07:18] Type '/help' for a listing of a few commands.
    [12:07:20] [S] [85:Sylvaann]: ,
    Posted in: General AddOns
  • 0

    posted a message on Prat 3.0 Chat Mod Framework
    <12:03:30> [85:Terrarcanum] has come online.
    Posted in: General AddOns
  • To post a comment, please or register a new account.