• 0

    posted a message on AdiBags - a bag addon
    Don't suppose this is going to be updated for 5.0.4?
    Posted in: General AddOns
  • 0

    posted a message on Sorting dates
    Thanks for the suggestions.

    I was trying too hard to avoid making any changes to the core of the addon so as to avoid having to make other changes in it and the website that supports the data, but that does seem to be my best route.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Sorting dates
    I am trying to get a table sort to work based on the date entry in the table.

    The date is saved as "07/16/09 22:11:25"

    Doing something like :
    function History_Sort(a, b)
        if (a[4] == b[4]) then
          return (a[1] < b[1])
        else
          return (a[4] > b[4])
        end
    end
    Seems to mostly work except "12/15/08 22:13:35" would sort above "07/16/09 22:11:25" when what I want is a reverse date sort from newest entry to oldest.

    Doing something like:

    function History_convdate(sdate)
        local yr = tonumber(string.sub(sdate, 7, 8)) + 2000;
        local t= time({year=yr,month=string.sub(sdate, 1, 2),day=string.sub(sdate, 4, 5), hour=string.sub(sdate, 10, 11), min=string.sub(sdate, 13, 14), sec=string.sub(sdate, 16, 17)});
        return t;
    end
    
    function History_Sort(a, b)
        if (not a) then
            return false;
        elseif (not b) then
            return true;
        else
            return (History_convdate(a[4]) < History_convdate(b[4]));
        end
    end
    Works, but seems to incur a huge performance hit when scrolling through a large table.

    Can anyone provide a method that works and doesn't have the performance hit of the above code?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Issue with table values
    I'm doing various modifications to the dkp addon my guild uses.

    I haven't done a lot of lua work but I can usually muddle my way through things.

    The part I am working with right now is the roll tracking window. Raid members whisper the ML if they are interested in the loot item and if they want to use dkp.

    Items are awarded based on /roll + dkp spent.

    If they decide to use dkp the roll window is populated with their name, class, current dkp, 0 for the roll (as they haven't rolled at this point) and a total (roll + dkp).

    If they want the item but not enough to spend dkp the window is populated with name, class, 0 for dkp, 0 for roll, and total.

    The list of interested parties is sorted from highest total to lowest.

    There is a caveat to the system that if someone has spent dkp, you need to be within X amount of his dkp to roll against him.


    What I want to do is to determine the person with the highest dkp total who has expressed interest in the item and then find everyone who is within X amount of that person and colorize their entry in the table so you can tell at a glance who is eligible to roll.

    So how do I determine the entry with the highest dkp so that I can compare everyone else to that entry and check if they are within X amount?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Bartender4 - Official Topic
    Quote from Nevcairiel
    If you got the targeting circle already, then Bartender already forwarded your click to the game and everything is working fine on my end. Maybe lag? I don't know


    You get the targeting circle and that's it. Its not a lag issue. It *never* goes off. More than just me have mentioned this both here and on WowI.

    It happens repeatedly.
    Posted in: General AddOns
  • 0

    posted a message on Bartender4 - Official Topic
    I abandoned quest, logged out, logged back in, accepted quest and it worked fine.

    So I have no idea whats causing it to stop working. It happens all the time though.

    It see the initial press and even responds with targeting and such and even appears to trigger the GCD possibly... but the final "go do it" never seems to complete and nothing happens.
    Posted in: General AddOns
  • 0

    posted a message on Bartender4 - Official Topic
    So just did the Escape from Silverpine quest. You ride a horse and have to stomp, dash, and toss fire at the mobs chasing you.

    First attempt no problems at all. Ended up failing just at the end.

    Went back to redo quest, hopped on horse, bar came up with actions and none of them worked.

    I push the fire button, i get the targeting circle, and nothing happens when i target.

    I push dash and stomp, nothing happens. I see what looks like the GCD spiral on the button but nothing happens.

    I'm getting no errors at all so I'm not sure what I can do to help you figure out why this is happening consistantly. I have had issues with almost all the vehicle quests.

    This is using the latest 4.2.0.2, i think it is, alpha.
    Posted in: General AddOns
  • 0

    posted a message on Bartender4 - Official Topic
    Quote from Nevcairiel
    The latest Alpha (4.2.0-2) added a extra Vehicle Bar with the exit button and the pitch controls. Please test it and report if it worked.


    Will give it a shot as soon as I get a vehicle to control. Please note though, none of the buttons actually work when in vehicle mode, not just the exit/pitch buttons.
    Posted in: General AddOns
  • 0

    posted a message on Bartender4 - Official Topic
    Quote from Nevcairiel
    What "other" controls are you talking about? And which quest would be an example of that?

    I haven't had any issue at all with possess quests of any kind, and i'm nearly through Northrend now =P


    The Shredder in Draongblight for one.

    Basically any vehicle control only works about 5% of the time if your lucky. I endup just disabling BT for them because it just doesnt work. The bar changes, the buttons come up... and thats it.
    Posted in: General AddOns
  • 0

    posted a message on Grid
    Disabling Fubar and enabling Fubar2Broker I get the following on login:

    [2008/07/09 21:24:38-4446-x1]: Grid-76416\GridCore.lua:265: attempt to index field 'hide' (a nil value)
    AceAddon-2.0-57245 (Ace2):484: in function <Interface\AddOns\Ace2\AceAddon-2.0\AceAddon-2.0.lua:461>
    <in C code>: ?
    AceEvent-2.0-66043 (Ace2):298: in function `TriggerEvent'
    AceEvent-2.0-66043 (Ace2):910: in function <Interface\AddOns\Ace2\AceEvent-2.0\AceEvent-2.0.lua:903>
    
     ---
    Posted in: Grid & Grid2
  • 0

    posted a message on kgPanels Beta feedback Thread
    Just a followup, your fix seems to have corrected the layer issue and it is working well.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Beta feedback Thread
    Using the auto-size script from the first page..

    On login, the panal i have set to fit to Grid is always "above" grid in that I cannot interact with Grid at all. I have to open the options and pick the same layer option again or a different one and then its "below" it again.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Beta feedback Thread
    Well no errors, but I can't seem to get it to parent to Grid.

    I'm attempting to use GridLayoutFrame as the Parent and Anchor and it doesnt move from the center of the screen.

    I can parent to other things, but not that frame for some reason. Worked with eepanels. *shrug*
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Beta feedback Thread
    I beleive that was with 63157. Will update and try again.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Beta feedback Thread
    So I am trying to make a panel be the background for Grid.

    Everything seems to work fine until I relog.

    [2008/02/28 19:05:44-3306-x1]: kgPanels\kgPanels.lua:187: attempt to index local 'pf' (a nil value)
    kgPanels\kgPanels.lua:219: in function <Interface\AddOns\kgPanels\kgPanels.lua:215>
    <in C code>: ?
    <in C code>: ?
    <in C code>: in function `CreateFrame'
    Grid-60898\GridLayout.lua:655: in function `CreateFrames'
    Grid-60898\GridLayout.lua:565: in function <Interface\AddOns\Grid\GridLayout.lua:563>
    <in C code>: in function `pcall'
    AceAddon-2.0-57245 (Ace2):24: in function <Interface\AddOns\Ace2\AceAddon-2.0\AceAddon-2.0.lua:23>
    AceAddon-2.0-57245 (Ace2):998: in function `ManualEnable'
    AceAddon-2.0-57245 (Ace2):926: in function <Interface\AddOns\Ace2\AceAddon-2.0\AceAddon-2.0.lua:919>
    <in C code>: ?
    AceEvent-2.0-56171 (Ace2):263: in function `TriggerEvent'
    AceEvent-2.0-56171 (Ace2):914: in function <Interface\AddOns\Ace2\AceEvent-2.0\AceEvent-2.0.lua:907>


    The panel shows up, but not anywhere near where my Grid is.
    Posted in: General AddOns
  • To post a comment, please or register a new account.