# Another deployment problem

**URL:** <https://qa.fmod.com/t/another-deployment-problem/13856>\
**Category:** Unreal Engine\
**Created:** [May 5, 2018, 11:13am UTC](https://qa.fmod.com/t/another-deployment-problem/13856 "2018-05-05T11:13:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeromea](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jeromea](https://qa.fmod.com/u/jeromea)\
**Post date:** [May 5, 2018, 11:13am UTC](https://qa.fmod.com/t/another-deployment-problem/13856/1 "2018-05-05T11:13:20Z")

</div>

Unreal version: 4.18.3

FMOD works correctly in the Unreal editor, but when I test my deployed game, there is no FMOD sound played.

I tried everything I can do, like adding “FMODStudio” in PublicDependencyModuleNames (\*.build.cs), or “IFMODStudioModule::Get();” in game mode constructor.

Here is my configuration:  
 ![Deploy config](http://image.noelshack.com/fichiers/2018/18/6/1525518754-2018-05-05-13-10-52-window.png)  
 ![FMOD config](http://image.noelshack.com/fichiers/2018/18/6/1525518754-2018-05-05-13-11-51-window.png)

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [May 9, 2018, 12:33am UTC](https://qa.fmod.com/t/another-deployment-problem/13856/2 "2018-05-09T00:33:01Z")

</div>

> [@](#):
>
> Unreal version: 4.18.3
> 
> FMOD works correctly in the Unreal editor, but when I test my deployed game, there is no FMOD sound played.
> 
> I tried everything I can do, like adding “FMODStudio” in PublicDependencyModuleNames (\*.build.cs), or “IFMODStudioModule::Get();” in game mode constructor.
> 
> Here is my configuration:  
> ![Deploy config](http://image.noelshack.com/fichiers/2018/18/6/1525518754-2018-05-05-13-10-52-window.png)  
> ![FMOD config](http://image.noelshack.com/fichiers/2018/18/6/1525518754-2018-05-05-13-11-51-window.png)

Can you build in development mode and see if there are any errors or warning in the games log file?

---

<div class="post-metadata">

**Author:** ![jeromea](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jeromea](https://qa.fmod.com/u/jeromea)\
**Post date:** [May 9, 2018, 8:02pm UTC](https://qa.fmod.com/t/another-deployment-problem/13856/3 "2018-05-09T20:02:10Z")

</div>

In debug mode, the game won’t start:

Assertion failed: ModuleManager.IsModuleLoaded(ModuleName) [File:C:\Program Files\Epic Games\UE\_4.18\Engine\Source\Runtime\Core\Public\Modules/ModuleManager.h] [Line: 271] Tried to get module interface for unloaded module: ‘FMODStudio’

Proto\_Win64\_DebugGame!FDebug::AssertFailed()  
Proto\_Win64\_DebugGame!FModuleManager::GetModuleChecked() [c:\program files\epic games\ue\_4.18\engine\source\runtime\core\public\modules\modulemanager.h:271]  
Proto\_Win64\_DebugGame!APrototypeGameMode::APrototypeGameMode() [e:\documents\redwood\trunk\project\Proto\source\Proto\gamemode\prototypegamemode.cpp:14]  
Proto\_Win64\_DebugGame!InternalConstructor()  
Proto\_Win64\_DebugGame!UClass::CreateDefaultObject()  
Proto\_Win64\_DebugGame!FEDLBootNotificationManager::ConstructWaitingBootObjects()  
Proto\_Win64\_DebugGame!FAsyncLoadingThread::TickAsyncLoading()  
Proto\_Win64\_DebugGame!FlushAsyncLoading()  
Proto\_Win64\_DebugGame!LoadPackageInternal()  
Proto\_Win64\_DebugGame!LoadPackage()  
Proto\_Win64\_DebugGame!ResolveName()  
Proto\_Win64\_DebugGame!StaticLoadObjectInternal()  
Proto\_Win64\_DebugGame!StaticLoadObject()  
Proto\_Win64\_DebugGame!ConstructorHelpersInternal::FindOrLoadObject() [c:\program files\epic games\ue\_4.18\engine\source\runtime\coreuobject\public\uobject\constructorhelpers.h:35]  
Proto\_Win64\_DebugGame!ConstructorHelpers::FObjectFinder::FObjectFinder() [c:\program files\epic games\ue\_4.18\engine\source\runtime\coreuobject\public\uobject\constructorhelpers.h:108]  
Proto\_Win64\_DebugGame!ADummySpawner::ADummySpawner() [e:\documents\project\trunk\project\Proto\source\Proto\character\dummy\dummyspawner.cpp:18]  
Proto\_Win64\_DebugGame!InternalConstructor()  
Proto\_Win64\_DebugGame!UClass::CreateDefaultObject()  
Proto\_Win64\_DebugGame!UObjectForceRegistration()  
Proto\_Win64\_DebugGame!ProcessNewlyLoadedUObjects()  
Proto\_Win64\_DebugGame!FEngineLoop::PreInit()  
Proto\_Win64\_DebugGame!GuardedMain()  
Proto\_Win64\_DebugGame!GuardedMainWrapper()  
Proto\_Win64\_DebugGame!WinMain()  
Proto\_Win64\_DebugGame!\_\_scrt\_common\_main\_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe\_common.inl:253]  
kernel32  
ntdll

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [May 10, 2018, 12:12am UTC](https://qa.fmod.com/t/another-deployment-problem/13856/4 "2018-05-10T00:12:19Z")

</div>

I believe this issue occurs when GetModuleChecked is called very early, before the FMOD Integration has had a chance to load.

This has been fixed in 1.10.05.

---

<div class="post-metadata">

**Author:** ![jeromea](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jeromea](https://qa.fmod.com/u/jeromea)\
**Post date:** [May 10, 2018, 12:29pm UTC](https://qa.fmod.com/t/another-deployment-problem/13856/5 "2018-05-10T12:29:27Z")

</div>

> [@](#):
>
> I believe this issue occurs when GetModuleChecked is called very early, before the FMOD Integration has had a chance to load.
> 
> This has been fixed in 1.10.05.

Now the game starts, but the problem is still there.

Fortunally there are logs. It seems that the event system look for not deployed files. Or I need to start FMod before game mode, if I look closer to my previous logs, the class ADummySpawner is loaded before. I keep digging.

[2018.05.10-12.20.50:546][0]LogStreaming: Error: Couldn’t find file for package /Game/FMOD/Events/SFX/PNJ/Dummy/Dummy\_Attack requested by async loading code. NameToLoad: /Game/FMOD/Events/SFX/PNJ/Dummy/Dummy\_Attack  
[2018.05.10-12.20.50:546][0]LogStreaming: Error: Found 1 dependent packages…  
[2018.05.10-12.20.50:546][0]LogStreaming: Error: /Game/Characters/Dummy/Animations/MIXAMO/AN\_IVA\_Attack  
[2018.05.10-12.20.50:733][0]LogStreaming: Error: Couldn’t find file for package /Game/FMOD/Events/SFX/Avatar/Move/Avatar\_Jump requested by async loading code. NameToLoad: /Game/FMOD/Events/SFX/Avatar/Move/Avatar\_Jump  
[2018.05.10-12.20.50:733][0]LogStreaming: Error: Found 1 dependent packages…  
[2018.05.10-12.20.50:733][0]LogStreaming: Error: /Game/Characters/Avatar/Blueprints/AvatarBP  
[2018.05.10-12.20.50:734][0]LogStreaming: Error: Couldn’t find file for package /Game/FMOD/Events/SFX/Avatar/Move/Avatar\_Crouch requested by async loading code. NameToLoad: /Game/FMOD/Events/SFX/Avatar/Move/Avatar\_Crouch  
[2018.05.10-12.20.50:734][0]LogStreaming: Error: Found 1 dependent packages…  
[2018.05.10-12.20.50:734][0]LogStreaming: Error: /Game/Characters/Avatar/Blueprints/AvatarBP  
[2018.05.10-12.20.51:007][0]LogStreaming: Error: Couldn’t find file for package /Game/FMOD/Events/SFX/Objet/Tool/Misc\_App/Zoom requested by async loading code. NameToLoad: /Game/FMOD/Events/SFX/Objet/Tool/Misc\_App/Zoom  
[2018.05.10-12.20.51:007][0]LogStreaming: Error: Found 1 dependent packages…  
[2018.05.10-12.20.51:007][0]LogStreaming: Error: /Game/Accessories/Tablet/Applications/Bleuprint/MiscApp  
[2018.05.10-12.20.51:007][0]LogStreaming: Error: Couldn’t find file for package /Game/FMOD/Events/SFX/Objet/Tool/Misc\_App/Thermal\_Vision requested by async loading code. NameToLoad: /Game/FMOD/Events/SFX/Objet/Tool/Misc\_App/Thermal\_Vision  
[2018.05.10-12.20.51:007][0]LogStreaming: Error: Found 1 dependent packages…  
[2018.05.10-12.20.51:007][0]LogStreaming: Error: /Game/Accessories/Tablet/Applications/Bleuprint/MiscApp  
[2018.05.10-12.20.51:007][0]LogStreaming: Error: Couldn’t find file for package /Game/FMOD/Events/SFX/Objet/Tool/Misc\_App/Night\_Vision requested by async loading code. NameToLoad: /Game/FMOD/Events/SFX/Objet/Tool/Misc\_App/Night\_Vision  
[2018.05.10-12.20.51:007][0]LogStreaming: Error: Found 1 dependent packages…  
[2018.05.10-12.20.51:007][0]LogStreaming: Error: /Game/Accessories/Tablet/Applications/Bleuprint/MiscApp  
[2018.05.10-12.20.51:464][0]LogStreaming: Error: Couldn’t find file for package /Game/FMOD/Events/SFX/Avatar/Move/Avatar\_Run requested by async loading code. NameToLoad: /Game/FMOD/Events/SFX/Avatar/Move/Avatar\_Run  
[2018.05.10-12.20.51:464][0]LogStreaming: Error: Found 1 dependent packages…  
[2018.05.10-12.20.51:465][0]LogStreaming: Error: /Game/Characters/Avatar/Animations/AS\_Male\_Run\_Glowstick\_01  
[2018.05.10-12.20.52:012][0]LogStreaming: Error: Couldn’t find file for package /Game/FMOD/Events/SFX/PNJ/Character/Character\_Walk requested by async loading code. NameToLoad: /Game/FMOD/Events/SFX/PNJ/Character/Character\_Walk  
[2018.05.10-12.20.52:012][0]LogStreaming: Error: Found 1 dependent packages…  
[2018.05.10-12.20.52:012][0]LogStreaming: Error: /Game/Characters/Character/Animations/AN\_Character\_Pistol\_Walk\_Anim  
[2018.05.10-12.20.52:569][0]LogStreaming: Error: Couldn’t find file for package /Game/FMOD/Events/SFX/PNJ/Character/Character\_Run requested by async loading code. NameToLoad: /Game/FMOD/Events/SFX/PNJ/Character/Character\_Run  
[2018.05.10-12.20.52:569][0]LogStreaming: Error: Found 1 dependent packages…  
[2018.05.10-12.20.52:569][0]LogStreaming: Error: /Game/Characters/Character/Animations/AN\_Character\_Run  
[2018.05.10-12.20.52:838][0]LogFMOD: FFMODStudioModule startup  
[2018.05.10-12.20.52:838][0]LogFMOD: Lib path = ‘…/…/…/Proto/Plugins/FMODStudio/Binaries’  
[2018.05.10-12.20.52:838][0]LogFMOD: FFMODStudioModule::LoadDll: Loading …/…/…/Proto/Plugins/FMODStudio/Binaries/Win64/fmodL64.dll  
[2018.05.10-12.20.52:839][0]LogFMOD: FFMODStudioModule::LoadDll: Loading …/…/…/Proto/Plugins/FMODStudio/Binaries/Win64/fmodstudioL64.dll  
[2018.05.10-12.20.52:865][0]LogFMOD: Loading strings bank: …/…/…/Proto/Content/FMOD/Desktop/Master Bank.strings.bank  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Cutscene/Avatar\_Dummy\_Vision/Avatar\_Dummy\_Sequence  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Buses/Voice  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Cutscene/Avatar\_Dummy\_Vision/Event\_Ressource/Avatar\_Dummy\_Start  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Banks/SFX  
[2018.05.10-12.20.52:867][0]LogFMOD: Skipping asset: bank:/Master Bank.strings  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/PNJ/Dummy/Dummy\_Attack  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Lieux/Car\_Crash\_Site/Police\_Car  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Ambiance/Lieux/Forest\_Lake/Lake\_General  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Buses/Ambiance  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Avatar/Move/Avatar\_Run  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/PNJ/Character/Character\_Walk  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Voix/Avatar/Respiration\_Walk  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Avatar/Move/Avatar\_Walk  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Banks/Voice  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Objet/Tool/Misc\_App/Normal  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Lieux/Car\_Crash\_Site/Police\_Car  
[2018.05.10-12.20.52:867][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Objet/Tool/Misc\_App/Zoom  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Lieux/Forest\_Observatory/Manette\_Generateur  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Ambiance/Foret/Amb\_Foret\_General  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Lieux/Forest\_Museum/Generateur\_Museum  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Lieux/Forest\_Museum/Manette\_Generateur  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Objet/Tool/Misc\_App/Night\_Vision  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Lieux/Forest\_Observatory/Generateur\_Obs  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/PNJ/Character/Walk  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/PNJ/Character/Character\_Run  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Voix/Avatar/Respiration\_Run  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Cutscene/Allumage\_Generateur\_Lampadaire/Lampadaire\_Sol  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Banks/Master\_Bank  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Buses/Reverb  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Ambiance/Wind/Wind\_General  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Voix/Avatar/Avatar\_Crouch\_Voice  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Buses/SFX  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Snapshots/Group\_Test/Snapshot\_Test  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Cutscene/Avatar\_Dummy\_Vision/Event\_Ressource/Avatar\_Dummy\_End  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Cutscene/Avatar\_Dummy\_Vision/Event\_Ressource/Avatar\_Dummy\_Loop  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Banks/Ambiance  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Ambiance/Foret/Amb\_Prairie  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Ambiance/Test/TEST  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Cutscene/Avatar\_Dummy\_Vision/Avatar\_Dummy\_Sequence\_Old  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Ambiance/Wind/Wind\_Fond  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Objet/Tool/Misc\_App/Thermal\_Vision  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Porte\_Fermee  
[2018.05.10-12.20.52:868][0]LogFMOD: Skipping asset: bus:/  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Avatar/Move/Avatar\_Crouch  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/Voix/Avatar/Avatar\_Jump\_Voice  
[2018.05.10-12.20.52:868][0]LogFMOD: Constructing asset: /Game/FMOD/Events/SFX/Avatar/Move/Avatar\_Jump  
[2018.05.10-12.20.52:875][0]LogFMOD: Creating runtime Studio System  
[2018.05.10-12.20.52:877][0]LogFMOD: Default sample rate = 48000  
[2018.05.10-12.20.52:877][0]LogFMOD: System sample rate = 48000  
[2018.05.10-12.20.52:877][0]LogFMOD: Matching system sample rate 48000  
[2018.05.10-12.20.52:893][0]LogFMOD: Loading Banks  
[2018.05.10-12.20.52:894][0]LogFMOD: Loading bank: …/…/…/Proto/Content/FMOD/Desktop/Ambiance.bank  
[2018.05.10-12.20.52:894][0]LogFMOD: Loading bank: …/…/…/Proto/Content/FMOD/Desktop/SFX.bank  
[2018.05.10-12.20.52:894][0]LogFMOD: Loading bank: …/…/…/Proto/Content/FMOD/Desktop/Voice.bank

---

<div class="post-metadata">

**Author:** ![jeromea](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jeromea](https://qa.fmod.com/u/jeromea)\
**Post date:** [May 10, 2018, 10:12pm UTC](https://qa.fmod.com/t/another-deployment-problem/13856/6 "2018-05-10T22:12:44Z")

</div>

This is not a complete solution, but I removed any dependency to Blueprints classes in my C++ code, so FMOD wasn’t needed early anymore. And it works.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [May 11, 2018, 3:41am UTC](https://qa.fmod.com/t/another-deployment-problem/13856/7 "2018-05-11T03:41:31Z")

</div>

I believe the “Couldn’t find file” errors are caused by using the top level ‘FMOD’ folder in the Additional Non-Asset Directories to Package/Copy.  
On a side note, only use Package or Copy not both as it is essentially adding the files to the built game twice.  
The reason we use the top level folder, is because we cannot specify different paths for each platform from a plugin. This can be achieved by modifying/creating config files for each platform in your project.

After looking into this further, it is definitely something we could document a bit better.  
I have made a task to add this to the docs.

This is what you should see in the DefaultGame.ini (among other things):  
“[ProjectDirectory]/Saved/Config/DefaultGame.ini”  
`
[/Script/UnrealEd.ProjectPackagingSettings]
+DirectoriesToAlwaysStageAsUFS=(Path=“FMOD”)
`

Using these config files you can specify the exact bank folder to use for each platform.  
eg. FMOD/PS4, FMOD/Mobile, etc.
