Go Back   EQEmulator Home > EQEmulator Forums > General > General::General Discussion

General::General Discussion General discussion about EverQuest(tm), EQEMu, and related topics.
Do not post support topics here.

Reply
 
Thread Tools Display Modes
  #46  
Old 06-05-2015, 04:56 AM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Phew, marathon sessions of trial and error with numbers the last couple of nights.

I've gotten the .eff files 100% figured out, including a number of hard-coded values for sound effects and music selections.

I've also gotten the .emt files figured out, aside from a couple of fields that don't seem to do anything no matter what I put in them. Those are just listed as '?'.

Here's the .emt file format. You can paste this line at the top of the file for reference. The semicolon tells the client to skip that line.

Code:
;?,soundfile (wav=sound, xmi/mp3=music for volume sliders),0=OK 1=OK,when 0=always 1=day 2=night,volume (1.0 = 100%),FadeInMS,FadeOutMS,?,X,Y,Z,WavFullVolRadius,WavMaxAudibleDist,1 = RandomizeLocation,Range,(1+ = Only when alt-tabbed away),(2+ = Only when alt-tabbed away),xmiIndex,Echo (50 = Max),IsEnvSound (for option toggle)
To make the music fade, use the 4th and 5th fields. 4th field fades the sound/music in over the course of as many milliseconds as you specify when the character gets in range. 5th field fades the sound/music out over the milliseconds when the character goes out of range. 500/1000 or so seems good for sound effects. 1000/2000 seems nice for music.

xmiIndex is for choosing which MIDI song to play in an xmi music file. gfaydark.xmi has 6 different songs, for example, so you can specify 0-5 for that one for different locations (Kelethin, Crushbone, Felwithe) or different times of day.

Friday's project will be making the converter from .eff to .emt so we can actually customize our zones!

Last edited by Shendare; 06-05-2015 at 04:56 AM.. Reason: typo
Reply With Quote
  #47  
Old 06-05-2015, 11:43 AM
Grimluck's Avatar
Grimluck
Sarnak
 
Join Date: Jun 2015
Posts: 46
Default

Very very nice! This info is invaluable. Thank you!
Reply With Quote
  #48  
Old 06-05-2015, 11:54 AM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Something's off. I'm gonna take another look tonight. There's gotta be a way to specify a cooldown before the sound effect plays again. I must have missed it while messing with parameters and testing behavior.

In the meantime, this should get your pickchar music working:

File: clz.emt

Code:
;?,soundfile (wav=sound, xmi/mp3=music for volume sliders),0=OK 1=OK,when 0=always 1=day 2=night,volume (1.0 = 100%),FadeInMS,FadeOutMS,?,X,Y,Z,WavFullVolRadius,WavMaxAudibleDist,1 = RandomizeLocation,Range,(1+ = Only when alt-tabbed away),(2+ = Only when alt-tabbed away),xmiIndex,Echo (50 = Max),IsEnvSound (for option toggle)
2,pickchar.xmi,0,0,.7,1000,3000,1,0.0,0.0,0.0,0.00,0.00,0,1000.00,0,0,0,1.00,0,0,0
Not at home where I can test it, though. Let me know if it doesn't work.
Reply With Quote
  #49  
Old 06-05-2015, 11:57 AM
Grimluck's Avatar
Grimluck
Sarnak
 
Join Date: Jun 2015
Posts: 46
Default

Testing now.

Last edited by Grimluck; 06-05-2015 at 12:04 PM.. Reason: Nevermind, I see what you did that answered my question.
Reply With Quote
  #50  
Old 06-05-2015, 12:09 PM
Grimluck's Avatar
Grimluck
Sarnak
 
Join Date: Jun 2015
Posts: 46
Default

Didn't work. eqtheme.mp3 still overrid the pickchar.xmi & my pickchar.mp3 file i added to /sounds.
Reply With Quote
  #51  
Old 06-05-2015, 12:11 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Darn. I'll mess with it some more tonight.

Better not be a hard-coded thing!
Reply With Quote
  #52  
Old 06-05-2015, 12:14 PM
Grimluck's Avatar
Grimluck
Sarnak
 
Join Date: Jun 2015
Posts: 46
Default

Just logged in again. It seems the code DOES work, but my eqtheme.mp3 does not fade out in the pickchar theme comes in during character select. So both play simultaneously.
Reply With Quote
  #53  
Old 06-05-2015, 12:16 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

And if you rename eqtheme.mp3 to stop it from playing over pickchar, you'll lose the background music during the loading screen. Hmph.
Reply With Quote
  #54  
Old 06-05-2015, 12:22 PM
Grimluck's Avatar
Grimluck
Sarnak
 
Join Date: Jun 2015
Posts: 46
Default

Yes, since apparently eqtheme.mp3 is hardcoded. Hmmmmmmm.
Reply With Quote
  #55  
Old 06-05-2015, 12:26 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Actually, I don't think it is.

I saw during my testing that in the .eff files, there were references to music files -1 through -24. My investigation showed that they were referencing the line numbers in this file:

mp3index.txt

If you wanted to change a built-in music reference without altering the original mp3 file or filename, you could simply change its entry in the .txt file there.

You know... I wonder whether you could simply change eqtheme.mp3 to pickchar.xmi in that file... Hmm...
Reply With Quote
  #56  
Old 06-05-2015, 12:29 PM
Grimluck's Avatar
Grimluck
Sarnak
 
Join Date: Jun 2015
Posts: 46
Default

I'll take a look.
Reply With Quote
  #57  
Old 06-05-2015, 12:34 PM
Grimluck's Avatar
Grimluck
Sarnak
 
Join Date: Jun 2015
Posts: 46
Default

Which .eff file references eqtheme.mp3? I wouldn't have to rename eqtheme,mp3 to pickchar.xmi/mp3 if I can make a new reference to pickchar.mp3 as #25. See what I'm saying?
Reply With Quote
  #58  
Old 06-05-2015, 12:45 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

The .eff files are zone-specific, and there isn't one for the character loading zone. It's probably hard-coded into the client to play mp3index #6 during loading and character selection, so I'd try changing that line in mp3index.txt.
Reply With Quote
  #59  
Old 06-05-2015, 12:47 PM
Grimluck's Avatar
Grimluck
Sarnak
 
Join Date: Jun 2015
Posts: 46
Default

I'll test it out.
Reply With Quote
  #60  
Old 06-05-2015, 01:31 PM
Grimluck's Avatar
Grimluck
Sarnak
 
Join Date: Jun 2015
Posts: 46
Default

No cigar. Changing the eqtheme.mp3 line to pickchar.xmi/mp3 didn't change anything. Still played the eqtheme before and during character selection.
Reply With Quote
Reply

Tags
everquestmusic


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 03:09 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3