# UGC Build Errors

**URL:** <https://forums.unrealengine.com/t/ugc-build-errors/250991>\
**Category:** Modding\
**Tags:** unreal-engine, UE4-26\
**Created:** [September 16, 2021, 4:24am UTC](https://forums.unrealengine.com/t/ugc-build-errors/250991 "2021-09-16T04:24:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_288f9ca9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_288f9ca9](https://forums.unrealengine.com/u/anonymous_user_288f9ca9)\
**Post date:** [September 16, 2021, 4:24am UTC](https://forums.unrealengine.com/t/ugc-build-errors/250991/1 "2021-09-16T04:24:35Z")

</div>

Okay this seems like a stupid question to ask and especially create a forum for, but I can’t find the solution anywhere. When trying to build the UGC example project for windows in shipping configuration I get the error:  
“UnrealBuildTool : error : Found ‘MyFirstTestMod’ plugin in two locations (D:\Unreal\UnrealEngine\Projects\UGCExample\Mods\MyFirstTestMod\MyFirstTestMod.uplugin and D:\Unreal\UnrealEngine\Projects\UGCExample\Mods\MyFirstTestMod\MyFirstTestMod.uplugin). Plugin names must be unique.”  
It is the same location and I only used the UGC Buttons to create the Mod.  
I Also deleted the mod and tried a different name which gave the same error.  
Anyone know why this happens and maybe can give a short explanation?

---

<div class="post-metadata">

**Author:** ![Lost\_Boy\_Jason](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lost_boy_jason/32/88713_2.png) [@Lost\_Boy\_Jason](https://forums.unrealengine.com/u/Lost_Boy_Jason)\
**Post date:** [November 19, 2021, 3:41am UTC](https://forums.unrealengine.com/t/ugc-build-errors/250991/2 "2021-11-19T03:41:41Z")

</div>

Hi ,  
Bit of an old topic but I found the cause of your problem and an intermediate solution. Basically the plugin wizard that is invoked by creating a new mod has no way to know it is creating “mod” as it were and fails the simple task of determining that UE4 already knows where the mods directory is and instead treats the directory as an additional plugin directory in AddToPluginSearchPathIfNeeded  
this marks your .uproject file in a bad way, causing the search directory it adds to be redundant, permanently borking your editor.  
UE4 is a big project and these things are bound to happen, the interim solution is to simply open your .uproject file in a text editor and remove the “Mods” entry from  
“AdditionalPluginDirectories”: [  
“Mods”  
]  
I am considering sending a PR for the plugin creation wizard so that it intelligently detects the mods directory and does not ever add it, but there are a number of reasons that might not be a good idea, for now you can use this method if you want to.  
Happy modding!

-Jasooooo

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_288f9ca9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_288f9ca9](https://forums.unrealengine.com/u/anonymous_user_288f9ca9)\
**Post date:** [November 19, 2021, 8:09am UTC](https://forums.unrealengine.com/t/ugc-build-errors/250991/3 "2021-11-19T08:09:33Z")

</div>

Dear Jasoooo,

This is what I call waking up to good news. I will try it later today.  
Huge thanks because this really should be the quickest solution!

Cheers,

---

<div class="post-metadata">

**Author:** ![hGosling](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hGosling](https://forums.unrealengine.com/u/hGosling)\
**Post date:** [February 10, 2022, 8:25pm UTC](https://forums.unrealengine.com/t/ugc-build-errors/250991/4 "2022-02-10T20:25:48Z")

</div>

Thank you a million times for this! Fixed my UGC issues on 4.26.
