Author Topic: Help Needed: Music.tbl  (Read 1546 times)

0 Members and 1 Guest are viewing this topic.

Offline Tolwyn

  • The Admiral
  • Administrator
  • 214
  • Ridiculously Old Fraud
    • Wing Commander Saga
Help Needed: Music.tbl
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
Wing Commander Saga: A Legend Is Reborn | WingCenter
 
Tolwyn’s reputation for risk taking with other people’s lives was considered  to understate the facts. The admiral’s willingness to sacrifice anyone or anything to achieve his objectives had long been lauded in the popular press. He was “the man who got things done”.- Colonel Blair

No errors, no random CTDs, just pure fun and proof of why getting hit with missiles is a bad thing.
-WC Saga's beta tester


Report Wing Commander Saga bugs with Mantis

 

Offline gevatter Lars

  • Another wingnut
  • 213
    • http://gevatter_lars.tripod.com/
Isn't here anybody who knows about this music stuff?
"Yes! That is my plan, and I see nothing wrong with it. I figure that if I stick to a stupid strategy long enough it might start to work."
 - comment to "Robotech: The Masters"

  

Offline Solatar

  • 211
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.

 

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
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.

 

Offline Solatar

  • 211
I have never messed with those numbers, and all of my stuff has worked fine.

 

Offline Tolwyn

  • The Admiral
  • Administrator
  • 214
  • Ridiculously Old Fraud
    • Wing Commander Saga
that's my problem, Icefire told me that the numbers should match the track length, but how it works... I do not know :(
Wing Commander Saga: A Legend Is Reborn | WingCenter
 
Tolwyn’s reputation for risk taking with other people’s lives was considered  to understate the facts. The admiral’s willingness to sacrifice anyone or anything to achieve his objectives had long been lauded in the popular press. He was “the man who got things done”.- Colonel Blair

No errors, no random CTDs, just pure fun and proof of why getting hit with missiles is a bad thing.
-WC Saga's beta tester


Report Wing Commander Saga bugs with Mantis

 

Offline IceFire

  • GTVI Section 3
  • 212
    • http://www.3dap.com/hlp/hosted/ce
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.
- IceFire
BlackWater Ops, Cold Element
"Burn the land, boil the sea, you can't take the sky from me..."

 

Offline Hudzy

  • Apollo Pilot
  • 28
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.

 

Offline Hudzy

  • Apollo Pilot
  • 28
Ok, problem solved. Seems like ten is the max. Took one of them out and it works fine.

 

Offline IceFire

  • GTVI Section 3
  • 212
    • http://www.3dap.com/hlp/hosted/ce
Yup...10 is max.  Actually...0-9.
- IceFire
BlackWater Ops, Cold Element
"Burn the land, boil the sea, you can't take the sky from me..."