Page 1 of 1

Sound FX for magic

Posted: 16 Oct 2010, 14:07
by Merlin
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.

Re: Sound FX for magic

Posted: 16 Oct 2010, 15:04
by Freeyorp101
"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

Re: Sound FX for magic

Posted: 16 Oct 2010, 15:07
by Merlin
thanks for pointing me in the right direction. :)

Re: Sound FX for magic

Posted: 17 Oct 2010, 07:06
by yourmistakes
i can record, generate some effects for magic, if needed. i'm assuming ogg vorbis?

Re: Sound FX for magic

Posted: 17 Oct 2010, 07:54
by Jaxad0127
yourmistakes wrote:i can record, generate some effects for magic, if needed. i'm assuming ogg vorbis?
Yes. We only release ogg.

Re: Sound FX for magic

Posted: 17 Oct 2010, 13:45
by Merlin
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.