Broker_CombatDuration

Displays the duration of the current combat in a LDB-text-display.

If not in combat the timer shows the duration of the last combat.

This is an actually implemented rewrite of FuBar_CombatTimeFu for LibDataBroker (unlike Broker_CombatTime).

What is an LDB-plugin?
http://wiki.github.com/tekkub/libdatabroker-1-1
http://wiki.github.com/tekkub/libdatabroker-1-1/addons-using-ldb

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of Ami_Yuy Ami_Yuy Oct 14, 2010 at 21:59 UTC - 0 likes

    Awesome, thank you for this. Now all I have left to find is a decent MoneyFu replacement (as in functions like MoneyFu) and I'll be all done with Fubar leftovers.

  • Avatar of profalbert profalbert Dec 22, 2009 at 00:36 UTC - 0 likes

    Must have been drunk or something... omg

    Thanks

  • Avatar of Zidomo Zidomo Dec 16, 2009 at 17:56 UTC - 0 likes

    Nice idea for a replacement for the old StatBlock_TimeInFight & FuBar_CombatTimeFu.

    Unlike those two mods, though, Broker_CombatDuration bugs out on logon. V1.0 in WoW 3.3:

    ["message"] = {
    				"Broker_CombatDuration-v1.0\\Core.lua:35: attempt to compare nil with number\nCallbackHandler-1.0-5:147: in function <...onLoader\\CallbackHandler-1.0\\CallbackHandler-1.0.lua:147>\n<string>:\"safecall Dispatcher[1]\":4: in function <[string \"safecall Dispatcher[1]\"]:4>\n<in C code>: ?\n<string>:\"safecall Dispatcher[1]\":13: in function `?'\nCallbackHandler-1.0-5:92: in function `Fire'\nAceEvent-3.0-3 (Ace3):120: in function <Interface\\AddOns\\Ace3\\AceEvent-3.0\\AceEvent-3.0.lua:119>\n\nLocals:|r\nself = <table> {\n SetDefaultModuleLibraries = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:381\n Enable = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:313\n UnregisterAllEvents = <function> defined @Interface\\AddOns\\AddonLoader\\CallbackHandler-1.0\\CallbackHandler-1.0.lua:202\n EnableModule = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:346\n modules = <table> {\n }\n GetModule = <function> defined @Interface\\AddOns\\A", -- [1]
    				"ce3\\AceAddon-3.0\\AceAddon-3.0.lua:230\n IterateEmbeds = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:456\n defaultModuleLibraries = <table> {\n }\n TimeLeft = <function> defined @Interface\\AddOns\\Ace3\\AceTimer-3.0\\AceTimer-3.0.lua:363\n ScheduleRepeatingTimer = <function> defined @Interface\\AddOns\\Ace3\\AceTimer-3.0\\AceTimer-3.0.lua:301\n CancelAllTimers = <function> defined @Interface\\AddOns\\Ace3\\AceTimer-3.0\\AceTimer-3.0.lua:341\n GetName = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:298\n name = \"Broker_CombatTime\"\n IsEnabled = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:465\n ScheduleTimer = <function> defined @Interface\\AddOns\\Ace3\\AceTimer-3.0\\AceTimer-3.0.lua:276\n DisableModule = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:364\n RegisterMessage = <function> defined @Interface\\AddOns\\AddonLoader\\CallbackHandler-1.0\\CallbackHandler-1.0.lua:118\n UnregisterMessage ", -- [2]
    				"= <function> defined @Interface\\AddOns\\AddonLoader\\CallbackHandler-1.0\\CallbackHandler-1.0.lua:181\n Update = <function> defined @Interface\\AddOns\\Broker_CombatDuration\\Core.lua:72\n IsModule = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:482\n SetDefaultModuleState = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:401\n baseName = \"Broker_CombatDuration\"\n PLAYER_REGEN_DISABLED = <function> defined @Interface\\AddOns\\Broker_CombatDuration\\Core.lua:43\n SetEnabledState = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:438\n PLAYER_REGEN_ENABLED = <function> defined @Interface\\AddOns\\Broker_CombatDuration\\Core.lua:34\n enabledState = true\n OnDisable = <function> defined @Interface\\AddOns\\Broker_CombatDuration\\Core.lua:27\n RegisterEvent = <function> defined @Interface\\AddOns\\AddonLoader\\CallbackHandler-1.0\\CallbackHandler-1.0.lua:118\n UnregisterAllMessages = <function> defined @Interface\\AddOns\\AddonLoa", -- [3]
    				"der\\CallbackHandler-1.0\\CallbackHandler-1.0.lua:202\n OnEnable = <function> defined @Interface\\AddOns\\Broker_CombatDuration\\Core.lua:21\n OnInitialize = <function> defined @Interface\\AddOns\\Broker_CombatDuration\\Core.lua:16\n CancelTimer = <function> defined @Interface\\AddOns\\Ace3\\AceTimer-3.0\\AceTimer-3.0.lua:311\n IterateModules = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:451\n NewModule = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:255\n SendMessage = <function> defined @Interface\\AddOns\\AddonLoader\\CallbackHandler-1.0\\CallbackHandler-1.0.lua:87\n SetDefaultModulePrototype = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:423\n defaultModuleState = true\n UnregisterEvent = <function> defined @Interface\\AddOns\\AddonLoader\\CallbackHandler-1.0\\CallbackHandler-1.0.lua:181\n Disable = <function> defined @Interface\\AddOns\\Ace3\\AceAddon-3.0\\AceAddon-3.0.lua:328\n}\nmethod = \"PLAYER_REGEN_ENABLED\"\n\n  -", -- [4]
    				"--", -- [5]
    			},
    			["type"] = "error",
    			["session"] = 144,
    			["counter"] = 1,
    		}, -- [102]
    

    As well, this is missing from its embeds.xml file pointers to the libraries it needs to function (Ace3). That's not the cause of the problem above, though; other earlier-loading mods had Ace3/LibStub/CallbackHandler-1.0 loading.

    EDIT: Also, you are including in the ZIP a wacky copy-paste failure of a web page for LibDataBroker-1.1 (45kb in size) instead of the actual library itself (4kb in size). Also, the embeds.xml file isn't pointing to the correct enclosed location of LibDataBroker-1.1, so the mod won't be able to find it if nothing else loads it.

    And more problems with the release ZIP. Its got the AceEvent-3.0 library in the AceTimer-3.0 folder path. And it doesn't contain AceAddon-3.0 it references in its LUA. Surprised this mod was actually pushed to release status.

    Last edited Dec 17, 2009 by Zidomo
  • 3 comments

Facts

Date created
Dec 14, 2009
Category
Last update
Sep 12, 2013
Development stage
Release
License
All Rights Reserved
Curse link
Broker_CombatDuration
Downloads
10,796
Recent files

Authors

Relationships

Embedded library
Ace3
LibStub