FMOD Distance Filter Unity build issue / File not found error for some users

Hello!
I’ve successfully added a fmod_distance_filter plugin to FMOD into our unity build game.
We’ve builded game and it runs with no problems whatsoever, but not for everyone.

Some players have no sound at all and the next error:

Exception in InitBuses: FMODUnity.SystemNotInitializedException: [FMOD] Initialization failed : Loading plugin ‘fmod_distance_filter’ from ‘C:/Program Files (x86)/Steam/steamapps/common/Frontier Pilot Simulator/Frontier Pilot Simulator_Data/Plugins/fmod_distance_filter.dll’ : ERR_FILE_NOTFOUND : File not found.
at FMODUnity.RuntimeManager.get_Instance () [0x00007] in :0
at FMODUnity.RuntimeManager.get_StudioSystem () [0x00000] in :0
at SoundManager.CSoundsManager.InitBuses (CLogContext inLogContext) [0x000eb] in :0
at SoundManager.CSoundsManager…ctor (CLogContext inLogContext) [0x00042] in :0

System.Environment.get_StackTrace () [0x00000] in :0

SoundManager.CSoundsManager…ctor (CLogContext inLogContext) [0x00000] in :0

CAppManager.Init (AppStarterScript appStarterScript) [0x00000] in :0

AppStarterScript.Start () [0x00000] in :0

The .dll file is physically there. The pathing is the same for everyone.
Plugin loading failure causes no sound output, but why this may happen in the first place?

It’s possible that the fmod_distance_filter.dll has a dependency that isn’t available on some machines, that could cause the appearance of a slightly erroneous “file not found” error. The most common cause of dependency failure is dynamically linking the C runtime, if you statically link it should remove that. I find the tool “Dependency Walker” really useful for exploring these things.

1 Like