• 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
52
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>
 
Back
Top