# Adding an Additional Plugin to UHT for Non Source Engines

**URL:** <https://forums.unrealengine.com/t/adding-an-additional-plugin-to-uht-for-non-source-engines/363131>\
**Category:** Plugins\
**Tags:** uht, unreal-engine, Scripting, Plugins, question\
**Created:** [July 6, 2016, 2:39pm UTC](https://forums.unrealengine.com/t/adding-an-additional-plugin-to-uht-for-non-source-engines/363131 "2016-07-06T14:39:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_209fd726](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_209fd726](https://forums.unrealengine.com/u/anonymous_user_209fd726)\
**Post date:** [July 6, 2016, 2:39pm UTC](https://forums.unrealengine.com/t/adding-an-additional-plugin-to-uht-for-non-source-engines/363131/1 "2016-07-06T14:39:02Z")

</div>

I’m working on fixing the current ScriptPlugin which is mostly done (I will submit a pull request soon).  
For many reasons I do not want my variant of the plugin for other languages as part of the engine source as distributing custom engines across our teams would be painful and I would want to bring this in on a per project basis.

To get UHT to run the ScriptGenerator program the following is required in _UnrealHeaderTool.Target.cs_ as well as the ProgramEnabledPlugins line in UHT’s _DefaultEngine.ini_.

_UnrealHeaderTool.Target.cs_

```
	public UnrealHeaderToolTarget(TargetInfo Target)
	{
		Type = TargetType.Program;
        AdditionalPlugins.Add("ScriptPlugin");
	}

```

_DefaultEngine.ini_

```
[Plugins]
+ScriptSupportedModules=CoreUObject
+ScriptSupportedModules=Engine
+ScriptSupportedModules=ScriptPlugin
+ProgramEnabledPlugins=ScriptPlugin

```

This works fine when compiling UE4 from source but the script generator will not be detected from launcher engines. This is confirmed in _UnrealHeaderTool.log_ where it spits out “Found 0 script generator plugins”.

I’m sure there must be some way for this to work without building from source but haven’t found a solution yet. SkookumScript does work with launcher engines but it still resides in the engine source rather than in the project plugins folder.

Does anyone know of a way to get it to find my project plugin? I feel it’s likely I might have to alter UHT and do a pull request.

Thanks
