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!