Download
(131 Kb)
Download
Updated: 09-21-12 09:30 AM
Pictures
File Info
Compatibility:
Mists of Pandaria (5.0.4)
Updated:09-21-12 09:30 AM
Created:04-04-11 05:34 AM
Downloads:1,603
Favorites:10
MD5:
Custom Combat Sounds
Version: 2.02
by: Choonstertwo [More]
Version 2.0 is here!
Version 2.0 has been rewritten around Ace3 and now supports more events with a more complex sound file format.

I recommend you delete any previous copies of the AddOn and its saved variables to ensure a smooth installation.



Description
Custom Combat Sounds plays sounds on various combat events.

This AddOn does not currently come with any sounds.

If you wish to add sounds, place them in the "CustomCombatSounds\Sounds\" directory. Sounds must be in .ogg or .mp3 format and named exactly as specified below to be recognised.

If you wish to contribute sounds for others to use, please upload them as optional files on the AddOn's WoW Interface page.



Localisation
If you're fluent in a language other than English and want to use the AddOn in your language, please visit the Localisation page.



Sound File Format
The sound file format has up to four sections, each separated by a dash:

source/dest-event-spellID-crit/norm/miss.extension

All parts of the sound file name are in lower-case letters. Extension is either mp3 or ogg, determined by your settings.

Quotation marks are used here to show exactly what each part of the format is, but are not actually present in the file name.

source/dest
  • Describes whether you or your pet were the source or destination of the combat log event that triggered this sound.
  • If you were the source, this part is "source"; if you were the destination, this is "dest". If your pet was the source or destination, this is "pet-source" or "pet-dest" respectively.
  • If the source and destination were you and your pet (or vice versa), the source will take priority.
  • This is present for all combat log events.

event
  • The sub-event of COMBAT_LOG_EVENT_UNFILTERED that triggered this sound.
  • You can see the names of all the sub-events here.
  • You can see descriptions of when most of them fire here.
  • This is present for all combat log events.

spellID
  • This is not present for events with the SWING, UNIT or PARTY prefixes.
  • For events with the ENVIRONMENTAL prefix, this is the type of environmental damage. You can see a list of environmental types here.
  • For events with the RANGE, SPELL, SPELL_PERIODIC and SPELL_BUILDING prefixes, this is the spellID of the spell that was cast.
    SpellIDs can be found on the end of Wowhead URLs. For example, Kill Shot has a spellID 53351. Its Wowhead URL is http://www.wowhead.com/spell=53351
  • Events with the DAMAGE prefix mimic various SPELL events, see here for details.

crit/norm/miss
  • For events with the _MISSED suffix, this is the miss type.
  • For events with the _DAMAGE or _HEAL suffix, this is either "critical" or "normal" depending on whether or not the spell critically hit.
  • For events with the _AURA_BROKEN_SPELL suffix, this is the extra spellID (the spellID of the spell that broke the aura).
  • For events with other _AURA_ suffixes, this is the aura type (either "buff" or "debuff").
  • This is not present for all other suffixes.

Examples
  • If I wanted a sound to play every time I did non-critical damage with my auto-attack, I'd name it source-swing_damage-normal.mp3 (or .ogg).
  • If I wanted a sound to play every time I applied the Corruption debuff to someone, I'd name it source-spell_aura_applied-172-debuff.mp3 (or .ogg).
  • If I wanted a sound to play every time I took non-critical damage from fires (e.g. cooking fires, braziers), I'd name it dest-environmental_damage-fire-normal.mp3 (or .ogg).
  • If I wanted a sound to play every time my pet successfully cast Lash of Pain, I'd name it pet-source-spell_cast_success-7814.mp3 (or .ogg).
  • If I wanted a sound to play every time my Rejuvenation periodic effect critcally healed someone, I'd name it source-spell_periodic_heal-774-critical.mp3 (or ogg).



Converter
I recommend SUPER or Audacity to convert your sound files to or from .ogg or .mp3 format.

Direct download link for SUPER

