Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(13 Kb)
Download
Updated: 10-16-14 07:14 PM
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Updated:10-16-14 07:14 PM
Created:02-19-10 11:13 AM
Downloads:2,278
Favorites:25
MD5:
6.0.2
Dungeon Finder Bang  Updated this week!
Version: 1.2.3
by: natch [More]
DFBang by Natch

Ever missed a Dungeon Finder queue because you were surfing and had WoW in the background? No more! This addon will unmute sound (if muted) and play a sound when the Dungeon Finder accept window pops up (even when backgrounded.)

There are a few configuration options for controlling
the volume of the playback, have a look in DFBang.lua for details.


4.0.1 patch update:
I have removed the ability to set your own soundfile in the configuration
until I can find a clean solution to a certain problem. If you really want
your own however you can still muck around in the code or overwrite bang.mp3.


6.0.2 patch notes:
It seems Blizzard broke PlaySoundFile() so only ogg files are working at the
moment.


FAQ:

Q: Will it re-mute (if originally muted) my sound after playing the sound?
A: Of course.

Q: Will it disable background sound playback (if disabled before) after playing the sound?
A: Indeed.

Q: Will it set my volume to what I had before if I enable loudness?
A: Aye.

Q: How many dungeon queues have you missed since you wrote this addon?
A: None!

Q: Is there a similar addon for battleground queues?
A: There is now! You can find it here.

Q: Background sound doesn't work!
A: There seems to be an issue for some where addons cannot enable background sound, so you have to do that manually unfortunately (check the Background sound checkbox in sound options). I've tried to fix it but nothing works. Sorry for the inconvenience.
v1.2.3: Ogg files are working so custom sound is available again.

v1.2.2: 6.0.2 update, custom sounds currently unavailable.

v1.2-1: Toc update.

v1.2: Should no longer turn off sound automatically when you don't want it to.

v1.1: 5.1 update and making sure SFX volume is above zero while playing the bang.

v1.0b: Updated for the sound effects change (better late than never?)

v1.0a: 4.0.1 update.
Optional Files (0)


Archived Files (7)
File Name
Version
Size
Author
Date
1.2.2
3kB
natch
10-16-14 05:57 PM
1.2-1
10kB
natch
11-17-13 08:08 AM
1.2
10kB
natch
06-20-13 02:50 PM
1.1
11kB
natch
01-26-13 09:36 AM
1.0b
10kB
natch
12-25-10 06:28 PM
1.0a
10kB
natch
10-19-10 08:14 AM
1.0
10kB
natch
02-19-10 11:13 AM


Post A Reply Comment Options
Unread 02-21-10, 11:05 AM  
Gabbyii
A Kobold Labourer

Forum posts: 0
File comments: 27
Uploads: 0
Didn't work for me

I was surfing the web on my 2nd monitor and it didn't work for Dungeons or BGs. After it didn't work, I tried changing to:

local iRWantLoudness = true;
local iRHasLoudnessVolume = 100; -- Volume in percent

Hoping it was a volume issue - but still nothing.

Any ideas?

Oh I'm running windows 7 x64 in case it could be a permissions issue?

Thanks
Last edited by Gabbyii : 02-21-10 at 11:06 AM.
Gabbyii is offline Report comment to moderator  
Reply With Quote
Unread 02-21-10, 12:26 PM  
natch
A Kobold Labourer
 
natch's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 8
Re: Didn't work for me

Originally posted by Gabbyii
I was surfing the web on my 2nd monitor and it didn't work for Dungeons or BGs. After it didn't work, I tried changing to:

local iRWantLoudness = true;
local iRHasLoudnessVolume = 100; -- Volume in percent

Hoping it was a volume issue - but still nothing.

Any ideas?

Oh I'm running windows 7 x64 in case it could be a permissions issue?

Thanks
I do not have Windows 7 so I don't know if that would be an issue, but I doubt it. Did the sound work at all during that session? Did you install the addon correctly? Did you replace bang.mp3 with your own file or change mySoundFile to something else? If you did, make sure you didn't misspell the new file (and new file should be wav or mp3.) You could try setting iRHasOwnSoundFile to false and see if that works. Let me know how it goes.
Last edited by natch : 02-21-10 at 12:27 PM.
natch is offline Report comment to moderator  
Reply With Quote
Unread 02-21-10, 11:29 PM  
Gabbyii
A Kobold Labourer

Forum posts: 0
File comments: 27
Uploads: 0
Re: Re: Didn't work for me

Originally posted by natch
I do not have Windows 7 so I don't know if that would be an issue, but I doubt it. Did the sound work at all during that session? Did you install the addon correctly? Did you replace bang.mp3 with your own file or change mySoundFile to something else? If you did, make sure you didn't misspell the new file (and new file should be wav or mp3.) You could try setting iRHasOwnSoundFile to false and see if that works. Let me know how it goes.
Nope I just used the default sound file - it works fine if I'm in the game.
Gabbyii is offline Report comment to moderator  
Reply With Quote
Unread 02-24-10, 01:40 PM  
natch
A Kobold Labourer
 
natch's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 8
Re: Re: Re: Didn't work for me

