plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

MaVe_Creations avatar image
MaVe_Creations asked Boris_ commented

Multiple sound types AI aircraft

According to SDK it should be possible to have multiple soundai folders per aircraft.

i.e. soundai = "CFM" or soundai = "IAE" in aircraft.cfg

folders: soundai.CFM and soundai.IAE


This seems broken, can't get it to work.


aircraftsound
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

MaVe_Creations avatar image
MaVe_Creations answered Boris_ commented

OK, it's working now, with soundai = "\..\..\MyCompany_Simple_Aircraft\soundai.toto" and with renamed events.

Worth mentioning that the use of soundai = "toto" doesn't work (also with renamed events).

Anyway thanks for the help.



1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Boris_ avatar image Boris_ ♦ commented ·

Hello @MaVe_Creations ,

You are right, soundai = toto will not work. I did some tests and the conclusion is that the only way to use multiple sound folders is to have a path in sound / soundai property.

We will update the documentation with this information,

Regards,
Boris

0 Likes 0 ·
Kaiii3 avatar image
Kaiii3 answered

try to use different SimObject directories per engine-type

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

MaVe_Creations avatar image
MaVe_Creations answered MaVe_Creations edited

I know that would work. I rather have Asobo fix it. It's in the SDK afterall.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Boris_ avatar image
Boris_ answered Boris_ edited

Hi @MaVe_Creations,

You should have 1 PCK and 1 soundai.xml for each soundai folder.
Does this help ?

Edit : be aware that the name of your wwise event will also change when using multiple soundai folders. There is a concatenation of the folder suffix to the PC.PCK name
For example : a PCK in the folder soundai.cfm, will result to Play_C152_AI_CFM_EventName

Regards,
Boris

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

MaVe_Creations avatar image
MaVe_Creations answered Boris_ commented

Ah, so I have to change the event names also.

OK, got it to work now, but soundai="cfm" doesn't work. Instead, sound="cfm" does work for the soundai.cfm folder.

Thanks

4 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Boris_ avatar image Boris_ ♦ commented ·

Hi @MaVe_Creations It's strange because we tested this and for us it works as intended..

Can you try by putting the path instead and tell me if it's better ?

Example :
Sound="\..\..\Asobo_L39_Reno_Common\sound"
or
Soundai="\..\..\Asobo_C152\soundAI.CFM"

Regards,
Boris

0 Likes 0 ·
MaVe_Creations avatar image MaVe_Creations Boris_ ♦ commented ·

I only use sound for AI aircraft. Like I said, it's working when I use sound="cfm" and sound="iae" instead of the documented soundai=.

It works so it's good enough for me. I'm happy. Thank you for helping me out.

0 Likes 0 ·
MaVe_Creations avatar image MaVe_Creations Boris_ ♦ commented ·

I am an idiot. I thought it was working with sound = "cfm" but it was just using the soundai folder still (of course, because it's the default without using the soundai= "" setting).

I have renamed the event names, i.e. event 'Play_MaVeCreations_A320CFM_AI_eng1_jet_whine' is now 'Play_MaVeCreations_A320CFM_AI_CFM_eng1_jet_whine'.

I placed the .pck in the soundai.cfm folder (of course always rebuilding the layout.json), and setting soundai = "cfm" doesn't work. (using soundai = "..\FSLTL_A320\soundai.cfm" also doesn't work)

Strange thing is if I use this .pck (with the changed event names) in the soundai folder and soundai = "", it does work, which isn't logical, changing the event names doesn't seem to do anything.

As soon as I use soundai with an extension it's a no go.

Note: I'm am using aircraft.cfg with the [VARIATION] option

[VARIATION]

base_container = "..\FSLTL_A320" and only [FLTSIM.0], maybe the issue lays there.

Hope you can shed some light on this.

0 Likes 0 ·
Boris_ avatar image Boris_ ♦ MaVe_Creations commented ·

Hello @MaVe_Creations ,

You must use soundai = "\..\..\FSLTL_A320\soundai.cfm" but you do not need to add CFM to the event name.

However, if you keep soundai=...cfm you will have to update your events


Regards,
Boris

0 Likes 0 ·
MaVe_Creations avatar image
MaVe_Creations answered Boris_ edited

As I said, both methods do not work. With or without renamed events.

2 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

MaVe_Creations avatar image MaVe_Creations commented ·

@FlyingRaccoon Did you ever test soundai.xxx while using an aircraft.cfg with

[VARIATION]

base_container =

0 Likes 0 ·
Boris_ avatar image Boris_ ♦ MaVe_Creations commented ·

Hi @MaVe_Creations ,

To make a variant of an aircraft with a custom sound folder, let's say "toto/" you will need to:

1.Rename your events in WWISE by adding _toto to have an event like "Play_MyCompany_Simple_Aircraft_toto_stall_warning" then Generate the soundbank and the PC.PCK

2. Your PC.PCK name must be the same as the PC PCK you are using for your aircraft

3. Create a sound.toto folder in your base aircraft root folder (\PackageSources\SimObjects\Airplanes\MyCompany_Simple_Aircraft)

4. In your variant folder in the aircraft.cfg, set you sound like this :

sound = "\..\..\MyCompany_Simple_Aircraft\sound.toto" ; sound folder

Note that there is an issue that prevents to put the full path in the aircraft editor. Therefore, I strongly suggest you to edit the path directly in the cfg file.

I did not test soundai since the code is the same as for sound so you should have the same behavior

Bonus: I made an example that uses two different sound files for the event "stall warning" to help you understand this post -> https://we.tl/t-4K4n6AYwqJ

Regards,
Boris

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.