Engine sounds and weapon sounds

A Forum dedicated to the Suggestion, Creation and Editing of XWA Dynamic Link Library Files

Moderator: JeremyaFr

Re: Engine sounds and weapon sounds

User avatar
Rookie_One1
Rebel Alliance
Posts: 1656
Joined: Thu Feb 26, 2004 12:01 am

Post by Rookie_One1 » Sun Jul 31, 2022 9:22 pm

Funny thing, I decided to just go and try my hand, Just did a file just for TIE crafts, that combine both HyperStartImp and HyperZoom, and did the same for HyperStartImp and the "Zoom" part of the HyperStartReb sound

If XWAU and TFTC want to use it, go ahead, I just my name somewhere saying that i'm the annoyer in chief in exchange :lachtot:

Link to the wav files : https://drive.google.com/drive/folders/ ... sp=sharing

I look on if it's possible to do something similar for HyperEnd, but that one i'm less sure
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7824
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Sun Jul 31, 2022 10:05 pm

Very nice! I'll keep hold of them
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
Rookie_One1
Rebel Alliance
Posts: 1656
Joined: Thu Feb 26, 2004 12:01 am

Post by Rookie_One1 » Sun Jul 31, 2022 10:28 pm

Thanks!

Of note, I made sure that the zoom happens at 1.9 seconds, as to make sure that the sync between the visual and the sound remain
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Aug 02, 2022 3:40 pm

UPDATE

Hello,
I've updated the engine sound hook.

You can now define custom sounds for the hyperspace sounds.

For HyperStart sounds, sounds defined in "Wave\Sfx_HyperStart.lst" are used if the lst file exists. The sounds are indexed by the crafts model index.
For HyperZoom sounds, sounds defined in "Wave\Sfx_HyperZoom.lst" are used if the lst file exists. The sounds are indexed by the crafts model index.
For HyperEnd sounds, sounds defined in "Wave\Sfx_HyperEnd.lst" are used if the lst file exists. The sounds are indexed by the crafts model index.
For HyperAbort sounds, sounds defined in "Wave\Sfx_HyperAbort.lst" are used if the lst file exists. The sounds are indexed by the crafts model index.

User avatar
Rookie_One1
Rebel Alliance
Posts: 1656
Joined: Thu Feb 26, 2004 12:01 am

Post by Rookie_One1 » Sun Aug 14, 2022 7:10 pm

I'm trying to make it work for the HyperStart and takeoff, but I can't seem to make it work

EDIT : forget what I wrote earlier, found the issue, I need to have all the craft in that lst file, I can't have just the crafts I want to change.

Also, @JeremyaFr , one thing you may want to look into, for corellian crafts it seem that it call BOMBFIRE.WAV before Hyperstart, any way we could disable that so that BOMBFIRE only play when we fire space bombs ?
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7824
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Mon Aug 15, 2022 1:52 am

Rookie_One1 wrote:
Sun Aug 14, 2022 7:10 pm
I'm trying to make it work for the HyperStart and takeoff, but I can't seem to make it work

EDIT : forget what I wrote earlier, found the issue, I need to have all the craft in that lst file, I can't have just the crafts I want to change.

Also, @JeremyaFr , one thing you may want to look into, for corellian crafts it seem that it call BOMBFIRE.WAV before Hyperstart, any way we could disable that so that BOMBFIRE only play when we fire space bombs ?
Isn't bombfire the sound it uses when entering a turret?
So it forces you back into the cockpit
Working from memory here
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
Rookie_One1
Rebel Alliance
Posts: 1656
Joined: Thu Feb 26, 2004 12:01 am

Post by Rookie_One1 » Mon Aug 15, 2022 2:14 am

Ace Antilles wrote:
Mon Aug 15, 2022 1:52 am

