Author Topic: play-sound-from-table?  (Read 2834 times)

0 Members and 1 Guest are viewing this topic.

Offline PotzUK

  • 28
    • PyroPort
play-sound-from-table?
The FRED hints say to use the sound's reference from the sounds.tbl file - which I assume is the unique sound signature.  The problem is the sounds are broken up into sections, and within each section the identifier resets.  The only way I can play sounds is to use the play-sound-from-file. 

If I reference a sound by filename, will it use the one from the [V] .vp files, or do I have to include my own with a mod, with my own sounds.tbl file?

 

Offline PotzUK

  • 28
    • PyroPort
Re: play-sound-from-table?
gah, sorted it.  But I can't remove my own post!

 

Online Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: play-sound-from-table?
I cant let it die, WWe must fill it with useful fred tips from Kaj's FAQ.....
1- Make a weapon with negative damage to create healy/magic/repair blasters..... ;7
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline PotzUK

  • 28
    • PyroPort
Re: play-sound-from-table?
lol

Well, after re-reading the fred tip, it does actually say "from the game sounds section" or words to that effect :)

 

Offline PotzUK

  • 28
    • PyroPort
Re: play-sound-from-table?
Hmm

I still can't get my custom .wav to play.

The weird part is that I am using the same method to play a .wav file earlier in the mission.  Despite me listing it in my sounds.tbl file and putting it in the same folder as the earlier wav?

 

Online Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: play-sound-from-table?
Axem may hae a clue to this, he uses a few music files in his "Just another day series"
Is it in te right sound folder respective, IE 22khz etc?
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline PotzUK

  • 28
    • PyroPort
Re: play-sound-from-table?
Aye, I've tried both 16b11k and 8b22k folders with the appropriate bitrates but no joy.  I'll keep cracking at it, I've found the reference in the JAD missions to the wav file, and mine's the same so it's gotta be something simple :)
« Last Edit: August 02, 2006, 10:26:53 am by PotzUK »

 

Offline Axem

  • 211
Re: play-sound-from-table?
I've never tried play-sound-from-table, just play-sound-from file, so I don't know how it exactly works. If its not a retail sound, I would just use play-sound-from-file. It'll save you from having to redistributing a modified sounds.tbl later on.

 

Offline PotzUK

  • 28
    • PyroPort
Re: play-sound-from-table?
Hey Axem - thanks for the tips.

I've tried both methods... what's a little frustrating at hte moment is that it (paly sound from file) is working earlier in the mission!
« Last Edit: August 02, 2006, 10:33:14 am by PotzUK »

 

Offline Axem

  • 211
Re: play-sound-from-table?
If you read the instructions at the bottom,

Quote
Important: Only one sound at a time can be played with this sexp!

So trying to use a different sound later won't work. So you use close-sound-from-file to unload the current sound so you can use a different one.

 

Offline PotzUK

  • 28
    • PyroPort
Re: play-sound-from-table?
hmm - correction.  What I'm doing earlier in the game is playing one of the retail .wavs - which works, so the play-from-file sexp doesn't appear to be working at all.

I don't think it's my file either.  If I put a file called warp_x.wav (copied from warp_1.wav - retail) that doesn't work either...  this is in a completely blank mission.

Just a time elapsed, then play file event...

 

Offline PotzUK

  • 28
    • PyroPort
Re: play-sound-from-table?
lol - I knew it would be something simple...

I had the wav files in \data\16b11k / 8b22k - I forgot the \data\sounds folder...

Ohh the happy days of FRED learning curve!

 

Online Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: play-sound-from-table?
I expect flawless results by your 75th post............ :pimp:
WEll done m8 :D when you posting the missions/campaign?
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline PotzUK

  • 28
    • PyroPort
Re: play-sound-from-table?
I expect flawless results by your 75th post............ :pimp:
WEll done m8 :D when you posting the missions/campaign?

lol - no pressure then! :)  It's not as bad as I thought it would be really, a lot came flooding back from the early days of FREDing which is handy :) 

I'll post it when it's finished :P  Although I am very tempted to go the whole hog and get some voice actors in, but that's a long way off me thinks.