# Packaging fails if plugin is set to Runtime

**URL:** <https://forums.unrealengine.com/t/packaging-fails-if-plugin-is-set-to-runtime/412311>\
**Category:** Plugins\
**Tags:** unreal-engine, packaging-projects, Plugins, question\
**Created:** [December 15, 2017, 6:56am UTC](https://forums.unrealengine.com/t/packaging-fails-if-plugin-is-set-to-runtime/412311 "2017-12-15T06:56:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8fd36a7d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8fd36a7d](https://forums.unrealengine.com/u/anonymous_user_8fd36a7d)\
**Post date:** [December 15, 2017, 6:56am UTC](https://forums.unrealengine.com/t/packaging-fails-if-plugin-is-set-to-runtime/412311/1 "2017-12-15T06:56:03Z")

</div>

Hi there,

I created my own plugin (starting from the blank plugin template) mainly to make my own custom blueprint nodes from C++, UE4 set this up as a Developer module by default. It gets packaged fine with Development builds as expected.

However, now that I want to try to package for a Shipping build, I found out that I needed to change my plugin to Runtime, so I did this, rebuilt the project in VS. However, after doing this, the project fails to package (Shipping or Development) with a bunch of identifier not defined errors related to FPaths and IFileManager. The Build.cs for my plugin is as follows:

```
using UnrealBuildTool;

public class ModdingPlus : ModuleRules
{
	public ModdingPlus(ReadOnlyTargetRules Target) : base(Target)
	{
		PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
		
		PublicIncludePaths.AddRange(
			new string[] {
				"ModdingPlus/Public"
				// ... add public include paths required here ...
			}
			);
				
		
		PrivateIncludePaths.AddRange(
			new string[] {
				"ModdingPlus/Private",
				// ... add other private include paths required here ...
			}
			);
			
		
		PublicDependencyModuleNames.AddRange(
			new string[]
			{
                "Engine",
				"Core",
                "CoreUObject",
                "InputCore",
                "Projects",
				// ... add other public dependencies that you statically link with here ...
			}
			);
			
		
		PrivateDependencyModuleNames.AddRange(
			new string[]
			{
                "ModdingPlus",
				// ... add private dependencies that you statically link with here ...	
			}
			);
		
		
		DynamicallyLoadedModuleNames.AddRange(
			new string[]
			{
				// ... add any modules that your module loads dynamically here ...
			}
			);
	}
}

```

And my uplugin:

```
{
	"FileVersion": 3,
	"Version": 1,
	"VersionName": "1.0",
	"FriendlyName": "ModdingPlus",
	"Description": "Expands UE4's modding capacity",
	"Category": "Other",
	"CreatedBy": "Vinfamy",
	"CreatedByURL": "",
	"DocsURL": "",
	"MarketplaceURL": "",
	"SupportURL": "",
    "EnabledByDefault" : true,
	"CanContainContent" : true,
	"CanContainContent": true,
	"IsBetaVersion": false,
	"Installed": false,
	"Modules": [
		{
			"Name": "ModdingPlus",
			"Type": "Developer",
			"LoadingPhase": "Default"
		}
	]
}

```

How would I be able to proceed with the packaging? Is there something else I need to do when changing from Developer to Runtime?

Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d0ee7ef0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d0ee7ef0](https://forums.unrealengine.com/u/anonymous_user_d0ee7ef0)\
**Post date:** [May 29, 2018, 2:48pm UTC](https://forums.unrealengine.com/t/packaging-fails-if-plugin-is-set-to-runtime/412311/2 "2018-05-29T14:48:44Z")

</div>

I am having the exact same problem. Did you ever solve it?
