• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

MSFS20 Add custom wwise event to an Asobo template, if possible

Messages
54
Country
italy
Hi all,
For me this is the first attempt to understand how works wwise. In my model.xml I have this template to manage the deice lever:
<Component ID="DEICE">
<UseTemplate Name="ASOBO_DEICE_Lever_Engine_Template">
<DRAG_AXIS_SCALE>400</DRAG_AXIS_SCALE>
<USE_TRAJECTORY_DRAG_MODE>True</USE_TRAJECTORY_DRAG_MODE>
<INVERT_IM_DRAG_INPUT_SCALAR>True</INVERT_IM_DRAG_INPUT_SCALAR>
<ANIM_NAME>DEICE_Lever_Engine</ANIM_NAME>
<WWISE_EVENT>deice_lever</WWISE_EVENT>
</UseTemplate>
</Component>

the instruction in bold was added by me hoping to solve the problem ( add a sound to that lever ). To do that I created a custom Soundbank " mysoundbank" and an event called " deice_lever " with inside a custom wav file. In sound.xml I added my soudbank of course and in sound folder the PC.PCK file . But doing that I don't hera any sound when I pull or push the lever. Is there someone more expert that could explain me where I'm in wrong ?
Thanks
 
I don't see in the template where WWISE_EVENT is used. As far as I can see the parameter it accepts is WWISE_PREFIX and even then I don't see it used anywhere.

Adding an entry to sound.xml is, I have found, the easiest way to add sounds. Add it to the SimVarSounds area. Here are a couple of examples. The first uses a standard SimVar and any time the SimVar changes the WwiseEvent that you named in WWise will play at the location of the NodeName (the part in your model).

You could modify this to work with your situation. You just need to know what the SimVar name is for the deice lever. Get the NodeName from you model and WwiseEvent will deice_lever.

The second example shows using a local variable to trigger the sound when the variable crosses the bound range. The push_in sound is played when the test light is pushed in and the push_out sound is played when the test light is released. You can use the UpperBound and LowerBound parameters to control which sound plays depending on which direction the variable is going.

Code:
<SimVarSounds>

<Sound WwiseData="true" WwiseEvent="switch_med2" Continuous="false" NodeName="winjeel_emerg_light" SimVar="LIGHT GLARESHIELD" Units="Bool"/>

    <Sound WwiseData="true" WwiseEvent="push_out" Continuous="false" NodeName="FAC_launch_panel_light_test" LocalVar="FAC_launch_panel_light_test">
        <Range UpperBound="0.5"/>
    </Sound> 
    <Sound WwiseData="true" WwiseEvent="push_in" Continuous="false" NodeName="FAC_launch_panel_light_test" LocalVar="FAC_launch_panel_light_test">
        <Range LowerBound="0.5" />
    </Sound> 


</SimVarSounds>
 
Hi @Anthony31 ,
thanks in advance for your reply.
I try the first solution just it's more easy.
If I understood well I should add in simvarsound something like that: ( my mesh name model in blender is " DEICE_Lever_Engine_1 ")

<Sound WwiseData="true" WwiseEvent="deice_lever" Continuous="false" NodeName="DEICE_Lever_Engine_1" SimVar="xxxxxxx" Units="Bool"/>

Right? but now I need to know which kind of SimVar is linked or used in my template.

looking the asobo Deice Subtemplate the only one ( I think ) Simvar I foud is A:ENG ANTI ICE
so I should use :

<Sound WwiseData="true" WwiseEvent="deice_lever" Continuous="false" NodeName="DEICE_Lever_Engine_1" SimVar="ENG ANTI ICE" Units="Bool"/>
BUT, doesn't work

into the Sim instead , I found many informations about my deice lever if in Behaviour debug window I use ctrl+G , but for me only a big caos.

I try to collect the info I think to be useful :

Behaviors:
Asobo_deice_engine_subtemplate:

A:GENERAL ENG ANTI ICE POSITION:1, position 16k
A:GENERAL ENG ANTI ICE POSITION:1, percent
PART_ID : DEICE_Engine
OTHER_PART_ID : DEICE_Engine_1
WWISE_PREFIX: DEICE_Engine

InputEvents:
Bindings: DEICE_Engine_1
 
It looks like from the template that ENG ANTI ICE is the parameter to use. But you may need to add an Index="1" parameter.


Make sure your addition is inside the SimVarSounds sections as shown in the example.

You should also monitor the value for ENG ANTI ICE using the Simvar Watcher tool to make sure it changes. And perhaps also A:GENERAL ENG ANTI ICE POSITION:1, percent

You can also isolate if the problem is with your custom sound bank. Did you create a soundbank with just a single sound in it? How are your other aircraft sounds made? If you have more than one soundbank you will need to list them in the WwisePackages section of sound.xml otherwise how will the sim know where the sounds are?


You also need to be sure your Event in Wwise is named correctly. For example, Play_AntsAirplanes_Winjeel_push_in. The Play_ is required, the AntsAirplanes_Winjeel matches the package name (obviously change these to your company and aircraft name), the push_in is the part that is referred to in the sound.xml. You must have the Play_AntsAirplanes_Winjeel in the Event name and the AntsAirplanes_Winjeel is the package name.
 
Thanks for the advice @Anthony31 ,
the soundbank made by me has only one audio sound. I try to check again the names inside wwise and try to use ( never before ) the Simvar Watcher tool
 
Back
Top