Isn't bombfire the sound it uses when entering a turret?
So it forces you back into the cockpit
Working from memory here
Look like you're right, the game is using BOMBFIRE instead of TURRETMOTORSTART when we go in the turret
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7824
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Mon Aug 15, 2022 9:33 am

Which is weird. I think the turret sound is used to change weapons or link them etc
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Feb 05, 2023 12:51 pm

UPDATE

Hello,
I've updated the engine sound hook.

I've added arrays of sounds for the weapons sounds, ambient sounds for starships, freighters and stations, others custom sounds.

For weapon sounds, when the behavior is empty, sounds defined in "Wave\Sfx_Weapon.lst" are used if the lst file exists.
For each craft, there are 10 items. The last item is for the open weapon.
To define random weapon sounds, create a file named "FlightModels\[Model]Sound.txt" or create a section named "[Sound]" in "FlightModels\[Model].ini".
The format is:
WeaponSoundRangeStart_XXX = sound range start
WeaponSoundRangeCount_XXX = sound range count
XXX is the weapon index starting from 280. For example: WeaponSoundRangeStart_280 and WeaponSoundRangeCount_280.
Random weapon sounds are defined in "Wave\Sfx_WeaponRange.lst"

For StarshipAmbient sounds, sounds defined in "Wave\Sfx_StarshipAmbient.lst" are used if the lst file exists. The sounds are indexed by the crafts model index.
Suppose that the craft is "FlightModels\[Model].opt".
To define which sound is played, create a file named "FlightModels\[Model]Sound.txt" or create a section named "[Sound]" in "FlightModels\[Model].ini".
The format is:
AmbientSoundOffsetX = offset in meters
AmbientSoundOffsetY = offset in meters
AmbientSoundOffsetZ = offset in meters
AmbientSoundDistance = distance in meters

Others custom sounds can be replaced in "Wave\Sfx_Sounds.lst".

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Sun Feb 05, 2023 7:10 pm

Thank you Jeremy! Awesome. Question on the "Sfx_Sounds" hook. Is that based on craft/object index numbers like the other hooks, or does it mirror the "SfxBlastNew.lst" or some other criteria ?
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Feb 05, 2023 7:23 pm

Bman wrote:
Sun Feb 05, 2023 7:10 pm
Thank you Jeremy! Awesome. Question on the "Sfx_Sounds" hook. Is that based on craft/object index numbers like the other hooks, or does it mirror the "SfxBlastNew.lst" or some other criteria ?
Hello,
It is not based on the object index. It is used to replace single sounds. For now only the "AlarmDanger" sound is replaced. This sound is replaced with the sound defined at the first line in "Sfx_Sounds.lst". With this file it will be easier in the future to replace single sounds.

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Mar 05, 2023 2:58 pm

UPDATE

Hello,
I've updated the engine sound hook.

I've added these settings:
AmbientSoundDistanceX = distance in meters
AmbientSoundDistanceY = distance in meters
AmbientSoundDistanceZ = distance in meters

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Jun 06, 2023 2:10 pm

UPDATE

Hello,
I've updated the engine sound hook.

I've improved ambient sounds.

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Sat Jun 10, 2023 12:49 am

.
Last edited by Bman on Thu Dec 07, 2023 7:13 pm, edited 1 time in total.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Sep 30, 2023 3:33 pm

UPDATE

Hello,
I've updated the engine sound hook.

I've fixed and improved ambient sounds.

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Dec 07, 2023 6:30 pm

UPDATE

Hello,
I've updated the engine sound hook.

I've added sounds for map enter , map exit, and turret switch.

Custom sounds can be replaced in "Wave\Sfx_Sounds.lst":
- line 0 is player craft targeted sounds
- line 1 is map enter
- line 2 is map exit
- line 3 is turret switch

User avatar
JaggedFel
Galactic Empire
Posts: 432
Joined: Wed Sep 06, 2006 11:01 pm
Contact:

Post by JaggedFel » Sun Dec 10, 2023 9:03 pm

