• 0

    posted a message on addons used to work until 6.0 update
    Quote from funkydude
    As far as we're aware, Blizzard has (unofficially) killed off support for mp3. Use ogg files instead.


    Funkydude, You are AWESOME!!! thank you. The file type would have never crossed my mind. lol :D
    Posted in: Need Help?
  • 0

    posted a message on addons used to work until 6.0 update
    Hello all. For the life of me I cant figure out what is going on with my sound addon. Ideally when a user receives a whisper or party msg, it will play a custom sound. But now nothing happens. I am not sure if it is in the code or what. Swatter does not show any issues. I am still very new to addons and have researched as far as I could but nothing I tried worked. If anyone is willing to take a look at the code and weigh in with your opinions I would greatly appreciate it. (This is the whole code)

    Local sounds = {
    	["CHAT_MSG_PARTY"] = "Interface\\AddOns\\I_Hear_You_All\\party.mp3", MASTER,
    	["CHAT_MSG_WHISPER"] = "Interface\\AddOns\\I_Hear_You_All\\whisper.mp3", MASTER,
    }
    
    local f = CreateFrame("Frame")
    f:RegisterEvent("CHAT_MSG_PARTY")
    f:RegisterEvent("CHAT_MSG_WHISPER")
    f:SetScript("OnEvent", function(self, event)
    	PlaySoundFile(sounds[event])
    end)
    Posted in: Need Help?
  • 0

    posted a message on Need help repairing addon
    Quote from egingell
    Sounds are currently not playing when the UI's global sounds are off. Previously, if the global sounds were off, addon sounds would still play.


    That is due to the way Blizzard changed their coding. As far as I know, there is currently no way around that.
    Posted in: Need Help?
  • 0

    posted a message on Need help repairing addon
    Finally got it working. Thank you everyone for your excellent help!

    Phanx, I had an extra CHAT_MSG_BN_WHISPER in the tables and that was causing all the problems.:rolleyes: The simple things always mess up.
    Posted in: Need Help?
  • 0

    posted a message on Need help repairing addon
    *Tested* In WoW I am getting a nil error on the "sounds" in PlaySoundFile(sounds[event])
    it looks like it is mapping to the sound files, but nothing happens. Here is what I have so far I don't know what I am missing:

    
    local sounds = {
    	["CHAT_MSG_PARTY_LEADER"] = "Interface\\AddOns\\I_Hear_You_All\\party.mp3",
    	["CHAT_MSG_Officer"] = "Interface\\AddOns\\I_Hear_You_All\\guild.mp3",
    	["CHAT_MSG_BN_WHISPER"] = "Interface\\AddOns\\I_Hear_You_All\\whisper.mp3",
    }
    
    
    local f = CreateFrame("Frame")
    f:RegisterEvent("CHAT_MSG_OFFICER")
    f:RegisterEvent("CHAT_MSG_PARTY_LEADER")
    f:RegisterEvent("CHAT_MSG_BN_WHISPER")
    f:SetScript("OnEvent", function(self, event)
    	PlaySoundFile(sounds[event])
    end)
    
    Posted in: Need Help?
  • 0

    posted a message on Need help repairing addon
    Thank you for your reply Torhal. After re-reading what I wrote, I left out one piece of information. I would like to use different .mp3's for different events. For example, party.mp3 would be for the CHAT_MSG_PARTY event, and whisper.mp3 would be for the CHAT_MSG_WHISPER event. I am not sure how I could make the code mentioned above play a specific .mp3's for each event. In it's current state, that code will play one mp3 for every registered event.

    *just a thought* Would I have to go back to IF/THEN statements?
    Posted in: Need Help?
  • 0

    posted a message on Need help repairing addon
    Thank you Phanx and Dridzt for your suggestions. Those suggestions repaired my most of my addons!

    I only have one problem left. Using the optimized code, how would I be able to use more events. Using the old code, I would use:


    if (event=="CHAT_MSG_PARTY_LEADER") then

    and

    if (event=="CHAT_MSG_PARTY") then


    I registered each event, I am not sure how I would need to modify the code

    f:SetScript("OnEvent", function(self, event)
    PlaySoundFile("Interface\\AddOns\\I_Hear_You_All\\party.mp3")
    end)

    for each event.

    I hope this makes sense. Thank you again for your time.
    Posted in: Need Help?
  • 0

    posted a message on Need help repairing addon
    Sorry about the request for private messages, I am used to less open forms of help requests. It wont happen again :D

    Just so I got this right, are you saying that the code you wrote is the only thing I need in the lua?
    Posted in: Need Help?
  • 0

    posted a message on Need help repairing addon
    Hello all. I had my addons working until 4.0 came out, and now I dont have a clue what is wrong. WoW does not report any errors. I have read the WoW forums and I thought my addons conformed to the new revisions, but I guess they don't. My addons are simple and play a sound file when an a person receives a whisper, guild message, battle.net message, etc. When I receive a message, no sound is played. If someone is willing to help me figure out what is wrong, let me know. If we can get it fixed I will transfer every point I have accumulated to you. Here is a link to one of my addons that needs help:

    http://wow.curse.com/downloads/wow-addons/details/i-hear-you-whisper.aspx

    Thank you for time.
    Posted in: Need Help?
  • To post a comment, please or register a new account.