# Is FMOD trying to copy banks to the wrong folder?

**URL:** <https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600>\
**Category:** Unity\
**Created:** [April 21, 2019, 9:03pm UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600 "2019-04-21T21:03:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DebrisHauler](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DebrisHauler](https://qa.fmod.com/u/DebrisHauler)\
**Post date:** [April 21, 2019, 9:03pm UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/1 "2019-04-21T21:03:21Z")

</div>

I can’t run my project due to the banks failing to copy over to StreamingAssets. The exact errors are at the bottom of this post. The IOException show that FMOD Studio attempted to move the banks to StreamingAssetsC: instead of StreamingAssets. Am I understanding this right? Why was “C:” added to the end of StreamingAssets, and how can I correct this?

 ![FMODerror](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/e494e326d30e5bfb9e0b80c824a2ec7e7fe9e15e.png)

---

<div class="post-metadata">

**Author:** ![jlindskov](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@jlindskov](https://qa.fmod.com/u/jlindskov)\
**Post date:** [April 23, 2019, 9:25pm UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/2 "2019-04-23T21:25:02Z")

</div>

I have the exact same problem but on Mac, it is only happening when using Fmod 2.0 and building to a single bank.

---

<div class="post-metadata">

**Author:** ![DebrisHauler](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DebrisHauler](https://qa.fmod.com/u/DebrisHauler)\
**Post date:** [April 27, 2019, 5:23am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/3 "2019-04-27T05:23:23Z")

</div>

I found this FMOD issue that is pretty similar

> [@StreamingAssets fail to copy due to invalid path name in EventManager.cs (upgrade to 2.00.00 integration)](https://qa.fmod.com/t/streamingassets-fail-to-copy-due-to-invalid-path-name-in-eventmanager-cs-upgrade-to-2-00-00-integration/14479):
>
> This is an error we started getting in Unity 2018.3.7f1 after upgrading to FMOD 2.00.00 from 1.10.11. It appears to happen when the banks are copied (unsuccessfully) to the StreamingAssets folder. From my digging, it seems that this has something to do with some of the paths of the banks in EventManager.cs being stored as absolute paths and not relative. This doesn’t seem to be an issue with the Master.strings.bank for some reason. The Path for Master.strings is “Assets\FMODAssets\Desktop\Maste…

So I then replaced EventManager.cs with the version here on github, and I also deleted my FMODstudioCache.asset to let it regenerate

> <https://github.com/fmod/fmod-for-unity/blob/c0106f3ae68add393a4080ea42c4eca1d6266150/Assets/Plugins/FMOD/src/Editor/EventManager.cs>

The new script off github still did not fix my problem, though.

---

<div class="post-metadata">

**Author:** ![studioatmazeke](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@studioatmazeke](https://qa.fmod.com/u/studioatmazeke)\
**Post date:** [April 27, 2019, 5:53am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/4 "2019-04-27T05:53:24Z")

</div>

Make sure browse the commit history and grab all the updated files: [https://github.com/fmod/UnityIntegration/commits/master](https://github.com/fmod/UnityIntegration/commits/master)

There were 3 commits related to this issue, and, if memory serves, I think 4 files were changed, not just EventManager.cs - but it did seem to solve the issue for us.

---

<div class="post-metadata">

**Author:** ![DebrisHauler](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DebrisHauler](https://qa.fmod.com/u/DebrisHauler)\
**Post date:** [May 10, 2019, 3:02am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/5 "2019-05-10T03:02:59Z")

</div>

Thanks for the recommendation, but I’ve updated all files to ones in the github repo and it hasn’t solved the issue.

---

<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, 2019, 3:21am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/6 "2019-05-10T03:21:48Z")

</div>

Could you try also manually deleting the _FMODStudioCache.asset_.

---

<div class="post-metadata">

**Author:** ![DebrisHauler](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DebrisHauler](https://qa.fmod.com/u/DebrisHauler)\
**Post date:** [May 10, 2019, 3:30am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/7 "2019-05-10T03:30:18Z")

</div>

I just deleted it. The issue is still there.

---

<div class="post-metadata">

**Author:** ![DebrisHauler](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DebrisHauler](https://qa.fmod.com/u/DebrisHauler)\
**Post date:** [May 10, 2019, 3:43am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/8 "2019-05-10T03:43:32Z")

</div>

I’m currently debugging EventManager.cs. On the line where sourcePath is defined, I see that bankSourceFolder is the relative folder path (no Master Bank at the end), and bankRef.Name is a full system path (and Master Bank at the end). So combining these will not be a valid path.

---

<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, 2019, 3:53am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/9 "2019-05-10T03:53:24Z")

</div>

bankRef.Name shouldn’t be the full system path (anymore), it should only be the file name plus any sub-directory.

We are very close to releasing 2.00.01, so I have uploaded the source code to Github which includes many other fixes as well.

---

<div class="post-metadata">

**Author:** ![DebrisHauler](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DebrisHauler](https://qa.fmod.com/u/DebrisHauler)\
**Post date:** [May 10, 2019, 4:10am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/10 "2019-05-10T04:10:15Z")

</div>

Cool! I might be the first user trying it out right now. It’s giving me some simpler errors now.

Assets/Plugins/FMOD/src/Runtime/StudioEventEmitter.cs(7,18): error CS0509: `FMODUnity.StudioEventEmitter': cannot derive from sealed type`System.EventHandler’

(Filename: Assets/Plugins/FMOD/src/Runtime/StudioEventEmitter.cs Line: 7)

Assets/Plugins/FMOD/src/Runtime/StudioGlobalParameterTrigger.cs(7,18): error CS0509: `FMODUnity.StudioGlobalParameterTrigger': cannot derive from sealed type`System.EventHandler’

(Filename: Assets/Plugins/FMOD/src/Runtime/StudioGlobalParameterTrigger.cs Line: 7)

Assets/Plugins/FMOD/src/Runtime/StudioParameterTrigger.cs(14,18): error CS0509: `FMODUnity.StudioParameterTrigger': cannot derive from sealed type`System.EventHandler’

(Filename: Assets/Plugins/FMOD/src/Runtime/StudioParameterTrigger.cs Line: 14)

Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs(466,9): error CS0246: The type or namespace name `FMODRuntimeManagerOnGUIHelper’ could not be found. Are you missing an assembly reference?

(Filename: Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs Line: 466)

Assets/Plugins/FMOD/src/Runtime/StudioEventEmitter.cs(83,33): error CS0115: `FMODUnity.StudioEventEmitter.HandleGameEvent(FMODUnity.EmitterGameEvent)’ is marked as an override but no suitable method found to override

(Filename: Assets/Plugins/FMOD/src/Runtime/StudioEventEmitter.cs Line: 83)

Assets/Plugins/FMOD/src/Runtime/StudioGlobalParameterTrigger.cs(31,33): error CS0115: `FMODUnity.StudioGlobalParameterTrigger.HandleGameEvent(FMODUnity.EmitterGameEvent)’ is marked as an override but no suitable method found to override

(Filename: Assets/Plugins/FMOD/src/Runtime/StudioGlobalParameterTrigger.cs Line: 31)

Assets/Plugins/FMOD/src/Runtime/StudioParameterTrigger.cs(39,33): error CS0115: `FMODUnity.StudioParameterTrigger.HandleGameEvent(FMODUnity.EmitterGameEvent)’ is marked as an override but no suitable method found to override

(Filename: Assets/Plugins/FMOD/src/Runtime/StudioParameterTrigger.cs Line: 39)

---

<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, 2019, 4:18am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/11 "2019-05-10T04:18:08Z")

</div>

Whoops, sorry I was in too much of a rush and missed the new files that needed to be added. They should be in the repo now.

---

<div class="post-metadata">

**Author:** ![DebrisHauler](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DebrisHauler](https://qa.fmod.com/u/DebrisHauler)\
**Post date:** [May 10, 2019, 4:33am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/12 "2019-05-10T04:33:31Z")

</div>

Thanks! I’m still getting the full system path in bankRef.Name _sometimes_. I mean this code in EventManager.cs is being hit two times, and the first iteration correctly contains “Master Bank.strings”. But the second time around, bankRef.Name contains the full system path and produces the same old error.

---

<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, 2019, 4:35am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/13 "2019-05-10T04:35:27Z")

</div>

If you haven’t already, try deleting the _FMODStudioCache.asset_ again.

How are you linking the integration to the banks? (Project, Single Platform, Multi Platform)

---

<div class="post-metadata">

**Author:** ![DebrisHauler](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DebrisHauler](https://qa.fmod.com/u/DebrisHauler)\
**Post date:** [May 10, 2019, 4:39am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/14 "2019-05-10T04:39:48Z")

</div>

Not sure, but I think Multi Platform. Should I be looking in FMOD \> Edit Settings?

---

<div class="post-metadata">

**Author:** ![DebrisHauler](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DebrisHauler](https://qa.fmod.com/u/DebrisHauler)\
**Post date:** [May 10, 2019, 4:44am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/15 "2019-05-10T04:44:33Z")

</div>

![EditFMOD](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/8697fcd2b3284ddc3f223a63ccf57f0906eb8320.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 10, 2019, 4:49am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/16 "2019-05-10T04:49:12Z")

</div>

Using ‘FMOD \> Edit Settings’ will give you a nicer UI.

On a side note, I don’t think it will have any effect on the current issue:  
It looks like you have the Studio Project inside your Unity projects Assets folder, normally we wouldn’t recommend this as it can bloat your Unity project. I would recommend at least moving it up a level so it is next to the Assets folder, rather than in it.

---

<div class="post-metadata">

**Author:** ![DebrisHauler](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DebrisHauler](https://qa.fmod.com/u/DebrisHauler)\
**Post date:** [May 10, 2019, 4:56am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/17 "2019-05-10T04:56:25Z")

</div>

Good tip. That was a poor assumption on my part. And yes, getting it out of Assets didn’t fix anything.

---

<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, 2019, 5:00am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/18 "2019-05-10T05:00:08Z")

</div>

I was actually able to reproduce the issue by having the project/banks inside the Assets folder, then as soon as I moved them out of there it worked again. The pathing doesn’t seem to handle that very well, but are you certain that yours still doesn’t work?

---

<div class="post-metadata">

**Author:** ![DebrisHauler](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DebrisHauler](https://qa.fmod.com/u/DebrisHauler)\
**Post date:** [May 10, 2019, 5:08am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/19 "2019-05-10T05:08:25Z")

</div>

I’m certain. And I deleted _FMODStudioCache.asset_. Do settings seem correct?

 ![EditFMOD2](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/33d4b07dacbe5eb46e84c27a136f3a3f285e4011.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 10, 2019, 5:14am UTC](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600/20 "2019-05-10T05:14:58Z")

</div>

The `Source Project Path` should be the full system path to the Studio project, are you inputting this manually? If you change the UI mode back to normal, you can use the browser to select the Studio project.

[Next page](https://qa.fmod.com/t/is-fmod-trying-to-copy-banks-to-the-wrong-folder/14600.md?page=2)