In SUPER, simply drag and drop the files into the window, select "OGG (Audio Only)" or "MP3 (Audio Only)" from the drop-down menu in the top-left and click "Encode (Active Files)" to start the conversion. The converted files can be found in the same folder as the original files.

To convert files to mp3 in Audacity, apply the "MP3 Conversion" chain to the files. This page explains how to apply chains.

To convert to ogg, you'll need to make your own chain that follows the same steps as the MP3 Conversion one but uses the "ExportOgg" step instead of "ExportMp3". This page explains how to make chains. Once you've made the chain, apply it in the same way as above.

The converted files can be found in a folder called "cleaned", located in the same folder as the input files.

Direct download link for Aduacity


For the security conscious, here are some security reviews of the websites I linked:

Google's Safe Browsing Diagnostic page for erightsoft.com
McAfee's SiteAdvisor page for erightsoft.com

Google's Safe Browsing Diagnostic page for erightsoft.org
McAfee's SiteAdvisor page for erightsoft.org

Google's Safe Browsing Diagnostic page for audacity.sourceforge.net
McAfee's SiteAdvisor page for audacity.sourceforge.net

Google's Safe Browsing Diagnostic page for manual.audacityteam.org
McAfee's SiteAdvisor page for manual.audacityteam.org



API
CCS provides a single public function that can be used in your own AddOns/scripts. You can see how to use the :PlayCombatSound method on the API page.



Credits
I'd like to thank Wowpedia and all of its contributors, especially those who wrote the UI-related pages that have helped me learn Lua.

I'd also like to thank the posters in the official UI and Macros forums for all of their help.

Original idea courtesy of Vancha of Black Dragonflight US
For the latest changes, please see CurseForge.

--v0.04 alpha--
Changed the CombatSoundsChannel Saved Variable to a Saved Variable for each of the four event types (Swing, Spell, Periodic, Range)

Added a Saved Variable for the format of each event type, allowing you to choose between .ogg and .mp3. (Thanks to Vancha of WoW Interface for the idea of multiple formats)

--v0.03 alpha--
Added the CombatSoundsChannel Saved Variable, allowing you to change the channel that the sounds are played in.

Fixed an error in the usage information present from my other AddOn.

--v0.02 alpha--
Finished implementing the CombatSoundsEnabled Saved Variable. The AddOn will now remember if you've turned it off via command line.

Disabling the AddOn via command line now "hides" the frame. This will likely lead to slightly less memory usage.
Optional Files (0)


Archived Files (5)
File Name
Version
Size
Author
Date
2.01
123kB
Choonstertwo
04-21-12 02:33 PM
0.04 alpha
4kB
Choonstertwo
04-22-11 04:32 AM
0.03 alpha
3kB
Choonstertwo
04-22-11 01:20 AM
0.02 alpha
3kB
Choonstertwo
04-07-11 12:52 AM
0.1 alpha
3kB
Choonstertwo
04-04-11 05:34 AM


Post A Reply Comment Options
Unread 04-04-11, 07:47 AM  
vivianalive
A Deviate Faerie Dragon
 
vivianalive's Avatar

Forum posts: 15
File comments: 36
Uploads: 2
/Favored
/popcorn
/corn
/chair
:P
__________________

CeeUI: a minimalistic all-class UI
vivianalive is offline Report comment to moderator  
Reply With Quote
Unread 04-19-11, 12:27 PM  
Vancha
A Murloc Raider

Forum posts: 4
File comments: 4
Uploads: 0
mp3s can also work with this, you just need to swap "ogg" for "mp3" in the lua or add a new line of code serving the same purpose.
Vancha is offline Report comment to moderator  
Reply With Quote
Unread 04-22-11, 03:20 AM  
tinyu
A Molten Giant
 
tinyu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 816
File comments: 335
Uploads: 16
as Vancha said mp3s can work and you might want to provide a link to a .ogg converter in the description as .ogg is NOT a common format infact the only other addon i know that uses .ogg is Carbonite.
__________________


"There's no such thing as too many addons."
Lothaer
Titan Dev Team Member.
tinyu is offline Report comment to moderator  
Reply With Quote
Unread 04-22-11, 05:52 AM  
Choonstertwo
A Theradrim Guardian
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 61
Uploads: 28
v0.04

