Sound file replacement question

Tips, tactics, and general discussion for Evochron Legacy.
User avatar
Craig68x
Ensign
Ensign
Posts: 37
Joined: Mon Mar 08, 2021 7:46 am
Location: Texas

Sound file replacement question

Post by Craig68x »

I have a sound file I'd like to use to replace the sound of asteroids being mined and going into the cargo bay. I've listened to every sound file in the MEDIA folder but could not locate to replace.

Can anyone point me in the right direction?

Thanks!
User avatar
Vice
Administrator
Administrator
Posts: 11556
Joined: Fri Apr 25, 2003 1:38 am

Re: Sound file replacement question

Post by Vice »

For the tractor beam sound effect, use:

\sounds\tractor.wav

For the cargo bay delivery sound effect, use:

\sounds\weapload.wav

The later is the universal sound for loading things on to the ship, it just carries an older filename from its original purpose.
StarWraith 3D Games
www.starwraith.com | www.spacecombat.org
3D Space Flight and Combat Simulations
User avatar
Craig68x
Ensign
Ensign
Posts: 37
Joined: Mon Mar 08, 2021 7:46 am
Location: Texas

Re: Sound file replacement question

Post by Craig68x »

Thanks, Vice! Should these be in the standard WAV format or OGG?

edit: I forgot to ask: how long should the sound file be?
User avatar
Vice
Administrator
Administrator
Posts: 11556
Joined: Fri Apr 25, 2003 1:38 am

Re: Sound file replacement question

Post by Vice »

Standard WAV (16-bit 44 KHz stereo is good for quality). They can be as long or as short as desired.
StarWraith 3D Games
www.starwraith.com | www.spacecombat.org
3D Space Flight and Combat Simulations
User avatar
Craig68x
Ensign
Ensign
Posts: 37
Joined: Mon Mar 08, 2021 7:46 am
Location: Texas

Re: Sound file replacement question

Post by Craig68x »

I replaced the sound but when I switch the beam off it continues to play, muting all the other sounds. Any ideas what I did wrong?
User avatar
Craig68x
Ensign
Ensign
Posts: 37
Joined: Mon Mar 08, 2021 7:46 am
Location: Texas

Re: Sound file replacement question

Post by Craig68x »

Vice, I also noticed that there wasn't a weapload file to overwrite. I undid the file replacement and the 'original' sound file returned.
User avatar
Vice
Administrator
Administrator
Posts: 11556
Joined: Fri Apr 25, 2003 1:38 am

Re: Sound file replacement question

Post by Vice »

For the first issue, no, I'm not sure why it would behave that way with a replacement sound file since the same code is used for any sound in place, only the initial loading is different. If the beam got locked on somehow and just wasn't apparent, that might be one cause. Or perhaps there may be an issue with the sound file itself and the audio device used to play it back. If you want to zip the file and e-mail it to me, I can look into it further.

I don't think there were original files to overwrite, only new ones need to be created and put in the required folder.
StarWraith 3D Games
www.starwraith.com | www.spacecombat.org
3D Space Flight and Combat Simulations
User avatar
Craig68x
Ensign
Ensign
Posts: 37
Joined: Mon Mar 08, 2021 7:46 am
Location: Texas

Re: Sound file replacement question

Post by Craig68x »

I sent you the file I was using. :)
User avatar
Vice
Administrator
Administrator
Posts: 11556
Joined: Fri Apr 25, 2003 1:38 am

Re: Sound file replacement question

Post by Vice »

Received and I sent a revised version back you. The sound is in a format that works with the game and plays correctly when prompted. However, the sound is 21 seconds long and seems to be largely the same type of sound for that entire duration. So the game will play all 21 seconds of the sound as prompted by the sound file every time you transfer an item to/from your ship. That can stack a lot of audio indexes and overwhelm any other channels. What you might want to do is just play a shorter version of the sound that ends in something like 2 seconds. I have sent a revised version of the sound with a much shorter duration to illustrate.
StarWraith 3D Games
www.starwraith.com | www.spacecombat.org
3D Space Flight and Combat Simulations
User avatar
Craig68x
Ensign
Ensign
Posts: 37
Joined: Mon Mar 08, 2021 7:46 am
Location: Texas

Re: Sound file replacement question

Post by Craig68x »

Yes sir! Thank you!