# Missing file on build leads to crash

**URL:** https://qa.fmod.com/t/missing-file-on-build-leads-to-crash/18649
**Category:** Unity
**Created:** [April 13, 2022, 1:48am UTC](https://qa.fmod.com/t/missing-file-on-build-leads-to-crash/18649 "2022-04-13T01:48:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![m1thr4nd1r](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/m1thr4nd1r/32/2241_2.png) [@m1thr4nd1r](https://qa.fmod.com/u/m1thr4nd1r)
#### Post date: [April 13, 2022, 1:48am UTC](https://qa.fmod.com/t/missing-file-on-build-leads-to-crash/18649/1 "2022-04-13T01:48:33Z")

</div>

Hello,

On our setup we have the master bank with two localized audio tables. Building on FMOD gives us the four expected files (2 \*.banks, 2 \*.strings.bank).

However, when building on Unity, one of the \*.strings.bank does not get copied to the “StreamingAssets” folder, which in turn causes the build to crash if it tries to use this localized bank. This happens even if the localized bank, and the corresponding string bank ,are explicit set to load on Initialization at FMOD’s Settings in Unity.

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/75b5f0f00ca0d0e58920d0a68b4b44f5eceee106.png)

My investigation led me to this piece of code on EventManager.cs:

```auto
  if (!stringBankGuids.Add(stringBankGuid))
  {
      // If we encounter multiple string banks with the same GUID then only use the first. This handles the scenario where
      // a Studio project is cloned and extended for DLC with a new master bank name.
      continue;
  }

```

It seems the localized banks have the same GUID, which makes sense. However, in this case we want to either copy first the string bank that is set on FMOD’s setting, or copy both string banks so they are available on the build.

Now, I’m missing something, or this is a bug ? What are the suggestions on how to handle our case?

Here is the specs for the project:  
FMOD 2.02.04  
Unity 2020.3.31f  
FMOD Studio Unity Integration 2.02.03

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [April 19, 2022, 2:22am UTC](https://qa.fmod.com/t/missing-file-on-build-leads-to-crash/18649/2 "2022-04-19T02:22:38Z")

</div>

Can you please try moving your audio tables to something other than the master bank? I suspect having localized audio tables is conflicting with the need to have a Master and Master.strings bank loaded at all times.

---

<div class="post-metadata">

### Author: ![m1thr4nd1r](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/m1thr4nd1r/32/2241_2.png) [@m1thr4nd1r](https://qa.fmod.com/u/m1thr4nd1r)
#### Post date: [April 22, 2022, 12:16pm UTC](https://qa.fmod.com/t/missing-file-on-build-leads-to-crash/18649/3 "2022-04-22T12:16:39Z")

</div>

Sorry for the late reply, but yeah this worked.  
Would this be the recommended way to handle localized audio tables? I don’t have much experience with localization 😄

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [April 25, 2022, 11:06pm UTC](https://qa.fmod.com/t/missing-file-on-build-leads-to-crash/18649/4 "2022-04-25T23:06:06Z")

</div>

Good to hear that fixed things- this is the recommended way of dealing with audio tables. We are in the process of adding this reccomendation to our docs to prevent these kinds of confusing situations.
