Download
(9 Kb)
Download
Updated: 03-10-13 10:30 AM
Pictures
File Info
Compatibility:
Thunder Isle (5.2)
Updated:03-10-13 10:30 AM
Created:08-18-09 05:08 PM
Downloads:2,342
Favorites:46
MD5:
V Difficulty (LDB)
Version: 1.8
by: Verissi [More]
V_Difficulty (Verissi's Difficulty) is a simple LDB data feed to display the current dungeon/raid difficulty settings. It also allows you to change the settings.

Yes, I got tired of right-clicking my unit frame to check what they were set to
1.8
* Fixed raid difficulty settings. I'm planning on rewriting a chunk of this, but this works
for now.
1.7
* Updated for 5.2 (TOC/rev bump and fixed function calls)
1.6
* Changed separator to | since it was requested and looked better anyway
* Fixed a bug triggered by entering a 40-player instance. Should properly show
"40" as the difficulty in the broker display, but it's not an available difficulty setting
(intentional on Blizzard's part).
1.5
* Updated for 5.0.x (TOC/rev bump and fixed function calls)
* Added Challenge Mode (CM) to the list of dungeon difficulties
* Added a few (somewhat superfluous) event handlers to catch corner cases where
difficulty changes are made, but the addon doesn't notice
* Made sure the difficulty abbreviations aren't nil when setting the LDB text
1.4
* TOC and rev bump for 4.0.1 and beta
1.3
* TOC and rev bump for 3.3.0
1.2
* Fixed LDB object type so it shows the text properly (no idea why I changed it before)
* Added Minion tag in TOC
* Tweaked tooltip layout a bit to make it less...wide
1.1
* Added the ability to change dungeon/raid difficulty by right-clicking
* Recoloured tooltip text and added a note about the right-click functionality
1.0
* Initial release
Archived Files (8)
File Name
Version
Size
Author
Date
1.7
9kB
Verissi
03-06-13 03:52 AM
1.6
9kB
Verissi
09-24-12 12:38 PM
1.5
9kB
Verissi
08-29-12 10:03 AM
1.4
8kB
Verissi
10-31-10 09:12 AM
1.3
8kB
Verissi
12-10-09 04:38 PM
1.2
8kB
Verissi
08-19-09 03:57 PM
1.1
8kB
Verissi
08-18-09 11:54 PM
1.0
8kB
Verissi
08-18-09 05:08 PM


Post A Reply Comment Options
Old 05-25-13, 10:26 AM  
JohnDoe03
A Kobold Labourer

Forum posts: 1
File comments: 75
Uploads: 0
Originally Posted by cremor
Big problem with patch 5.3! As soon as I try to log in with V_Difficulty enabled the game hangs in the loading screen. Seems like an endless loop, it uses a full CPU core and never finishes loading. Disabling V_Difficulty fixes the problem. Reproduceable with a fresh WTF folder and only V_Difficulty and ChocolateBar installed.
Same here. DEde client.
JohnDoe03 is offline Report comment to moderator  
Reply With Quote
Old 05-22-13, 09:30 AM  
cremor
A Murloc Raider

Forum posts: 4
File comments: 38
Uploads: 0
Big problem with patch 5.3! As soon as I try to log in with V_Difficulty enabled the game hangs in the loading screen. Seems like an endless loop, it uses a full CPU core and never finishes loading. Disabling V_Difficulty fixes the problem. Reproduceable with a fresh WTF folder and only V_Difficulty and ChocolateBar installed.
Last edited by cremor : 05-22-13 at 09:31 AM.
cremor is offline Report comment to moderator  
Reply With Quote
Old 03-10-13, 10:33 AM  
Verissi
Premium Member
 
Verissi's Avatar
AddOn Author - Click to view AddOns

Forum posts: 99
File comments: 29
Uploads: 2
I goofed on the raid difficulty settings in 1.7, so I just uploaded a new version that fixes it. I'm probably going to rewrite parts of this in the near future to support some of the newer functions and make future updates a lot less painful, but 1.8 should work just fine.

Sorry for the derp!
__________________
"I can calculate the motions of the heavenly bodies, but not the madness of people." - Sir Isaac Newton
"Half of twice as intimidating as Saurfang is still one whole Saurfang worth of intimidation." - Anticlaus, Gorefiend server
Verissi is offline Report comment to moderator  
Reply With Quote
Old 10-12-12, 04:27 AM  
Verissi
Premium Member
 
Verissi's Avatar
AddOn Author - Click to view AddOns

Forum posts: 99
File comments: 29
Uploads: 2
Originally Posted by Tonyleila
will Rev 1.6 fix this too?

-stuff-
It should! My German is very rusty, but it looks like the same error that was being thrown when entering a 40-player raid instance (which 1.6 is meant to fix).


To give you an idea of what was happening, entering a 40 raid instance caused GetRaidDifficulty() to return 0, which had no value associated with that index in the difficulty array I created. I've added the index and value pair, as well as added an extra check to make sure the difficulty functions aren't returning nil (just in case). Also, it seems that 40-player "difficulty" isn't a setting that you can directly set with Blizzard's functions (it's auto-set when you enter a raid instance like AQ40 or BWL, but there's no option to force it) nor was it documented anywhere since the Get functions seem to support the UI dropdown code (which only deals with 10/10h/25/25h/challenge). It was basically a corner case I just hadn't anticipated and wasn't fully documented otherwise. /doh


Probably a little more info than was needed, but some people might have been curious as to what was happening.
__________________
"I can calculate the motions of the heavenly bodies, but not the madness of people." - Sir Isaac Newton
"Half of twice as intimidating as Saurfang is still one whole Saurfang worth of intimidation." - Anticlaus, Gorefiend server
Verissi is offline Report comment to moderator  
Reply With Quote
Old 10-11-12, 02:20 PM  
Tonyleila
A Frostmaul Preserver
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 279
File comments: 1229
Uploads: 31
will Rev 1.6 fix this too?

Code:
1x V_Difficulty\V_Difficulty-1.5.lua:60: attempt to concatenate field "?" (a nil value)
V_Difficulty\V_Difficulty-1.5.lua:60: in function <V_Difficulty\V_Difficulty.lua:56>
(tail call): ?

Locals:
(*temporary) = "CHAT_MSG_SYSTEM"
(*temporary) = "Schlachtzugsschwierigkeit auf 'Schlachtzugsbrowser' gesetzt."
(*temporary) = ""
(*temporary) = ""
(*temporary) = ""
(*temporary) = ""
(*temporary) = ""
(*temporary) = 0
(*temporary) = 0
(*temporary) = ""
(*temporary) = 0
(*temporary) = 1388
(*temporary) = ""
(*temporary) = 0
(*temporary) = false
(*temporary) = false
(*temporary) = "CHAT_MSG_SYSTEM"
(*temporary) = "Schlachtzugsschwierigkeit auf 'Schlachtzugsbrowser' gesetzt."
(*temporary) = ""
(*temporary) = ""
(*temporary) = ""
(*temporary) = ""
(*temporary) = ""
(*temporary) = 0
(*temporary) = 0
(*temporary) = ""
(*temporary) = 0
(*temporary) = 1388
(*temporary) = ""
(*temporary) = 0
(*temporary) = false
(*temporary) = false
(*temporary) = <func> =[C]:-1
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
Tonyleila is offline Report comment to moderator  
Reply With Quote
Old 09-24-12, 12:33 PM  
Verissi
Premium Member
 
Verissi's Avatar
AddOn Author - Click to view AddOns

Forum posts: 99
File comments: 29
Uploads: 2
Doh, that's a case I completely forgot about. I'm guessing this happened when (or after) you had entered an old 40-person raid instance? I'll get that fixed up today. I haven't had too much time to work on things otherwise, so I apologise for not adding more fixes/features in the coming revision (haven't had time to work on the tooltip placement yet).

Edit: Rev 1.6 is uploaded, and fixes this. Let me know if you run across any other issues!

Originally Posted by Kramarz
got this one today spamming me
--stuff--
__________________
"I can calculate the motions of the heavenly bodies, but not the madness of people." - Sir Isaac Newton
"Half of twice as intimidating as Saurfang is still one whole Saurfang worth of intimidation." - Anticlaus, Gorefiend server
Last edited by Verissi : 09-24-12 at 12:40 PM.
Verissi is offline Report comment to moderator  
Reply With Quote
Old 09-22-12, 12:01 PM  
Kramarz
A Kobold Labourer

Forum posts: 0
File comments: 193
Uploads: 0
got this one today spamming me

Date: 2012-09-22 19:00:33
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\V_Difficulty\V_Difficulty.lua line 60:
attempt to concatenate field '?' (a nil value)
Debug:
[C]: ?
V_Difficulty\V_Difficulty.lua:60:
V_Difficulty\V_Difficulty.lua:56
(tail call): ?
Locals:
self = VDFrame {
0 = <userdata>
CHAT_MSG_SYSTEM = <function> defined @Interface\AddOns\V_Difficulty\V_Difficulty.lua:56
PLAYER_LOGIN = <function> defined @Interface\AddOns\V_Difficulty\V_Difficulty.lua:30
PLAYER_ENTERING_WORLD = <function> defined @Interface\AddOns\V_Difficulty\V_Difficulty.lua:48
PLAYER_ALIVE = <function> defined @Interface\AddOns\V_Difficulty\V_Difficulty.lua:40
}
self = "CHAT_MSG_SYSTEM"
eventText = "Raid Difficulty set to 40 Player."
(*temporary) = <table> {
}
(*temporary) = "5H"
(*temporary) = "/"
(*temporary) = nil
(*temporary) = 0
(*temporary) = "attempt to concatenate field '?' (a nil value)"
dDiff = 2
rDiff = 0
VDobj = <table> {
}
DungeonDiffsShort = <table> {
1 = "5"
2 = "5H"
8 = "CM"
}
RaidDiffsShort = <table> {
1 = "10"
2 = "25"
3 = "10H"
4 = "25H"
}
Kramarz is offline Report comment to moderator  
Reply With Quote
Old 09-07-12, 02:31 AM  
Tonyleila
A Frostmaul Preserver
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 279
File comments: 1229
Uploads: 31
Originally Posted by Verissi
I'll look into adding some screen boundary checks to the dropdown so it doesn't run off-screen. It's something that was on my to-do list ages ago and I just never got around to it (mine is on the left of my screen, so it was easy to forget ). I'll try to make some time this weekend to work on it.
Thanks! Also woud it be too much for this addon to add a warning if hero mode is available and you join in non hero mode? I don't realy know how that warning shoud look maybe a popup where you just can klick OK? Haven't found an addon for this. Is this only me running inside Utgarde Pinnacle for 105 Times now and sometimes i still reach Skadi and notice I'm non hc again >_<
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
Last edited by Tonyleila : 09-07-12 at 02:32 AM.
Tonyleila is offline Report comment to moderator  
Reply With Quote
Old 09-05-12, 11:52 AM  
Kramarz
A Kobold Labourer

Forum posts: 0
File comments: 193
Uploads: 0
Aye, thanks for update!
Kramarz is offline Report comment to moderator  
Reply With Quote
Old 08-30-12, 01:28 PM  
Verissi
Premium Member
 
Verissi's Avatar
AddOn Author - Click to view AddOns

Forum posts: 99
File comments: 29
Uploads: 2
I'll look into adding some screen boundary checks to the dropdown so it doesn't run off-screen. It's something that was on my to-do list ages ago and I just never got around to it (mine is on the left of my screen, so it was easy to forget ). I'll try to make some time this weekend to work on it.

I like the separator suggestion too (never thought about it before, but that does look better). I'll lob that in there as well. Thanks for the suggestions and dancing banana endorsement

Originally Posted by Tonyleila
Thanks for the update! I suggest using this | instead of / to separat the 5/10 ( 5|10 looks better ) i replaced this for my UI

Also is there any way to change the position of the rightklick menu? I use this addon i top of my minimap and it pops out the screen

..and now, a dancing banana in honour of your addon
__________________
"I can calculate the motions of the heavenly bodies, but not the madness of people." - Sir Isaac Newton
"Half of twice as intimidating as Saurfang is still one whole Saurfang worth of intimidation." - Anticlaus, Gorefiend server
Verissi is offline Report comment to moderator  
Reply With Quote
Old 08-30-12, 02:37 AM  
Tonyleila
A Frostmaul Preserver
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 279
File comments: 1229
Uploads: 31
Thanks for the update! I suggest using this | instead of / to separat the 5/10 ( 5|10 looks better ) i replaced this for my UI

Also is there any way to change the position of the rightklick menu? I use this addon i top of my minimap and it pops out the screen

..and now, a dancing banana in honour of your addon
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
Last edited by Tonyleila : 08-30-12 at 02:43 AM.
Tonyleila is offline Report comment to moderator  
Reply With Quote
Old 08-29-12, 10:09 AM  
Verissi
Premium Member
 
Verissi's Avatar
AddOn Author - Click to view AddOns

Forum posts: 99
File comments: 29
Uploads: 2
New version for 5.0.x is pending approval now! Challenge Mode was added to the list and I think I squashed a few bugs that nobody reported, but I seemed to run across at rare times

Tonyleila, if you run across the same bug, please let me know. I added some new event handlers in case the difficulty functions don't return the correct values on login (the root of the issue you were seeing).

..and now, a dancing banana in honour of Mists
__________________
"I can calculate the motions of the heavenly bodies, but not the madness of people." - Sir Isaac Newton
"Half of twice as intimidating as Saurfang is still one whole Saurfang worth of intimidation." - Anticlaus, Gorefiend server
Verissi is offline Report comment to moderator  
Reply With Quote
Old 08-29-12, 08:49 AM  
Verissi
Premium Member
 
Verissi's Avatar
AddOn Author - Click to view AddOns

Forum posts: 99
File comments: 29
Uploads: 2
Re: not working correct

Sorry for the delay! Life's been kicking me in the head lately

I'm working on an update now, since the dungeon difficulty functions changed names (and Challenge Mode was added) in 5.0.x. I've seen that bug myself a few times, but can't seem to reliably reproduce it or figure out what causes it. I'll put in a bit more work on that and see if I can nail it down.

I should have an updated version today or tomorrow for 5.0!

Originally Posted by Tonyleila
This LDB is not working well any more i've run several times into instances looking at this addon that says the Difficulty is set to 5H but it was non hero.

I Love this LDB pls update!
__________________
"I can calculate the motions of the heavenly bodies, but not the madness of people." - Sir Isaac Newton
"Half of twice as intimidating as Saurfang is still one whole Saurfang worth of intimidation." - Anticlaus, Gorefiend server
Verissi is offline Report comment to moderator  
Reply With Quote
Old 08-11-12, 05:19 PM  
Tonyleila
A Frostmaul Preserver
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 279
File comments: 1229
Uploads: 31
not working correct

This LDB is not working well any more i've run several times into instances looking at this addon that says the Difficulty is set to 5H but it was non hero.

I Love this LDB pls update!
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
Tonyleila is offline Report comment to moderator  
Reply With Quote
Old 09-18-09, 12:38 PM  
OmniBlade
A Murloc Raider

Forum posts: 4
File comments: 12
Uploads: 0
Finally an addon that does this. Ive been waiting ages for this. Thank you VERY much. Dont ever die... I need you now.
OmniBlade is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: