• 0

    posted a message on Confounded by an error
    It is an ItemLink... if I sent it out in chat would there client then know about it or would they have to click it for their client to know about it?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Confounded by an error
    Thanks for the advice! I will try to not using GetItemInfo().
    Posted in: Lua Code Discussion
  • 0

    posted a message on Confounded by an error
    Here is the error...

    Message: Interface\AddOns\DrunkardSK\DrunkardSK.lua:1313: Usage: GetItemQualityColor(index)

    Time: 11/07/10 19:36:35

    Count: 1

    Stack: [C]: in function `GetItemQualityColor'

    Interface\AddOns\DrunkardSK\DrunkardSK.lua:1313: in function `SetOpenItem'

    Interface\AddOns\DrunkardSK\DrunkardSK.lua:1339: in function `?'

    ...oot\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:146: in function <...oot\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:146>

    [string "safecall Dispatcher[4]"]:4: in function <[string "safecall Dispatcher[4]"]:4>

    [C]: ?

    [string "safecall Dispatcher[4]"]:13: in function `?'

    ...oot\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:91: in function `Fire'

    ...ce\AddOns\AtlasLoot\Libs\AceComm-3.0\AceComm-3.0.lua:268: in function <...ce\AddOns\AtlasLoot\Libs\AceComm-3.0\AceComm-3.0.lua:257>



    Locals: <none>


    And here is the relevant code...

    function DrunkardSK:SetOpenItem(item)
    local n, l, quality, iL, reqL, t, subT, maxS, equipS, texture = GetItemInfo(item)
    DSKBidFrame.link:AddMessage(item);
    SetItemButtonTexture(DSKBidFrame.item, texture);
    r, g, b, hex = GetItemQualityColor(quality); -- this is line 1313
    SetItemButtonNormalTextureVertexColor(DSKBidFrame.item, r, g, b);
    end

    function DrunkardSK:OpenBidding(prefix, message, distribution, sender)
    ItemLink = message;
    DrunkardSK:SetOpenItem(ItemLink); -- this is line 1339
    DSKBidFrame:Show();
    end

    basic description
    A message is received via acecomm. The message contains an item link. The error seems to occur when getting the quality color of that item. It does not occur every time. It is rather infrequent in fact.

    The only thing I can think of is to check it for an error, but this message goes out to multiple people and it is only one of them (not always the same one) that gets it.

    Any help would be awesome. Many thanks!
    Posted in: Lua Code Discussion
  • 0

    posted a message on Deus Vox Encounters
    I am in ICC 10 at Saurfang now and have had nothing working the whole time.
    Posted in: Raid AddOns
  • 0

    posted a message on Dungeon Speed Runner --Official Thread
    Feature idea/request: could you have it show the time
    you have been waiting in the queue for the dungeon to start and keep an average of that?
    Posted in: General AddOns
  • 0

    posted a message on Deus Vox Encounters
    Quote from KnThrak
    I thought DXE has integrated preserval of marks? I always figured it's that our raidleader uses DBM which removes the marks (I'm assistant).


    Well I made sure I was the only one who could mark and they still were getting removed.
    Posted in: Raid AddOns
  • 0

    posted a message on Deus Vox Encounters
    Quote from genetik
    That probably happens when the kiter gets the debuff (and then someone else gets it).


    Yep that would make sense... would it be possible to preserve the marks... or better yet auto mark the big ooze(s)?
    Posted in: Raid AddOns
  • 0

    posted a message on Deus Vox Encounters
    On 10 man Rotface we mark the kiter with a raid marker (usually the orange nipple) to make him easy to find. DXE seems to be unmarking the kiter at some point during the encounter.
    Posted in: Raid AddOns
  • 0

    posted a message on Question on Hooks coming unhooked.
    After the hook is lost...

    Dump: value=issecurevariable("HandleModifiedItemClick")
    [1]=1

    Also, it definitely happens on zoning into an instance... but not always.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Question on Hooks coming unhooked.
    Quote from chiefcastor
    After login...

    Dump: value=issecurevariable("HandleModifiedItemClick")
    [2]="OPie"


    That was using SecureHook()... Using just Hook() I get...

    Dump: value=issecurevariable("HandleModifiedItemClick")
    [2]="DrunkardSK"
    Posted in: Lua Code Discussion
  • 0

    posted a message on Question on Hooks coming unhooked.
    Quote from Arrowmaster
    /dump issecurevariable("HandleModifiedItemClick")


    After login...

    Dump: value=issecurevariable("HandleModifiedItemClick")
    [2]="OPie"
    Posted in: Lua Code Discussion
  • 0

    posted a message on Question on Hooks coming unhooked.
    Quote from Arkayenro
    do you use AddonLoader? and is your mod setup for it?

    are there other mods setup to use it and loading when you zone?

    try temporarily moving addonloader to another directory outside of wow (you cant just disable it) and see if your hooks work again when you zone.


    No I do not use AddonLoader.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Question on Hooks coming unhooked.
    Well Opie is the only other addon I have that hooks HandleModifiedItemClick. Here is the code for where that happens... It isn't in a function or anything just inside a "do"

    do -- Hook linking buttons
    	local O_SetItemRef, O_SpellButton_OnModifiedClick, O_HandleModifiedItemClick, O_CompanionButton_OnModifiedClick =
    		SetItemRef, SpellButton_OnModifiedClick, HandleModifiedItemClick, CompanionButton_OnModifiedClick;
    
    ...
    
    	function HandleModifiedItemClick(...)
    		if IsModifiedClick("CHATLINK") and GetCurrentKeyBoardFocus() == RKCD_EntryMacro and type((...)) == "string" then
    			return RKC_HandleLink((...));
    		end
    		return O_HandleModifiedItemClick(...);
    	end
    	
    ...
    
    end


    Could this be overwriting my hook? It is not obvious to me when this is called.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Question on Hooks coming unhooked.
    Yep changed from...

    DrunkardSK: function: 1B2F19E8

    To...

    DrunkardSK: function: 4D1F71E0

    Seems to only happen after zoning into a dungeon. Guess it is time to try to narrow that down more.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Question on Hooks coming unhooked.
    Thanks I will try the prints tonight.
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.