Originally posted by Vancha
mp3s can also work with this, you just need to swap "ogg" for "mp3" in the lua or add a new line of code serving the same purpose.
I've added a command to switch between .ogg and .mp3 for each of the four event types in v0.04.

Originally posted by tinyu
as Vancha said mp3s can work and you might want to provide a link to a .ogg converter in the description as .ogg is NOT a common format infact the only other addon i know that uses .ogg is Carbonite.
This is less of an issue with v0.04, but I've added some links to the audio converter I use (as well as some Google and McAfee security links).
Choonstertwo is offline Report comment to moderator  
Reply With Quote
Unread 04-22-11, 03:32 PM  
blizzart
A Murloc Raider
 
blizzart's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 111
Uploads: 9
there are no sound files in my download o_O
__________________
Kryptik @ Die Arguswacht
blizzart is offline Report comment to moderator  
Reply With Quote
Unread 04-24-11, 12:51 AM  
Choonstertwo
A Theradrim Guardian
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 61
Uploads: 28
Originally posted by blizzart
there are no sound files in my download o_O
It does say that in the AddOn's description. You'll need to provide your own sounds and optionally upload them here so other people can use them.
Choonstertwo is offline Report comment to moderator  
Reply With Quote
Unread 04-28-11, 04:32 AM  
Choonstertwo
A Theradrim Guardian
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 61
Uploads: 28
Patch 4.1 - v0.05 alpha Coming Soon

v0.05 alpha should be available soon.

If you want v0.04 to work with 4.1, follow these instructions:

Find the CombatSounds folder in WoW\Interface\AddOns\ and open CombatSounds.lua in any text editor (syntax highlighting and line numbers will make this easier but aren't required). Find COMBAT_LOG_EVENT_UNFILTERED on line 53.

Change
Code:
local timestamp, type, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags,  -- arg1  to arg8
to
Code:
local timestamp, type, hideCaster, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags,  -- arg1  to arg8
If you want more info on the CLEU changes, read this sticky.
Last edited by Choonstertwo : 09-26-11 at 12:21 PM.
Choonstertwo is offline Report comment to moderator  
Reply With Quote
Unread 05-05-12, 08:46 AM  
wifer
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
That's what I need but were can I find a receivable set of sound files?
wifer is offline Report comment to moderator  
Reply With Quote
Unread 05-08-12, 02:23 AM  
Choonstertwo
A Theradrim Guardian
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 61
Uploads: 28
Originally Posted by wifer
That's what I need but were can I find a receivable set of sound files?
At this time, there aren't any premade sound packages for the AddOn. If you search Google for the kind of sounds you want, you may be able to find some that you can rename to work with the AddOn.
Choonstertwo is offline Report comment to moderator  
Reply With Quote
Unread 09-17-12, 09:41 PM  
dont
A Kobold Labourer

Forum posts: 0
File comments: 13
Uploads: 0
Does this work with WoW v5?

I can't get this addon to work with WoW v5 (MoP). Is it me, or is it the addon? I love the potential of this addon, it will make WoW fun again for me. However I admit I've never tried this addon before now.
dont is offline Report comment to moderator  
Reply With Quote
Unread 09-17-12, 11:48 PM  
Choonstertwo
A Theradrim Guardian
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 61
Uploads: 28
Re: Does this work with WoW v5?

Originally Posted by dont
I can't get this addon to work with WoW v5 (MoP). Is it me, or is it the addon? I love the potential of this addon, it will make WoW fun again for me. However I admit I've never tried this addon before now.
I haven't tested it in 5.0 yet, but I may do so a bit later. How exactly is it not working? Do you get any Lua errors? (Make sure you have them enabled from the Interface>Help menu)
Choonstertwo is offline Report comment to moderator  
Reply With Quote
Unread 09-18-12, 09:23 AM  
dont
A Kobold Labourer

Forum posts: 0
File comments: 13
Uploads: 0
Re: Re: Does this work with WoW v5?

Originally Posted by Choonstertwo
Originally Posted by dont
I can't get this addon to work with WoW v5 (MoP). Is it me, or is it the addon? I love the potential of this addon, it will make WoW fun again for me. However I admit I've never tried this addon before now.
I haven't tested it in 5.0 yet, but I may do so a bit later. How exactly is it not working? Do you get any Lua errors? (Make sure you have them enabled from the Interface>Help menu)
Thanks so much for replying! No, I get no Lua errors. Even though I've never programmed in Lua, I read the code and shouldn't there be a /cs command to allow us to configure it? That doesn't work, the command /cs isn't recognized. Even though I *think* I've got the sound files installed correctly (that was VERY hard because it's a complex system), none of my sound files are activated by the addon (currently all my sound files are a basic BEEP.) That's my main symptom - nothing happens. Of course, I can't guarantee my sound files are spelled correctly, but shouldn't /cs do something? It took me a few hours to realize that I might require certain other addons, but I did install ACE3 and all the ACE3 GUIs. What else do I need? Another addon I inferred that I needed was LibSharedMedia3, although that wasn't obvious either. One thing that I'm unsure of is whether this addon will eliminate the sounds of me and my target "grunting" and "dying", or is that not a "combat" sound? I don't need to hear grunts. I did manage to copy and run the code from the Crematorious_Chatsounds addon but that doesn't seem to replace an event's sounds, it just supplements onto it, which is handy for events without sounds (like "Changing Zone") but not much help for silencing sounds I don't want to hear. Any advice you can give is much appreciated. If it's easier, I'd be just as happy if you can show me the code to replace a single battle event's sound. Is that complicated?

