Hi i’m trying to package my plugin but it fails and i don’t understand why. this is the error i’m getting
UnrealBuildTool.GuardedMain: Command line: "G:\Epic Games\UE_4.21\Engine\Binaries\DotNET\UnrealBuildTool.exe" UE4Editor Win64 Development -plugin="C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\WCGPlugin.uplugin" -iwyu -noubtmakefiles -manifest="C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Saved\Manifest-UE4Editor-Win64-Development.xml" -NoHotReload -log="G:\Epic Games\UE_4.21\Engine\Programs\AutomationTool\Saved\Logs\UBT-UE4Editor-Win64-Development.txt"
WindowsPlatform.EnumerateSdkRootDirs: Found Windows 10 SDK root at C:\Program Files (x86)\Windows Kits\10 (1)
WindowsPlatform.EnumerateSdkRootDirs: Found Windows 10 SDK root at C:\Program Files (x86)\Windows Kits\10 (2)
WindowsPlatform.UpdateCachedWindowsSdks: Found Windows 10 SDK version 10.0.16299.0 at C:\Program Files (x86)\Windows Kits\10
WindowsPlatform.UpdateCachedWindowsSdks: Found Universal CRT version 10.0.16299.0 at C:\Program Files (x86)\Windows Kits\10
WindowsPlatform.UpdateCachedWindowsSdks: Found Windows 10 SDK version 10.0.17763.0 at C:\Program Files (x86)\Windows Kits\10
WindowsPlatform.UpdateCachedWindowsSdks: Found Universal CRT version 10.0.17763.0 at C:\Program Files (x86)\Windows Kits\10
VCToolChain.PrintVersionInfo: Using Visual Studio 2017 14.16.27023 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023) and Windows 10.0.16299.0 SDK (C:\Program Files (x86)\Windows Kits\10).
VCToolChain.PrintVersionInfo: Compiler: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe
VCToolChain.PrintVersionInfo: Linker: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\link.exe
VCToolChain.PrintVersionInfo: Library Manager: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\lib.exe
VCToolChain.PrintVersionInfo: Resource Compiler: C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64\rc.exe
UEBuildTarget.AddPlugin: Enabling plugin 'WCGPlugin' (referenced via command line)
UEBuildTarget.AddPlugin: Enabling plugin 'Paper2D' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'AISupport' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'LightPropagationVolume' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'ActorLayerUtilities' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'CLionSourceCodeAccess' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'CodeLiteSourceCodeAccess' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'GitSourceControl' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'KDevelopSourceCodeAccess' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'NullSourceCodeAccess' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'PerforceSourceControl' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'SubversionSourceControl' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'UObjectPlugin' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'VisualStudioCodeSourceCodeAccess' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'VisualStudioSourceCodeAccess' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'XCodeSourceCodeAccess' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'AssetManagerEditor' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'CryptoKeys' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'DataValidation' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'FacialAnimation' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'GameplayTagsEditor' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'MacGraphicsSwitching' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'MeshEditor' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'EditableMesh' (referenced via default plugins -> MeshEditor.uplugin)
UEBuildTarget.AddPlugin: Enabling plugin 'MobileLauncherProfileWizard' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'PluginBrowser' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'SpeedTreeImporter' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'DatasmithContent' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'VariantManagerContent' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'AlembicImporter' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'GeometryCache' (referenced via default plugins -> AlembicImporter.uplugin)
UEBuildTarget.AddPlugin: Enabling plugin 'AppleImageUtils' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'AppleVision' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'BackChannel' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'CharacterAI' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'HTML5Networking' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'ProxyLODPlugin' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'MagicLeap' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'ProceduralMeshComponent' (referenced via default plugins -> MagicLeap.uplugin)
UEBuildTarget.AddPlugin: Enabling plugin 'MagicLeapMedia' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'AndroidMedia' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'AvfMedia' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'ImgMedia' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'LinearTimecode' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'MediaCompositing' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'MediaPlayerEditor' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'WmfMedia' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'TcpMessaging' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'UdpMessaging' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'ActorSequence' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'LevelSequenceEditor' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'MatineeToLevelSequence' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'NetcodeUnitTest' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'NUTUnrealEngine4' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'OnlineSubsystemGooglePlay' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'OnlineSubsystem' (referenced via default plugins -> OnlineSubsystemGooglePlay.uplugin)
UEBuildTarget.AddPlugin: Enabling plugin 'AndroidPermission' (referenced via default plugins -> OnlineSubsystemGooglePlay.uplugin)
UEBuildTarget.AddPlugin: Enabling plugin 'OnlineSubsystemIOS' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'OnlineSubsystemNull' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'OnlineSubsystemUtils' (referenced via default plugins -> OnlineSubsystemNull.uplugin)
UEBuildTarget.AddPlugin: Enabling plugin 'LauncherChunkInstaller' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'AndroidDeviceProfileSelector' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'AndroidMoviePlayer' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'AppleMoviePlayer' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'ArchVisCharacter' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'AudioCapture' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'CableComponent' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'CustomMeshComponent' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'ExampleDeviceProfileSelector' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'Firebase' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'GoogleCloudMessaging' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'IOSDeviceProfileSelector' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'LinuxDeviceProfileSelector' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'LocationServicesBPLibrary' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'MobilePatchingUtils' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'OculusVR' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'PhysXVehicles' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'RuntimePhysXCooking' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'SteamVR' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'WebMMoviePlayer' (referenced via default plugins)
UEBuildTarget.AddPlugin: Enabling plugin 'WebMMedia' (referenced via default plugins -> WebMMoviePlayer.uplugin)
UEBuildTarget.AddPlugin: Enabling plugin 'WindowsMoviePlayer' (referenced via default plugins)
UEBuildModule.CreateDirectoryHashSet: G:\Epic Games\UE_4.21\Engine\Plugins\Marketplace\SCUE4\Source\Settings\SCUE4Editor.Build.cs: warning: Referenced directory 'G:\Epic Games\UE_4.21\Engine\Source\Settings\Public' does not exist.
UEBuildModule.CreateDirectoryHashSet: G:\Epic Games\UE_4.21\Engine\Plugins\Marketplace\SubsystemConfigurator\Source\OnlineSubsystemConfigurator\SubsystemConfigurator.Build.cs: warning: Referenced directory 'G:\Epic Games\UE_4.21\Engine\Source\SubsystemConfigurator\Public' does not exist.
ExternalExecution.ExecuteHeaderToolIfNecessary: Parsing headers for UE4Editor
ExternalExecution.ExecuteHeaderToolIfNecessary: Running UnrealHeaderTool UE4Editor "G:\Epic Games\UE_4.21\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
ExternalExecution.ExecuteHeaderToolIfNecessary: Reflection code generated for UE4Editor in 15,0270121 seconds
UEBuildTarget.GenerateManifest: Writing manifest to C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Saved\Manifest-UE4Editor-Win64-Development.xml
ActionGraph.DeleteStaleHotReloadDLLs: Deleting old hot reload file: "C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin-3198.dll".
ActionGraph.DeleteStaleHotReloadDLLs: Deleting old hot reload file: "C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin-3198.pdb".
ActionGraph.DeleteStaleHotReloadDLLs: Deleting old hot reload file: "C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin-3338.dll".
ActionGraph.DeleteStaleHotReloadDLLs: Deleting old hot reload file: "C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin-3338.pdb".
ActionGraph.DeleteStaleHotReloadDLLs: Deleting old hot reload file: "C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin-6894.dll".
ActionGraph.DeleteStaleHotReloadDLLs: Deleting old hot reload file: "C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin-6894.pdb".
ActionGraph.DeleteStaleHotReloadDLLs: Deleting old hot reload file: "C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin-766.dll".
ActionGraph.DeleteStaleHotReloadDLLs: Deleting old hot reload file: "C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin-766.pdb".
ActionGraph.DeleteStaleHotReloadDLLs: Deleting old hot reload file: "C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin-8353.dll".
ActionGraph.DeleteStaleHotReloadDLLs: Deleting old hot reload file: "C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin-8353.pdb".
ActionGraph.DeleteStaleHotReloadDLLs: Deleting old hot reload file: "C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin-9241.dll".
ActionGraph.DeleteStaleHotReloadDLLs: Deleting old hot reload file: "C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin-9241.pdb".
ActionGraph.IsActionOutdated: Module.WCGPlugin.gen.cpp: Produced item "Module.WCGPlugin.gen.cpp.obj" doesn't exist.
ActionGraph.IsActionOutdated: Module.WCGPlugin.cpp: Produced item "Module.WCGPlugin.cpp.obj" doesn't exist.
ActionGraph.IsActionOutdated: PCLaunch.rc: Produced item "PCLaunch.rc.res" doesn't exist.
ActionGraph.IsActionOutdated: UE4Editor-WCGPlugin.dll: Prerequisite SharedPCH.Engine.h.obj is newer than the last execution of the action: 2019/02/21 05:39:47 vs 2019/02/21 05:19:22
ActionGraph.IsActionOutdated: UE4Editor-WCGPlugin.lib: Produced item "UE4Editor-WCGPlugin.lib" doesn't exist.
ActionGraph.DeleteOutdatedProducedItems: Deleting outdated item: C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin.pdb
UEBuildTarget.TryRecycleVersionManifests: Recycled previous build ID (4541578)
ParallelExecutor.ExecuteActions: Building 5 actions with 12 processes...
ParallelExecutor.ExecuteActions: [1/5] PCLaunch.rc
ParallelExecutor.ExecuteActions: [2/5] Module.WCGPlugin.cpp
ParallelExecutor.ExecuteActions: C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Source\WCGPlugin\Private\AllowClose.cpp(4): fatal error C1083: Cannot open include file: 'ConfigCacheIni.h': No such file or directory
ParallelExecutor.ExecuteActions: [3/5] Module.WCGPlugin.gen.cpp
Log.WriteException: ==============================================================================
Log.WriteException: ERROR: UBT ERROR: Failed to produce item: C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin.pdb
Log.WriteException: (see G:\Epic Games\UE_4.21\Engine\Programs\AutomationTool\Saved\Logs\UBT-UE4Editor-Win64-Development.txt for full exception trace)
Log.WriteException:
Log.WriteException: BuildException: UBT ERROR: Failed to produce item: C:\Users\warmaster\Documents\Unreal Projects\CreatingOfPlugins\PackagedPlugins\WCGPlugin\HostProject\Plugins\WCGPlugin\Binaries\Win64\UE4Editor-WCGPlugin.pdb
Log.WriteException: at UnrealBuildTool.ActionGraph.ExecuteActions(BuildConfiguration BuildConfiguration, List`1 ActionsToExecute, String& ExecutorName, String TargetInfoForTelemetry, EHotReload HotReload) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\ActionGraph.cs:line 507
Log.WriteException: at UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile, Boolean bCatchExceptions) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 1699
Log.WriteException: ==============================================================================
UnrealBuildTool.RunUBT: Total build time: 21,90 seconds (Parallel executor: 0,00 seconds)
This is my AllowClose.cpp file:
// Fill out your copyright notice in the Description page of Project Settings.
#include "AllowClose.h"
#include "ConfigCacheIni.h"
bool UAllowClose::GetAllowClose() {
//Get Game Allow Close
bool GetAllowClose;
GConfig->GetBool(
TEXT("/script/engineSettings.GeneralProjectSettings"),
TEXT("bAllowClose"),
GetAllowClose,
GGameIni
);
return GetAllowClose;
}
This is my AllowClose.h file:
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "AllowClose.generated.h"
/**
*
*/
UCLASS()
class WCGPLUGIN_API UAllowClose : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
// Get Allow Close
UFUNCTION(BlueprintPure, meta = (DisplayName = "Get Allow Close"), Category = "WCG Plugin")
static bool GetAllowClose();
};