Sound FX for magic

All aspects of development related to audio and sound.
Post Reply
User avatar
MerlinX420
Warrior
Warrior
Posts: 574
Joined: 23 Dec 2007, 05:42

Sound FX for magic

Post by MerlinX420 » 16 Oct 2010, 15:07

After digging thru the magic.conf file in eA, I've yet to find an example of how to add a sound fx to a spell.
I'm going to be digging into this over the weekend and figured I might as well as about it.
Since Davis and I seem to be working on some sound fx it would be nice to find a way to test and implement these.
MerlinX420
Computer games don't affect kids, I mean if Pac Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music. Has anybody seen this princess I'm looking for?
User avatar
Freeyorp101
Administrator
Administrator
Posts: 708
Joined: 04 Nov 2008, 10:17
Location: New Zealand

Re: Sound FX for magic

Post by Freeyorp101 » 16 Oct 2010, 16:04

"audio" parameter of <effect> tag in client effects.xml.

The server sends the client the effect id, just add a sound file to the effect. :wink:


---Freeyorp
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
User avatar
MerlinX420
Warrior
Warrior
Posts: 574
Joined: 23 Dec 2007, 05:42

Re: Sound FX for magic

Post by MerlinX420 » 16 Oct 2010, 16:07

thanks for pointing me in the right direction. :)
MerlinX420
Computer games don't affect kids, I mean if Pac Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music. Has anybody seen this princess I'm looking for?
User avatar
yourmistakes
Warrior
Warrior
Posts: 695
Joined: 05 Dec 2009, 07:08
Location: North Korea
Contact:

Re: Sound FX for magic

Post by yourmistakes » 17 Oct 2010, 08:06

i can record, generate some effects for magic, if needed. i'm assuming ogg vorbis?
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: Sound FX for magic

Post by Jaxad0127 » 17 Oct 2010, 08:54

yourmistakes wrote:i can record, generate some effects for magic, if needed. i'm assuming ogg vorbis?
Yes. We only release ogg.
Image
User avatar
MerlinX420
Warrior
Warrior
Posts: 574
Joined: 23 Dec 2007, 05:42

Re: Sound FX for magic

Post by MerlinX420 » 17 Oct 2010, 14:45

Found the effects.xml
Found the line(s) for the lighting fx's.

Code: Select all

<effect id="17" audio="sfx/lighting1.ogg" particle="graphics/particles/lightning1.xml"/>
even had an example of a FX triggering an audio file and particle effect the same way:

Code: Select all

<effect id="0" audio="sfx/system/levelup.ogg" particle="graphics/particles/levelup.particle.xml" />
seems pretty simple. I edited that in. copied the lighting1.ogg to the sfx dir. Tried it but doesn't work.

Is there something else I would have to do to get this to work?

I'll try adding fx for other things and see if it's just this particular spell.
MerlinX420
Computer games don't affect kids, I mean if Pac Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music. Has anybody seen this princess I'm looking for?
Post Reply