• 0

    posted a message on CallbackHandler 1.0 not included ?
    Hi i'm fairly new to Ace3 framework. I desided to remake my addon based on the ace framework.

    What i make up out of the error is that the libary is not included. however its loaded trough the toc file. i also tried embedding it in the XML file that dint work eigther

    LoudShammyReincarnated-2.0.toc
    ## Interface: 50400
    ## Title: My Addon
    ## Notes: Announce and keeps track of your reincarnation cooldown
    ## Author: Brontofobic - Quel'thalas EU
    ## Version: 2.0-alpha
    ## SavedVariablesPerCharacter: LoudShammyReincarnated_2.0
    
    
    Libs\Libstub\Libstub.lua
    ##Libs\AceBucket-3.0\AceBucket-3.0.xml
    ##Libs\AceComm-3.0\AceComm-3.0.xml
    Libs\AceEvent-3.0\AceEvent-3.0.xml
    ##Libs\AceSerializer-3.0\AceSerializer-3.0.xml
    ##Libs\AceTab-3.0\AceTab-3.0.xml
    Libs\AceTimer-3.0\AceTimer-3.0.xml
    Libs\CallbackHandler-1.0\CallbackHandler-1.0.xml
    Libs\AceAddon-3.0\AceAddon-3.0.xml
    ##Libs\AceHook-3.0\AceHook-3.0.xml
    ##Libs\AceDB-3.0\AceDB-3.0.xml
    ##Libs\AceDBOptions-3.0\AceDBOptions-3.0.xml
    Libs\AceConsole-3.0\AceConsole-3.0.xml
    ##Libs\AceGUI-3.0\AceGUI-3.0.xml
    ##Libs\AceConfig-3.0\AceConfig-3.0.xml
    ##Libs\LibDualSpec-1.0\LibDualSpec-1.0.lua
    
    
    Core.lua
    Main.xml
    Options.xml
    

    I included all libs for now as i dont know yet if i need them

    core.lua
    [PHP]
    SUI = LibStub("AceAddon-3.0"):NewAddon("Loud Shammy Reincarnated 2.0", "AceConsole-3.0", "AceEvent-3.0", "AceTimer-3.0");
    local t1 = 0;
    local addon = SUI;
    addon.version = "1.0";


    function SUI:SELF_RES_SPELL_CHANGED()
    t1 = t1 + 1;
    SUI:Print("Trigger: "..t1);
    addon:RegisterEvent("SPELL_UPDATE_COOLDOWN");
    end

    function SUI:SPELL_UPDATE_COOLDOWN()
    local start, duration, enabled = GetSpellCooldown("Reincarnation");
    if(start) then
    SUI:Print("Start: "..start..", duration: "..duration);
    else
    SUI:Print("nope");
    end
    t1 = 0;
    SUI:UnregisterEvent("SPELL_UPDATE_COOLDOWN")
    end

    function addon:OnInitialize()
    local start, duration, enabled = GetSpellCooldown("Reincarnation");

    if (start) then

    end

    self.db = LibStub("AceDB-3.0"):New("LoudShammyReincarnated2.0");
    if(not self.db.global.LSR_Data) then

    end

    addon:RegisterEvent("SELF_RES_SPELL_CHANGED");

    addon:RegisterChatCommand("LSR",
    function(msg)
    if(msg == "test") then
    local start, duration, enabled = GetSpellCooldown("Reincarnation")
    if(start) then
    local timeleft = (start + duration) - GetTime()
    local m = floor(timeleft/60)
    local s = floor(timeleft%60)
    if (s < 10) then
    s = "0"..s
    end
    CooldownTimer:SetText(m..":"..s);
    SUI:Print(m..":"..s)
    end
    else
    SUI:Print(msg);
    end
    end
    )
    end
    [/PHP]


    main.xml
    [HTML]<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Frame name="LoudShammyReincarnated" parent="UIParent" hidden="false">
    <Scripts>
    <OnUpdate>
    </OnUpdate>
    </Scripts>
    <Layers>
    <Layer level="ARTWORK">
    <FontString name="CooldownTimer" hidden="false" inherits="GameFontNormal" text="TEST">
    <Anchors>
    <Anchor point="TOPRIGHT" relativeTo="PlayerFrame" relativePoint="TOPLEFT">
    <Offset>
    <AbsDimension x="150" y="-5"/>
    </Offset>
    </Anchor>
    </Anchors>
    </FontString>
    </Layer>
    </Layers>
    </Frame>
    </Ui>[/HTML]

    error
    Date: 2014-08-31 12:44:59
    ID: 1
    Error occured in: Global
    Count: 1
    Message: ...yReincarnated-2.0\Libs\AceEvent-3.0\AceEvent-3.0.lua line 21:
       Cannot find a library instance of "CallbackHandler-1.0".
    Debug:
       [C]: error()
       !Swatter\Support\LibStub.lua:23: GetLibrary()
       ...yReincarnated-2.0\Libs\AceEvent-3.0\AceEvent-3.0.lua:21: in main chunk
    Locals:
    (*temporary) = "Cannot find a library instance of "CallbackHandler-1.0"."
    
    AddOns:
      Swatter, v5.20.5464 (RidiculousRockrat)
      ACP, v3.4.9 
      LoudShammyReincarnated20, v2.0-alpha
      BlizRuntimeLib_enUS v5.4.8.50400 <eu>
      (ck=88)
    
    
    Posted in: Lua Code Discussion
  • 0

    posted a message on BadBoy: An extremely minimal spam blocker & reporter
    id like to report a new way of goldspamming. i today got spammed using a calender event hope you guiz can find a way to block this spam aswell :)
    Posted in: General AddOns
  • 0

    posted a message on BadBoy: An extremely minimal spam blocker & reporter
    hey the following spam is comming trough for me

    <>

    and

    <>

    all the spam wicht contain icons seems not to get blocked
    Posted in: General AddOns
  • To post a comment, please or register a new account.