Originally posted by Gabbyii
Nope I just used the default sound file - it works fine if I'm in the game.
Sorry, I can't think of a reason why it wouldn't work. I'm relatively sure it's not an addon issue though. This is the dungeon finder only version, by the way.
natch is offline Report comment to moderator  
Reply With Quote
Unread 02-25-10, 03:46 AM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1048
Uploads: 0
Part of the reason could be that the included sound (file) is fairly difficult to differentiate from the default sound WoW makes when a group is found. Play it outside of WoW and can hear what it sounds like, so is easier to notice it.

Which leads into the problem I've experienced on testing here. The local iRWantLoudness = (xx); & local iRHasLoudnessVolume = (xx); -- Volume in percent (lines 13 & 14) do nothing. At all.

I have my default WoW master volume set to 40% with the Ambience & Sound sliders set to High. Also have Sound in Background checkmarked.

First test, left DFBang.lua at its defaults. Upon getting a dungeon invite with WoW in foreground, the default WoW sound played and so did bang.mp3. Quite difficult to hear the MP3, as noted above, but could hear it.

Next test, changed local iRWantLoudness = to true from the default false. And local iRHasLoudnessVolume = to 60 from the default 50. Exited, restarted, queued up for another dungeon. Both sounds played but the MP3 didn't sound any louder at all.

Next, changed the value to 80. Same thing.

Finally changed it to 100. Same thing.

So the method you are using to adjust the volume doesn't work here in testing. And yes, the lines were set correctly with a proper text editor. At least the MP3 actually plays.
Zidomo is offline Report comment to moderator  
Reply With Quote
Unread 02-25-10, 05:42 AM  
natch
A Kobold Labourer
 
natch's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 8
Originally posted by Zidomo
Part of the reason ...
I'm sorry you're having issues as I have none of which you describe. I get a very noticeable difference in volume when using loudness and changing loudness volume, I also chose the included bang.mp3 because it (to my ears) seems to cut through almost everything making it very easy to hear. You can easily replace it with something that suits you better though. Just copy something over bang.mp3 or copy a new file to the addon directory and edit mySoundFile in DFBang.lua.
natch is offline Report comment to moderator  
Reply With Quote
Unread 02-25-10, 01:33 PM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1048
Uploads: 0
Originally posted by natch
I'm sorry you're having issues as I have none of which you describe.
No point in replacing the sound file if the volume control does nothing . A shame you can't replicate the volume issue; oh well, on to something else.
Zidomo is offline Report comment to moderator  
Reply With Quote
Unread 03-08-10, 02:25 PM  
Vuzrak
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Not working

Just a note it's not working for me either and I'm on Win7 x64, it works fine in game or if I enable background sounds but if I turn off background sounds it doesn't work.
Vuzrak is offline Report comment to moderator  
Reply With Quote
Unread 03-08-10, 03:50 PM  
Terrozer
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Not working

Hi natch, first of all I would like to congratulate you on adapting such an amazing idea!!

Unfortunately it's just not working for me

I'm using windowsXP. I really don't know what I'm doing wrong. The sound does play in-game but not when WoW is minimized. Please find a solution if possible

Thanks in advance!
Terrozer is offline Report comment to moderator  
Reply With Quote
Unread 03-11-10, 04:19 AM  
Cahal
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Enable Sound: on
Sound in Background: on

With these two options on it works whereever, minimized, tabbed out and ingame.

Without those two the addon can't enable sound itself nor play when it's in the background.

Using Win 7 x64
Cahal is offline Report comment to moderator  
Reply With Quote
Unread 06-10-10, 12:10 AM  
SlashBlack
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
this addon saved my life, thank you!,
SlashBlack is offline Report comment to moderator  
Reply With Quote
Unread 06-10-10, 01:47 AM  
natch
A Kobold Labourer
 
natch's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 8
Originally posted by SlashBlack
this addon saved my life, thank you!,
You are very welcome
natch is offline Report comment to moderator  
Reply With Quote
Unread 08-11-10, 05:23 PM  
borbies
A Fallenroot Satyr
 
borbies's Avatar

Forum posts: 21
File comments: 43
Uploads: 0
I can confirm that the toggle of Sound_EnableSoundWhenGameIsInBG (and possibly others) is not working as intended (I am using Windows 7 32). However, I don't think this is a problem with the code, rather Blizzard's handling of it. The code retrieves and sets the CVar properly. The problem is that even when it is turned on before the sound execution, it still does not take immediate effect. I am working on a workaround now as I intend to something similar in an add-on that I am working on.
Last edited by borbies : 08-11-10 at 05:23 PM.
borbies is offline Report comment to moderator  
Reply With Quote
Unread 08-11-10, 06:28 PM  
borbies
A Fallenroot Satyr
 
borbies's Avatar

Forum posts: 21
File comments: 43
Uploads: 0
OK... it seems like it is impossible to do what I was hoping. Basically, once WoW is in the BG, sound can not be re-enabled with "Sound in Background" until WoW is truely no longer in the background, even if the cVar is changed.

Also, volume is dynamic, so turning the volume back down immediately follow the playsound does nothing.

So the only part of this that truly works is EnableAllSound.
borbies is offline Report comment to moderator  
Reply With Quote
Unread 08-12-10, 04:21 AM  
natch
A Kobold Labourer
 
natch's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 8
Originally posted by borbies
I don't think this is a problem with the code, rather Blizzard's handling of it.

This was my conclusion as well.
natch is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: