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
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.
Must have been drunk or something... omg
Thanks
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 =
"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 =
"= <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.
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 in this condition.
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:
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.