Was looking over the update, realized I missed the addition of [Interdiction] Region. Can't tell within your code, are the XwaPlayer.m053/Region values 0-3 or 1-4?
Ye Olde Galactic Empire Mission Editor v1.15.6
Current software WIPs: TIE Layout and Cutscene Editor, TIE/XvT Cockpit Editor
Libraries / Format specs: *.tie, *.plt, *.tfr, *.lfd , *.act, *.dat image files, *.fnt

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Dec 10, 2023 9:11 pm

It is 0-3

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Fri Dec 29, 2023 12:21 pm

UPDATE

Hello,
I've updated the engine sound hook.

I've fixed a bug where the ini settings was reloaded everytime a sound hook is called.

Leofus
Cadet 1st Class
Posts: 142
Joined: Wed Jan 11, 2006 12:01 am

Post by Leofus » Sun Feb 25, 2024 1:53 pm

hey i love the ambient starship sounds! awesome idea and it works great in the game! i went crazy setting a bunch of them and making new sounds for various ships. i tried making some for tie fighters however the tie fighter sounds only work if i changed the craft type from fighter to starship or freighter which obviously causes all sorts of other issues. any chance we could get ambient sounds enabled for other craft types namely fighters?

edit: i have some that would be great for the corellian freighters as well. also if there would be any way to make the ambient sound to stop when a craft is disabled that would be amazing

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Feb 25, 2024 4:00 pm

Hello,
You can define ambient sounds for starships, freighters and platforms.
The hook can be modified to allow ambient sounds for any ship type, but there may be issues if too many ships have sounds playing at the same time.

Leofus
Cadet 1st Class
Posts: 142
Joined: Wed Jan 11, 2006 12:01 am

Post by Leofus » Sun Feb 25, 2024 4:27 pm

JeremyaFr wrote:
Sun Feb 25, 2024 4:00 pm
Hello,
You can define ambient sounds for starships, freighters and platforms.
The hook can be modified to allow ambient sounds for any ship type, but there may be issues if too many ships have sounds playing at the same time.
i would be so happy if you did that. the distance can be defined in each crafts ini file right? giving fighters a shorter distance should limit the number of sounds playing. thank you so much for all your work regardless. you have given me hundreds of hours of entertainment by breathing new life into this game

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7824
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Sun Feb 25, 2024 4:42 pm

Ambient sounds for starships, freighters and platforms have been or are being added.
It needs a bunch of testing which is why it's going to be released in the next major release.

Fighters won't be implemented at this stage.
There are just too many sounds going on with messages, lasers, flyby, engines already.

Finding the right volume level for Ambient sounds is tricky.
So far I have 20 different sounds with some being used multiple times for different size ships
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

Leofus
Cadet 1st Class
Posts: 142
Joined: Wed Jan 11, 2006 12:01 am

Post by Leofus » Sun Feb 25, 2024 5:15 pm

Ace Antilles wrote:
Sun Feb 25, 2024 4:42 pm
Ambient sounds for starships, freighters and platforms have been or are being added.
It needs a bunch of testing which is why it's going to be released in the next major release.

Fighters won't be implemented at this stage.
There are just too many sounds going on with messages, lasers, flyby, engines already.

Finding the right volume level for Ambient sounds is tricky.
So far I have 20 different sounds with some being used multiple times for different size ships
i think youre just swell, ace

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7824
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Sun Feb 25, 2024 5:24 pm

Leofus wrote:
Sun Feb 25, 2024 5:15 pm

i think youre just swell, ace
Cheers I try 🤣
I would say Vince came up with the original idea for use with the Star Destroyers.

I have a massive sound update in WIP for this year.
Sound levels are a pain as I have changed my speakers and hard to normalise.

Where are you basing your sounds from? Movies?

A recent modder made alarm sounds outside ships but I thought that wouldn't be heard so didn't make sense
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

Post Reply