Although I've just learned Lua programming yesterday, I think what I've got already is amazing enough that I could submit it to somewhere as a real addon! BTW, I play on a Mac, but I doubt that matters here.
dont is offline Report comment to moderator  
Reply With Quote
Unread 09-18-12, 10:28 AM  
Choonstertwo
A Theradrim Guardian
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 61
Uploads: 28
Re: Re: Re: Does this work with WoW v5?

Wow, I just realised I completely screwed up the .pkgmeta file, which caused Curse's packager to include the wrong Ace library files with the AddOn. If it didn't throw any Lua errors about missing libraries, you must have been using other AddOns that loaded them before CCS was loaded.

With the Ace libraries loaded, the /cs command should open the options window; I'm not sure why it wouldn't.

CCS doesn't use LibSharedMedia in any way, so it doesn't matter whether you have it installed or not.

CCS doesn't mute any existing sounds, that's best done through sound packs like MutedSounds - Combat rather than AddOn code.

I admit I went a bit overboard on the naming with version 2.0, I may do something about that in the next version (when I get around to it).

I'll fix the .pkgmeta file now and have Curse repackage the AddOn with the correct libraries.
Choonstertwo is offline Report comment to moderator  
Reply With Quote
Unread 09-18-12, 10:52 AM  
Choonstertwo
A Theradrim Guardian
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 61
Uploads: 28
Re: Re: Re: Re: Does this work with WoW v5?

Originally Posted by Choonstertwo
I'll fix the .pkgmeta file now and have Curse repackage the AddOn with the correct libraries.
I've just pushed the changes to Curse, try this alpha version and let me know if it works:
http://wow.curseforge.com/addons/cus...-0-1-g2c9b4aa/
Choonstertwo is offline Report comment to moderator  
Reply With Quote
Unread 09-18-12, 01:14 PM  
dont
A Kobold Labourer

Forum posts: 0
File comments: 13
Uploads: 0
Re: Re: Re: Re: Re: Does this work with WoW v5?

Originally Posted by Choonstertwo
Originally Posted by Choonstertwo
I'll fix the .pkgmeta file now and have Curse repackage the AddOn with the correct libraries.
I've just pushed the changes to Curse, try this alpha version and let me know if it works:
http://wow.curseforge.com/addons/cus...-0-1-g2c9b4aa/
I downloaded the ZIP file and put it into my addons folder and I still can't get /cs to do anything. Of course, there's always a chance that I'm making some mistake, but at this point I don't think so. I'll keep trying. I would have tried earlier but WoW was down all morning.
dont is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: