Download
(151Kb)
Download
Updated: 08-03-10 03:18 AM
Pictures
File Info
Updated:08-03-10 03:18 AM
Created:04-09-10 08:35 AM
Downloads:4,730
Favorites:38
MD5:

Broker H3DungeonCooldowns

Version: r017
by: SuranthianH3 [More]

All users with revision 10 or under, delete it before you install a newer version

***IMPORTANT***
This requires a databroker addon such as
Chocolate Bar or TitanPanel.

Broker_H3DungeonCooldown is only available in English and was designed for enUS. If you aren't enUS, the only thing that should break is expansion sorting. Just disable expansion headers.

Broker H3 DungeonCooldowns started out as a quick "Hello World" test to start out coding Lua in WoW and eventually turned into this. It is a somewhat simple DataBroker Display that shows what dungeons you are saved to and how long until they unlock.

Please provide feedback in comments. Also provide suggestions for more features. I will update with a list of features I plan on adding when there are enough.

It is important that if you find a bug that you please a comment here, otherwise the bug will not be fixed.

Features
Self explanatory section title is self explanatory.

  • Showing data on any/every character on your account (current server). (Note: Requires you to log in atleast once so the addon can register the toon's data into the database.)
  • *NEW* Time for dungeon deserter and random dungeon queue cooldown.
  • Customizing the look of your tooltip with options such as:
    • 2 optional columns for the save's ID and the unlock's date and time (rounded to the nearest 15 minutes, based off of local time)
    • Enabling and disabling the display of expansion content
    • Enabling and disabling the icon's text.
    • *NEW* Adding whitespaces or expansion names between expansion content.
    • Toggling showing unlocked dungeons.
    • Changing the maximum height of the tooltip before it uses a scrollbar.
    • Font options:
      • Change tooltip's text font using shared media (Default Friz Quadrata TT)
      • Change tooltip text sizes (Header, name, hints, text)
    • Change colors of:
      • Dungeon Names
      • Dungeon Difficulties
      • Unlock time remaining (Gradually changes colors as the time expires. So, assuming you are on the default settings and it's a heroic, it will be red at 24 hours, orange at 18, yellow at 12, lime at 6, and green when it's a few minutes.)
      • Class colors (for name display)
      • The separators (Horizontal lines in the tooltip)

  • *NEW* Dungeon Finder Information Including:
    • The average time and average time for every role
    • The role(s) you are queued as in the dungeon finder.
    • *NEW* The time left to accept the invite and what role you are assigned in the group.
    • The roles for the group that have been found (also shows beside the icon, regardless of icon only)
    • Who has accepted the invitation (when the group has been made), even before you accept it!
    • *NEW* Hiding the minimap icon (if wanted)
  • Clicking Line Scripts:
    • Clicking a line to report its info to chat (Doesn't matter what type of click, as long as it isn't a shift click on a current toon's line)
    • Shift-Clicking a line to toggle lock extensions


Known Issues
Issues that are.. Known...
The chat report feature inserts the text without enabling text input, so pressing enter opens the edit box (sets it to full opacity), and clears what was in it.
I am aware of this issue but I do not have a solution at the moment. I am not very experienced in handling widgets. Before, I was using ChatFrameEditBox:Show() and ChatFrameEditBox:Insert(string), but with the new chatbox, the now "ChatFrame1EditBox" is already shown, but doesn't input text unless you hit enter. So I will have to find another way.

Just click the edit box after clicking the line then hit enter, or hit enter, click the line, then hit enter again.

Revision 016 - Bugfix (3.3.5)
- Uploaded a fix by spAnser for the random dungeon cooldown and dungeon deserter.

Revision 016 - Bugfix (3.3.5)
- Forgot for a second that some functions return nil instead of 0 sometimes. Quick fix. Only need this update if you got revision 15.

Revision 015 - FEATURES (Minor) (3.3.5)
- Added Dungeon Deserter and Random Queue Cooldown
- Fixed a minor typo. Removed brackets from dungeon invite roles, but not on the queue. They are now removed from both.
Sorry for the wait, been busy

Revision 014 - FEATURES (3.3.5)
- Removed brackets from LFD roles to preserve space
- Added whitespaces between expansions (none, whitespace, or expansion name)
- Made seperators customizable (color and height)
- Added showing time left and your role on the icon when an invite is avaliable.
- Added a teleport in and out button at the top of the tooltip (EXPERIMENTAL: Only shows if you have a role assigned)
- Added the ability to hide the minimap icon for the LFD system, since this does everything it does

Revision 013 - FEATURES (3.3.3)
- Added dungeon sorting (Expansion, then name, then difficulty)
- Made current character display at the top of the character list instead of where it is alphabetically.
- Added dungeon finder information! Shows average time for every role, average time in general, what you are queued as, what your currently forming group has so far, who accepted the invitation (even before you accept it!)

Revision 012 - BUGFIX (3.3.3)
- Readded AceLocale-3.0


Revision 011 - MAJOR VERSION (3.3.3)
- Rerelease. Remade the entire addon because I know more about Lua now. The nil table bug is now 100% gone without using garbage collection. Delete your old version before installing this new one. It's a "new" addon (different folder name).


Revision 010 fix (3.3.3)
- Nothing important or new, just makes it appear in the addons list next to all of my other mods instead of alone.


Revision 010 - BUGFIX (3.3.3)
- Added garbage collection. No more random nil tables! :D


Revision 009 - BUGFIX (3.3.3)
- Sometimes, if you crash or disconnect, a characters data will go nil (usually the one you're on when you DC). Now, it will notify you upon login/reload that it happened and clear the toon's data, turning it into an empty table with 3 more empty tables (Vanilla, BC, WotLK) instead of getting an error that breaks the addon's tooltip display altogether by leaving it nil. TL;DR - No more table errors.


Revision 008 - BUGFIX (3.3.3)
- Formatting on the chat report had a bug with the name with some settings configured in certain ways (it was either considered nil or it was the wrong character, depended on your character selection setting).


Revision 007 - BUGFIX (3.3.3)
- The report did not have the correct character name and server. It instead reported the last saved character's name.


Revision 006 - FRIDAY-FEATURES (3.3.3)
- Added 2 new columns (optional) for ID and unlock date/time and save ID. Allows toggling expansion headers and whitespaces, setting column alignment, toggling instance extensions for your current toon, and even sending a lines data to chat! I also updated the libraries and showed how long until the addon will load on the icon (when you change options or logon), and made it update the data on rollover instead of every 20 seconds.


Revision 005 - BUGFIX (3.3.3)
- Fixed a bug for people who don't have any other addons that use LibQTip (minor spelling error in the .toc file caused it to not be included). This patch is only needed if you are experiencing a certain error regarding LibQTip in the comments.


Revision 004 - BUGFIX (3.3.3)
- Instances that are unlocked not being registered as an unlocked dungeon if you aren't on that character.


Revision 003 - FRIDAY-FEATURES (3.3.3)
- Allows the showing of date on every single character on your account that you have logged onto with the addon installed.


Revision 002 - BUGFIX (3.3.3)
- Addon's variable tables being invalid on characters that have never done a savable dungeon.


Revision 001 - Initial release (3.3.3)
- Had a bug for toons that have never been in an instance that is savable, so a new version was released less than 30 minutes later.
Post A Reply Comment Options
Unread 07-14-10, 01:26 PM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 64
File comments: 166
Uploads: 0
Confirm new error

Mousing over the LBD icon revelas the error below. As seen by BugGrabber, English American client

3x ...ker_H3DungeonCooldowns\Broker_H3DungeonCooldowns.lua:1379: attempt to compare number with nil:
ChocolateBar-v2.0.2\Chocolate.lua:207: in function <ChocolateBar\Chocolate.lua:176>

Locals:
self = ChocolateBroker_H3DungeonCooldowns {
0 = <userdata>
text = <unnamed> {}
Update = <function> @ ChocolateBar\Chocolate.lua:253:
settings = <table> {}
tooltip = <unnamed> {}
obj = <table> {}
name = "Broker_H3DungeonCooldowns"
icon = <unnamed> {}
bar = ChocolateBar1 {}
}
obj = <table> {
}
name = "Broker_H3DungeonCooldowns"
db = <table> {
strata = "DIALOG"
combathidetip = false
scale = 1
iconSize = 0.7
background = <table> {}
hideonleave = false
fontPath = "Fonts\FRIZQT__.TTF"
objSettings = <table> {}
gap = 7
barSettings = <table> {}
moreBar = "none"
combatdisbar = false
moreBarDelay = 4
fontSize = 8
height = 16
moveFrames = true
fontName = "Friz Quadrata TT"
combathidebar = false
}
ChocolateBar = <table> {
OnEnterWorld = <function> @ ChocolateBar\Core.lua:243:
SetDefaultModuleLibraries = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:381:
TempDisAutohide = <function> @ ChocolateBar\Core.lua:347:
Enable = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:313:
RegisterChatCommand = <function> @ Ace3\AceConsole-3.0\AceConsole-3.0.lua:85:
EnableModule = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:346:
modules = <table> {}
GetModule = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:230:
IterateEmbeds = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:456:
NewModule = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:255:
defaultModuleLibraries = <table> {}
OnInitialize = <function> @ ChocolateBar\Core.lua:120:
baseName = "ChocolateBar"
UnregisterChatCommand = <function> @ Ace3\AceConsole-3.0\AceConsole-3.0.lua:111:
UpdateDB = <function> @ ChocolateBar\Core.lua:510:
Disable = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:328:
AnchorBars = <function> @ ChocolateBar\Core.lua:433:
Printf = <function> @ Ace3\AceConsole-3.0\AceConsole-3.0.lua:69:
OnLeaveCombat = <function> @ ChocolateBar\Core.lua:258:
GetName = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:298:
DisableDataObject = <function> @ ChocolateBar\Core.lua:326:
AddBar = <function> @ ChocolateBar\Core.lua:408:
UpdateChoclates = <function> @ ChocolateBar\Core.lua:399:
name = "ChocolateBar"
UpdateBars = <function> @ ChocolateBar\Core.lua:425:
IsEnabled = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:465:
LibDataBroker_DataObjectCreated = <function> @ ChocolateBar\Core.lua:272:
GetBars = <function> @ ChocolateBar\Core.lua:371:
DisableModule = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:364:
GetChocolate = <function> @ ChocolateBar\Core.lua:363:
GetBar = <function> @ ChocolateBar\Core.lua:367:
UnregisterMessage = <function> @ Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:181:
EnableDataObject = <function> @ ChocolateBar\Core.lua:285:
RegisterMessage = <function> @ Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:118:
GetArgs = <function> @ Ace3\AceConsole-3.0\AceConsole-3.0.lua:144:
Print = <function> @ Ace3\AceConsole-3.0\AceConsole-3.0.lua:54:
SetBars = <function> @ ChocolateBar\Core.lua:375:
OnEnterCombat = <function> @ ChocolateBar\Core.lua:248:
OnDisable = <function> @ ChocolateBar\Core.lua:232:
OnEnable = <function> @ ChocolateBar\Core.lua:219:
IsModule = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:482:
d
---
Report comment to moderator  
Reply With Quote
Unread 07-14-10, 01:16 PM  
thelurkerbelow
A Murloc Raider

Forum posts: 5
File comments: 56
Uploads: 0
Error in this latest version when mousing over the LDB object:

Code:
...ker_H3DungeonCooldowns\Broker_H3DungeonCooldowns.lua:1379: attempt to compare number with nil
Time: 07/14/10 15:15:03
Count: 5
Stack: ...ker_H3DungeonCooldowns\Broker_H3DungeonCooldowns.lua:1379: in function `OnEnter'
Interface\AddOns\Fortress\Core.lua:239: in function <Interface\AddOns\Fortress\Core.lua:210>
Report comment to moderator  
Reply With Quote
Unread 07-14-10, 11:56 AM  
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 4
Re: Re: Re: Re: Re: Feature Request

Originally posted by ffcloud2000
It's been bugged since 3.3.3 where it doesn't display it sometimes.... i was thinking only show the cd timer when your not in queue for anything at the least

Been so so soo many times where i goto queue for something click the join button and i get this warning text about not being able to queue because of the cooldown.. sometimes if you reload ui it'll update on the lfg window but it seems to disappear after abit and doesn't always display unfortunately
Ok, did a quick update to fix the brackets on the roles during queue and added the 2 times while I was at it.

EDIT: Hooray! 1000 downloads
Last edited by SuranthianH3 : 07-14-10 at 11:56 AM.
Report comment to moderator  
Reply With Quote
Unread 07-01-10, 08:15 PM  
ffcloud2000
A Fallenroot Satyr

Forum posts: 24
File comments: 98
Uploads: 0
Re: Re: Re: Re: Feature Request

Originally posted by SuranthianH3
Ahh.. I could do that, but doesn't pressing i to show the dungeon finder usually do that? I might add those to the tooltip itself, but I don't know about the actual broker thing, since other things might be using it (like the regular queue, if your group split up and you can't do a random but still need a specific one).
It's been bugged since 3.3.3 where it doesn't display it sometimes.... i was thinking only show the cd timer when your not in queue for anything at the least

Been so so soo many times where i goto queue for something click the join button and i get this warning text about not being able to queue because of the cooldown.. sometimes if you reload ui it'll update on the lfg window but it seems to disappear after abit and doesn't always display unfortunately
__________________
Last edited by ffcloud2000 : 07-01-10 at 08:17 PM.
Report comment to moderator  
Reply With Quote
Unread 07-01-10, 11:08 AM  
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 4
Re: Re: Re: Feature Request

Originally posted by ffcloud2000
Nono i meant the Random Dungeon CD after you leave a group early before the 15 mins is up. It seems when you visit the dungeon queue sometimes it doesn't show how much time left before you can queue for another dungeon and figure'd it would be nice to display it

I actually use this macro th check the remaining time
Code:
/run local expires=GetLFGRandomCooldownExpiration()print(("Dungeon Cooldown Expires: \124cff00FF00%s"):format((expires and SecondsToTime(expires-GetTime())) or "Now!"))
Ahh.. I could do that, but doesn't pressing i to show the dungeon finder usually do that? I might add those to the tooltip itself, but I don't know about the actual broker thing, since other things might be using it (like the regular queue, if your group split up and you can't do a random but still need a specific one).
Report comment to moderator  
Reply With Quote
Unread 07-01-10, 10:51 AM  
ffcloud2000
A Fallenroot Satyr

Forum posts: 24
File comments: 98
Uploads: 0
Re: Re: Feature Request

Originally posted by SuranthianH3
What do you mean? Like the time until heroics unlock? I could do that pretty easily, but I might have to make some kind of option to format the text of the broker thing.. Maybe I could do something along the lines of dog text? Like
Code:
DCD: <HeroicCooldown>
would turn out as like "DCD: 6h 52m"

If I did this though, I'd have to delay the update a week or so.. :P
Nono i meant the Random Dungeon CD after you leave a group early before the 15 mins is up. It seems when you visit the dungeon queue sometimes it doesn't show how much time left before you can queue for another dungeon and figure'd it would be nice to display it

I actually use this macro th check the remaining time
Code:
/run local expires=GetLFGRandomCooldownExpiration()print(("Dungeon Cooldown Expires: \124cff00FF00%s"):format((expires and SecondsToTime(expires-GetTime())) or "Now!"))
__________________
Last edited by ffcloud2000 : 07-01-10 at 10:57 AM.
Report comment to moderator  
Reply With Quote
Unread 07-01-10, 10:45 AM  
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 4
Re: Feature Request

Originally posted by ffcloud2000
Was thinking having it display the Dungeon CD in the bar might be a nice little feature.. have it say "DCD: 6 Min 56 Sec" or something along those lines would come in handy
What do you mean? Like the time until heroics unlock? I could do that pretty easily, but I might have to make some kind of option to format the text of the broker thing.. Maybe I could do something along the lines of dog text? Like
Code:
DCD: <HeroicCooldown>
would turn out as like "DCD: 6h 52m"

If I did this though, I'd have to delay the update a week or so.. :P
Report comment to moderator  
Reply With Quote
Unread 06-29-10, 03:10 PM  
ffcloud2000
A Fallenroot Satyr

Forum posts: 24
File comments: 98
Uploads: 0
Feature Request

Was thinking having it display the Dungeon CD in the bar might be a nice little feature.. have it say "DCD: 6 Min 56 Sec" or something along those lines would come in handy
__________________
Last edited by ffcloud2000 : 06-29-10 at 03:12 PM.
Report comment to moderator  
Reply With Quote
Unread 06-27-10, 01:21 AM  
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 4
Re: Thanks

Originally posted by Xylan Trueheart
for the explanation on the wait time. And there's a /redface on my part. I just noticed there was indeed a Teleport out of Dungeon option when I was still in a group but I wasn't looking that carefully and noticed amongst the lines of info there it was :P Probably cause the color of that option was the same as the other lines. However when I was the last one left behind I didn't have any option to leave the dungeon. Sorry for the misunderstanding there.
Not a problem at all. In the next patch I will:
  • Change average wait to estimated wait to say what the regular LFD says (choosing the lowest time of the roles you are queued as)
  • Change the color of the teleport button (possibly controlled by an option)
  • Fix a minor typo, I took the brackets out of the invitation roles, but not the queue roles

So basically unless I get more suggestions, it's a minor patch.
Last edited by SuranthianH3 : 06-27-10 at 01:46 AM.
Report comment to moderator  
Reply With Quote
Unread 06-26-10, 06:36 PM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 64
File comments: 166
Uploads: 0
Thanks

for the explanation on the wait time. And there's a /redface on my part. I just noticed there was indeed a Teleport out of Dungeon option when I was still in a group but I wasn't looking that carefully and noticed amongst the lines of info there it was :P Probably cause the color of that option was the same as the other lines. However when I was the last one left behind I didn't have any option to leave the dungeon. Sorry for the misunderstanding there.
Last edited by Xylan Trueheart : 06-26-10 at 07:11 PM.
Report comment to moderator  
Reply With Quote
Unread 06-25-10, 11:20 PM  
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 4
Re: About the wait time

Originally posted by Xylan Trueheart
Thanks much for improving this addon. The only quibble I have is the avg wait time. I noticed in the older version and the new version you have out now, this addon avg wait time was almost exactly half the wait time in the minimap LFD time and from my experience the LFD wait time was the more accurate between the two. Other than that quite a polished product.

Added since post. I also noticed there is no Teleport Out of Dungeon option. I just noticed today that I was last one left in the dungeon and the LDB option doesn't have the Leave/Teleport option.
It goes off whether or not you have a role (basically if it was formed by LFD, since some groups wont have LFD restrictions since they were formed through it with a full group), and you teleport out using the button on the top of the tooltip that will say "-Teleport out of dungeon-" or "-Teleport into dungeon-". If you mean it flat out wasn't showing on the tooltip even though you had a role assigned, then I'll look around and see what I did wrong.

The average wait time is not your estimated wait time, is is the average time of all roles added together, it is a number passed by the function, use whichever role time is lowest (of the ones you are queued as) and that is your estimated wait time. I'll change it next patch to make it a bit clearer. :P
Last edited by SuranthianH3 : 06-25-10 at 11:23 PM.
Report comment to moderator  
Reply With Quote
Unread 06-25-10, 04:16 PM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 64
File comments: 166
Uploads: 0
About the wait time

Thanks much for improving this addon. The only quibble I have is the avg wait time. I noticed in the older version and the new version you have out now, this addon avg wait time was almost exactly half the wait time in the minimap LFD time and from my experience the LFD wait time was the more accurate between the two. Other than that quite a polished product.

Added since post. I also noticed there is no Teleport Out of Dungeon option. I just noticed today that I was last one left in the dungeon and the LDB option doesn't have the Leave/Teleport option.
Last edited by Xylan Trueheart : 06-25-10 at 06:11 PM.
Report comment to moderator  
Reply With Quote
Unread 06-23-10, 08:06 PM  
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 4
Re: Re: Re: Minimap Icon

Originally posted by ffcloud2000
Would it be possible to remove the brackets from the displaybar --> [T][H][D][D][D] <-- so its just the letters THDDD instead.. uses up less of the bar
Sure, just got back and I'm working on the update now. Expect a test release by Friday.

EDIT: Chat reporting doesn't work due to the reworking of the chat box.. How fun. I get to surf the forums now!
Last edited by SuranthianH3 : 06-23-10 at 08:24 PM.
Report comment to moderator  
Reply With Quote
Unread 06-14-10, 08:57 PM  
ffcloud2000
A Fallenroot Satyr

Forum posts: 24
File comments: 98
Uploads: 0
Re: Re: Minimap Icon

Would it be possible to remove the brackets from the displaybar --> [T][H][D][D][D] <-- so its just the letters THDDD instead.. uses up less of the bar
__________________
Last edited by ffcloud2000 : 06-14-10 at 08:58 PM.
Report comment to moderator  
Reply With Quote
Unread 06-08-10, 05:00 AM  
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 4
Re: Minimap Icon

Originally posted by Xylan Trueheart
Heh sorry no idea what the minimap icon is called but I was using this addon http://www.wowinterface.com/download...ueue.html#info for the LFD queue. It has the option of hiding the minimap icon. Was using it till your addon included the LFD feature.
Mmk, I'll look into it. I am going out of town in a few days, so I can't guarantee an update for a couple weeks, though. :P

I plan on adding:
  • A teleport in/out button
  • An option for hiding the default LFG icon
  • headers for expansions:
    • Whitespace between expansions
    • Disabled
    • Expansions name
  • Allowing you to accept the invite through the tooltip IF YOU WANT (but I'm not removing the default window)
  • Making the icon show how much time you have left to accept the queue and your assigned role.
Last edited by SuranthianH3 : 06-08-10 at 05:05 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.