Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Switch container doesn't work in UE4 when packaging for windows

0 votes

Hello, I have some problems when I compile the UE4 project.
I have a new empty UE4.25 project and a Wwise project (2019.2.3.7304.1690) built in as a plugin in the UE4 project.
I have made in Wwise a step system for different types of floors (concrete, grass, water, etc.), I have generated the sound bank and it works perfectly in Wwise and in the UE4 project, everything is fine and different types of sound are playing depending on the physical material, everything is fine.
When I package the project for Windows I get no errors, but when I test the packaged project I only get the same sound on all the different materials. I have been looking for some solution, but there is not too much information about UE4 and Wwise.

https://drive.google.com/drive/folders/1_qRAsa1iVitOhSEG1nQ9jCXO3__Dgl2u?usp=sharing

Here's my settings in Wwise and UE4, also you can see video capture in Unreal with the sounds and you understand what I mean.
In the event footstep I have 2 sounds, 1 is the FootCollection Switch Container and 2 is the Armour Random Container.
When I package the Unreal's project (or play in stand alone like in the video) the sound you hear is the Armour Random Container, if I delete the Armour Random Container from the event footsteps and back again in Unreal and play in stand alone then I haven't any sound.

If you need more info please let me know.
Hope this helps you to solve my problem.

Thanks in advance

asked Jul 16 in General Discussion by John VReq (100 points)

1 Answer

0 votes

Hey John, 

Thanks for the very elaborate description.

Could you try setting the switch using the SwitchValue uasset instead of from string? 
Similar to this: https://youtu.be/bchKV4CU4Yg?t=76

Another suggestion, do you have Split Switch container media disabled in the integration settings? 

Let us know if it works. 

answered Jul 16 by Mads Maretty S. (Audiokinetic) (4,980 points)
Still the same
About setting the switch using the SwitchValue value set instead of the string is good for the collision box and it is brilliant, but I think it is not a good idea for the steps, think of an open world which is not possible due to the different materials of the landscape.

Yes, I disable Split Switch container media and still the same.

Thanks for your interest
Have a good news NOW IT'S WORKING. What I did is update Wwise to 2019.2.4.7329, in Unreal delete all Wwise  folders, and folders saved e intermediate and delete the plugin too just to have a clean unreal project. Once done I reintegrate the plugin from Wwise, generate sound data et voilá, now I packaging the project and the sound is how should be, PERFECT
Thanks for helping me
...