# Automation FMOD issues with UE4

**URL:** https://qa.fmod.com/t/automation-fmod-issues-with-ue4/18097
**Category:** Unreal Engine
**Tags:** ue4
**Created:** [December 14, 2021, 5:31pm UTC](https://qa.fmod.com/t/automation-fmod-issues-with-ue4/18097 "2021-12-14T17:31:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![DoomlordInteractive](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@DoomlordInteractive](https://qa.fmod.com/u/DoomlordInteractive)
#### Post date: [December 14, 2021, 5:31pm UTC](https://qa.fmod.com/t/automation-fmod-issues-with-ue4/18097/1 "2021-12-14T17:31:36Z")

</div>

Hi,

We’re currently using Jenkins to automate builds. Today I implemented to build banks in FMOD using command line, before building the game.

However, when it builds banks it probably validates the project and adds “+DirectoriesToAlwaysStageAsNonUFS=(Path=“Content/FMOD/Desktop”)” to the DefaultGame.ini file.

What this results in is this error: “ERROR: System.IO.DirectoryNotFoundException: Could not find a part of the path ‘D:\JenkinsWorkspace\Project\_IceBox\Content\Content\FMOD\Desktop’.” when building the game, it duplicated the \Content in the path.

If I remove the “Content” from “Content/FMOD/Desktop” it works, but since it’s automatically generated when building banks, I can’t solve it. How do I solve it?

---

<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: [December 16, 2021, 6:04am UTC](https://qa.fmod.com/t/automation-fmod-issues-with-ue4/18097/2 "2021-12-16T06:04:02Z")

</div>

What versions of FMOD and Unreal are you using? The value of DirectoriesToAlwaysStageAsNonUFS in DefaultGame.ini should be “FMOD/Desktop” in 2.01 and 2.02 so perhaps you could try updating to one of the latest versions and see if that fixes things?

---

<div class="post-metadata">

### Author: ![DoomlordInteractive](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@DoomlordInteractive](https://qa.fmod.com/u/DoomlordInteractive)
#### Post date: [December 16, 2021, 9:25am UTC](https://qa.fmod.com/t/automation-fmod-issues-with-ue4/18097/5 "2021-12-16T09:25:34Z")

</div>

Thank you for the reply,

We’re using version “2.02.04” of the FMOD UE4 Plugin and UE4 4.26.2

---

<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: [December 16, 2021, 11:32pm UTC](https://qa.fmod.com/t/automation-fmod-issues-with-ue4/18097/6 "2021-12-16T23:32:39Z")

</div>

I have not been able to reproduce DirectoriesToAlwaysStageAsNonUFS being overwritten every time banks reimport in 2.02.04. Perhaps try changing the value in “Project Settings\>Project\>Packaging\>Additional Non-Asset Directories to Copy” to “FMOD/Desktop”?

---

<div class="post-metadata">

### Author: ![DoomlordInteractive](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@DoomlordInteractive](https://qa.fmod.com/u/DoomlordInteractive)
#### Post date: [December 17, 2021, 8:01am UTC](https://qa.fmod.com/t/automation-fmod-issues-with-ue4/18097/7 "2021-12-17T08:01:58Z")

</div>

I have done that. But when I build banks from command line, it readds Content/FMOD/Desktop to the value.

---

<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: [December 20, 2021, 5:55am UTC](https://qa.fmod.com/t/automation-fmod-issues-with-ue4/18097/8 "2021-12-20T05:55:52Z")

</div>

What is your Bank Output Directory set to in the FMOD Studio Unreal plugin settings? That’s the only other place I can think of that could interfere with the DirectoriesToAlwaysStageAsNonUFS. If it’s set to “Content/FMOD”, can you please try changing it to just “FMOD” and the double check that the “Content/FMOD/Desktop” entry does not exist in the Additional Non-Asset Directories To Copy list?
