Author Topic: Eliminating the sounds limit  (Read 1985 times)

0 Members and 1 Guest are viewing this topic.

Offline JC Denton

  • Node For Me
  • 27
Eliminating the sounds limit
I don't know how rooted in things go in regards to the sounds.tbl, but for game sound effects, would it be possible to have a direct entry in the ships or weapons tbls, instead of only references to the sounds.tbl?

Obviously, I don't want to replace the sounds.tbl entirely (for backwards compatibility), but sometimes 192 entries just isn't enough.  

As for what this direct entry would look like, I thought that it would be the same as a file entry in the sounds.tbl, just without a unique signature.

Example:  This is the current entry for a file in the sounds.tbl:
Code: [Select]
$Name:  0, , 0, 0.70, 1, 10, 800;comments go out here
For the sound entry in the ships or weapons tbl, I'd have this:
Code: [Select]

$LaunchSnd:  76 ;normal ref to sounds.tbl
$ImpactSnd:  MANUAL ;tells it to look here for the sound data
+SoundData:  (", 0, 0.70, 1, 10, 800") ;identical to sounds.tbl entry, just without the sound signature


For sounds under the $BeamInfo: section, it'd essentially be the same, although I don't know what the prefix for a sub-subentry is. :p

Alright, you're all free to explain why this wouldn't work. :D
"I condemn false prophets, I condemn the effort to take away the power of rational decision, to drain people of their free will -- and a hell of a lot of money in the bargain. Religions vary in their degree of idiocy, but I reject them all. For most people, religion is nothing more than a substitute for a malfunctioning brain."  - Gene Roddenberry

"Democracy substitutes election by the incompetent many for appointment by the corrupt few." - George Bernard Shaw

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Eliminating the sounds limit
That would require massive changes to the table handling code.

If you need a new sound, just add it to the sounds.tbl.  There are about 50 open spots.

 

Offline JC Denton

  • Node For Me
  • 27
Eliminating the sounds limit
Erm, when did you open up new slots in the sounds.tbl?  And why isn't that mentioned in the readme? :p

And since it'd take such a massive overhaul of the table handling, I guess that'd be a project for the far future then...
"I condemn false prophets, I condemn the effort to take away the power of rational decision, to drain people of their free will -- and a hell of a lot of money in the bargain. Religions vary in their degree of idiocy, but I reject them all. For most people, religion is nothing more than a substitute for a malfunctioning brain."  - Gene Roddenberry

"Democracy substitutes election by the incompetent many for appointment by the corrupt few." - George Bernard Shaw

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Eliminating the sounds limit
It's been that way ever since FS1 was released.  Just add your own sound in one of the "Empty" slots.

 

Offline JC Denton

  • Node For Me
  • 27
Eliminating the sounds limit
Ok, operating under the assumption that I take FS2's stock sounds.tbl, pull a few entries out, use the already empty ones, and I've got the intent of keeping the rest of the entries as is, I've got 15 or so open spots for weapon sfx.

Forgive my naivete, but, under the above conditions, where do you see 50 slots at? :wtf:

/me fears he's being misinterpreted.  /me also fears he's making a complete dumbass of himself...
"I condemn false prophets, I condemn the effort to take away the power of rational decision, to drain people of their free will -- and a hell of a lot of money in the bargain. Religions vary in their degree of idiocy, but I reject them all. For most people, religion is nothing more than a substitute for a malfunctioning brain."  - Gene Roddenberry

"Democracy substitutes election by the incompetent many for appointment by the corrupt few." - George Bernard Shaw

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Eliminating the sounds limit
if i add extra lines to the sounds table, would i be able to use them? i think it lists about 190 sounds, if i add more, do you thing freespace would like that?
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Eliminating the sounds limit
Okay, 50 was probably exaggerated.  20-30 sounds about right.  And I'm pretty sure you can add sounds up until 200.

 
Eliminating the sounds limit
Yeah, weird things start happening if you go beyond 200.

On a somewhat related note can any of you SCP guys explain why FS2 just won't play certain beam warmup/down sounds (for instance, the ones assigned to SGreen and AAAf)?

Sid.

  

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Eliminating the sounds limit
Perhaps they're not in the right WAV format.