Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Tolwyn on August 23, 2002, 07:10:10 am
-
Ok, I know even if this is not a newbie question, but somebody here, at HLP, should know the answer... I have to ask this since I didn't found any tutorials on creating music.tbl.. :(
Can somebody explain me how'd I fugure out which values I's set?
format: $Name: filename.wav num_measures (samples_per_measure)
Example: $Name: WCM_Amb_A01.wav 110 200000 ; *Ambience
-
Isn't here anybody who knows about this music stuff?
-
I know, but I thought it was VERY, VERY self explanatory.
First off, everything behind a ; is not needed, it is there for description (Telling people like you what's going on). It only appears in the table, nothing else. This holds true for all fs2 tables.
Let me tutorial you:
First off, copy one of the entries. This is generally easier than making a new one. You can overwrite another entry of you wish though. Now where it says $Name: put the name of your music track. Below you just put in the music tracks you want to play. it tells you exactly what each track is for.
I always thought music was the easiest, wait, I still do. What are you planning to do with this music?
NOTE:When you put the music in the Music folder, make sure you use this naming scheme (Not really a scheme, just a rule).
Say you filename is called 123.wav. it should read 123 not 123.wav, or it won't work. Needless to say, it has to be a .wav file.
-
I think he means the numbers. :p ;)
It seems that the product of the two numbers has something to do with how long the sound is played; if you play the default music files using an external sound program, you will notice that some of them go on for a bit longer than they do when played ingame. Not sure what the exact meaning of each number is though. Strangely though, this does not seem to apply to the "ambience" music scores, since these are played fully through regardless of the numbers. I could be wrong here though, as it has been a while since I messed around with this stuff.
-
I have never messed with those numbers, and all of my stuff has worked fine.
-
that's my problem, Icefire told me that the numbers should match the track length, but how it works... I do not know :(
-
The numbers in general should match the length...but I was unable to find a calculation that worked. Instead, I guessed based on the numbers from FS2. Largely, they don't matter.
But for godsakes, use a better file naming scheme than 123.wav and so on. DO it m1_battle1.wav or m1_amb1.wav or whatever :D
If you have trouble, contact me and I'll see what I can do.
-
What about limits? Are there any limits on the amount of soundtracks? I've currently introduced a new table file to the game and FRED 2 crashes because of it. Don't know what the problem is though. I have eleven soundtracks. FRED 2 crashes with this error message:
FRED2 caused an invalid page fault in
module FRED2.EXE at 017f:0048e1ba.
Registers:
EAX=00019d70 CS=017f EIP=0048e1ba EFLGS=00210a03
EBX=0105fc74 SS=0187 ESP=0105f2c8 EBP=0105f384
ECX=fb333320 DS=0187 ESI=0105f2eb FS=5e6f
EDX=00000001 ES=0187 EDI=0105f36f GS=0000
Bytes at CS:EIP:
89 84 91 f0 80 82 00 8b 85 50 ff ff ff 83 c0 01
Stack dump:
01bc0400 00000000 3fe66666 00000001 0105f2f1 315f3562 6177665f 772e7072 09007661 382e3109 35303100 00303438 00003034 00000000 00000000 00000000
:( This doesn't mean a thing to me though.
-
Ok, problem solved. Seems like ten is the max. Took one of them out and it works fine.
-
Yup...10 is max. Actually...0-9.